From a556ecd9fa6678e8d0ed51620cc37209154fec25 Mon Sep 17 00:00:00 2001 From: lxgr-linux Date: Tue, 17 Dec 2024 00:21:51 +0100 Subject: [PATCH] feat(#242): next wave of transactions --- api/cardchain/cardchain/tx.pulsar.go | 15121 +++++++++++++++- api/cardchain/cardchain/tx_grpc.pb.go | 542 +- docs/static/openapi.yml | 2 +- gen.sh | 18 +- proto/cardchain/cardchain/tx.proto | 139 + .../keeper/msg_server_booster_pack_buy.go | 17 + .../keeper/msg_server_council_create.go | 17 + .../msg_server_match_reporter_appoint.go | 17 + .../keeper/msg_server_sell_offer_buy.go | 17 + .../keeper/msg_server_sell_offer_create.go | 17 + .../keeper/msg_server_sell_offer_remove.go | 17 + .../keeper/msg_server_set_artwork_add.go | 17 + x/cardchain/keeper/msg_server_set_card_add.go | 17 + .../keeper/msg_server_set_card_remove.go | 17 + .../keeper/msg_server_set_contributor_add.go | 17 + .../msg_server_set_contributor_remove.go | 17 + x/cardchain/keeper/msg_server_set_create.go | 17 + x/cardchain/keeper/msg_server_set_finalize.go | 17 + .../keeper/msg_server_set_story_add.go | 17 + x/cardchain/module/autocli.go | 84 + x/cardchain/module/simulation.go | 322 + x/cardchain/simulation/booster_pack_buy.go | 29 + x/cardchain/simulation/council_create.go | 29 + .../simulation/match_reporter_appoint.go | 29 + x/cardchain/simulation/sell_offer_buy.go | 29 + x/cardchain/simulation/sell_offer_create.go | 29 + x/cardchain/simulation/sell_offer_remove.go | 29 + x/cardchain/simulation/set_artwork_add.go | 29 + x/cardchain/simulation/set_card_add.go | 29 + x/cardchain/simulation/set_card_remove.go | 29 + x/cardchain/simulation/set_contributor_add.go | 29 + .../simulation/set_contributor_remove.go | 29 + x/cardchain/simulation/set_create.go | 29 + x/cardchain/simulation/set_finalize.go | 29 + x/cardchain/simulation/set_story_add.go | 29 + x/cardchain/types/codec.go | 42 + x/cardchain/types/message_booster_pack_buy.go | 24 + .../types/message_booster_pack_buy_test.go | 40 + x/cardchain/types/message_council_create.go | 24 + .../types/message_council_create_test.go | 40 + .../types/message_match_reporter_appoint.go | 24 + .../message_match_reporter_appoint_test.go | 40 + x/cardchain/types/message_sell_offer_buy.go | 24 + .../types/message_sell_offer_buy_test.go | 40 + .../types/message_sell_offer_create.go | 25 + .../types/message_sell_offer_create_test.go | 40 + .../types/message_sell_offer_remove.go | 24 + .../types/message_sell_offer_remove_test.go | 40 + x/cardchain/types/message_set_artwork_add.go | 25 + .../types/message_set_artwork_add_test.go | 40 + x/cardchain/types/message_set_card_add.go | 25 + .../types/message_set_card_add_test.go | 40 + x/cardchain/types/message_set_card_remove.go | 25 + .../types/message_set_card_remove_test.go | 40 + .../types/message_set_contributor_add.go | 25 + .../types/message_set_contributor_add_test.go | 40 + .../types/message_set_contributor_remove.go | 25 + .../message_set_contributor_remove_test.go | 40 + x/cardchain/types/message_set_create.go | 27 + x/cardchain/types/message_set_create_test.go | 40 + x/cardchain/types/message_set_finalize.go | 24 + .../types/message_set_finalize_test.go | 40 + x/cardchain/types/message_set_story_add.go | 25 + .../types/message_set_story_add_test.go | 40 + x/cardchain/types/tx.pb.go | 9738 +++++++--- 65 files changed, 24914 insertions(+), 2644 deletions(-) create mode 100644 x/cardchain/keeper/msg_server_booster_pack_buy.go create mode 100644 x/cardchain/keeper/msg_server_council_create.go create mode 100644 x/cardchain/keeper/msg_server_match_reporter_appoint.go create mode 100644 x/cardchain/keeper/msg_server_sell_offer_buy.go create mode 100644 x/cardchain/keeper/msg_server_sell_offer_create.go create mode 100644 x/cardchain/keeper/msg_server_sell_offer_remove.go create mode 100644 x/cardchain/keeper/msg_server_set_artwork_add.go create mode 100644 x/cardchain/keeper/msg_server_set_card_add.go create mode 100644 x/cardchain/keeper/msg_server_set_card_remove.go create mode 100644 x/cardchain/keeper/msg_server_set_contributor_add.go create mode 100644 x/cardchain/keeper/msg_server_set_contributor_remove.go create mode 100644 x/cardchain/keeper/msg_server_set_create.go create mode 100644 x/cardchain/keeper/msg_server_set_finalize.go create mode 100644 x/cardchain/keeper/msg_server_set_story_add.go create mode 100644 x/cardchain/simulation/booster_pack_buy.go create mode 100644 x/cardchain/simulation/council_create.go create mode 100644 x/cardchain/simulation/match_reporter_appoint.go create mode 100644 x/cardchain/simulation/sell_offer_buy.go create mode 100644 x/cardchain/simulation/sell_offer_create.go create mode 100644 x/cardchain/simulation/sell_offer_remove.go create mode 100644 x/cardchain/simulation/set_artwork_add.go create mode 100644 x/cardchain/simulation/set_card_add.go create mode 100644 x/cardchain/simulation/set_card_remove.go create mode 100644 x/cardchain/simulation/set_contributor_add.go create mode 100644 x/cardchain/simulation/set_contributor_remove.go create mode 100644 x/cardchain/simulation/set_create.go create mode 100644 x/cardchain/simulation/set_finalize.go create mode 100644 x/cardchain/simulation/set_story_add.go create mode 100644 x/cardchain/types/message_booster_pack_buy.go create mode 100644 x/cardchain/types/message_booster_pack_buy_test.go create mode 100644 x/cardchain/types/message_council_create.go create mode 100644 x/cardchain/types/message_council_create_test.go create mode 100644 x/cardchain/types/message_match_reporter_appoint.go create mode 100644 x/cardchain/types/message_match_reporter_appoint_test.go create mode 100644 x/cardchain/types/message_sell_offer_buy.go create mode 100644 x/cardchain/types/message_sell_offer_buy_test.go create mode 100644 x/cardchain/types/message_sell_offer_create.go create mode 100644 x/cardchain/types/message_sell_offer_create_test.go create mode 100644 x/cardchain/types/message_sell_offer_remove.go create mode 100644 x/cardchain/types/message_sell_offer_remove_test.go create mode 100644 x/cardchain/types/message_set_artwork_add.go create mode 100644 x/cardchain/types/message_set_artwork_add_test.go create mode 100644 x/cardchain/types/message_set_card_add.go create mode 100644 x/cardchain/types/message_set_card_add_test.go create mode 100644 x/cardchain/types/message_set_card_remove.go create mode 100644 x/cardchain/types/message_set_card_remove_test.go create mode 100644 x/cardchain/types/message_set_contributor_add.go create mode 100644 x/cardchain/types/message_set_contributor_add_test.go create mode 100644 x/cardchain/types/message_set_contributor_remove.go create mode 100644 x/cardchain/types/message_set_contributor_remove_test.go create mode 100644 x/cardchain/types/message_set_create.go create mode 100644 x/cardchain/types/message_set_create_test.go create mode 100644 x/cardchain/types/message_set_finalize.go create mode 100644 x/cardchain/types/message_set_finalize_test.go create mode 100644 x/cardchain/types/message_set_story_add.go create mode 100644 x/cardchain/types/message_set_story_add_test.go diff --git a/api/cardchain/cardchain/tx.pulsar.go b/api/cardchain/cardchain/tx.pulsar.go index de7136d0..ea5ad991 100644 --- a/api/cardchain/cardchain/tx.pulsar.go +++ b/api/cardchain/cardchain/tx.pulsar.go @@ -11121,966 +11121,14328 @@ func (x *fastReflection_MsgMatchReportResponse) ProtoMethods() *protoiface.Metho } } +var ( + md_MsgCouncilCreate protoreflect.MessageDescriptor + fd_MsgCouncilCreate_creator protoreflect.FieldDescriptor + fd_MsgCouncilCreate_cardId protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCouncilCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilCreate") + fd_MsgCouncilCreate_creator = md_MsgCouncilCreate.Fields().ByName("creator") + fd_MsgCouncilCreate_cardId = md_MsgCouncilCreate.Fields().ByName("cardId") +} + +var _ protoreflect.Message = (*fastReflection_MsgCouncilCreate)(nil) + +type fastReflection_MsgCouncilCreate MsgCouncilCreate + +func (x *MsgCouncilCreate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCouncilCreate)(x) +} + +func (x *MsgCouncilCreate) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCouncilCreate_messageType fastReflection_MsgCouncilCreate_messageType +var _ protoreflect.MessageType = fastReflection_MsgCouncilCreate_messageType{} + +type fastReflection_MsgCouncilCreate_messageType struct{} + +func (x fastReflection_MsgCouncilCreate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCouncilCreate)(nil) +} +func (x fastReflection_MsgCouncilCreate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCouncilCreate) +} +func (x fastReflection_MsgCouncilCreate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilCreate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCouncilCreate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilCreate +} + +// 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_MsgCouncilCreate) Type() protoreflect.MessageType { + return _fastReflection_MsgCouncilCreate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCouncilCreate) New() protoreflect.Message { + return new(fastReflection_MsgCouncilCreate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCouncilCreate) Interface() protoreflect.ProtoMessage { + return (*MsgCouncilCreate)(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_MsgCouncilCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCouncilCreate_creator, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgCouncilCreate_cardId, 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_MsgCouncilCreate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilCreate.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgCouncilCreate.cardId": + return x.CardId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilCreate.creator": + x.Creator = "" + case "cardchain.cardchain.MsgCouncilCreate.cardId": + x.CardId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgCouncilCreate.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgCouncilCreate.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilCreate.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgCouncilCreate.cardId": + x.CardId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilCreate.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilCreate is not mutable")) + case "cardchain.cardchain.MsgCouncilCreate.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCouncilCreate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilCreate.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgCouncilCreate.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilCreate", 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_MsgCouncilCreate) 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_MsgCouncilCreate) 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_MsgCouncilCreate) 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_MsgCouncilCreate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCouncilCreate) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CardId != 0 { + n += 1 + runtime.Sov(uint64(x.CardId)) + } + 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().(*MsgCouncilCreate) + 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.CardId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgCouncilCreate) + 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: MsgCouncilCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilCreate: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + x.CardId = 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.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgCouncilCreateResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCouncilCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilCreateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCouncilCreateResponse)(nil) + +type fastReflection_MsgCouncilCreateResponse MsgCouncilCreateResponse + +func (x *MsgCouncilCreateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCouncilCreateResponse)(x) +} + +func (x *MsgCouncilCreateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgCouncilCreateResponse_messageType fastReflection_MsgCouncilCreateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCouncilCreateResponse_messageType{} + +type fastReflection_MsgCouncilCreateResponse_messageType struct{} + +func (x fastReflection_MsgCouncilCreateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCouncilCreateResponse)(nil) +} +func (x fastReflection_MsgCouncilCreateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCouncilCreateResponse) +} +func (x fastReflection_MsgCouncilCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilCreateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCouncilCreateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilCreateResponse +} + +// 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_MsgCouncilCreateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCouncilCreateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCouncilCreateResponse) New() protoreflect.Message { + return new(fastReflection_MsgCouncilCreateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCouncilCreateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCouncilCreateResponse)(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_MsgCouncilCreateResponse) 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_MsgCouncilCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilCreateResponse", 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_MsgCouncilCreateResponse) 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_MsgCouncilCreateResponse) 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_MsgCouncilCreateResponse) 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_MsgCouncilCreateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCouncilCreateResponse) + 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().(*MsgCouncilCreateResponse) + 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().(*MsgCouncilCreateResponse) + 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: MsgCouncilCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilCreateResponse: 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_MsgMatchReporterAppoint protoreflect.MessageDescriptor + fd_MsgMatchReporterAppoint_creator protoreflect.FieldDescriptor + fd_MsgMatchReporterAppoint_reporter protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgMatchReporterAppoint = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReporterAppoint") + fd_MsgMatchReporterAppoint_creator = md_MsgMatchReporterAppoint.Fields().ByName("creator") + fd_MsgMatchReporterAppoint_reporter = md_MsgMatchReporterAppoint.Fields().ByName("reporter") +} + +var _ protoreflect.Message = (*fastReflection_MsgMatchReporterAppoint)(nil) + +type fastReflection_MsgMatchReporterAppoint MsgMatchReporterAppoint + +func (x *MsgMatchReporterAppoint) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMatchReporterAppoint)(x) +} + +func (x *MsgMatchReporterAppoint) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgMatchReporterAppoint_messageType fastReflection_MsgMatchReporterAppoint_messageType +var _ protoreflect.MessageType = fastReflection_MsgMatchReporterAppoint_messageType{} + +type fastReflection_MsgMatchReporterAppoint_messageType struct{} + +func (x fastReflection_MsgMatchReporterAppoint_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMatchReporterAppoint)(nil) +} +func (x fastReflection_MsgMatchReporterAppoint_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMatchReporterAppoint) +} +func (x fastReflection_MsgMatchReporterAppoint_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReporterAppoint +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgMatchReporterAppoint) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReporterAppoint +} + +// 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_MsgMatchReporterAppoint) Type() protoreflect.MessageType { + return _fastReflection_MsgMatchReporterAppoint_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgMatchReporterAppoint) New() protoreflect.Message { + return new(fastReflection_MsgMatchReporterAppoint) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgMatchReporterAppoint) Interface() protoreflect.ProtoMessage { + return (*MsgMatchReporterAppoint)(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_MsgMatchReporterAppoint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgMatchReporterAppoint_creator, value) { + return + } + } + if x.Reporter != "" { + value := protoreflect.ValueOfString(x.Reporter) + if !f(fd_MsgMatchReporterAppoint_reporter, 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_MsgMatchReporterAppoint) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReporterAppoint.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": + return x.Reporter != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReporterAppoint.creator": + x.Creator = "" + case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": + x.Reporter = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgMatchReporterAppoint.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": + value := x.Reporter + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReporterAppoint.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": + x.Reporter = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReporterAppoint.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgMatchReporterAppoint is not mutable")) + case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": + panic(fmt.Errorf("field reporter of message cardchain.cardchain.MsgMatchReporterAppoint is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReporterAppoint.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReporterAppoint", 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_MsgMatchReporterAppoint) 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_MsgMatchReporterAppoint) 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_MsgMatchReporterAppoint) 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_MsgMatchReporterAppoint) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgMatchReporterAppoint) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reporter) + 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().(*MsgMatchReporterAppoint) + 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.Reporter) > 0 { + i -= len(x.Reporter) + copy(dAtA[i:], x.Reporter) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reporter))) + i-- + dAtA[i] = 0x12 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgMatchReporterAppoint) + 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: MsgMatchReporterAppoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReporterAppoint: 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 Creator", 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.Creator = 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 Reporter", 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.Reporter = 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_MsgMatchReporterAppointResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgMatchReporterAppointResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReporterAppointResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgMatchReporterAppointResponse)(nil) + +type fastReflection_MsgMatchReporterAppointResponse MsgMatchReporterAppointResponse + +func (x *MsgMatchReporterAppointResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMatchReporterAppointResponse)(x) +} + +func (x *MsgMatchReporterAppointResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgMatchReporterAppointResponse_messageType fastReflection_MsgMatchReporterAppointResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgMatchReporterAppointResponse_messageType{} + +type fastReflection_MsgMatchReporterAppointResponse_messageType struct{} + +func (x fastReflection_MsgMatchReporterAppointResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMatchReporterAppointResponse)(nil) +} +func (x fastReflection_MsgMatchReporterAppointResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMatchReporterAppointResponse) +} +func (x fastReflection_MsgMatchReporterAppointResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReporterAppointResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgMatchReporterAppointResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReporterAppointResponse +} + +// 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_MsgMatchReporterAppointResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgMatchReporterAppointResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgMatchReporterAppointResponse) New() protoreflect.Message { + return new(fastReflection_MsgMatchReporterAppointResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgMatchReporterAppointResponse) Interface() protoreflect.ProtoMessage { + return (*MsgMatchReporterAppointResponse)(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_MsgMatchReporterAppointResponse) 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_MsgMatchReporterAppointResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReporterAppointResponse", 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_MsgMatchReporterAppointResponse) 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_MsgMatchReporterAppointResponse) 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_MsgMatchReporterAppointResponse) 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_MsgMatchReporterAppointResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgMatchReporterAppointResponse) + 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().(*MsgMatchReporterAppointResponse) + 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().(*MsgMatchReporterAppointResponse) + 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: MsgMatchReporterAppointResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReporterAppointResponse: 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 = (*_MsgSetCreate_5_list)(nil) + +type _MsgSetCreate_5_list struct { + list *[]string +} + +func (x *_MsgSetCreate_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgSetCreate_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgSetCreate_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgSetCreate_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgSetCreate_5_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgSetCreate at list field Contributors as it is not of Message kind")) +} + +func (x *_MsgSetCreate_5_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgSetCreate_5_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgSetCreate_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgSetCreate protoreflect.MessageDescriptor + fd_MsgSetCreate_creator protoreflect.FieldDescriptor + fd_MsgSetCreate_name protoreflect.FieldDescriptor + fd_MsgSetCreate_artist protoreflect.FieldDescriptor + fd_MsgSetCreate_storyWriter protoreflect.FieldDescriptor + fd_MsgSetCreate_contributors protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCreate") + fd_MsgSetCreate_creator = md_MsgSetCreate.Fields().ByName("creator") + fd_MsgSetCreate_name = md_MsgSetCreate.Fields().ByName("name") + fd_MsgSetCreate_artist = md_MsgSetCreate.Fields().ByName("artist") + fd_MsgSetCreate_storyWriter = md_MsgSetCreate.Fields().ByName("storyWriter") + fd_MsgSetCreate_contributors = md_MsgSetCreate.Fields().ByName("contributors") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetCreate)(nil) + +type fastReflection_MsgSetCreate MsgSetCreate + +func (x *MsgSetCreate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetCreate)(x) +} + +func (x *MsgSetCreate) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetCreate_messageType fastReflection_MsgSetCreate_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetCreate_messageType{} + +type fastReflection_MsgSetCreate_messageType struct{} + +func (x fastReflection_MsgSetCreate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetCreate)(nil) +} +func (x fastReflection_MsgSetCreate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetCreate) +} +func (x fastReflection_MsgSetCreate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCreate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetCreate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCreate +} + +// 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_MsgSetCreate) Type() protoreflect.MessageType { + return _fastReflection_MsgSetCreate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetCreate) New() protoreflect.Message { + return new(fastReflection_MsgSetCreate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetCreate) Interface() protoreflect.ProtoMessage { + return (*MsgSetCreate)(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_MsgSetCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetCreate_creator, value) { + return + } + } + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_MsgSetCreate_name, value) { + return + } + } + if x.Artist != "" { + value := protoreflect.ValueOfString(x.Artist) + if !f(fd_MsgSetCreate_artist, value) { + return + } + } + if x.StoryWriter != "" { + value := protoreflect.ValueOfString(x.StoryWriter) + if !f(fd_MsgSetCreate_storyWriter, value) { + return + } + } + if len(x.Contributors) != 0 { + value := protoreflect.ValueOfList(&_MsgSetCreate_5_list{list: &x.Contributors}) + if !f(fd_MsgSetCreate_contributors, 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_MsgSetCreate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCreate.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetCreate.name": + return x.Name != "" + case "cardchain.cardchain.MsgSetCreate.artist": + return x.Artist != "" + case "cardchain.cardchain.MsgSetCreate.storyWriter": + return x.StoryWriter != "" + case "cardchain.cardchain.MsgSetCreate.contributors": + return len(x.Contributors) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCreate.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetCreate.name": + x.Name = "" + case "cardchain.cardchain.MsgSetCreate.artist": + x.Artist = "" + case "cardchain.cardchain.MsgSetCreate.storyWriter": + x.StoryWriter = "" + case "cardchain.cardchain.MsgSetCreate.contributors": + x.Contributors = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetCreate.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetCreate.name": + value := x.Name + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetCreate.artist": + value := x.Artist + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetCreate.storyWriter": + value := x.StoryWriter + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetCreate.contributors": + if len(x.Contributors) == 0 { + return protoreflect.ValueOfList(&_MsgSetCreate_5_list{}) + } + listValue := &_MsgSetCreate_5_list{list: &x.Contributors} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCreate.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetCreate.name": + x.Name = value.Interface().(string) + case "cardchain.cardchain.MsgSetCreate.artist": + x.Artist = value.Interface().(string) + case "cardchain.cardchain.MsgSetCreate.storyWriter": + x.StoryWriter = value.Interface().(string) + case "cardchain.cardchain.MsgSetCreate.contributors": + lv := value.List() + clv := lv.(*_MsgSetCreate_5_list) + x.Contributors = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCreate.contributors": + if x.Contributors == nil { + x.Contributors = []string{} + } + value := &_MsgSetCreate_5_list{list: &x.Contributors} + return protoreflect.ValueOfList(value) + case "cardchain.cardchain.MsgSetCreate.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetCreate is not mutable")) + case "cardchain.cardchain.MsgSetCreate.name": + panic(fmt.Errorf("field name of message cardchain.cardchain.MsgSetCreate is not mutable")) + case "cardchain.cardchain.MsgSetCreate.artist": + panic(fmt.Errorf("field artist of message cardchain.cardchain.MsgSetCreate is not mutable")) + case "cardchain.cardchain.MsgSetCreate.storyWriter": + panic(fmt.Errorf("field storyWriter of message cardchain.cardchain.MsgSetCreate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCreate.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetCreate.name": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetCreate.artist": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetCreate.storyWriter": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetCreate.contributors": + list := []string{} + return protoreflect.ValueOfList(&_MsgSetCreate_5_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCreate", 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_MsgSetCreate) 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_MsgSetCreate) 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_MsgSetCreate) 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_MsgSetCreate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetCreate) + 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.Creator) + 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.Artist) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.StoryWriter) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Contributors) > 0 { + for _, s := range x.Contributors { + 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().(*MsgSetCreate) + 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.Contributors) > 0 { + for iNdEx := len(x.Contributors) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Contributors[iNdEx]) + copy(dAtA[i:], x.Contributors[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contributors[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(x.StoryWriter) > 0 { + i -= len(x.StoryWriter) + copy(dAtA[i:], x.StoryWriter) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.StoryWriter))) + i-- + dAtA[i] = 0x22 + } + if len(x.Artist) > 0 { + i -= len(x.Artist) + copy(dAtA[i:], x.Artist) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artist))) + 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.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetCreate) + 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: MsgSetCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCreate: 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 Creator", 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.Creator = 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 Artist", 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.Artist = 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 StoryWriter", 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.StoryWriter = 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 Contributors", 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.Contributors = append(x.Contributors, 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_MsgSetCreateResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCreateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetCreateResponse)(nil) + +type fastReflection_MsgSetCreateResponse MsgSetCreateResponse + +func (x *MsgSetCreateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetCreateResponse)(x) +} + +func (x *MsgSetCreateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetCreateResponse_messageType fastReflection_MsgSetCreateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetCreateResponse_messageType{} + +type fastReflection_MsgSetCreateResponse_messageType struct{} + +func (x fastReflection_MsgSetCreateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetCreateResponse)(nil) +} +func (x fastReflection_MsgSetCreateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetCreateResponse) +} +func (x fastReflection_MsgSetCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCreateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetCreateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCreateResponse +} + +// 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_MsgSetCreateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetCreateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetCreateResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetCreateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetCreateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetCreateResponse)(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_MsgSetCreateResponse) 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_MsgSetCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCreateResponse", 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_MsgSetCreateResponse) 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_MsgSetCreateResponse) 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_MsgSetCreateResponse) 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_MsgSetCreateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetCreateResponse) + 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().(*MsgSetCreateResponse) + 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().(*MsgSetCreateResponse) + 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: MsgSetCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCreateResponse: 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_MsgSetCardAdd protoreflect.MessageDescriptor + fd_MsgSetCardAdd_creator protoreflect.FieldDescriptor + fd_MsgSetCardAdd_setId protoreflect.FieldDescriptor + fd_MsgSetCardAdd_cardId protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetCardAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardAdd") + fd_MsgSetCardAdd_creator = md_MsgSetCardAdd.Fields().ByName("creator") + fd_MsgSetCardAdd_setId = md_MsgSetCardAdd.Fields().ByName("setId") + fd_MsgSetCardAdd_cardId = md_MsgSetCardAdd.Fields().ByName("cardId") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetCardAdd)(nil) + +type fastReflection_MsgSetCardAdd MsgSetCardAdd + +func (x *MsgSetCardAdd) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetCardAdd)(x) +} + +func (x *MsgSetCardAdd) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetCardAdd_messageType fastReflection_MsgSetCardAdd_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetCardAdd_messageType{} + +type fastReflection_MsgSetCardAdd_messageType struct{} + +func (x fastReflection_MsgSetCardAdd_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetCardAdd)(nil) +} +func (x fastReflection_MsgSetCardAdd_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetCardAdd) +} +func (x fastReflection_MsgSetCardAdd_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardAdd +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetCardAdd) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardAdd +} + +// 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_MsgSetCardAdd) Type() protoreflect.MessageType { + return _fastReflection_MsgSetCardAdd_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetCardAdd) New() protoreflect.Message { + return new(fastReflection_MsgSetCardAdd) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetCardAdd) Interface() protoreflect.ProtoMessage { + return (*MsgSetCardAdd)(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_MsgSetCardAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetCardAdd_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgSetCardAdd_setId, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgSetCardAdd_cardId, 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_MsgSetCardAdd) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardAdd.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetCardAdd.setId": + return x.SetId != uint64(0) + case "cardchain.cardchain.MsgSetCardAdd.cardId": + return x.CardId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardAdd.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetCardAdd.setId": + x.SetId = uint64(0) + case "cardchain.cardchain.MsgSetCardAdd.cardId": + x.CardId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetCardAdd.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetCardAdd.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgSetCardAdd.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardAdd.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetCardAdd.setId": + x.SetId = value.Uint() + case "cardchain.cardchain.MsgSetCardAdd.cardId": + x.CardId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardAdd.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetCardAdd is not mutable")) + case "cardchain.cardchain.MsgSetCardAdd.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetCardAdd is not mutable")) + case "cardchain.cardchain.MsgSetCardAdd.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgSetCardAdd is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardAdd.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetCardAdd.setId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgSetCardAdd.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardAdd", 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_MsgSetCardAdd) 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_MsgSetCardAdd) 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_MsgSetCardAdd) 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_MsgSetCardAdd) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetCardAdd) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + if x.CardId != 0 { + n += 1 + runtime.Sov(uint64(x.CardId)) + } + 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().(*MsgSetCardAdd) + 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.CardId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) + i-- + dAtA[i] = 0x18 + } + if x.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetCardAdd) + 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: MsgSetCardAdd: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + x.CardId = 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.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSetCardAddResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetCardAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardAddResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetCardAddResponse)(nil) + +type fastReflection_MsgSetCardAddResponse MsgSetCardAddResponse + +func (x *MsgSetCardAddResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetCardAddResponse)(x) +} + +func (x *MsgSetCardAddResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetCardAddResponse_messageType fastReflection_MsgSetCardAddResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetCardAddResponse_messageType{} + +type fastReflection_MsgSetCardAddResponse_messageType struct{} + +func (x fastReflection_MsgSetCardAddResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetCardAddResponse)(nil) +} +func (x fastReflection_MsgSetCardAddResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetCardAddResponse) +} +func (x fastReflection_MsgSetCardAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardAddResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetCardAddResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardAddResponse +} + +// 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_MsgSetCardAddResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetCardAddResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetCardAddResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetCardAddResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetCardAddResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetCardAddResponse)(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_MsgSetCardAddResponse) 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_MsgSetCardAddResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardAddResponse", 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_MsgSetCardAddResponse) 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_MsgSetCardAddResponse) 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_MsgSetCardAddResponse) 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_MsgSetCardAddResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetCardAddResponse) + 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().(*MsgSetCardAddResponse) + 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().(*MsgSetCardAddResponse) + 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: MsgSetCardAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardAddResponse: 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_MsgSetCardRemove protoreflect.MessageDescriptor + fd_MsgSetCardRemove_creator protoreflect.FieldDescriptor + fd_MsgSetCardRemove_setId protoreflect.FieldDescriptor + fd_MsgSetCardRemove_cardId protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetCardRemove = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardRemove") + fd_MsgSetCardRemove_creator = md_MsgSetCardRemove.Fields().ByName("creator") + fd_MsgSetCardRemove_setId = md_MsgSetCardRemove.Fields().ByName("setId") + fd_MsgSetCardRemove_cardId = md_MsgSetCardRemove.Fields().ByName("cardId") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetCardRemove)(nil) + +type fastReflection_MsgSetCardRemove MsgSetCardRemove + +func (x *MsgSetCardRemove) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetCardRemove)(x) +} + +func (x *MsgSetCardRemove) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetCardRemove_messageType fastReflection_MsgSetCardRemove_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetCardRemove_messageType{} + +type fastReflection_MsgSetCardRemove_messageType struct{} + +func (x fastReflection_MsgSetCardRemove_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetCardRemove)(nil) +} +func (x fastReflection_MsgSetCardRemove_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetCardRemove) +} +func (x fastReflection_MsgSetCardRemove_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardRemove +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetCardRemove) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardRemove +} + +// 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_MsgSetCardRemove) Type() protoreflect.MessageType { + return _fastReflection_MsgSetCardRemove_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetCardRemove) New() protoreflect.Message { + return new(fastReflection_MsgSetCardRemove) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetCardRemove) Interface() protoreflect.ProtoMessage { + return (*MsgSetCardRemove)(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_MsgSetCardRemove) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetCardRemove_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgSetCardRemove_setId, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgSetCardRemove_cardId, 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_MsgSetCardRemove) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardRemove.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetCardRemove.setId": + return x.SetId != uint64(0) + case "cardchain.cardchain.MsgSetCardRemove.cardId": + return x.CardId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardRemove.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetCardRemove.setId": + x.SetId = uint64(0) + case "cardchain.cardchain.MsgSetCardRemove.cardId": + x.CardId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetCardRemove.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetCardRemove.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgSetCardRemove.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardRemove.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetCardRemove.setId": + x.SetId = value.Uint() + case "cardchain.cardchain.MsgSetCardRemove.cardId": + x.CardId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardRemove.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetCardRemove is not mutable")) + case "cardchain.cardchain.MsgSetCardRemove.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetCardRemove is not mutable")) + case "cardchain.cardchain.MsgSetCardRemove.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgSetCardRemove is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetCardRemove.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetCardRemove.setId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgSetCardRemove.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardRemove", 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_MsgSetCardRemove) 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_MsgSetCardRemove) 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_MsgSetCardRemove) 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_MsgSetCardRemove) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetCardRemove) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + if x.CardId != 0 { + n += 1 + runtime.Sov(uint64(x.CardId)) + } + 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().(*MsgSetCardRemove) + 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.CardId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) + i-- + dAtA[i] = 0x18 + } + if x.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetCardRemove) + 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: MsgSetCardRemove: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardRemove: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + x.CardId = 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.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSetCardRemoveResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetCardRemoveResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardRemoveResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetCardRemoveResponse)(nil) + +type fastReflection_MsgSetCardRemoveResponse MsgSetCardRemoveResponse + +func (x *MsgSetCardRemoveResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetCardRemoveResponse)(x) +} + +func (x *MsgSetCardRemoveResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetCardRemoveResponse_messageType fastReflection_MsgSetCardRemoveResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetCardRemoveResponse_messageType{} + +type fastReflection_MsgSetCardRemoveResponse_messageType struct{} + +func (x fastReflection_MsgSetCardRemoveResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetCardRemoveResponse)(nil) +} +func (x fastReflection_MsgSetCardRemoveResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetCardRemoveResponse) +} +func (x fastReflection_MsgSetCardRemoveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardRemoveResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetCardRemoveResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetCardRemoveResponse +} + +// 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_MsgSetCardRemoveResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetCardRemoveResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetCardRemoveResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetCardRemoveResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetCardRemoveResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetCardRemoveResponse)(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_MsgSetCardRemoveResponse) 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_MsgSetCardRemoveResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardRemoveResponse", 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_MsgSetCardRemoveResponse) 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_MsgSetCardRemoveResponse) 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_MsgSetCardRemoveResponse) 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_MsgSetCardRemoveResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetCardRemoveResponse) + 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().(*MsgSetCardRemoveResponse) + 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().(*MsgSetCardRemoveResponse) + 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: MsgSetCardRemoveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardRemoveResponse: 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_MsgSetContributorAdd protoreflect.MessageDescriptor + fd_MsgSetContributorAdd_creator protoreflect.FieldDescriptor + fd_MsgSetContributorAdd_setId protoreflect.FieldDescriptor + fd_MsgSetContributorAdd_user protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetContributorAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorAdd") + fd_MsgSetContributorAdd_creator = md_MsgSetContributorAdd.Fields().ByName("creator") + fd_MsgSetContributorAdd_setId = md_MsgSetContributorAdd.Fields().ByName("setId") + fd_MsgSetContributorAdd_user = md_MsgSetContributorAdd.Fields().ByName("user") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetContributorAdd)(nil) + +type fastReflection_MsgSetContributorAdd MsgSetContributorAdd + +func (x *MsgSetContributorAdd) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetContributorAdd)(x) +} + +func (x *MsgSetContributorAdd) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetContributorAdd_messageType fastReflection_MsgSetContributorAdd_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetContributorAdd_messageType{} + +type fastReflection_MsgSetContributorAdd_messageType struct{} + +func (x fastReflection_MsgSetContributorAdd_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetContributorAdd)(nil) +} +func (x fastReflection_MsgSetContributorAdd_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorAdd) +} +func (x fastReflection_MsgSetContributorAdd_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorAdd +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetContributorAdd) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorAdd +} + +// 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_MsgSetContributorAdd) Type() protoreflect.MessageType { + return _fastReflection_MsgSetContributorAdd_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetContributorAdd) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorAdd) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetContributorAdd) Interface() protoreflect.ProtoMessage { + return (*MsgSetContributorAdd)(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_MsgSetContributorAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetContributorAdd_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgSetContributorAdd_setId, value) { + return + } + } + if x.User != "" { + value := protoreflect.ValueOfString(x.User) + if !f(fd_MsgSetContributorAdd_user, 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_MsgSetContributorAdd) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorAdd.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetContributorAdd.setId": + return x.SetId != uint64(0) + case "cardchain.cardchain.MsgSetContributorAdd.user": + return x.User != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorAdd.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetContributorAdd.setId": + x.SetId = uint64(0) + case "cardchain.cardchain.MsgSetContributorAdd.user": + x.User = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetContributorAdd.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetContributorAdd.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgSetContributorAdd.user": + value := x.User + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorAdd.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetContributorAdd.setId": + x.SetId = value.Uint() + case "cardchain.cardchain.MsgSetContributorAdd.user": + x.User = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorAdd.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetContributorAdd is not mutable")) + case "cardchain.cardchain.MsgSetContributorAdd.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetContributorAdd is not mutable")) + case "cardchain.cardchain.MsgSetContributorAdd.user": + panic(fmt.Errorf("field user of message cardchain.cardchain.MsgSetContributorAdd is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorAdd.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetContributorAdd.setId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgSetContributorAdd.user": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorAdd", 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_MsgSetContributorAdd) 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_MsgSetContributorAdd) 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_MsgSetContributorAdd) 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_MsgSetContributorAdd) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetContributorAdd) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + l = len(x.User) + 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().(*MsgSetContributorAdd) + 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.User) > 0 { + i -= len(x.User) + copy(dAtA[i:], x.User) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) + i-- + dAtA[i] = 0x1a + } + if x.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetContributorAdd) + 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: MsgSetContributorAdd: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = 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_MsgSetContributorAddResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetContributorAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorAddResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetContributorAddResponse)(nil) + +type fastReflection_MsgSetContributorAddResponse MsgSetContributorAddResponse + +func (x *MsgSetContributorAddResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetContributorAddResponse)(x) +} + +func (x *MsgSetContributorAddResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetContributorAddResponse_messageType fastReflection_MsgSetContributorAddResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetContributorAddResponse_messageType{} + +type fastReflection_MsgSetContributorAddResponse_messageType struct{} + +func (x fastReflection_MsgSetContributorAddResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetContributorAddResponse)(nil) +} +func (x fastReflection_MsgSetContributorAddResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorAddResponse) +} +func (x fastReflection_MsgSetContributorAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorAddResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetContributorAddResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorAddResponse +} + +// 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_MsgSetContributorAddResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetContributorAddResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetContributorAddResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorAddResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetContributorAddResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetContributorAddResponse)(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_MsgSetContributorAddResponse) 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_MsgSetContributorAddResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorAddResponse", 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_MsgSetContributorAddResponse) 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_MsgSetContributorAddResponse) 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_MsgSetContributorAddResponse) 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_MsgSetContributorAddResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetContributorAddResponse) + 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().(*MsgSetContributorAddResponse) + 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().(*MsgSetContributorAddResponse) + 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: MsgSetContributorAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorAddResponse: 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_MsgSetContributorRemove protoreflect.MessageDescriptor + fd_MsgSetContributorRemove_creator protoreflect.FieldDescriptor + fd_MsgSetContributorRemove_setId protoreflect.FieldDescriptor + fd_MsgSetContributorRemove_user protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetContributorRemove = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorRemove") + fd_MsgSetContributorRemove_creator = md_MsgSetContributorRemove.Fields().ByName("creator") + fd_MsgSetContributorRemove_setId = md_MsgSetContributorRemove.Fields().ByName("setId") + fd_MsgSetContributorRemove_user = md_MsgSetContributorRemove.Fields().ByName("user") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetContributorRemove)(nil) + +type fastReflection_MsgSetContributorRemove MsgSetContributorRemove + +func (x *MsgSetContributorRemove) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetContributorRemove)(x) +} + +func (x *MsgSetContributorRemove) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetContributorRemove_messageType fastReflection_MsgSetContributorRemove_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetContributorRemove_messageType{} + +type fastReflection_MsgSetContributorRemove_messageType struct{} + +func (x fastReflection_MsgSetContributorRemove_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetContributorRemove)(nil) +} +func (x fastReflection_MsgSetContributorRemove_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorRemove) +} +func (x fastReflection_MsgSetContributorRemove_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorRemove +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetContributorRemove) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorRemove +} + +// 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_MsgSetContributorRemove) Type() protoreflect.MessageType { + return _fastReflection_MsgSetContributorRemove_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetContributorRemove) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorRemove) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetContributorRemove) Interface() protoreflect.ProtoMessage { + return (*MsgSetContributorRemove)(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_MsgSetContributorRemove) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetContributorRemove_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgSetContributorRemove_setId, value) { + return + } + } + if x.User != "" { + value := protoreflect.ValueOfString(x.User) + if !f(fd_MsgSetContributorRemove_user, 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_MsgSetContributorRemove) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorRemove.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetContributorRemove.setId": + return x.SetId != uint64(0) + case "cardchain.cardchain.MsgSetContributorRemove.user": + return x.User != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorRemove.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetContributorRemove.setId": + x.SetId = uint64(0) + case "cardchain.cardchain.MsgSetContributorRemove.user": + x.User = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetContributorRemove.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetContributorRemove.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgSetContributorRemove.user": + value := x.User + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorRemove.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetContributorRemove.setId": + x.SetId = value.Uint() + case "cardchain.cardchain.MsgSetContributorRemove.user": + x.User = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorRemove.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetContributorRemove is not mutable")) + case "cardchain.cardchain.MsgSetContributorRemove.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetContributorRemove is not mutable")) + case "cardchain.cardchain.MsgSetContributorRemove.user": + panic(fmt.Errorf("field user of message cardchain.cardchain.MsgSetContributorRemove is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetContributorRemove.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetContributorRemove.setId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgSetContributorRemove.user": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorRemove", 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_MsgSetContributorRemove) 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_MsgSetContributorRemove) 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_MsgSetContributorRemove) 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_MsgSetContributorRemove) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetContributorRemove) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + l = len(x.User) + 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().(*MsgSetContributorRemove) + 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.User) > 0 { + i -= len(x.User) + copy(dAtA[i:], x.User) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) + i-- + dAtA[i] = 0x1a + } + if x.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetContributorRemove) + 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: MsgSetContributorRemove: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorRemove: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = 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_MsgSetContributorRemoveResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetContributorRemoveResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorRemoveResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetContributorRemoveResponse)(nil) + +type fastReflection_MsgSetContributorRemoveResponse MsgSetContributorRemoveResponse + +func (x *MsgSetContributorRemoveResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetContributorRemoveResponse)(x) +} + +func (x *MsgSetContributorRemoveResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetContributorRemoveResponse_messageType fastReflection_MsgSetContributorRemoveResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetContributorRemoveResponse_messageType{} + +type fastReflection_MsgSetContributorRemoveResponse_messageType struct{} + +func (x fastReflection_MsgSetContributorRemoveResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetContributorRemoveResponse)(nil) +} +func (x fastReflection_MsgSetContributorRemoveResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorRemoveResponse) +} +func (x fastReflection_MsgSetContributorRemoveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorRemoveResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetContributorRemoveResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetContributorRemoveResponse +} + +// 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_MsgSetContributorRemoveResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetContributorRemoveResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetContributorRemoveResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetContributorRemoveResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetContributorRemoveResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetContributorRemoveResponse)(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_MsgSetContributorRemoveResponse) 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_MsgSetContributorRemoveResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorRemoveResponse", 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_MsgSetContributorRemoveResponse) 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_MsgSetContributorRemoveResponse) 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_MsgSetContributorRemoveResponse) 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_MsgSetContributorRemoveResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetContributorRemoveResponse) + 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().(*MsgSetContributorRemoveResponse) + 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().(*MsgSetContributorRemoveResponse) + 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: MsgSetContributorRemoveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorRemoveResponse: 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_MsgSetFinalize protoreflect.MessageDescriptor + fd_MsgSetFinalize_creator protoreflect.FieldDescriptor + fd_MsgSetFinalize_setId protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetFinalize = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetFinalize") + fd_MsgSetFinalize_creator = md_MsgSetFinalize.Fields().ByName("creator") + fd_MsgSetFinalize_setId = md_MsgSetFinalize.Fields().ByName("setId") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetFinalize)(nil) + +type fastReflection_MsgSetFinalize MsgSetFinalize + +func (x *MsgSetFinalize) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetFinalize)(x) +} + +func (x *MsgSetFinalize) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetFinalize_messageType fastReflection_MsgSetFinalize_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetFinalize_messageType{} + +type fastReflection_MsgSetFinalize_messageType struct{} + +func (x fastReflection_MsgSetFinalize_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetFinalize)(nil) +} +func (x fastReflection_MsgSetFinalize_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetFinalize) +} +func (x fastReflection_MsgSetFinalize_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetFinalize +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetFinalize) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetFinalize +} + +// 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_MsgSetFinalize) Type() protoreflect.MessageType { + return _fastReflection_MsgSetFinalize_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetFinalize) New() protoreflect.Message { + return new(fastReflection_MsgSetFinalize) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetFinalize) Interface() protoreflect.ProtoMessage { + return (*MsgSetFinalize)(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_MsgSetFinalize) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetFinalize_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgSetFinalize_setId, 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_MsgSetFinalize) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetFinalize.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetFinalize.setId": + return x.SetId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetFinalize.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetFinalize.setId": + x.SetId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetFinalize.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetFinalize.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetFinalize.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetFinalize.setId": + x.SetId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetFinalize.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetFinalize is not mutable")) + case "cardchain.cardchain.MsgSetFinalize.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetFinalize is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetFinalize.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetFinalize.setId": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetFinalize", 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_MsgSetFinalize) 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_MsgSetFinalize) 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_MsgSetFinalize) 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_MsgSetFinalize) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetFinalize) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + 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().(*MsgSetFinalize) + 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.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetFinalize) + 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: MsgSetFinalize: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetFinalize: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSetFinalizeResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetFinalizeResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetFinalizeResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetFinalizeResponse)(nil) + +type fastReflection_MsgSetFinalizeResponse MsgSetFinalizeResponse + +func (x *MsgSetFinalizeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetFinalizeResponse)(x) +} + +func (x *MsgSetFinalizeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetFinalizeResponse_messageType fastReflection_MsgSetFinalizeResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetFinalizeResponse_messageType{} + +type fastReflection_MsgSetFinalizeResponse_messageType struct{} + +func (x fastReflection_MsgSetFinalizeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetFinalizeResponse)(nil) +} +func (x fastReflection_MsgSetFinalizeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetFinalizeResponse) +} +func (x fastReflection_MsgSetFinalizeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetFinalizeResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetFinalizeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetFinalizeResponse +} + +// 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_MsgSetFinalizeResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetFinalizeResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetFinalizeResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetFinalizeResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetFinalizeResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetFinalizeResponse)(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_MsgSetFinalizeResponse) 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_MsgSetFinalizeResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetFinalizeResponse", 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_MsgSetFinalizeResponse) 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_MsgSetFinalizeResponse) 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_MsgSetFinalizeResponse) 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_MsgSetFinalizeResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetFinalizeResponse) + 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().(*MsgSetFinalizeResponse) + 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().(*MsgSetFinalizeResponse) + 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: MsgSetFinalizeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetFinalizeResponse: 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_MsgSetArtworkAdd protoreflect.MessageDescriptor + fd_MsgSetArtworkAdd_creator protoreflect.FieldDescriptor + fd_MsgSetArtworkAdd_setId protoreflect.FieldDescriptor + fd_MsgSetArtworkAdd_image protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetArtworkAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetArtworkAdd") + fd_MsgSetArtworkAdd_creator = md_MsgSetArtworkAdd.Fields().ByName("creator") + fd_MsgSetArtworkAdd_setId = md_MsgSetArtworkAdd.Fields().ByName("setId") + fd_MsgSetArtworkAdd_image = md_MsgSetArtworkAdd.Fields().ByName("image") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetArtworkAdd)(nil) + +type fastReflection_MsgSetArtworkAdd MsgSetArtworkAdd + +func (x *MsgSetArtworkAdd) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetArtworkAdd)(x) +} + +func (x *MsgSetArtworkAdd) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetArtworkAdd_messageType fastReflection_MsgSetArtworkAdd_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetArtworkAdd_messageType{} + +type fastReflection_MsgSetArtworkAdd_messageType struct{} + +func (x fastReflection_MsgSetArtworkAdd_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetArtworkAdd)(nil) +} +func (x fastReflection_MsgSetArtworkAdd_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetArtworkAdd) +} +func (x fastReflection_MsgSetArtworkAdd_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetArtworkAdd +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetArtworkAdd) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetArtworkAdd +} + +// 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_MsgSetArtworkAdd) Type() protoreflect.MessageType { + return _fastReflection_MsgSetArtworkAdd_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetArtworkAdd) New() protoreflect.Message { + return new(fastReflection_MsgSetArtworkAdd) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetArtworkAdd) Interface() protoreflect.ProtoMessage { + return (*MsgSetArtworkAdd)(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_MsgSetArtworkAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetArtworkAdd_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgSetArtworkAdd_setId, value) { + return + } + } + if len(x.Image) != 0 { + value := protoreflect.ValueOfBytes(x.Image) + if !f(fd_MsgSetArtworkAdd_image, 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_MsgSetArtworkAdd) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetArtworkAdd.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetArtworkAdd.setId": + return x.SetId != uint64(0) + case "cardchain.cardchain.MsgSetArtworkAdd.image": + return len(x.Image) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetArtworkAdd.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetArtworkAdd.setId": + x.SetId = uint64(0) + case "cardchain.cardchain.MsgSetArtworkAdd.image": + x.Image = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetArtworkAdd.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetArtworkAdd.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgSetArtworkAdd.image": + value := x.Image + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetArtworkAdd.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetArtworkAdd.setId": + x.SetId = value.Uint() + case "cardchain.cardchain.MsgSetArtworkAdd.image": + x.Image = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetArtworkAdd.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetArtworkAdd is not mutable")) + case "cardchain.cardchain.MsgSetArtworkAdd.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetArtworkAdd is not mutable")) + case "cardchain.cardchain.MsgSetArtworkAdd.image": + panic(fmt.Errorf("field image of message cardchain.cardchain.MsgSetArtworkAdd is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetArtworkAdd.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetArtworkAdd.setId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgSetArtworkAdd.image": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetArtworkAdd", 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_MsgSetArtworkAdd) 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_MsgSetArtworkAdd) 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_MsgSetArtworkAdd) 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_MsgSetArtworkAdd) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetArtworkAdd) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + l = len(x.Image) + 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().(*MsgSetArtworkAdd) + 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.Image) > 0 { + i -= len(x.Image) + copy(dAtA[i:], x.Image) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Image))) + i-- + dAtA[i] = 0x1a + } + if x.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetArtworkAdd) + 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: MsgSetArtworkAdd: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetArtworkAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var byteLen 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Image = append(x.Image[:0], dAtA[iNdEx:postIndex]...) + if x.Image == nil { + x.Image = []byte{} + } + 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_MsgSetArtworkAddResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetArtworkAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetArtworkAddResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetArtworkAddResponse)(nil) + +type fastReflection_MsgSetArtworkAddResponse MsgSetArtworkAddResponse + +func (x *MsgSetArtworkAddResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetArtworkAddResponse)(x) +} + +func (x *MsgSetArtworkAddResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetArtworkAddResponse_messageType fastReflection_MsgSetArtworkAddResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetArtworkAddResponse_messageType{} + +type fastReflection_MsgSetArtworkAddResponse_messageType struct{} + +func (x fastReflection_MsgSetArtworkAddResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetArtworkAddResponse)(nil) +} +func (x fastReflection_MsgSetArtworkAddResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetArtworkAddResponse) +} +func (x fastReflection_MsgSetArtworkAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetArtworkAddResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetArtworkAddResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetArtworkAddResponse +} + +// 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_MsgSetArtworkAddResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetArtworkAddResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetArtworkAddResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetArtworkAddResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetArtworkAddResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetArtworkAddResponse)(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_MsgSetArtworkAddResponse) 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_MsgSetArtworkAddResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetArtworkAddResponse", 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_MsgSetArtworkAddResponse) 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_MsgSetArtworkAddResponse) 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_MsgSetArtworkAddResponse) 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_MsgSetArtworkAddResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetArtworkAddResponse) + 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().(*MsgSetArtworkAddResponse) + 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().(*MsgSetArtworkAddResponse) + 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: MsgSetArtworkAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetArtworkAddResponse: 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_MsgSetStoryAdd protoreflect.MessageDescriptor + fd_MsgSetStoryAdd_creator protoreflect.FieldDescriptor + fd_MsgSetStoryAdd_setId protoreflect.FieldDescriptor + fd_MsgSetStoryAdd_story protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetStoryAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetStoryAdd") + fd_MsgSetStoryAdd_creator = md_MsgSetStoryAdd.Fields().ByName("creator") + fd_MsgSetStoryAdd_setId = md_MsgSetStoryAdd.Fields().ByName("setId") + fd_MsgSetStoryAdd_story = md_MsgSetStoryAdd.Fields().ByName("story") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetStoryAdd)(nil) + +type fastReflection_MsgSetStoryAdd MsgSetStoryAdd + +func (x *MsgSetStoryAdd) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetStoryAdd)(x) +} + +func (x *MsgSetStoryAdd) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetStoryAdd_messageType fastReflection_MsgSetStoryAdd_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetStoryAdd_messageType{} + +type fastReflection_MsgSetStoryAdd_messageType struct{} + +func (x fastReflection_MsgSetStoryAdd_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetStoryAdd)(nil) +} +func (x fastReflection_MsgSetStoryAdd_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetStoryAdd) +} +func (x fastReflection_MsgSetStoryAdd_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetStoryAdd +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetStoryAdd) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetStoryAdd +} + +// 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_MsgSetStoryAdd) Type() protoreflect.MessageType { + return _fastReflection_MsgSetStoryAdd_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetStoryAdd) New() protoreflect.Message { + return new(fastReflection_MsgSetStoryAdd) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetStoryAdd) Interface() protoreflect.ProtoMessage { + return (*MsgSetStoryAdd)(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_MsgSetStoryAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSetStoryAdd_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgSetStoryAdd_setId, value) { + return + } + } + if x.Story != "" { + value := protoreflect.ValueOfString(x.Story) + if !f(fd_MsgSetStoryAdd_story, 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_MsgSetStoryAdd) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetStoryAdd.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSetStoryAdd.setId": + return x.SetId != uint64(0) + case "cardchain.cardchain.MsgSetStoryAdd.story": + return x.Story != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetStoryAdd.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSetStoryAdd.setId": + x.SetId = uint64(0) + case "cardchain.cardchain.MsgSetStoryAdd.story": + x.Story = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSetStoryAdd.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSetStoryAdd.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgSetStoryAdd.story": + value := x.Story + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetStoryAdd.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSetStoryAdd.setId": + x.SetId = value.Uint() + case "cardchain.cardchain.MsgSetStoryAdd.story": + x.Story = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetStoryAdd.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetStoryAdd is not mutable")) + case "cardchain.cardchain.MsgSetStoryAdd.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetStoryAdd is not mutable")) + case "cardchain.cardchain.MsgSetStoryAdd.story": + panic(fmt.Errorf("field story of message cardchain.cardchain.MsgSetStoryAdd is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSetStoryAdd.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSetStoryAdd.setId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgSetStoryAdd.story": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetStoryAdd", 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_MsgSetStoryAdd) 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_MsgSetStoryAdd) 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_MsgSetStoryAdd) 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_MsgSetStoryAdd) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetStoryAdd) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + l = len(x.Story) + 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().(*MsgSetStoryAdd) + 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.Story) > 0 { + i -= len(x.Story) + copy(dAtA[i:], x.Story) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Story))) + i-- + dAtA[i] = 0x1a + } + if x.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSetStoryAdd) + 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: MsgSetStoryAdd: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetStoryAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Story", 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.Story = 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_MsgSetStoryAddResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSetStoryAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetStoryAddResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetStoryAddResponse)(nil) + +type fastReflection_MsgSetStoryAddResponse MsgSetStoryAddResponse + +func (x *MsgSetStoryAddResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetStoryAddResponse)(x) +} + +func (x *MsgSetStoryAddResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgSetStoryAddResponse_messageType fastReflection_MsgSetStoryAddResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetStoryAddResponse_messageType{} + +type fastReflection_MsgSetStoryAddResponse_messageType struct{} + +func (x fastReflection_MsgSetStoryAddResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetStoryAddResponse)(nil) +} +func (x fastReflection_MsgSetStoryAddResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetStoryAddResponse) +} +func (x fastReflection_MsgSetStoryAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetStoryAddResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetStoryAddResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetStoryAddResponse +} + +// 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_MsgSetStoryAddResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetStoryAddResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetStoryAddResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetStoryAddResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetStoryAddResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetStoryAddResponse)(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_MsgSetStoryAddResponse) 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_MsgSetStoryAddResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetStoryAddResponse", 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_MsgSetStoryAddResponse) 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_MsgSetStoryAddResponse) 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_MsgSetStoryAddResponse) 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_MsgSetStoryAddResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetStoryAddResponse) + 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().(*MsgSetStoryAddResponse) + 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().(*MsgSetStoryAddResponse) + 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: MsgSetStoryAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetStoryAddResponse: 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_MsgBoosterPackBuy protoreflect.MessageDescriptor + fd_MsgBoosterPackBuy_creator protoreflect.FieldDescriptor + fd_MsgBoosterPackBuy_setId protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgBoosterPackBuy = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackBuy") + fd_MsgBoosterPackBuy_creator = md_MsgBoosterPackBuy.Fields().ByName("creator") + fd_MsgBoosterPackBuy_setId = md_MsgBoosterPackBuy.Fields().ByName("setId") +} + +var _ protoreflect.Message = (*fastReflection_MsgBoosterPackBuy)(nil) + +type fastReflection_MsgBoosterPackBuy MsgBoosterPackBuy + +func (x *MsgBoosterPackBuy) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBoosterPackBuy)(x) +} + +func (x *MsgBoosterPackBuy) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_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_MsgBoosterPackBuy_messageType fastReflection_MsgBoosterPackBuy_messageType +var _ protoreflect.MessageType = fastReflection_MsgBoosterPackBuy_messageType{} + +type fastReflection_MsgBoosterPackBuy_messageType struct{} + +func (x fastReflection_MsgBoosterPackBuy_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBoosterPackBuy)(nil) +} +func (x fastReflection_MsgBoosterPackBuy_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBoosterPackBuy) +} +func (x fastReflection_MsgBoosterPackBuy_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBoosterPackBuy +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgBoosterPackBuy) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBoosterPackBuy +} + +// 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_MsgBoosterPackBuy) Type() protoreflect.MessageType { + return _fastReflection_MsgBoosterPackBuy_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgBoosterPackBuy) New() protoreflect.Message { + return new(fastReflection_MsgBoosterPackBuy) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgBoosterPackBuy) Interface() protoreflect.ProtoMessage { + return (*MsgBoosterPackBuy)(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_MsgBoosterPackBuy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgBoosterPackBuy_creator, value) { + return + } + } + if x.SetId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SetId) + if !f(fd_MsgBoosterPackBuy_setId, 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_MsgBoosterPackBuy) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuy.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgBoosterPackBuy.setId": + return x.SetId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuy.creator": + x.Creator = "" + case "cardchain.cardchain.MsgBoosterPackBuy.setId": + x.SetId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuy.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgBoosterPackBuy.setId": + value := x.SetId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuy.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgBoosterPackBuy.setId": + x.SetId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuy.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgBoosterPackBuy is not mutable")) + case "cardchain.cardchain.MsgBoosterPackBuy.setId": + panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgBoosterPackBuy is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuy.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgBoosterPackBuy.setId": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackBuy", 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_MsgBoosterPackBuy) 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_MsgBoosterPackBuy) 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_MsgBoosterPackBuy) 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_MsgBoosterPackBuy) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgBoosterPackBuy) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SetId != 0 { + n += 1 + runtime.Sov(uint64(x.SetId)) + } + 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().(*MsgBoosterPackBuy) + 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.SetId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgBoosterPackBuy) + 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: MsgBoosterPackBuy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackBuy: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + x.SetId = 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.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgBoosterPackBuyResponse protoreflect.MessageDescriptor + fd_MsgBoosterPackBuyResponse_airdropClaimed protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgBoosterPackBuyResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackBuyResponse") + fd_MsgBoosterPackBuyResponse_airdropClaimed = md_MsgBoosterPackBuyResponse.Fields().ByName("airdropClaimed") +} + +var _ protoreflect.Message = (*fastReflection_MsgBoosterPackBuyResponse)(nil) + +type fastReflection_MsgBoosterPackBuyResponse MsgBoosterPackBuyResponse + +func (x *MsgBoosterPackBuyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBoosterPackBuyResponse)(x) +} + +func (x *MsgBoosterPackBuyResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[45] + 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_MsgBoosterPackBuyResponse_messageType fastReflection_MsgBoosterPackBuyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgBoosterPackBuyResponse_messageType{} + +type fastReflection_MsgBoosterPackBuyResponse_messageType struct{} + +func (x fastReflection_MsgBoosterPackBuyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBoosterPackBuyResponse)(nil) +} +func (x fastReflection_MsgBoosterPackBuyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBoosterPackBuyResponse) +} +func (x fastReflection_MsgBoosterPackBuyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBoosterPackBuyResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgBoosterPackBuyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBoosterPackBuyResponse +} + +// 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_MsgBoosterPackBuyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgBoosterPackBuyResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgBoosterPackBuyResponse) New() protoreflect.Message { + return new(fastReflection_MsgBoosterPackBuyResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgBoosterPackBuyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgBoosterPackBuyResponse)(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_MsgBoosterPackBuyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.AirdropClaimed != false { + value := protoreflect.ValueOfBool(x.AirdropClaimed) + if !f(fd_MsgBoosterPackBuyResponse_airdropClaimed, 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_MsgBoosterPackBuyResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": + return x.AirdropClaimed != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": + x.AirdropClaimed = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": + value := x.AirdropClaimed + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": + x.AirdropClaimed = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": + panic(fmt.Errorf("field airdropClaimed of message cardchain.cardchain.MsgBoosterPackBuyResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackBuyResponse", 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_MsgBoosterPackBuyResponse) 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_MsgBoosterPackBuyResponse) 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_MsgBoosterPackBuyResponse) 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_MsgBoosterPackBuyResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgBoosterPackBuyResponse) + 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.AirdropClaimed { + 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().(*MsgBoosterPackBuyResponse) + 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.AirdropClaimed { + i-- + if x.AirdropClaimed { + 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().(*MsgBoosterPackBuyResponse) + 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: MsgBoosterPackBuyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackBuyResponse: 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 AirdropClaimed", 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.AirdropClaimed = 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_MsgSellOfferCreate protoreflect.MessageDescriptor + fd_MsgSellOfferCreate_creator protoreflect.FieldDescriptor + fd_MsgSellOfferCreate_cardId protoreflect.FieldDescriptor + fd_MsgSellOfferCreate_price protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSellOfferCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferCreate") + fd_MsgSellOfferCreate_creator = md_MsgSellOfferCreate.Fields().ByName("creator") + fd_MsgSellOfferCreate_cardId = md_MsgSellOfferCreate.Fields().ByName("cardId") + fd_MsgSellOfferCreate_price = md_MsgSellOfferCreate.Fields().ByName("price") +} + +var _ protoreflect.Message = (*fastReflection_MsgSellOfferCreate)(nil) + +type fastReflection_MsgSellOfferCreate MsgSellOfferCreate + +func (x *MsgSellOfferCreate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSellOfferCreate)(x) +} + +func (x *MsgSellOfferCreate) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[46] + 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_MsgSellOfferCreate_messageType fastReflection_MsgSellOfferCreate_messageType +var _ protoreflect.MessageType = fastReflection_MsgSellOfferCreate_messageType{} + +type fastReflection_MsgSellOfferCreate_messageType struct{} + +func (x fastReflection_MsgSellOfferCreate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSellOfferCreate)(nil) +} +func (x fastReflection_MsgSellOfferCreate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferCreate) +} +func (x fastReflection_MsgSellOfferCreate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferCreate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSellOfferCreate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferCreate +} + +// 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_MsgSellOfferCreate) Type() protoreflect.MessageType { + return _fastReflection_MsgSellOfferCreate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSellOfferCreate) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferCreate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSellOfferCreate) Interface() protoreflect.ProtoMessage { + return (*MsgSellOfferCreate)(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_MsgSellOfferCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSellOfferCreate_creator, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgSellOfferCreate_cardId, value) { + return + } + } + if x.Price != nil { + value := protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + if !f(fd_MsgSellOfferCreate_price, 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_MsgSellOfferCreate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferCreate.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSellOfferCreate.cardId": + return x.CardId != uint64(0) + case "cardchain.cardchain.MsgSellOfferCreate.price": + return x.Price != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferCreate.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSellOfferCreate.cardId": + x.CardId = uint64(0) + case "cardchain.cardchain.MsgSellOfferCreate.price": + x.Price = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSellOfferCreate.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSellOfferCreate.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgSellOfferCreate.price": + value := x.Price + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferCreate.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSellOfferCreate.cardId": + x.CardId = value.Uint() + case "cardchain.cardchain.MsgSellOfferCreate.price": + x.Price = value.Message().Interface().(*v1beta1.Coin) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferCreate.price": + if x.Price == nil { + x.Price = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + case "cardchain.cardchain.MsgSellOfferCreate.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSellOfferCreate is not mutable")) + case "cardchain.cardchain.MsgSellOfferCreate.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgSellOfferCreate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferCreate.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSellOfferCreate.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgSellOfferCreate.price": + m := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferCreate", 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_MsgSellOfferCreate) 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_MsgSellOfferCreate) 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_MsgSellOfferCreate) 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_MsgSellOfferCreate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSellOfferCreate) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CardId != 0 { + n += 1 + runtime.Sov(uint64(x.CardId)) + } + if x.Price != nil { + l = options.Size(x.Price) + 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().(*MsgSellOfferCreate) + 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.Price != nil { + encoded, err := options.Marshal(x.Price) + 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 x.CardId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSellOfferCreate) + 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: MsgSellOfferCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferCreate: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + x.CardId = 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.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Price", 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.Price == nil { + x.Price = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Price); 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_MsgSellOfferCreateResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSellOfferCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferCreateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSellOfferCreateResponse)(nil) + +type fastReflection_MsgSellOfferCreateResponse MsgSellOfferCreateResponse + +func (x *MsgSellOfferCreateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSellOfferCreateResponse)(x) +} + +func (x *MsgSellOfferCreateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[47] + 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_MsgSellOfferCreateResponse_messageType fastReflection_MsgSellOfferCreateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSellOfferCreateResponse_messageType{} + +type fastReflection_MsgSellOfferCreateResponse_messageType struct{} + +func (x fastReflection_MsgSellOfferCreateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSellOfferCreateResponse)(nil) +} +func (x fastReflection_MsgSellOfferCreateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferCreateResponse) +} +func (x fastReflection_MsgSellOfferCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferCreateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSellOfferCreateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferCreateResponse +} + +// 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_MsgSellOfferCreateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSellOfferCreateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSellOfferCreateResponse) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferCreateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSellOfferCreateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSellOfferCreateResponse)(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_MsgSellOfferCreateResponse) 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_MsgSellOfferCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferCreateResponse", 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_MsgSellOfferCreateResponse) 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_MsgSellOfferCreateResponse) 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_MsgSellOfferCreateResponse) 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_MsgSellOfferCreateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSellOfferCreateResponse) + 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().(*MsgSellOfferCreateResponse) + 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().(*MsgSellOfferCreateResponse) + 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: MsgSellOfferCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferCreateResponse: 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_MsgSellOfferBuy protoreflect.MessageDescriptor + fd_MsgSellOfferBuy_creator protoreflect.FieldDescriptor + fd_MsgSellOfferBuy_sellOfferId protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSellOfferBuy = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferBuy") + fd_MsgSellOfferBuy_creator = md_MsgSellOfferBuy.Fields().ByName("creator") + fd_MsgSellOfferBuy_sellOfferId = md_MsgSellOfferBuy.Fields().ByName("sellOfferId") +} + +var _ protoreflect.Message = (*fastReflection_MsgSellOfferBuy)(nil) + +type fastReflection_MsgSellOfferBuy MsgSellOfferBuy + +func (x *MsgSellOfferBuy) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSellOfferBuy)(x) +} + +func (x *MsgSellOfferBuy) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[48] + 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_MsgSellOfferBuy_messageType fastReflection_MsgSellOfferBuy_messageType +var _ protoreflect.MessageType = fastReflection_MsgSellOfferBuy_messageType{} + +type fastReflection_MsgSellOfferBuy_messageType struct{} + +func (x fastReflection_MsgSellOfferBuy_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSellOfferBuy)(nil) +} +func (x fastReflection_MsgSellOfferBuy_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferBuy) +} +func (x fastReflection_MsgSellOfferBuy_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferBuy +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSellOfferBuy) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferBuy +} + +// 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_MsgSellOfferBuy) Type() protoreflect.MessageType { + return _fastReflection_MsgSellOfferBuy_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSellOfferBuy) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferBuy) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSellOfferBuy) Interface() protoreflect.ProtoMessage { + return (*MsgSellOfferBuy)(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_MsgSellOfferBuy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSellOfferBuy_creator, value) { + return + } + } + if x.SellOfferId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SellOfferId) + if !f(fd_MsgSellOfferBuy_sellOfferId, 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_MsgSellOfferBuy) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferBuy.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": + return x.SellOfferId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferBuy.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": + x.SellOfferId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSellOfferBuy.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": + value := x.SellOfferId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferBuy.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": + x.SellOfferId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferBuy.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSellOfferBuy is not mutable")) + case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": + panic(fmt.Errorf("field sellOfferId of message cardchain.cardchain.MsgSellOfferBuy is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferBuy.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferBuy", 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_MsgSellOfferBuy) 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_MsgSellOfferBuy) 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_MsgSellOfferBuy) 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_MsgSellOfferBuy) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSellOfferBuy) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SellOfferId != 0 { + n += 1 + runtime.Sov(uint64(x.SellOfferId)) + } + 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().(*MsgSellOfferBuy) + 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.SellOfferId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SellOfferId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSellOfferBuy) + 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: MsgSellOfferBuy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferBuy: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOfferId", wireType) + } + x.SellOfferId = 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.SellOfferId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSellOfferBuyResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSellOfferBuyResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferBuyResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSellOfferBuyResponse)(nil) + +type fastReflection_MsgSellOfferBuyResponse MsgSellOfferBuyResponse + +func (x *MsgSellOfferBuyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSellOfferBuyResponse)(x) +} + +func (x *MsgSellOfferBuyResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[49] + 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_MsgSellOfferBuyResponse_messageType fastReflection_MsgSellOfferBuyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSellOfferBuyResponse_messageType{} + +type fastReflection_MsgSellOfferBuyResponse_messageType struct{} + +func (x fastReflection_MsgSellOfferBuyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSellOfferBuyResponse)(nil) +} +func (x fastReflection_MsgSellOfferBuyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferBuyResponse) +} +func (x fastReflection_MsgSellOfferBuyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferBuyResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSellOfferBuyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferBuyResponse +} + +// 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_MsgSellOfferBuyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSellOfferBuyResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSellOfferBuyResponse) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferBuyResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSellOfferBuyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSellOfferBuyResponse)(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_MsgSellOfferBuyResponse) 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_MsgSellOfferBuyResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferBuyResponse", 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_MsgSellOfferBuyResponse) 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_MsgSellOfferBuyResponse) 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_MsgSellOfferBuyResponse) 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_MsgSellOfferBuyResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSellOfferBuyResponse) + 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().(*MsgSellOfferBuyResponse) + 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().(*MsgSellOfferBuyResponse) + 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: MsgSellOfferBuyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferBuyResponse: 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_MsgSellOfferRemove protoreflect.MessageDescriptor + fd_MsgSellOfferRemove_creator protoreflect.FieldDescriptor + fd_MsgSellOfferRemove_sellOfferId protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSellOfferRemove = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferRemove") + fd_MsgSellOfferRemove_creator = md_MsgSellOfferRemove.Fields().ByName("creator") + fd_MsgSellOfferRemove_sellOfferId = md_MsgSellOfferRemove.Fields().ByName("sellOfferId") +} + +var _ protoreflect.Message = (*fastReflection_MsgSellOfferRemove)(nil) + +type fastReflection_MsgSellOfferRemove MsgSellOfferRemove + +func (x *MsgSellOfferRemove) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSellOfferRemove)(x) +} + +func (x *MsgSellOfferRemove) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[50] + 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_MsgSellOfferRemove_messageType fastReflection_MsgSellOfferRemove_messageType +var _ protoreflect.MessageType = fastReflection_MsgSellOfferRemove_messageType{} + +type fastReflection_MsgSellOfferRemove_messageType struct{} + +func (x fastReflection_MsgSellOfferRemove_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSellOfferRemove)(nil) +} +func (x fastReflection_MsgSellOfferRemove_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferRemove) +} +func (x fastReflection_MsgSellOfferRemove_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferRemove +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSellOfferRemove) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferRemove +} + +// 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_MsgSellOfferRemove) Type() protoreflect.MessageType { + return _fastReflection_MsgSellOfferRemove_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSellOfferRemove) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferRemove) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSellOfferRemove) Interface() protoreflect.ProtoMessage { + return (*MsgSellOfferRemove)(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_MsgSellOfferRemove) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgSellOfferRemove_creator, value) { + return + } + } + if x.SellOfferId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SellOfferId) + if !f(fd_MsgSellOfferRemove_sellOfferId, 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_MsgSellOfferRemove) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferRemove.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": + return x.SellOfferId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferRemove.creator": + x.Creator = "" + case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": + x.SellOfferId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgSellOfferRemove.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": + value := x.SellOfferId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferRemove.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": + x.SellOfferId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferRemove.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSellOfferRemove is not mutable")) + case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": + panic(fmt.Errorf("field sellOfferId of message cardchain.cardchain.MsgSellOfferRemove is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgSellOfferRemove.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferRemove", 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_MsgSellOfferRemove) 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_MsgSellOfferRemove) 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_MsgSellOfferRemove) 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_MsgSellOfferRemove) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSellOfferRemove) + 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.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SellOfferId != 0 { + n += 1 + runtime.Sov(uint64(x.SellOfferId)) + } + 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().(*MsgSellOfferRemove) + 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.SellOfferId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SellOfferId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + 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().(*MsgSellOfferRemove) + 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: MsgSellOfferRemove: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferRemove: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOfferId", wireType) + } + x.SellOfferId = 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.SellOfferId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSellOfferRemoveResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgSellOfferRemoveResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferRemoveResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSellOfferRemoveResponse)(nil) + +type fastReflection_MsgSellOfferRemoveResponse MsgSellOfferRemoveResponse + +func (x *MsgSellOfferRemoveResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSellOfferRemoveResponse)(x) +} + +func (x *MsgSellOfferRemoveResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[51] + 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_MsgSellOfferRemoveResponse_messageType fastReflection_MsgSellOfferRemoveResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSellOfferRemoveResponse_messageType{} + +type fastReflection_MsgSellOfferRemoveResponse_messageType struct{} + +func (x fastReflection_MsgSellOfferRemoveResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSellOfferRemoveResponse)(nil) +} +func (x fastReflection_MsgSellOfferRemoveResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferRemoveResponse) +} +func (x fastReflection_MsgSellOfferRemoveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferRemoveResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSellOfferRemoveResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSellOfferRemoveResponse +} + +// 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_MsgSellOfferRemoveResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSellOfferRemoveResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSellOfferRemoveResponse) New() protoreflect.Message { + return new(fastReflection_MsgSellOfferRemoveResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSellOfferRemoveResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSellOfferRemoveResponse)(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_MsgSellOfferRemoveResponse) 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_MsgSellOfferRemoveResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferRemoveResponse", 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_MsgSellOfferRemoveResponse) 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_MsgSellOfferRemoveResponse) 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_MsgSellOfferRemoveResponse) 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_MsgSellOfferRemoveResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSellOfferRemoveResponse) + 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().(*MsgSellOfferRemoveResponse) + 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().(*MsgSellOfferRemoveResponse) + 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: MsgSellOfferRemoveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferRemoveResponse: 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: cardchain/cardchain/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) -) +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) +) + +// MsgUpdateParams is the Msg/UpdateParams request type. +type MsgUpdateParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // NOTE: All parameters must be supplied. + Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *MsgUpdateParams) Reset() { + *x = MsgUpdateParams{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParams) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgUpdateParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateParams) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +type MsgUpdateParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateParamsResponse) Reset() { + *x = MsgUpdateParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{1} +} + +type MsgUserCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + NewUser string `protobuf:"bytes,2,opt,name=newUser,proto3" json:"newUser,omitempty"` + Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` +} + +func (x *MsgUserCreate) Reset() { + *x = MsgUserCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUserCreate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUserCreate) ProtoMessage() {} + +// Deprecated: Use MsgUserCreate.ProtoReflect.Descriptor instead. +func (*MsgUserCreate) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgUserCreate) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgUserCreate) GetNewUser() string { + if x != nil { + return x.NewUser + } + return "" +} + +func (x *MsgUserCreate) GetAlias() string { + if x != nil { + return x.Alias + } + return "" +} + +type MsgUserCreateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUserCreateResponse) Reset() { + *x = MsgUserCreateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUserCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUserCreateResponse) ProtoMessage() {} + +// Deprecated: Use MsgUserCreateResponse.ProtoReflect.Descriptor instead. +func (*MsgUserCreateResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{3} +} + +type MsgCardSchemeBuy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Bid *v1beta1.Coin `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` +} + +func (x *MsgCardSchemeBuy) Reset() { + *x = MsgCardSchemeBuy{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardSchemeBuy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardSchemeBuy) ProtoMessage() {} + +// Deprecated: Use MsgCardSchemeBuy.ProtoReflect.Descriptor instead. +func (*MsgCardSchemeBuy) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgCardSchemeBuy) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCardSchemeBuy) GetBid() *v1beta1.Coin { + if x != nil { + return x.Bid + } + return nil +} + +type MsgCardSchemeBuyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` +} + +func (x *MsgCardSchemeBuyResponse) Reset() { + *x = MsgCardSchemeBuyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardSchemeBuyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardSchemeBuyResponse) ProtoMessage() {} + +// Deprecated: Use MsgCardSchemeBuyResponse.ProtoReflect.Descriptor instead. +func (*MsgCardSchemeBuyResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{5} +} + +func (x *MsgCardSchemeBuyResponse) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +type MsgCardSaveContent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` + Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"` + Artist string `protobuf:"bytes,5,opt,name=artist,proto3" json:"artist,omitempty"` + BalanceAnchor bool `protobuf:"varint,6,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` +} + +func (x *MsgCardSaveContent) Reset() { + *x = MsgCardSaveContent{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardSaveContent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardSaveContent) ProtoMessage() {} + +// Deprecated: Use MsgCardSaveContent.ProtoReflect.Descriptor instead. +func (*MsgCardSaveContent) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgCardSaveContent) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCardSaveContent) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +func (x *MsgCardSaveContent) GetContent() []byte { + if x != nil { + return x.Content + } + return nil +} + +func (x *MsgCardSaveContent) GetNotes() string { + if x != nil { + return x.Notes + } + return "" +} + +func (x *MsgCardSaveContent) GetArtist() string { + if x != nil { + return x.Artist + } + return "" +} + +func (x *MsgCardSaveContent) GetBalanceAnchor() bool { + if x != nil { + return x.BalanceAnchor + } + return false +} + +type MsgCardSaveContentResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` +} + +func (x *MsgCardSaveContentResponse) Reset() { + *x = MsgCardSaveContentResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardSaveContentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardSaveContentResponse) ProtoMessage() {} + +// Deprecated: Use MsgCardSaveContentResponse.ProtoReflect.Descriptor instead. +func (*MsgCardSaveContentResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{7} +} + +func (x *MsgCardSaveContentResponse) GetAirdropClaimed() bool { + if x != nil { + return x.AirdropClaimed + } + return false +} + +type MsgCardVote struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Vote *SingleVote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` +} + +func (x *MsgCardVote) Reset() { + *x = MsgCardVote{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardVote) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardVote) ProtoMessage() {} + +// Deprecated: Use MsgCardVote.ProtoReflect.Descriptor instead. +func (*MsgCardVote) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{8} +} + +func (x *MsgCardVote) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCardVote) GetVote() *SingleVote { + if x != nil { + return x.Vote + } + return nil +} + +type MsgCardVoteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` +} + +func (x *MsgCardVoteResponse) Reset() { + *x = MsgCardVoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardVoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardVoteResponse) ProtoMessage() {} + +// Deprecated: Use MsgCardVoteResponse.ProtoReflect.Descriptor instead. +func (*MsgCardVoteResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{9} +} + +func (x *MsgCardVoteResponse) GetAirdropClaimed() bool { + if x != nil { + return x.AirdropClaimed + } + return false +} + +type MsgCardTransfer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` +} + +func (x *MsgCardTransfer) Reset() { + *x = MsgCardTransfer{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardTransfer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardTransfer) ProtoMessage() {} + +// Deprecated: Use MsgCardTransfer.ProtoReflect.Descriptor instead. +func (*MsgCardTransfer) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{10} +} + +func (x *MsgCardTransfer) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCardTransfer) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +func (x *MsgCardTransfer) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +type MsgCardTransferResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCardTransferResponse) Reset() { + *x = MsgCardTransferResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardTransferResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardTransferResponse) ProtoMessage() {} + +// Deprecated: Use MsgCardTransferResponse.ProtoReflect.Descriptor instead. +func (*MsgCardTransferResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{11} +} + +type MsgCardDonate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Amount *v1beta1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *MsgCardDonate) Reset() { + *x = MsgCardDonate{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardDonate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardDonate) ProtoMessage() {} + +// Deprecated: Use MsgCardDonate.ProtoReflect.Descriptor instead. +func (*MsgCardDonate) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{12} +} + +func (x *MsgCardDonate) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCardDonate) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +func (x *MsgCardDonate) GetAmount() *v1beta1.Coin { + if x != nil { + return x.Amount + } + return nil +} + +type MsgCardDonateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCardDonateResponse) Reset() { + *x = MsgCardDonateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardDonateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardDonateResponse) ProtoMessage() {} + +// Deprecated: Use MsgCardDonateResponse.ProtoReflect.Descriptor instead. +func (*MsgCardDonateResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{13} +} + +type MsgCardArtworkAdd struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` + FullArt bool `protobuf:"varint,4,opt,name=fullArt,proto3" json:"fullArt,omitempty"` +} + +func (x *MsgCardArtworkAdd) Reset() { + *x = MsgCardArtworkAdd{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardArtworkAdd) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardArtworkAdd) ProtoMessage() {} + +// Deprecated: Use MsgCardArtworkAdd.ProtoReflect.Descriptor instead. +func (*MsgCardArtworkAdd) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{14} +} + +func (x *MsgCardArtworkAdd) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCardArtworkAdd) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +func (x *MsgCardArtworkAdd) GetImage() []byte { + if x != nil { + return x.Image + } + return nil +} + +func (x *MsgCardArtworkAdd) GetFullArt() bool { + if x != nil { + return x.FullArt + } + return false +} + +type MsgCardArtworkAddResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCardArtworkAddResponse) Reset() { + *x = MsgCardArtworkAddResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardArtworkAddResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardArtworkAddResponse) ProtoMessage() {} + +// Deprecated: Use MsgCardArtworkAddResponse.ProtoReflect.Descriptor instead. +func (*MsgCardArtworkAddResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{15} +} + +type MsgCardArtistChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` +} + +func (x *MsgCardArtistChange) Reset() { + *x = MsgCardArtistChange{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardArtistChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardArtistChange) ProtoMessage() {} + +// Deprecated: Use MsgCardArtistChange.ProtoReflect.Descriptor instead. +func (*MsgCardArtistChange) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{16} +} + +func (x *MsgCardArtistChange) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCardArtistChange) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +func (x *MsgCardArtistChange) GetArtist() string { + if x != nil { + return x.Artist + } + return "" +} + +type MsgCardArtistChangeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCardArtistChangeResponse) Reset() { + *x = MsgCardArtistChangeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCardArtistChangeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCardArtistChangeResponse) ProtoMessage() {} + +// Deprecated: Use MsgCardArtistChangeResponse.ProtoReflect.Descriptor instead. +func (*MsgCardArtistChangeResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{17} +} + +type MsgCouncilRegister struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *MsgCouncilRegister) Reset() { + *x = MsgCouncilRegister{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCouncilRegister) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCouncilRegister) ProtoMessage() {} + +// Deprecated: Use MsgCouncilRegister.ProtoReflect.Descriptor instead. +func (*MsgCouncilRegister) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{18} +} + +func (x *MsgCouncilRegister) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +type MsgCouncilRegisterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCouncilRegisterResponse) Reset() { + *x = MsgCouncilRegisterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCouncilRegisterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCouncilRegisterResponse) ProtoMessage() {} + +// Deprecated: Use MsgCouncilRegisterResponse.ProtoReflect.Descriptor instead. +func (*MsgCouncilRegisterResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{19} +} + +type MsgCouncilDeregister struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *MsgCouncilDeregister) Reset() { + *x = MsgCouncilDeregister{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCouncilDeregister) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCouncilDeregister) ProtoMessage() {} + +// Deprecated: Use MsgCouncilDeregister.ProtoReflect.Descriptor instead. +func (*MsgCouncilDeregister) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{20} +} + +func (x *MsgCouncilDeregister) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +type MsgCouncilDeregisterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCouncilDeregisterResponse) Reset() { + *x = MsgCouncilDeregisterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCouncilDeregisterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCouncilDeregisterResponse) ProtoMessage() {} + +// Deprecated: Use MsgCouncilDeregisterResponse.ProtoReflect.Descriptor instead. +func (*MsgCouncilDeregisterResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{21} +} + +type MsgMatchReport struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + MatchId uint64 `protobuf:"varint,2,opt,name=matchId,proto3" json:"matchId,omitempty"` + PlayedCardsA []uint64 `protobuf:"varint,3,rep,packed,name=playedCardsA,proto3" json:"playedCardsA,omitempty"` + PlayedCardsB []uint64 `protobuf:"varint,4,rep,packed,name=playedCardsB,proto3" json:"playedCardsB,omitempty"` + Outcome Outcome `protobuf:"varint,5,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` +} + +func (x *MsgMatchReport) Reset() { + *x = MsgMatchReport{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgMatchReport) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgMatchReport) ProtoMessage() {} + +// Deprecated: Use MsgMatchReport.ProtoReflect.Descriptor instead. +func (*MsgMatchReport) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{22} +} + +func (x *MsgMatchReport) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgMatchReport) GetMatchId() uint64 { + if x != nil { + return x.MatchId + } + return 0 +} + +func (x *MsgMatchReport) GetPlayedCardsA() []uint64 { + if x != nil { + return x.PlayedCardsA + } + return nil +} -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { +func (x *MsgMatchReport) GetPlayedCardsB() []uint64 { + if x != nil { + return x.PlayedCardsB + } + return nil +} + +func (x *MsgMatchReport) GetOutcome() Outcome { + if x != nil { + return x.Outcome + } + return Outcome_AWon +} + +type MsgMatchReportResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields +} - // authority is the address that controls the module (defaults to x/gov unless - // overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // NOTE: All parameters must be supplied. - Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +func (x *MsgMatchReportResponse) Reset() { + *x = MsgMatchReportResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (x *MsgUpdateParams) Reset() { - *x = MsgUpdateParams{} +func (x *MsgMatchReportResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgMatchReportResponse) ProtoMessage() {} + +// Deprecated: Use MsgMatchReportResponse.ProtoReflect.Descriptor instead. +func (*MsgMatchReportResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{23} +} + +type MsgCouncilCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` +} + +func (x *MsgCouncilCreate) Reset() { + *x = MsgCouncilCreate{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[0] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgUpdateParams) String() string { +func (x *MsgCouncilCreate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgCouncilCreate) ProtoMessage() {} -// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{0} +// Deprecated: Use MsgCouncilCreate.ProtoReflect.Descriptor instead. +func (*MsgCouncilCreate) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{24} } -func (x *MsgUpdateParams) GetAuthority() string { +func (x *MsgCouncilCreate) GetCreator() string { if x != nil { - return x.Authority + return x.Creator } return "" } -func (x *MsgUpdateParams) GetParams() *Params { +func (x *MsgCouncilCreate) GetCardId() uint64 { if x != nil { - return x.Params + return x.CardId } - return nil + return 0 } -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { +type MsgCouncilCreateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgUpdateParamsResponse) Reset() { - *x = MsgUpdateParamsResponse{} +func (x *MsgCouncilCreateResponse) Reset() { + *x = MsgCouncilCreateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[1] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgUpdateParamsResponse) String() string { +func (x *MsgCouncilCreateResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgCouncilCreateResponse) ProtoMessage() {} -// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{1} +// Deprecated: Use MsgCouncilCreateResponse.ProtoReflect.Descriptor instead. +func (*MsgCouncilCreateResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{25} } -type MsgUserCreate struct { +type MsgMatchReporterAppoint struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - NewUser string `protobuf:"bytes,2,opt,name=newUser,proto3" json:"newUser,omitempty"` - Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"` } -func (x *MsgUserCreate) Reset() { - *x = MsgUserCreate{} +func (x *MsgMatchReporterAppoint) Reset() { + *x = MsgMatchReporterAppoint{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[2] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgUserCreate) String() string { +func (x *MsgMatchReporterAppoint) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgUserCreate) ProtoMessage() {} +func (*MsgMatchReporterAppoint) ProtoMessage() {} -// Deprecated: Use MsgUserCreate.ProtoReflect.Descriptor instead. -func (*MsgUserCreate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{2} +// Deprecated: Use MsgMatchReporterAppoint.ProtoReflect.Descriptor instead. +func (*MsgMatchReporterAppoint) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{26} } -func (x *MsgUserCreate) GetCreator() string { +func (x *MsgMatchReporterAppoint) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgUserCreate) GetNewUser() string { +func (x *MsgMatchReporterAppoint) GetReporter() string { if x != nil { - return x.NewUser + return x.Reporter } return "" } -func (x *MsgUserCreate) GetAlias() string { +type MsgMatchReporterAppointResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgMatchReporterAppointResponse) Reset() { + *x = MsgMatchReporterAppointResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgMatchReporterAppointResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgMatchReporterAppointResponse) ProtoMessage() {} + +// Deprecated: Use MsgMatchReporterAppointResponse.ProtoReflect.Descriptor instead. +func (*MsgMatchReporterAppointResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{27} +} + +type MsgSetCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` + StoryWriter string `protobuf:"bytes,4,opt,name=storyWriter,proto3" json:"storyWriter,omitempty"` + Contributors []string `protobuf:"bytes,5,rep,name=contributors,proto3" json:"contributors,omitempty"` +} + +func (x *MsgSetCreate) Reset() { + *x = MsgSetCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSetCreate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSetCreate) ProtoMessage() {} + +// Deprecated: Use MsgSetCreate.ProtoReflect.Descriptor instead. +func (*MsgSetCreate) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{28} +} + +func (x *MsgSetCreate) GetCreator() string { if x != nil { - return x.Alias + return x.Creator } return "" } -type MsgUserCreateResponse struct { +func (x *MsgSetCreate) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *MsgSetCreate) GetArtist() string { + if x != nil { + return x.Artist + } + return "" +} + +func (x *MsgSetCreate) GetStoryWriter() string { + if x != nil { + return x.StoryWriter + } + return "" +} + +func (x *MsgSetCreate) GetContributors() []string { + if x != nil { + return x.Contributors + } + return nil +} + +type MsgSetCreateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgUserCreateResponse) Reset() { - *x = MsgUserCreateResponse{} +func (x *MsgSetCreateResponse) Reset() { + *x = MsgSetCreateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[3] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgUserCreateResponse) String() string { +func (x *MsgSetCreateResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgUserCreateResponse) ProtoMessage() {} +func (*MsgSetCreateResponse) ProtoMessage() {} -// Deprecated: Use MsgUserCreateResponse.ProtoReflect.Descriptor instead. -func (*MsgUserCreateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{3} +// Deprecated: Use MsgSetCreateResponse.ProtoReflect.Descriptor instead. +func (*MsgSetCreateResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{29} } -type MsgCardSchemeBuy struct { +type MsgSetCardAdd struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Bid *v1beta1.Coin `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + CardId uint64 `protobuf:"varint,3,opt,name=cardId,proto3" json:"cardId,omitempty"` } -func (x *MsgCardSchemeBuy) Reset() { - *x = MsgCardSchemeBuy{} +func (x *MsgSetCardAdd) Reset() { + *x = MsgSetCardAdd{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[4] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSchemeBuy) String() string { +func (x *MsgSetCardAdd) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSchemeBuy) ProtoMessage() {} +func (*MsgSetCardAdd) ProtoMessage() {} -// Deprecated: Use MsgCardSchemeBuy.ProtoReflect.Descriptor instead. -func (*MsgCardSchemeBuy) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{4} +// Deprecated: Use MsgSetCardAdd.ProtoReflect.Descriptor instead. +func (*MsgSetCardAdd) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{30} } -func (x *MsgCardSchemeBuy) GetCreator() string { +func (x *MsgSetCardAdd) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardSchemeBuy) GetBid() *v1beta1.Coin { +func (x *MsgSetCardAdd) GetSetId() uint64 { if x != nil { - return x.Bid + return x.SetId } - return nil + return 0 } -type MsgCardSchemeBuyResponse struct { +func (x *MsgSetCardAdd) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +type MsgSetCardAddResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields +} - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` +func (x *MsgSetCardAddResponse) Reset() { + *x = MsgSetCardAddResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSetCardAddResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSetCardAddResponse) ProtoMessage() {} + +// Deprecated: Use MsgSetCardAddResponse.ProtoReflect.Descriptor instead. +func (*MsgSetCardAddResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{31} +} + +type MsgSetCardRemove struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + CardId uint64 `protobuf:"varint,3,opt,name=cardId,proto3" json:"cardId,omitempty"` +} + +func (x *MsgSetCardRemove) Reset() { + *x = MsgSetCardRemove{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSetCardRemove) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSetCardRemove) ProtoMessage() {} + +// Deprecated: Use MsgSetCardRemove.ProtoReflect.Descriptor instead. +func (*MsgSetCardRemove) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{32} +} + +func (x *MsgSetCardRemove) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgSetCardRemove) GetSetId() uint64 { + if x != nil { + return x.SetId + } + return 0 +} + +func (x *MsgSetCardRemove) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +type MsgSetCardRemoveResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (x *MsgCardSchemeBuyResponse) Reset() { - *x = MsgCardSchemeBuyResponse{} +func (x *MsgSetCardRemoveResponse) Reset() { + *x = MsgSetCardRemoveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[5] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSchemeBuyResponse) String() string { +func (x *MsgSetCardRemoveResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSchemeBuyResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardSchemeBuyResponse.ProtoReflect.Descriptor instead. -func (*MsgCardSchemeBuyResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{5} -} +func (*MsgSetCardRemoveResponse) ProtoMessage() {} -func (x *MsgCardSchemeBuyResponse) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 +// Deprecated: Use MsgSetCardRemoveResponse.ProtoReflect.Descriptor instead. +func (*MsgSetCardRemoveResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{33} } -type MsgCardSaveContent struct { +type MsgSetContributorAdd struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"` - Artist string `protobuf:"bytes,5,opt,name=artist,proto3" json:"artist,omitempty"` - BalanceAnchor bool `protobuf:"varint,6,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` } -func (x *MsgCardSaveContent) Reset() { - *x = MsgCardSaveContent{} +func (x *MsgSetContributorAdd) Reset() { + *x = MsgSetContributorAdd{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[6] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSaveContent) String() string { +func (x *MsgSetContributorAdd) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSaveContent) ProtoMessage() {} +func (*MsgSetContributorAdd) ProtoMessage() {} -// Deprecated: Use MsgCardSaveContent.ProtoReflect.Descriptor instead. -func (*MsgCardSaveContent) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{6} +// Deprecated: Use MsgSetContributorAdd.ProtoReflect.Descriptor instead. +func (*MsgSetContributorAdd) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{34} } -func (x *MsgCardSaveContent) GetCreator() string { +func (x *MsgSetContributorAdd) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardSaveContent) GetCardId() uint64 { +func (x *MsgSetContributorAdd) GetSetId() uint64 { if x != nil { - return x.CardId + return x.SetId } return 0 } -func (x *MsgCardSaveContent) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - -func (x *MsgCardSaveContent) GetNotes() string { - if x != nil { - return x.Notes - } - return "" -} - -func (x *MsgCardSaveContent) GetArtist() string { +func (x *MsgSetContributorAdd) GetUser() string { if x != nil { - return x.Artist + return x.User } return "" } -func (x *MsgCardSaveContent) GetBalanceAnchor() bool { - if x != nil { - return x.BalanceAnchor - } - return false -} - -type MsgCardSaveContentResponse struct { +type MsgSetContributorAddResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` } -func (x *MsgCardSaveContentResponse) Reset() { - *x = MsgCardSaveContentResponse{} +func (x *MsgSetContributorAddResponse) Reset() { + *x = MsgSetContributorAddResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[7] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSaveContentResponse) String() string { +func (x *MsgSetContributorAddResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSaveContentResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardSaveContentResponse.ProtoReflect.Descriptor instead. -func (*MsgCardSaveContentResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{7} -} +func (*MsgSetContributorAddResponse) ProtoMessage() {} -func (x *MsgCardSaveContentResponse) GetAirdropClaimed() bool { - if x != nil { - return x.AirdropClaimed - } - return false +// Deprecated: Use MsgSetContributorAddResponse.ProtoReflect.Descriptor instead. +func (*MsgSetContributorAddResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{35} } -type MsgCardVote struct { +type MsgSetContributorRemove struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Vote *SingleVote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` } -func (x *MsgCardVote) Reset() { - *x = MsgCardVote{} +func (x *MsgSetContributorRemove) Reset() { + *x = MsgSetContributorRemove{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[8] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardVote) String() string { +func (x *MsgSetContributorRemove) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardVote) ProtoMessage() {} +func (*MsgSetContributorRemove) ProtoMessage() {} -// Deprecated: Use MsgCardVote.ProtoReflect.Descriptor instead. -func (*MsgCardVote) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{8} +// Deprecated: Use MsgSetContributorRemove.ProtoReflect.Descriptor instead. +func (*MsgSetContributorRemove) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{36} } -func (x *MsgCardVote) GetCreator() string { +func (x *MsgSetContributorRemove) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardVote) GetVote() *SingleVote { +func (x *MsgSetContributorRemove) GetSetId() uint64 { if x != nil { - return x.Vote + return x.SetId } - return nil + return 0 } -type MsgCardVoteResponse struct { +func (x *MsgSetContributorRemove) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +type MsgSetContributorRemoveResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` } -func (x *MsgCardVoteResponse) Reset() { - *x = MsgCardVoteResponse{} +func (x *MsgSetContributorRemoveResponse) Reset() { + *x = MsgSetContributorRemoveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[9] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardVoteResponse) String() string { +func (x *MsgSetContributorRemoveResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardVoteResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardVoteResponse.ProtoReflect.Descriptor instead. -func (*MsgCardVoteResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{9} -} +func (*MsgSetContributorRemoveResponse) ProtoMessage() {} -func (x *MsgCardVoteResponse) GetAirdropClaimed() bool { - if x != nil { - return x.AirdropClaimed - } - return false +// Deprecated: Use MsgSetContributorRemoveResponse.ProtoReflect.Descriptor instead. +func (*MsgSetContributorRemoveResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{37} } -type MsgCardTransfer struct { +type MsgSetFinalize struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` } -func (x *MsgCardTransfer) Reset() { - *x = MsgCardTransfer{} +func (x *MsgSetFinalize) Reset() { + *x = MsgSetFinalize{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[10] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardTransfer) String() string { +func (x *MsgSetFinalize) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardTransfer) ProtoMessage() {} +func (*MsgSetFinalize) ProtoMessage() {} -// Deprecated: Use MsgCardTransfer.ProtoReflect.Descriptor instead. -func (*MsgCardTransfer) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{10} +// Deprecated: Use MsgSetFinalize.ProtoReflect.Descriptor instead. +func (*MsgSetFinalize) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{38} } -func (x *MsgCardTransfer) GetCreator() string { +func (x *MsgSetFinalize) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardTransfer) GetCardId() uint64 { +func (x *MsgSetFinalize) GetSetId() uint64 { if x != nil { - return x.CardId + return x.SetId } return 0 } -func (x *MsgCardTransfer) GetReceiver() string { - if x != nil { - return x.Receiver - } - return "" -} - -type MsgCardTransferResponse struct { +type MsgSetFinalizeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgCardTransferResponse) Reset() { - *x = MsgCardTransferResponse{} +func (x *MsgSetFinalizeResponse) Reset() { + *x = MsgSetFinalizeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[11] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardTransferResponse) String() string { +func (x *MsgSetFinalizeResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardTransferResponse) ProtoMessage() {} +func (*MsgSetFinalizeResponse) ProtoMessage() {} -// Deprecated: Use MsgCardTransferResponse.ProtoReflect.Descriptor instead. -func (*MsgCardTransferResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{11} +// Deprecated: Use MsgSetFinalizeResponse.ProtoReflect.Descriptor instead. +func (*MsgSetFinalizeResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{39} } -type MsgCardDonate struct { +type MsgSetArtworkAdd struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Amount *v1beta1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` } -func (x *MsgCardDonate) Reset() { - *x = MsgCardDonate{} +func (x *MsgSetArtworkAdd) Reset() { + *x = MsgSetArtworkAdd{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[12] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardDonate) String() string { +func (x *MsgSetArtworkAdd) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardDonate) ProtoMessage() {} +func (*MsgSetArtworkAdd) ProtoMessage() {} -// Deprecated: Use MsgCardDonate.ProtoReflect.Descriptor instead. -func (*MsgCardDonate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{12} +// Deprecated: Use MsgSetArtworkAdd.ProtoReflect.Descriptor instead. +func (*MsgSetArtworkAdd) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{40} } -func (x *MsgCardDonate) GetCreator() string { +func (x *MsgSetArtworkAdd) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardDonate) GetCardId() uint64 { +func (x *MsgSetArtworkAdd) GetSetId() uint64 { if x != nil { - return x.CardId + return x.SetId } return 0 } -func (x *MsgCardDonate) GetAmount() *v1beta1.Coin { +func (x *MsgSetArtworkAdd) GetImage() []byte { if x != nil { - return x.Amount + return x.Image } return nil } -type MsgCardDonateResponse struct { +type MsgSetArtworkAddResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgCardDonateResponse) Reset() { - *x = MsgCardDonateResponse{} +func (x *MsgSetArtworkAddResponse) Reset() { + *x = MsgSetArtworkAddResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[13] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardDonateResponse) String() string { +func (x *MsgSetArtworkAddResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardDonateResponse) ProtoMessage() {} +func (*MsgSetArtworkAddResponse) ProtoMessage() {} -// Deprecated: Use MsgCardDonateResponse.ProtoReflect.Descriptor instead. -func (*MsgCardDonateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{13} +// Deprecated: Use MsgSetArtworkAddResponse.ProtoReflect.Descriptor instead. +func (*MsgSetArtworkAddResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{41} } -type MsgCardArtworkAdd struct { +type MsgSetStoryAdd struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` - FullArt bool `protobuf:"varint,4,opt,name=fullArt,proto3" json:"fullArt,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + Story string `protobuf:"bytes,3,opt,name=story,proto3" json:"story,omitempty"` } -func (x *MsgCardArtworkAdd) Reset() { - *x = MsgCardArtworkAdd{} +func (x *MsgSetStoryAdd) Reset() { + *x = MsgSetStoryAdd{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[14] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardArtworkAdd) String() string { +func (x *MsgSetStoryAdd) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardArtworkAdd) ProtoMessage() {} +func (*MsgSetStoryAdd) ProtoMessage() {} -// Deprecated: Use MsgCardArtworkAdd.ProtoReflect.Descriptor instead. -func (*MsgCardArtworkAdd) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{14} +// Deprecated: Use MsgSetStoryAdd.ProtoReflect.Descriptor instead. +func (*MsgSetStoryAdd) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{42} } -func (x *MsgCardArtworkAdd) GetCreator() string { +func (x *MsgSetStoryAdd) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardArtworkAdd) GetCardId() uint64 { +func (x *MsgSetStoryAdd) GetSetId() uint64 { if x != nil { - return x.CardId + return x.SetId } return 0 } -func (x *MsgCardArtworkAdd) GetImage() []byte { - if x != nil { - return x.Image - } - return nil -} - -func (x *MsgCardArtworkAdd) GetFullArt() bool { +func (x *MsgSetStoryAdd) GetStory() string { if x != nil { - return x.FullArt + return x.Story } - return false + return "" } -type MsgCardArtworkAddResponse struct { +type MsgSetStoryAddResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgCardArtworkAddResponse) Reset() { - *x = MsgCardArtworkAddResponse{} +func (x *MsgSetStoryAddResponse) Reset() { + *x = MsgSetStoryAddResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[15] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardArtworkAddResponse) String() string { +func (x *MsgSetStoryAddResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardArtworkAddResponse) ProtoMessage() {} +func (*MsgSetStoryAddResponse) ProtoMessage() {} -// Deprecated: Use MsgCardArtworkAddResponse.ProtoReflect.Descriptor instead. -func (*MsgCardArtworkAddResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{15} +// Deprecated: Use MsgSetStoryAddResponse.ProtoReflect.Descriptor instead. +func (*MsgSetStoryAddResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{43} } -type MsgCardArtistChange struct { +type MsgBoosterPackBuy struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` } -func (x *MsgCardArtistChange) Reset() { - *x = MsgCardArtistChange{} +func (x *MsgBoosterPackBuy) Reset() { + *x = MsgBoosterPackBuy{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[16] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardArtistChange) String() string { +func (x *MsgBoosterPackBuy) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardArtistChange) ProtoMessage() {} +func (*MsgBoosterPackBuy) ProtoMessage() {} -// Deprecated: Use MsgCardArtistChange.ProtoReflect.Descriptor instead. -func (*MsgCardArtistChange) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{16} +// Deprecated: Use MsgBoosterPackBuy.ProtoReflect.Descriptor instead. +func (*MsgBoosterPackBuy) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{44} } -func (x *MsgCardArtistChange) GetCreator() string { +func (x *MsgBoosterPackBuy) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardArtistChange) GetCardId() uint64 { +func (x *MsgBoosterPackBuy) GetSetId() uint64 { if x != nil { - return x.CardId + return x.SetId } return 0 } -func (x *MsgCardArtistChange) GetArtist() string { - if x != nil { - return x.Artist - } - return "" -} - -type MsgCardArtistChangeResponse struct { +type MsgBoosterPackBuyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` } -func (x *MsgCardArtistChangeResponse) Reset() { - *x = MsgCardArtistChangeResponse{} +func (x *MsgBoosterPackBuyResponse) Reset() { + *x = MsgBoosterPackBuyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[17] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardArtistChangeResponse) String() string { +func (x *MsgBoosterPackBuyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardArtistChangeResponse) ProtoMessage() {} +func (*MsgBoosterPackBuyResponse) ProtoMessage() {} -// Deprecated: Use MsgCardArtistChangeResponse.ProtoReflect.Descriptor instead. -func (*MsgCardArtistChangeResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{17} +// Deprecated: Use MsgBoosterPackBuyResponse.ProtoReflect.Descriptor instead. +func (*MsgBoosterPackBuyResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{45} } -type MsgCouncilRegister struct { +func (x *MsgBoosterPackBuyResponse) GetAirdropClaimed() bool { + if x != nil { + return x.AirdropClaimed + } + return false +} + +type MsgSellOfferCreate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Price *v1beta1.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` } - -func (x *MsgCouncilRegister) Reset() { - *x = MsgCouncilRegister{} + +func (x *MsgSellOfferCreate) Reset() { + *x = MsgSellOfferCreate{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[18] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCouncilRegister) String() string { +func (x *MsgSellOfferCreate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCouncilRegister) ProtoMessage() {} +func (*MsgSellOfferCreate) ProtoMessage() {} -// Deprecated: Use MsgCouncilRegister.ProtoReflect.Descriptor instead. -func (*MsgCouncilRegister) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{18} +// Deprecated: Use MsgSellOfferCreate.ProtoReflect.Descriptor instead. +func (*MsgSellOfferCreate) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{46} } -func (x *MsgCouncilRegister) GetCreator() string { +func (x *MsgSellOfferCreate) GetCreator() string { if x != nil { return x.Creator } return "" } -type MsgCouncilRegisterResponse struct { +func (x *MsgSellOfferCreate) GetCardId() uint64 { + if x != nil { + return x.CardId + } + return 0 +} + +func (x *MsgSellOfferCreate) GetPrice() *v1beta1.Coin { + if x != nil { + return x.Price + } + return nil +} + +type MsgSellOfferCreateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgCouncilRegisterResponse) Reset() { - *x = MsgCouncilRegisterResponse{} +func (x *MsgSellOfferCreateResponse) Reset() { + *x = MsgSellOfferCreateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[19] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCouncilRegisterResponse) String() string { +func (x *MsgSellOfferCreateResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCouncilRegisterResponse) ProtoMessage() {} +func (*MsgSellOfferCreateResponse) ProtoMessage() {} -// Deprecated: Use MsgCouncilRegisterResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilRegisterResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{19} +// Deprecated: Use MsgSellOfferCreateResponse.ProtoReflect.Descriptor instead. +func (*MsgSellOfferCreateResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{47} } -type MsgCouncilDeregister struct { +type MsgSellOfferBuy struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SellOfferId uint64 `protobuf:"varint,2,opt,name=sellOfferId,proto3" json:"sellOfferId,omitempty"` } -func (x *MsgCouncilDeregister) Reset() { - *x = MsgCouncilDeregister{} +func (x *MsgSellOfferBuy) Reset() { + *x = MsgSellOfferBuy{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[20] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCouncilDeregister) String() string { +func (x *MsgSellOfferBuy) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCouncilDeregister) ProtoMessage() {} +func (*MsgSellOfferBuy) ProtoMessage() {} -// Deprecated: Use MsgCouncilDeregister.ProtoReflect.Descriptor instead. -func (*MsgCouncilDeregister) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{20} +// Deprecated: Use MsgSellOfferBuy.ProtoReflect.Descriptor instead. +func (*MsgSellOfferBuy) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{48} } -func (x *MsgCouncilDeregister) GetCreator() string { +func (x *MsgSellOfferBuy) GetCreator() string { if x != nil { return x.Creator } return "" } -type MsgCouncilDeregisterResponse struct { +func (x *MsgSellOfferBuy) GetSellOfferId() uint64 { + if x != nil { + return x.SellOfferId + } + return 0 +} + +type MsgSellOfferBuyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgCouncilDeregisterResponse) Reset() { - *x = MsgCouncilDeregisterResponse{} +func (x *MsgSellOfferBuyResponse) Reset() { + *x = MsgSellOfferBuyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[21] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCouncilDeregisterResponse) String() string { +func (x *MsgSellOfferBuyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCouncilDeregisterResponse) ProtoMessage() {} +func (*MsgSellOfferBuyResponse) ProtoMessage() {} -// Deprecated: Use MsgCouncilDeregisterResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilDeregisterResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{21} +// Deprecated: Use MsgSellOfferBuyResponse.ProtoReflect.Descriptor instead. +func (*MsgSellOfferBuyResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{49} } -type MsgMatchReport struct { +type MsgSellOfferRemove struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MatchId uint64 `protobuf:"varint,2,opt,name=matchId,proto3" json:"matchId,omitempty"` - PlayedCardsA []uint64 `protobuf:"varint,3,rep,packed,name=playedCardsA,proto3" json:"playedCardsA,omitempty"` - PlayedCardsB []uint64 `protobuf:"varint,4,rep,packed,name=playedCardsB,proto3" json:"playedCardsB,omitempty"` - Outcome Outcome `protobuf:"varint,5,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SellOfferId uint64 `protobuf:"varint,2,opt,name=sellOfferId,proto3" json:"sellOfferId,omitempty"` } -func (x *MsgMatchReport) Reset() { - *x = MsgMatchReport{} +func (x *MsgSellOfferRemove) Reset() { + *x = MsgSellOfferRemove{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[22] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMatchReport) String() string { +func (x *MsgSellOfferRemove) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMatchReport) ProtoMessage() {} +func (*MsgSellOfferRemove) ProtoMessage() {} -// Deprecated: Use MsgMatchReport.ProtoReflect.Descriptor instead. -func (*MsgMatchReport) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{22} +// Deprecated: Use MsgSellOfferRemove.ProtoReflect.Descriptor instead. +func (*MsgSellOfferRemove) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{50} } -func (x *MsgMatchReport) GetCreator() string { +func (x *MsgSellOfferRemove) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgMatchReport) GetMatchId() uint64 { +func (x *MsgSellOfferRemove) GetSellOfferId() uint64 { if x != nil { - return x.MatchId + return x.SellOfferId } return 0 } -func (x *MsgMatchReport) GetPlayedCardsA() []uint64 { - if x != nil { - return x.PlayedCardsA - } - return nil -} - -func (x *MsgMatchReport) GetPlayedCardsB() []uint64 { - if x != nil { - return x.PlayedCardsB - } - return nil -} - -func (x *MsgMatchReport) GetOutcome() Outcome { - if x != nil { - return x.Outcome - } - return Outcome_AWon -} - -type MsgMatchReportResponse struct { +type MsgSellOfferRemoveResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgMatchReportResponse) Reset() { - *x = MsgMatchReportResponse{} +func (x *MsgSellOfferRemoveResponse) Reset() { + *x = MsgSellOfferRemoveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[23] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgMatchReportResponse) String() string { +func (x *MsgSellOfferRemoveResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgMatchReportResponse) ProtoMessage() {} +func (*MsgSellOfferRemoveResponse) ProtoMessage() {} -// Deprecated: Use MsgMatchReportResponse.ProtoReflect.Descriptor instead. -func (*MsgMatchReportResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{23} +// Deprecated: Use MsgSellOfferRemoveResponse.ProtoReflect.Descriptor instead. +func (*MsgSellOfferRemoveResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{51} } var File_cardchain_cardchain_tx_proto protoreflect.FileDescriptor @@ -12227,84 +25589,296 @@ var file_cardchain_cardchain_tx_proto_rawDesc = []byte{ 0x69, 0x6e, 0x2e, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd7, 0x09, 0x0a, 0x03, - 0x4d, 0x73, 0x67, 0x12, 0x62, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x65, 0x42, 0x75, 0x79, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x10, 0x4d, + 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, + 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, + 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x17, 0x4d, + 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x41, + 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, + 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x41, 0x70, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa8, 0x01, + 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x72, + 0x74, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x65, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, + 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x53, 0x65, + 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x68, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, + 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, + 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x68, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x6b, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x3a, + 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, + 0x1f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x4e, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, + 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x0a, 0x10, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, + 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, + 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, + 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, + 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, + 0x42, 0x75, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, + 0x74, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x22, 0x43, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, + 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, + 0x0a, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, + 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x22, 0x8b, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x53, 0x65, + 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, + 0x35, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, + 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x5b, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, + 0x65, 0x72, 0x42, 0x75, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, + 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x42, + 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5e, 0x0a, 0x12, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, + 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x9a, 0x15, 0x0a, 0x03, 0x4d, 0x73, 0x67, + 0x12, 0x62, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, + 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, 0x75, 0x79, 0x1a, 0x2d, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x65, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, - 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, - 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, - 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x08, 0x43, 0x61, 0x72, - 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x62, 0x0a, 0x0c, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x12, 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, - 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, + 0x42, 0x75, 0x79, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, - 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x41, 0x64, 0x64, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, + 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, 0x75, 0x79, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, + 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, 0x75, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x43, 0x61, 0x72, + 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x63, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x1a, 0x2e, 0x2e, + 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x08, 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, + 0x74, 0x65, 0x12, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, + 0x56, 0x6f, 0x74, 0x65, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, + 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, + 0x0a, 0x0c, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x24, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, + 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, + 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, + 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, + 0x6e, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, + 0x72, 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x68, 0x0a, 0x0e, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, + 0x64, 0x64, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, + 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x1a, 0x2e, 0x2e, 0x63, 0x61, 0x72, + 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, + 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x10, 0x43, 0x61, + 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x28, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x30, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, + 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x43, 0x6f, + 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, - 0x10, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, - 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x30, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, - 0x0f, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, + 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, + 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x11, 0x43, 0x6f, 0x75, 0x6e, 0x63, + 0x69, 0x6c, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x63, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x31, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, + 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0b, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x23, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x11, 0x43, 0x6f, - 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, - 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x31, 0x2e, 0x63, 0x61, 0x72, + 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x2b, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x43, + 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x25, 0x2e, 0x63, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, + 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x14, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, - 0x0b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x23, 0x2e, 0x63, + 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, + 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x41, + 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, + 0x0a, 0x09, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x21, 0x2e, 0x63, 0x61, + 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x29, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x53, 0x65, 0x74, + 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x1a, 0x2a, 0x2e, 0x63, 0x61, + 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x43, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, + 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x1a, + 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, + 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, + 0x41, 0x64, 0x64, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x1a, 0x31, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7a, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x1a, 0x34, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, + 0x0b, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x12, 0x23, 0x2e, 0x63, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, + 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, 0x69, + 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, + 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x12, + 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, + 0x79, 0x41, 0x64, 0x64, 0x12, 0x23, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, + 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, + 0x72, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, + 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, + 0x1a, 0x2e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, + 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, + 0x72, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6b, 0x0a, 0x0f, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, + 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, + 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, + 0x0c, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x42, 0x75, 0x79, 0x12, 0x24, 0x2e, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, + 0x42, 0x75, 0x79, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, + 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, + 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x1a, 0x2f, 0x2e, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xcf, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, @@ -12333,72 +25907,129 @@ func file_cardchain_cardchain_tx_proto_rawDescGZIP() []byte { return file_cardchain_cardchain_tx_proto_rawDescData } -var file_cardchain_cardchain_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_cardchain_cardchain_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 52) var file_cardchain_cardchain_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: cardchain.cardchain.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: cardchain.cardchain.MsgUpdateParamsResponse - (*MsgUserCreate)(nil), // 2: cardchain.cardchain.MsgUserCreate - (*MsgUserCreateResponse)(nil), // 3: cardchain.cardchain.MsgUserCreateResponse - (*MsgCardSchemeBuy)(nil), // 4: cardchain.cardchain.MsgCardSchemeBuy - (*MsgCardSchemeBuyResponse)(nil), // 5: cardchain.cardchain.MsgCardSchemeBuyResponse - (*MsgCardSaveContent)(nil), // 6: cardchain.cardchain.MsgCardSaveContent - (*MsgCardSaveContentResponse)(nil), // 7: cardchain.cardchain.MsgCardSaveContentResponse - (*MsgCardVote)(nil), // 8: cardchain.cardchain.MsgCardVote - (*MsgCardVoteResponse)(nil), // 9: cardchain.cardchain.MsgCardVoteResponse - (*MsgCardTransfer)(nil), // 10: cardchain.cardchain.MsgCardTransfer - (*MsgCardTransferResponse)(nil), // 11: cardchain.cardchain.MsgCardTransferResponse - (*MsgCardDonate)(nil), // 12: cardchain.cardchain.MsgCardDonate - (*MsgCardDonateResponse)(nil), // 13: cardchain.cardchain.MsgCardDonateResponse - (*MsgCardArtworkAdd)(nil), // 14: cardchain.cardchain.MsgCardArtworkAdd - (*MsgCardArtworkAddResponse)(nil), // 15: cardchain.cardchain.MsgCardArtworkAddResponse - (*MsgCardArtistChange)(nil), // 16: cardchain.cardchain.MsgCardArtistChange - (*MsgCardArtistChangeResponse)(nil), // 17: cardchain.cardchain.MsgCardArtistChangeResponse - (*MsgCouncilRegister)(nil), // 18: cardchain.cardchain.MsgCouncilRegister - (*MsgCouncilRegisterResponse)(nil), // 19: cardchain.cardchain.MsgCouncilRegisterResponse - (*MsgCouncilDeregister)(nil), // 20: cardchain.cardchain.MsgCouncilDeregister - (*MsgCouncilDeregisterResponse)(nil), // 21: cardchain.cardchain.MsgCouncilDeregisterResponse - (*MsgMatchReport)(nil), // 22: cardchain.cardchain.MsgMatchReport - (*MsgMatchReportResponse)(nil), // 23: cardchain.cardchain.MsgMatchReportResponse - (*Params)(nil), // 24: cardchain.cardchain.Params - (*v1beta1.Coin)(nil), // 25: cosmos.base.v1beta1.Coin - (*SingleVote)(nil), // 26: cardchain.cardchain.SingleVote - (Outcome)(0), // 27: cardchain.cardchain.Outcome + (*MsgUpdateParams)(nil), // 0: cardchain.cardchain.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: cardchain.cardchain.MsgUpdateParamsResponse + (*MsgUserCreate)(nil), // 2: cardchain.cardchain.MsgUserCreate + (*MsgUserCreateResponse)(nil), // 3: cardchain.cardchain.MsgUserCreateResponse + (*MsgCardSchemeBuy)(nil), // 4: cardchain.cardchain.MsgCardSchemeBuy + (*MsgCardSchemeBuyResponse)(nil), // 5: cardchain.cardchain.MsgCardSchemeBuyResponse + (*MsgCardSaveContent)(nil), // 6: cardchain.cardchain.MsgCardSaveContent + (*MsgCardSaveContentResponse)(nil), // 7: cardchain.cardchain.MsgCardSaveContentResponse + (*MsgCardVote)(nil), // 8: cardchain.cardchain.MsgCardVote + (*MsgCardVoteResponse)(nil), // 9: cardchain.cardchain.MsgCardVoteResponse + (*MsgCardTransfer)(nil), // 10: cardchain.cardchain.MsgCardTransfer + (*MsgCardTransferResponse)(nil), // 11: cardchain.cardchain.MsgCardTransferResponse + (*MsgCardDonate)(nil), // 12: cardchain.cardchain.MsgCardDonate + (*MsgCardDonateResponse)(nil), // 13: cardchain.cardchain.MsgCardDonateResponse + (*MsgCardArtworkAdd)(nil), // 14: cardchain.cardchain.MsgCardArtworkAdd + (*MsgCardArtworkAddResponse)(nil), // 15: cardchain.cardchain.MsgCardArtworkAddResponse + (*MsgCardArtistChange)(nil), // 16: cardchain.cardchain.MsgCardArtistChange + (*MsgCardArtistChangeResponse)(nil), // 17: cardchain.cardchain.MsgCardArtistChangeResponse + (*MsgCouncilRegister)(nil), // 18: cardchain.cardchain.MsgCouncilRegister + (*MsgCouncilRegisterResponse)(nil), // 19: cardchain.cardchain.MsgCouncilRegisterResponse + (*MsgCouncilDeregister)(nil), // 20: cardchain.cardchain.MsgCouncilDeregister + (*MsgCouncilDeregisterResponse)(nil), // 21: cardchain.cardchain.MsgCouncilDeregisterResponse + (*MsgMatchReport)(nil), // 22: cardchain.cardchain.MsgMatchReport + (*MsgMatchReportResponse)(nil), // 23: cardchain.cardchain.MsgMatchReportResponse + (*MsgCouncilCreate)(nil), // 24: cardchain.cardchain.MsgCouncilCreate + (*MsgCouncilCreateResponse)(nil), // 25: cardchain.cardchain.MsgCouncilCreateResponse + (*MsgMatchReporterAppoint)(nil), // 26: cardchain.cardchain.MsgMatchReporterAppoint + (*MsgMatchReporterAppointResponse)(nil), // 27: cardchain.cardchain.MsgMatchReporterAppointResponse + (*MsgSetCreate)(nil), // 28: cardchain.cardchain.MsgSetCreate + (*MsgSetCreateResponse)(nil), // 29: cardchain.cardchain.MsgSetCreateResponse + (*MsgSetCardAdd)(nil), // 30: cardchain.cardchain.MsgSetCardAdd + (*MsgSetCardAddResponse)(nil), // 31: cardchain.cardchain.MsgSetCardAddResponse + (*MsgSetCardRemove)(nil), // 32: cardchain.cardchain.MsgSetCardRemove + (*MsgSetCardRemoveResponse)(nil), // 33: cardchain.cardchain.MsgSetCardRemoveResponse + (*MsgSetContributorAdd)(nil), // 34: cardchain.cardchain.MsgSetContributorAdd + (*MsgSetContributorAddResponse)(nil), // 35: cardchain.cardchain.MsgSetContributorAddResponse + (*MsgSetContributorRemove)(nil), // 36: cardchain.cardchain.MsgSetContributorRemove + (*MsgSetContributorRemoveResponse)(nil), // 37: cardchain.cardchain.MsgSetContributorRemoveResponse + (*MsgSetFinalize)(nil), // 38: cardchain.cardchain.MsgSetFinalize + (*MsgSetFinalizeResponse)(nil), // 39: cardchain.cardchain.MsgSetFinalizeResponse + (*MsgSetArtworkAdd)(nil), // 40: cardchain.cardchain.MsgSetArtworkAdd + (*MsgSetArtworkAddResponse)(nil), // 41: cardchain.cardchain.MsgSetArtworkAddResponse + (*MsgSetStoryAdd)(nil), // 42: cardchain.cardchain.MsgSetStoryAdd + (*MsgSetStoryAddResponse)(nil), // 43: cardchain.cardchain.MsgSetStoryAddResponse + (*MsgBoosterPackBuy)(nil), // 44: cardchain.cardchain.MsgBoosterPackBuy + (*MsgBoosterPackBuyResponse)(nil), // 45: cardchain.cardchain.MsgBoosterPackBuyResponse + (*MsgSellOfferCreate)(nil), // 46: cardchain.cardchain.MsgSellOfferCreate + (*MsgSellOfferCreateResponse)(nil), // 47: cardchain.cardchain.MsgSellOfferCreateResponse + (*MsgSellOfferBuy)(nil), // 48: cardchain.cardchain.MsgSellOfferBuy + (*MsgSellOfferBuyResponse)(nil), // 49: cardchain.cardchain.MsgSellOfferBuyResponse + (*MsgSellOfferRemove)(nil), // 50: cardchain.cardchain.MsgSellOfferRemove + (*MsgSellOfferRemoveResponse)(nil), // 51: cardchain.cardchain.MsgSellOfferRemoveResponse + (*Params)(nil), // 52: cardchain.cardchain.Params + (*v1beta1.Coin)(nil), // 53: cosmos.base.v1beta1.Coin + (*SingleVote)(nil), // 54: cardchain.cardchain.SingleVote + (Outcome)(0), // 55: cardchain.cardchain.Outcome } var file_cardchain_cardchain_tx_proto_depIdxs = []int32{ - 24, // 0: cardchain.cardchain.MsgUpdateParams.params:type_name -> cardchain.cardchain.Params - 25, // 1: cardchain.cardchain.MsgCardSchemeBuy.bid:type_name -> cosmos.base.v1beta1.Coin - 26, // 2: cardchain.cardchain.MsgCardVote.vote:type_name -> cardchain.cardchain.SingleVote - 25, // 3: cardchain.cardchain.MsgCardDonate.amount:type_name -> cosmos.base.v1beta1.Coin - 27, // 4: cardchain.cardchain.MsgMatchReport.outcome:type_name -> cardchain.cardchain.Outcome - 0, // 5: cardchain.cardchain.Msg.UpdateParams:input_type -> cardchain.cardchain.MsgUpdateParams - 2, // 6: cardchain.cardchain.Msg.UserCreate:input_type -> cardchain.cardchain.MsgUserCreate - 4, // 7: cardchain.cardchain.Msg.CardSchemeBuy:input_type -> cardchain.cardchain.MsgCardSchemeBuy - 6, // 8: cardchain.cardchain.Msg.CardSaveContent:input_type -> cardchain.cardchain.MsgCardSaveContent - 8, // 9: cardchain.cardchain.Msg.CardVote:input_type -> cardchain.cardchain.MsgCardVote - 10, // 10: cardchain.cardchain.Msg.CardTransfer:input_type -> cardchain.cardchain.MsgCardTransfer - 12, // 11: cardchain.cardchain.Msg.CardDonate:input_type -> cardchain.cardchain.MsgCardDonate - 14, // 12: cardchain.cardchain.Msg.CardArtworkAdd:input_type -> cardchain.cardchain.MsgCardArtworkAdd - 16, // 13: cardchain.cardchain.Msg.CardArtistChange:input_type -> cardchain.cardchain.MsgCardArtistChange - 18, // 14: cardchain.cardchain.Msg.CouncilRegister:input_type -> cardchain.cardchain.MsgCouncilRegister - 20, // 15: cardchain.cardchain.Msg.CouncilDeregister:input_type -> cardchain.cardchain.MsgCouncilDeregister - 22, // 16: cardchain.cardchain.Msg.MatchReport:input_type -> cardchain.cardchain.MsgMatchReport - 1, // 17: cardchain.cardchain.Msg.UpdateParams:output_type -> cardchain.cardchain.MsgUpdateParamsResponse - 3, // 18: cardchain.cardchain.Msg.UserCreate:output_type -> cardchain.cardchain.MsgUserCreateResponse - 5, // 19: cardchain.cardchain.Msg.CardSchemeBuy:output_type -> cardchain.cardchain.MsgCardSchemeBuyResponse - 7, // 20: cardchain.cardchain.Msg.CardSaveContent:output_type -> cardchain.cardchain.MsgCardSaveContentResponse - 9, // 21: cardchain.cardchain.Msg.CardVote:output_type -> cardchain.cardchain.MsgCardVoteResponse - 11, // 22: cardchain.cardchain.Msg.CardTransfer:output_type -> cardchain.cardchain.MsgCardTransferResponse - 13, // 23: cardchain.cardchain.Msg.CardDonate:output_type -> cardchain.cardchain.MsgCardDonateResponse - 15, // 24: cardchain.cardchain.Msg.CardArtworkAdd:output_type -> cardchain.cardchain.MsgCardArtworkAddResponse - 17, // 25: cardchain.cardchain.Msg.CardArtistChange:output_type -> cardchain.cardchain.MsgCardArtistChangeResponse - 19, // 26: cardchain.cardchain.Msg.CouncilRegister:output_type -> cardchain.cardchain.MsgCouncilRegisterResponse - 21, // 27: cardchain.cardchain.Msg.CouncilDeregister:output_type -> cardchain.cardchain.MsgCouncilDeregisterResponse - 23, // 28: cardchain.cardchain.Msg.MatchReport:output_type -> cardchain.cardchain.MsgMatchReportResponse - 17, // [17:29] is the sub-list for method output_type - 5, // [5:17] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 52, // 0: cardchain.cardchain.MsgUpdateParams.params:type_name -> cardchain.cardchain.Params + 53, // 1: cardchain.cardchain.MsgCardSchemeBuy.bid:type_name -> cosmos.base.v1beta1.Coin + 54, // 2: cardchain.cardchain.MsgCardVote.vote:type_name -> cardchain.cardchain.SingleVote + 53, // 3: cardchain.cardchain.MsgCardDonate.amount:type_name -> cosmos.base.v1beta1.Coin + 55, // 4: cardchain.cardchain.MsgMatchReport.outcome:type_name -> cardchain.cardchain.Outcome + 53, // 5: cardchain.cardchain.MsgSellOfferCreate.price:type_name -> cosmos.base.v1beta1.Coin + 0, // 6: cardchain.cardchain.Msg.UpdateParams:input_type -> cardchain.cardchain.MsgUpdateParams + 2, // 7: cardchain.cardchain.Msg.UserCreate:input_type -> cardchain.cardchain.MsgUserCreate + 4, // 8: cardchain.cardchain.Msg.CardSchemeBuy:input_type -> cardchain.cardchain.MsgCardSchemeBuy + 6, // 9: cardchain.cardchain.Msg.CardSaveContent:input_type -> cardchain.cardchain.MsgCardSaveContent + 8, // 10: cardchain.cardchain.Msg.CardVote:input_type -> cardchain.cardchain.MsgCardVote + 10, // 11: cardchain.cardchain.Msg.CardTransfer:input_type -> cardchain.cardchain.MsgCardTransfer + 12, // 12: cardchain.cardchain.Msg.CardDonate:input_type -> cardchain.cardchain.MsgCardDonate + 14, // 13: cardchain.cardchain.Msg.CardArtworkAdd:input_type -> cardchain.cardchain.MsgCardArtworkAdd + 16, // 14: cardchain.cardchain.Msg.CardArtistChange:input_type -> cardchain.cardchain.MsgCardArtistChange + 18, // 15: cardchain.cardchain.Msg.CouncilRegister:input_type -> cardchain.cardchain.MsgCouncilRegister + 20, // 16: cardchain.cardchain.Msg.CouncilDeregister:input_type -> cardchain.cardchain.MsgCouncilDeregister + 22, // 17: cardchain.cardchain.Msg.MatchReport:input_type -> cardchain.cardchain.MsgMatchReport + 24, // 18: cardchain.cardchain.Msg.CouncilCreate:input_type -> cardchain.cardchain.MsgCouncilCreate + 26, // 19: cardchain.cardchain.Msg.MatchReporterAppoint:input_type -> cardchain.cardchain.MsgMatchReporterAppoint + 28, // 20: cardchain.cardchain.Msg.SetCreate:input_type -> cardchain.cardchain.MsgSetCreate + 30, // 21: cardchain.cardchain.Msg.SetCardAdd:input_type -> cardchain.cardchain.MsgSetCardAdd + 32, // 22: cardchain.cardchain.Msg.SetCardRemove:input_type -> cardchain.cardchain.MsgSetCardRemove + 34, // 23: cardchain.cardchain.Msg.SetContributorAdd:input_type -> cardchain.cardchain.MsgSetContributorAdd + 36, // 24: cardchain.cardchain.Msg.SetContributorRemove:input_type -> cardchain.cardchain.MsgSetContributorRemove + 38, // 25: cardchain.cardchain.Msg.SetFinalize:input_type -> cardchain.cardchain.MsgSetFinalize + 40, // 26: cardchain.cardchain.Msg.SetArtworkAdd:input_type -> cardchain.cardchain.MsgSetArtworkAdd + 42, // 27: cardchain.cardchain.Msg.SetStoryAdd:input_type -> cardchain.cardchain.MsgSetStoryAdd + 44, // 28: cardchain.cardchain.Msg.BoosterPackBuy:input_type -> cardchain.cardchain.MsgBoosterPackBuy + 46, // 29: cardchain.cardchain.Msg.SellOfferCreate:input_type -> cardchain.cardchain.MsgSellOfferCreate + 48, // 30: cardchain.cardchain.Msg.SellOfferBuy:input_type -> cardchain.cardchain.MsgSellOfferBuy + 50, // 31: cardchain.cardchain.Msg.SellOfferRemove:input_type -> cardchain.cardchain.MsgSellOfferRemove + 1, // 32: cardchain.cardchain.Msg.UpdateParams:output_type -> cardchain.cardchain.MsgUpdateParamsResponse + 3, // 33: cardchain.cardchain.Msg.UserCreate:output_type -> cardchain.cardchain.MsgUserCreateResponse + 5, // 34: cardchain.cardchain.Msg.CardSchemeBuy:output_type -> cardchain.cardchain.MsgCardSchemeBuyResponse + 7, // 35: cardchain.cardchain.Msg.CardSaveContent:output_type -> cardchain.cardchain.MsgCardSaveContentResponse + 9, // 36: cardchain.cardchain.Msg.CardVote:output_type -> cardchain.cardchain.MsgCardVoteResponse + 11, // 37: cardchain.cardchain.Msg.CardTransfer:output_type -> cardchain.cardchain.MsgCardTransferResponse + 13, // 38: cardchain.cardchain.Msg.CardDonate:output_type -> cardchain.cardchain.MsgCardDonateResponse + 15, // 39: cardchain.cardchain.Msg.CardArtworkAdd:output_type -> cardchain.cardchain.MsgCardArtworkAddResponse + 17, // 40: cardchain.cardchain.Msg.CardArtistChange:output_type -> cardchain.cardchain.MsgCardArtistChangeResponse + 19, // 41: cardchain.cardchain.Msg.CouncilRegister:output_type -> cardchain.cardchain.MsgCouncilRegisterResponse + 21, // 42: cardchain.cardchain.Msg.CouncilDeregister:output_type -> cardchain.cardchain.MsgCouncilDeregisterResponse + 23, // 43: cardchain.cardchain.Msg.MatchReport:output_type -> cardchain.cardchain.MsgMatchReportResponse + 25, // 44: cardchain.cardchain.Msg.CouncilCreate:output_type -> cardchain.cardchain.MsgCouncilCreateResponse + 27, // 45: cardchain.cardchain.Msg.MatchReporterAppoint:output_type -> cardchain.cardchain.MsgMatchReporterAppointResponse + 29, // 46: cardchain.cardchain.Msg.SetCreate:output_type -> cardchain.cardchain.MsgSetCreateResponse + 31, // 47: cardchain.cardchain.Msg.SetCardAdd:output_type -> cardchain.cardchain.MsgSetCardAddResponse + 33, // 48: cardchain.cardchain.Msg.SetCardRemove:output_type -> cardchain.cardchain.MsgSetCardRemoveResponse + 35, // 49: cardchain.cardchain.Msg.SetContributorAdd:output_type -> cardchain.cardchain.MsgSetContributorAddResponse + 37, // 50: cardchain.cardchain.Msg.SetContributorRemove:output_type -> cardchain.cardchain.MsgSetContributorRemoveResponse + 39, // 51: cardchain.cardchain.Msg.SetFinalize:output_type -> cardchain.cardchain.MsgSetFinalizeResponse + 41, // 52: cardchain.cardchain.Msg.SetArtworkAdd:output_type -> cardchain.cardchain.MsgSetArtworkAddResponse + 43, // 53: cardchain.cardchain.Msg.SetStoryAdd:output_type -> cardchain.cardchain.MsgSetStoryAddResponse + 45, // 54: cardchain.cardchain.Msg.BoosterPackBuy:output_type -> cardchain.cardchain.MsgBoosterPackBuyResponse + 47, // 55: cardchain.cardchain.Msg.SellOfferCreate:output_type -> cardchain.cardchain.MsgSellOfferCreateResponse + 49, // 56: cardchain.cardchain.Msg.SellOfferBuy:output_type -> cardchain.cardchain.MsgSellOfferBuyResponse + 51, // 57: cardchain.cardchain.Msg.SellOfferRemove:output_type -> cardchain.cardchain.MsgSellOfferRemoveResponse + 32, // [32:58] is the sub-list for method output_type + 6, // [6:32] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_cardchain_cardchain_tx_proto_init() } @@ -12422,8 +26053,128 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParamsResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUserCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUserCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardSchemeBuy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardSchemeBuyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardSaveContent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardSaveContentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardVote); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardVoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardTransfer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardTransferResponse); i { case 0: return &v.state case 1: @@ -12434,8 +26185,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUserCreate); i { + file_cardchain_cardchain_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardDonate); i { case 0: return &v.state case 1: @@ -12446,8 +26197,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUserCreateResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardDonateResponse); i { case 0: return &v.state case 1: @@ -12458,8 +26209,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSchemeBuy); i { + file_cardchain_cardchain_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardArtworkAdd); i { case 0: return &v.state case 1: @@ -12470,8 +26221,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSchemeBuyResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardArtworkAddResponse); i { case 0: return &v.state case 1: @@ -12482,8 +26233,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSaveContent); i { + file_cardchain_cardchain_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardArtistChange); i { case 0: return &v.state case 1: @@ -12494,8 +26245,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSaveContentResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCardArtistChangeResponse); i { case 0: return &v.state case 1: @@ -12506,8 +26257,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardVote); i { + file_cardchain_cardchain_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCouncilRegister); i { case 0: return &v.state case 1: @@ -12518,8 +26269,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardVoteResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCouncilRegisterResponse); i { case 0: return &v.state case 1: @@ -12530,8 +26281,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardTransfer); i { + file_cardchain_cardchain_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCouncilDeregister); i { case 0: return &v.state case 1: @@ -12542,8 +26293,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardTransferResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCouncilDeregisterResponse); i { case 0: return &v.state case 1: @@ -12554,8 +26305,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardDonate); i { + file_cardchain_cardchain_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgMatchReport); i { case 0: return &v.state case 1: @@ -12566,8 +26317,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardDonateResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgMatchReportResponse); i { case 0: return &v.state case 1: @@ -12578,8 +26329,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtworkAdd); i { + file_cardchain_cardchain_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCouncilCreate); i { case 0: return &v.state case 1: @@ -12590,8 +26341,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtworkAddResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCouncilCreateResponse); i { case 0: return &v.state case 1: @@ -12602,8 +26353,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtistChange); i { + file_cardchain_cardchain_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgMatchReporterAppoint); i { case 0: return &v.state case 1: @@ -12614,8 +26365,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtistChangeResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgMatchReporterAppointResponse); i { case 0: return &v.state case 1: @@ -12626,8 +26377,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilRegister); i { + file_cardchain_cardchain_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetCreate); i { case 0: return &v.state case 1: @@ -12638,8 +26389,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilRegisterResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetCreateResponse); i { case 0: return &v.state case 1: @@ -12650,8 +26401,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilDeregister); i { + file_cardchain_cardchain_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetCardAdd); i { case 0: return &v.state case 1: @@ -12662,8 +26413,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilDeregisterResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetCardAddResponse); i { case 0: return &v.state case 1: @@ -12674,8 +26425,8 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchReport); i { + file_cardchain_cardchain_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetCardRemove); i { case 0: return &v.state case 1: @@ -12686,8 +26437,224 @@ func file_cardchain_cardchain_tx_proto_init() { return nil } } - file_cardchain_cardchain_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchReportResponse); i { + file_cardchain_cardchain_tx_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetCardRemoveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetContributorAdd); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetContributorAddResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetContributorRemove); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetContributorRemoveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetFinalize); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetFinalizeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetArtworkAdd); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetArtworkAddResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetStoryAdd); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetStoryAddResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgBoosterPackBuy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgBoosterPackBuyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSellOfferCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSellOfferCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSellOfferBuy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSellOfferBuyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSellOfferRemove); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_tx_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSellOfferRemoveResponse); i { case 0: return &v.state case 1: @@ -12705,7 +26672,7 @@ func file_cardchain_cardchain_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cardchain_cardchain_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 24, + NumMessages: 52, NumExtensions: 0, NumServices: 1, }, diff --git a/api/cardchain/cardchain/tx_grpc.pb.go b/api/cardchain/cardchain/tx_grpc.pb.go index f869c5ee..a6f4140a 100644 --- a/api/cardchain/cardchain/tx_grpc.pb.go +++ b/api/cardchain/cardchain/tx_grpc.pb.go @@ -19,18 +19,32 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_UpdateParams_FullMethodName = "/cardchain.cardchain.Msg/UpdateParams" - Msg_UserCreate_FullMethodName = "/cardchain.cardchain.Msg/UserCreate" - Msg_CardSchemeBuy_FullMethodName = "/cardchain.cardchain.Msg/CardSchemeBuy" - Msg_CardSaveContent_FullMethodName = "/cardchain.cardchain.Msg/CardSaveContent" - Msg_CardVote_FullMethodName = "/cardchain.cardchain.Msg/CardVote" - Msg_CardTransfer_FullMethodName = "/cardchain.cardchain.Msg/CardTransfer" - Msg_CardDonate_FullMethodName = "/cardchain.cardchain.Msg/CardDonate" - Msg_CardArtworkAdd_FullMethodName = "/cardchain.cardchain.Msg/CardArtworkAdd" - Msg_CardArtistChange_FullMethodName = "/cardchain.cardchain.Msg/CardArtistChange" - Msg_CouncilRegister_FullMethodName = "/cardchain.cardchain.Msg/CouncilRegister" - Msg_CouncilDeregister_FullMethodName = "/cardchain.cardchain.Msg/CouncilDeregister" - Msg_MatchReport_FullMethodName = "/cardchain.cardchain.Msg/MatchReport" + Msg_UpdateParams_FullMethodName = "/cardchain.cardchain.Msg/UpdateParams" + Msg_UserCreate_FullMethodName = "/cardchain.cardchain.Msg/UserCreate" + Msg_CardSchemeBuy_FullMethodName = "/cardchain.cardchain.Msg/CardSchemeBuy" + Msg_CardSaveContent_FullMethodName = "/cardchain.cardchain.Msg/CardSaveContent" + Msg_CardVote_FullMethodName = "/cardchain.cardchain.Msg/CardVote" + Msg_CardTransfer_FullMethodName = "/cardchain.cardchain.Msg/CardTransfer" + Msg_CardDonate_FullMethodName = "/cardchain.cardchain.Msg/CardDonate" + Msg_CardArtworkAdd_FullMethodName = "/cardchain.cardchain.Msg/CardArtworkAdd" + Msg_CardArtistChange_FullMethodName = "/cardchain.cardchain.Msg/CardArtistChange" + Msg_CouncilRegister_FullMethodName = "/cardchain.cardchain.Msg/CouncilRegister" + Msg_CouncilDeregister_FullMethodName = "/cardchain.cardchain.Msg/CouncilDeregister" + Msg_MatchReport_FullMethodName = "/cardchain.cardchain.Msg/MatchReport" + Msg_CouncilCreate_FullMethodName = "/cardchain.cardchain.Msg/CouncilCreate" + Msg_MatchReporterAppoint_FullMethodName = "/cardchain.cardchain.Msg/MatchReporterAppoint" + Msg_SetCreate_FullMethodName = "/cardchain.cardchain.Msg/SetCreate" + Msg_SetCardAdd_FullMethodName = "/cardchain.cardchain.Msg/SetCardAdd" + Msg_SetCardRemove_FullMethodName = "/cardchain.cardchain.Msg/SetCardRemove" + Msg_SetContributorAdd_FullMethodName = "/cardchain.cardchain.Msg/SetContributorAdd" + Msg_SetContributorRemove_FullMethodName = "/cardchain.cardchain.Msg/SetContributorRemove" + Msg_SetFinalize_FullMethodName = "/cardchain.cardchain.Msg/SetFinalize" + Msg_SetArtworkAdd_FullMethodName = "/cardchain.cardchain.Msg/SetArtworkAdd" + Msg_SetStoryAdd_FullMethodName = "/cardchain.cardchain.Msg/SetStoryAdd" + Msg_BoosterPackBuy_FullMethodName = "/cardchain.cardchain.Msg/BoosterPackBuy" + Msg_SellOfferCreate_FullMethodName = "/cardchain.cardchain.Msg/SellOfferCreate" + Msg_SellOfferBuy_FullMethodName = "/cardchain.cardchain.Msg/SellOfferBuy" + Msg_SellOfferRemove_FullMethodName = "/cardchain.cardchain.Msg/SellOfferRemove" ) // MsgClient is the client API for Msg service. @@ -51,6 +65,20 @@ type MsgClient interface { CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) + CouncilCreate(ctx context.Context, in *MsgCouncilCreate, opts ...grpc.CallOption) (*MsgCouncilCreateResponse, error) + MatchReporterAppoint(ctx context.Context, in *MsgMatchReporterAppoint, opts ...grpc.CallOption) (*MsgMatchReporterAppointResponse, error) + SetCreate(ctx context.Context, in *MsgSetCreate, opts ...grpc.CallOption) (*MsgSetCreateResponse, error) + SetCardAdd(ctx context.Context, in *MsgSetCardAdd, opts ...grpc.CallOption) (*MsgSetCardAddResponse, error) + SetCardRemove(ctx context.Context, in *MsgSetCardRemove, opts ...grpc.CallOption) (*MsgSetCardRemoveResponse, error) + SetContributorAdd(ctx context.Context, in *MsgSetContributorAdd, opts ...grpc.CallOption) (*MsgSetContributorAddResponse, error) + SetContributorRemove(ctx context.Context, in *MsgSetContributorRemove, opts ...grpc.CallOption) (*MsgSetContributorRemoveResponse, error) + SetFinalize(ctx context.Context, in *MsgSetFinalize, opts ...grpc.CallOption) (*MsgSetFinalizeResponse, error) + SetArtworkAdd(ctx context.Context, in *MsgSetArtworkAdd, opts ...grpc.CallOption) (*MsgSetArtworkAddResponse, error) + SetStoryAdd(ctx context.Context, in *MsgSetStoryAdd, opts ...grpc.CallOption) (*MsgSetStoryAddResponse, error) + BoosterPackBuy(ctx context.Context, in *MsgBoosterPackBuy, opts ...grpc.CallOption) (*MsgBoosterPackBuyResponse, error) + SellOfferCreate(ctx context.Context, in *MsgSellOfferCreate, opts ...grpc.CallOption) (*MsgSellOfferCreateResponse, error) + SellOfferBuy(ctx context.Context, in *MsgSellOfferBuy, opts ...grpc.CallOption) (*MsgSellOfferBuyResponse, error) + SellOfferRemove(ctx context.Context, in *MsgSellOfferRemove, opts ...grpc.CallOption) (*MsgSellOfferRemoveResponse, error) } type msgClient struct { @@ -169,6 +197,132 @@ func (c *msgClient) MatchReport(ctx context.Context, in *MsgMatchReport, opts .. return out, nil } +func (c *msgClient) CouncilCreate(ctx context.Context, in *MsgCouncilCreate, opts ...grpc.CallOption) (*MsgCouncilCreateResponse, error) { + out := new(MsgCouncilCreateResponse) + err := c.cc.Invoke(ctx, Msg_CouncilCreate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) MatchReporterAppoint(ctx context.Context, in *MsgMatchReporterAppoint, opts ...grpc.CallOption) (*MsgMatchReporterAppointResponse, error) { + out := new(MsgMatchReporterAppointResponse) + err := c.cc.Invoke(ctx, Msg_MatchReporterAppoint_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetCreate(ctx context.Context, in *MsgSetCreate, opts ...grpc.CallOption) (*MsgSetCreateResponse, error) { + out := new(MsgSetCreateResponse) + err := c.cc.Invoke(ctx, Msg_SetCreate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetCardAdd(ctx context.Context, in *MsgSetCardAdd, opts ...grpc.CallOption) (*MsgSetCardAddResponse, error) { + out := new(MsgSetCardAddResponse) + err := c.cc.Invoke(ctx, Msg_SetCardAdd_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetCardRemove(ctx context.Context, in *MsgSetCardRemove, opts ...grpc.CallOption) (*MsgSetCardRemoveResponse, error) { + out := new(MsgSetCardRemoveResponse) + err := c.cc.Invoke(ctx, Msg_SetCardRemove_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetContributorAdd(ctx context.Context, in *MsgSetContributorAdd, opts ...grpc.CallOption) (*MsgSetContributorAddResponse, error) { + out := new(MsgSetContributorAddResponse) + err := c.cc.Invoke(ctx, Msg_SetContributorAdd_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetContributorRemove(ctx context.Context, in *MsgSetContributorRemove, opts ...grpc.CallOption) (*MsgSetContributorRemoveResponse, error) { + out := new(MsgSetContributorRemoveResponse) + err := c.cc.Invoke(ctx, Msg_SetContributorRemove_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetFinalize(ctx context.Context, in *MsgSetFinalize, opts ...grpc.CallOption) (*MsgSetFinalizeResponse, error) { + out := new(MsgSetFinalizeResponse) + err := c.cc.Invoke(ctx, Msg_SetFinalize_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetArtworkAdd(ctx context.Context, in *MsgSetArtworkAdd, opts ...grpc.CallOption) (*MsgSetArtworkAddResponse, error) { + out := new(MsgSetArtworkAddResponse) + err := c.cc.Invoke(ctx, Msg_SetArtworkAdd_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetStoryAdd(ctx context.Context, in *MsgSetStoryAdd, opts ...grpc.CallOption) (*MsgSetStoryAddResponse, error) { + out := new(MsgSetStoryAddResponse) + err := c.cc.Invoke(ctx, Msg_SetStoryAdd_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) BoosterPackBuy(ctx context.Context, in *MsgBoosterPackBuy, opts ...grpc.CallOption) (*MsgBoosterPackBuyResponse, error) { + out := new(MsgBoosterPackBuyResponse) + err := c.cc.Invoke(ctx, Msg_BoosterPackBuy_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SellOfferCreate(ctx context.Context, in *MsgSellOfferCreate, opts ...grpc.CallOption) (*MsgSellOfferCreateResponse, error) { + out := new(MsgSellOfferCreateResponse) + err := c.cc.Invoke(ctx, Msg_SellOfferCreate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SellOfferBuy(ctx context.Context, in *MsgSellOfferBuy, opts ...grpc.CallOption) (*MsgSellOfferBuyResponse, error) { + out := new(MsgSellOfferBuyResponse) + err := c.cc.Invoke(ctx, Msg_SellOfferBuy_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SellOfferRemove(ctx context.Context, in *MsgSellOfferRemove, opts ...grpc.CallOption) (*MsgSellOfferRemoveResponse, error) { + out := new(MsgSellOfferRemoveResponse) + err := c.cc.Invoke(ctx, Msg_SellOfferRemove_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. // All implementations must embed UnimplementedMsgServer // for forward compatibility @@ -187,6 +341,20 @@ type MsgServer interface { CouncilRegister(context.Context, *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) CouncilDeregister(context.Context, *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) MatchReport(context.Context, *MsgMatchReport) (*MsgMatchReportResponse, error) + CouncilCreate(context.Context, *MsgCouncilCreate) (*MsgCouncilCreateResponse, error) + MatchReporterAppoint(context.Context, *MsgMatchReporterAppoint) (*MsgMatchReporterAppointResponse, error) + SetCreate(context.Context, *MsgSetCreate) (*MsgSetCreateResponse, error) + SetCardAdd(context.Context, *MsgSetCardAdd) (*MsgSetCardAddResponse, error) + SetCardRemove(context.Context, *MsgSetCardRemove) (*MsgSetCardRemoveResponse, error) + SetContributorAdd(context.Context, *MsgSetContributorAdd) (*MsgSetContributorAddResponse, error) + SetContributorRemove(context.Context, *MsgSetContributorRemove) (*MsgSetContributorRemoveResponse, error) + SetFinalize(context.Context, *MsgSetFinalize) (*MsgSetFinalizeResponse, error) + SetArtworkAdd(context.Context, *MsgSetArtworkAdd) (*MsgSetArtworkAddResponse, error) + SetStoryAdd(context.Context, *MsgSetStoryAdd) (*MsgSetStoryAddResponse, error) + BoosterPackBuy(context.Context, *MsgBoosterPackBuy) (*MsgBoosterPackBuyResponse, error) + SellOfferCreate(context.Context, *MsgSellOfferCreate) (*MsgSellOfferCreateResponse, error) + SellOfferBuy(context.Context, *MsgSellOfferBuy) (*MsgSellOfferBuyResponse, error) + SellOfferRemove(context.Context, *MsgSellOfferRemove) (*MsgSellOfferRemoveResponse, error) mustEmbedUnimplementedMsgServer() } @@ -230,6 +398,48 @@ func (UnimplementedMsgServer) CouncilDeregister(context.Context, *MsgCouncilDere func (UnimplementedMsgServer) MatchReport(context.Context, *MsgMatchReport) (*MsgMatchReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method MatchReport not implemented") } +func (UnimplementedMsgServer) CouncilCreate(context.Context, *MsgCouncilCreate) (*MsgCouncilCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CouncilCreate not implemented") +} +func (UnimplementedMsgServer) MatchReporterAppoint(context.Context, *MsgMatchReporterAppoint) (*MsgMatchReporterAppointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MatchReporterAppoint not implemented") +} +func (UnimplementedMsgServer) SetCreate(context.Context, *MsgSetCreate) (*MsgSetCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCreate not implemented") +} +func (UnimplementedMsgServer) SetCardAdd(context.Context, *MsgSetCardAdd) (*MsgSetCardAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCardAdd not implemented") +} +func (UnimplementedMsgServer) SetCardRemove(context.Context, *MsgSetCardRemove) (*MsgSetCardRemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCardRemove not implemented") +} +func (UnimplementedMsgServer) SetContributorAdd(context.Context, *MsgSetContributorAdd) (*MsgSetContributorAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetContributorAdd not implemented") +} +func (UnimplementedMsgServer) SetContributorRemove(context.Context, *MsgSetContributorRemove) (*MsgSetContributorRemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetContributorRemove not implemented") +} +func (UnimplementedMsgServer) SetFinalize(context.Context, *MsgSetFinalize) (*MsgSetFinalizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetFinalize not implemented") +} +func (UnimplementedMsgServer) SetArtworkAdd(context.Context, *MsgSetArtworkAdd) (*MsgSetArtworkAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetArtworkAdd not implemented") +} +func (UnimplementedMsgServer) SetStoryAdd(context.Context, *MsgSetStoryAdd) (*MsgSetStoryAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetStoryAdd not implemented") +} +func (UnimplementedMsgServer) BoosterPackBuy(context.Context, *MsgBoosterPackBuy) (*MsgBoosterPackBuyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoosterPackBuy not implemented") +} +func (UnimplementedMsgServer) SellOfferCreate(context.Context, *MsgSellOfferCreate) (*MsgSellOfferCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SellOfferCreate not implemented") +} +func (UnimplementedMsgServer) SellOfferBuy(context.Context, *MsgSellOfferBuy) (*MsgSellOfferBuyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SellOfferBuy not implemented") +} +func (UnimplementedMsgServer) SellOfferRemove(context.Context, *MsgSellOfferRemove) (*MsgSellOfferRemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SellOfferRemove not implemented") +} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -459,6 +669,258 @@ func _Msg_MatchReport_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } +func _Msg_CouncilCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCouncilCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CouncilCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CouncilCreate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CouncilCreate(ctx, req.(*MsgCouncilCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_MatchReporterAppoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMatchReporterAppoint) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MatchReporterAppoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_MatchReporterAppoint_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MatchReporterAppoint(ctx, req.(*MsgMatchReporterAppoint)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetCreate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCreate(ctx, req.(*MsgSetCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCardAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCardAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCardAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetCardAdd_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCardAdd(ctx, req.(*MsgSetCardAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCardRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCardRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCardRemove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetCardRemove_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCardRemove(ctx, req.(*MsgSetCardRemove)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetContributorAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetContributorAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetContributorAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetContributorAdd_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetContributorAdd(ctx, req.(*MsgSetContributorAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetContributorRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetContributorRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetContributorRemove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetContributorRemove_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetContributorRemove(ctx, req.(*MsgSetContributorRemove)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetFinalize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetFinalize) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetFinalize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetFinalize_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetFinalize(ctx, req.(*MsgSetFinalize)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetArtworkAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetArtworkAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetArtworkAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetArtworkAdd_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetArtworkAdd(ctx, req.(*MsgSetArtworkAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetStoryAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetStoryAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetStoryAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetStoryAdd_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetStoryAdd(ctx, req.(*MsgSetStoryAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_BoosterPackBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBoosterPackBuy) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BoosterPackBuy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_BoosterPackBuy_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BoosterPackBuy(ctx, req.(*MsgBoosterPackBuy)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SellOfferCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSellOfferCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SellOfferCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SellOfferCreate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SellOfferCreate(ctx, req.(*MsgSellOfferCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SellOfferBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSellOfferBuy) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SellOfferBuy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SellOfferBuy_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SellOfferBuy(ctx, req.(*MsgSellOfferBuy)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SellOfferRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSellOfferRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SellOfferRemove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SellOfferRemove_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SellOfferRemove(ctx, req.(*MsgSellOfferRemove)) + } + return interceptor(ctx, in, info, handler) +} + // Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -514,6 +976,62 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "MatchReport", Handler: _Msg_MatchReport_Handler, }, + { + MethodName: "CouncilCreate", + Handler: _Msg_CouncilCreate_Handler, + }, + { + MethodName: "MatchReporterAppoint", + Handler: _Msg_MatchReporterAppoint_Handler, + }, + { + MethodName: "SetCreate", + Handler: _Msg_SetCreate_Handler, + }, + { + MethodName: "SetCardAdd", + Handler: _Msg_SetCardAdd_Handler, + }, + { + MethodName: "SetCardRemove", + Handler: _Msg_SetCardRemove_Handler, + }, + { + MethodName: "SetContributorAdd", + Handler: _Msg_SetContributorAdd_Handler, + }, + { + MethodName: "SetContributorRemove", + Handler: _Msg_SetContributorRemove_Handler, + }, + { + MethodName: "SetFinalize", + Handler: _Msg_SetFinalize_Handler, + }, + { + MethodName: "SetArtworkAdd", + Handler: _Msg_SetArtworkAdd_Handler, + }, + { + MethodName: "SetStoryAdd", + Handler: _Msg_SetStoryAdd_Handler, + }, + { + MethodName: "BoosterPackBuy", + Handler: _Msg_BoosterPackBuy_Handler, + }, + { + MethodName: "SellOfferCreate", + Handler: _Msg_SellOfferCreate_Handler, + }, + { + MethodName: "SellOfferBuy", + Handler: _Msg_SellOfferBuy_Handler, + }, + { + MethodName: "SellOfferRemove", + Handler: _Msg_SellOfferRemove_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "cardchain/cardchain/tx.proto", diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 5de94ccc..6f7f4712 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -1 +1 @@ -{"id":"github.com/DecentralCardGame/cardchain","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain github.com/DecentralCardGame/cardchain REST API","title":"HTTP API Console","contact":{"name":"github.com/DecentralCardGame/cardchain"},"version":"version not set"},"paths":{"/DecentralCardGame/cardchain/cardchain/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubComDecentralCardGamecardchainQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtistChange":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtistChange","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChange"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChangeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtworkAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtworkAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardDonate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardDonate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSaveContent":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSaveContent","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContent"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContentResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSchemeBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSchemeBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardTransfer":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardVote":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardVote","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilDeregister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilDeregister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilRegister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilRegister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchReport":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchReport","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReport"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReportResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubComDecentralCardGamecardchainMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UserCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_UserCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"cardchain.cardchain.MsgCardArtistChange":{"type":"object","properties":{"artist":{"type":"string"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardArtistChangeResponse":{"type":"object"},"cardchain.cardchain.MsgCardArtworkAdd":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"fullArt":{"type":"boolean"},"image":{"type":"string","format":"byte"}}},"cardchain.cardchain.MsgCardArtworkAddResponse":{"type":"object"},"cardchain.cardchain.MsgCardDonate":{"type":"object","properties":{"amount":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardDonateResponse":{"type":"object"},"cardchain.cardchain.MsgCardSaveContent":{"type":"object","properties":{"artist":{"type":"string"},"balanceAnchor":{"type":"boolean"},"cardId":{"type":"string","format":"uint64"},"content":{"type":"string","format":"byte"},"creator":{"type":"string"},"notes":{"type":"string"}}},"cardchain.cardchain.MsgCardSaveContentResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCardSchemeBuy":{"type":"object","properties":{"bid":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardSchemeBuyResponse":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardTransfer":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"receiver":{"type":"string"}}},"cardchain.cardchain.MsgCardTransferResponse":{"type":"object"},"cardchain.cardchain.MsgCardVote":{"type":"object","properties":{"creator":{"type":"string"},"vote":{"$ref":"#/definitions/cardchain.cardchain.SingleVote"}}},"cardchain.cardchain.MsgCardVoteResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCouncilDeregister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilDeregisterResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilRegister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilRegisterResponse":{"type":"object"},"cardchain.cardchain.MsgMatchReport":{"type":"object","properties":{"creator":{"type":"string"},"matchId":{"type":"string","format":"uint64"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playedCardsA":{"type":"array","items":{"type":"string","format":"uint64"}},"playedCardsB":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgMatchReportResponse":{"type":"object"},"cardchain.cardchain.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless\noverwritten).","type":"string"},"params":{"description":"NOTE: All parameters must be supplied.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cardchain.cardchain.MsgUserCreate":{"type":"object","properties":{"alias":{"type":"string"},"creator":{"type":"string"},"newUser":{"type":"string"}}},"cardchain.cardchain.MsgUserCreateResponse":{"type":"object"},"cardchain.cardchain.Outcome":{"type":"string","default":"AWon","enum":["AWon","BWon","Draw","Aborted"]},"cardchain.cardchain.Params":{"description":"Params defines the parameters for the module.","type":"object"},"cardchain.cardchain.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.SingleVote":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"voteType":{"$ref":"#/definitions/cardchain.cardchain.VoteType"}}},"cardchain.cardchain.VoteType":{"type":"string","default":"fairEnough","enum":["fairEnough","inappropriate","overpowered","underpowered"]},"cosmos.base.v1beta1.Coin":{"description":"Coin defines a token with a denomination and an amount.\n\nNOTE: The amount field is an Int which implements the custom method\nsignatures required by gogoproto.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"}}},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}}},"tags":[{"name":"Query"},{"name":"Msg"}]} \ No newline at end of file +{"id":"github.com/DecentralCardGame/cardchain","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain github.com/DecentralCardGame/cardchain REST API","title":"HTTP API Console","contact":{"name":"github.com/DecentralCardGame/cardchain"},"version":"version not set"},"paths":{"/DecentralCardGame/cardchain/cardchain/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubComDecentralCardGamecardchainQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/BoosterPackBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_BoosterPackBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtistChange":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtistChange","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChange"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChangeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtworkAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtworkAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardDonate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardDonate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSaveContent":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSaveContent","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContent"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContentResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSchemeBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSchemeBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardTransfer":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardVote":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardVote","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilDeregister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilDeregister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilRegister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilRegister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchReport":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchReport","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReport"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReportResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchReporterAppoint":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchReporterAppoint","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReporterAppoint"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReporterAppointResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetArtworkAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetArtworkAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtworkAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtworkAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCardAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCardAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCardRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCardRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetContributorAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetContributorAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetContributorRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetContributorRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetFinalize":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetFinalize","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetFinalize"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetFinalizeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetStoryAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetStoryAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubComDecentralCardGamecardchainMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UserCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_UserCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"cardchain.cardchain.MsgBoosterPackBuy":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgBoosterPackBuyResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCardArtistChange":{"type":"object","properties":{"artist":{"type":"string"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardArtistChangeResponse":{"type":"object"},"cardchain.cardchain.MsgCardArtworkAdd":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"fullArt":{"type":"boolean"},"image":{"type":"string","format":"byte"}}},"cardchain.cardchain.MsgCardArtworkAddResponse":{"type":"object"},"cardchain.cardchain.MsgCardDonate":{"type":"object","properties":{"amount":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardDonateResponse":{"type":"object"},"cardchain.cardchain.MsgCardSaveContent":{"type":"object","properties":{"artist":{"type":"string"},"balanceAnchor":{"type":"boolean"},"cardId":{"type":"string","format":"uint64"},"content":{"type":"string","format":"byte"},"creator":{"type":"string"},"notes":{"type":"string"}}},"cardchain.cardchain.MsgCardSaveContentResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCardSchemeBuy":{"type":"object","properties":{"bid":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardSchemeBuyResponse":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardTransfer":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"receiver":{"type":"string"}}},"cardchain.cardchain.MsgCardTransferResponse":{"type":"object"},"cardchain.cardchain.MsgCardVote":{"type":"object","properties":{"creator":{"type":"string"},"vote":{"$ref":"#/definitions/cardchain.cardchain.SingleVote"}}},"cardchain.cardchain.MsgCardVoteResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCouncilCreate":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilCreateResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilDeregister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilDeregisterResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilRegister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilRegisterResponse":{"type":"object"},"cardchain.cardchain.MsgMatchReport":{"type":"object","properties":{"creator":{"type":"string"},"matchId":{"type":"string","format":"uint64"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playedCardsA":{"type":"array","items":{"type":"string","format":"uint64"}},"playedCardsB":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgMatchReportResponse":{"type":"object"},"cardchain.cardchain.MsgMatchReporterAppoint":{"type":"object","properties":{"creator":{"type":"string"},"reporter":{"type":"string"}}},"cardchain.cardchain.MsgMatchReporterAppointResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferBuy":{"type":"object","properties":{"creator":{"type":"string"},"sellOfferId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSellOfferBuyResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferCreate":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"price":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"cardchain.cardchain.MsgSellOfferCreateResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferRemove":{"type":"object","properties":{"creator":{"type":"string"},"sellOfferId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSellOfferRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetArtworkAdd":{"type":"object","properties":{"creator":{"type":"string"},"image":{"type":"string","format":"byte"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetArtworkAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetCardAdd":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetCardAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetCardRemove":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetCardRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetContributorAdd":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgSetContributorAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetContributorRemove":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgSetContributorRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetCreate":{"type":"object","properties":{"artist":{"type":"string"},"contributors":{"type":"array","items":{"type":"string"}},"creator":{"type":"string"},"name":{"type":"string"},"storyWriter":{"type":"string"}}},"cardchain.cardchain.MsgSetCreateResponse":{"type":"object"},"cardchain.cardchain.MsgSetFinalize":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetFinalizeResponse":{"type":"object"},"cardchain.cardchain.MsgSetStoryAdd":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"story":{"type":"string"}}},"cardchain.cardchain.MsgSetStoryAddResponse":{"type":"object"},"cardchain.cardchain.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless\noverwritten).","type":"string"},"params":{"description":"NOTE: All parameters must be supplied.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cardchain.cardchain.MsgUserCreate":{"type":"object","properties":{"alias":{"type":"string"},"creator":{"type":"string"},"newUser":{"type":"string"}}},"cardchain.cardchain.MsgUserCreateResponse":{"type":"object"},"cardchain.cardchain.Outcome":{"type":"string","default":"AWon","enum":["AWon","BWon","Draw","Aborted"]},"cardchain.cardchain.Params":{"description":"Params defines the parameters for the module.","type":"object"},"cardchain.cardchain.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.SingleVote":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"voteType":{"$ref":"#/definitions/cardchain.cardchain.VoteType"}}},"cardchain.cardchain.VoteType":{"type":"string","default":"fairEnough","enum":["fairEnough","inappropriate","overpowered","underpowered"]},"cosmos.base.v1beta1.Coin":{"description":"Coin defines a token with a denomination and an amount.\n\nNOTE: The amount field is an Int which implements the custom method\nsignatures required by gogoproto.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"}}},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}}},"tags":[{"name":"Query"},{"name":"Msg"}]} \ No newline at end of file diff --git a/gen.sh b/gen.sh index 21ff1dda..555087bf 100755 --- a/gen.sh +++ b/gen.sh @@ -10,5 +10,19 @@ #ignite scaffold message CardArtistChange cardId:uint artist:string #ignite scaffold message CouncilRegister #ignite scaffold message CouncilDeregister -ignite scaffold message MatchReport matchId:uint playedCardsA:uints \ - playedCardsB:uints outcome:int +#ignite scaffold message MatchReport matchId:uint playedCardsA:uints \ +# playedCardsB:uints outcome:int +ignite scaffold message CouncilCreate cardId:uint +ignite scaffold message MatchReporterAppoint reporter:string +ignite scaffold message SetCreate name artist storyWriter contributors:strings +ignite scaffold message SetCardAdd setId:uint cardId:uint +ignite scaffold message SetCardRemove setId:uint cardId:uint +ignite scaffold message SetContributorAdd setId:uint user +ignite scaffold message SetContributorRemove setId:uint user +ignite scaffold message SetFinalize setId:uint +ignite scaffold message SetArtworkAdd setId:uint image +ignite scaffold message SetStoryAdd setId:uint story +ignite scaffold message BoosterPackBuy setId:uint --response airdropClaimed:bool +ignite scaffold message SellOfferCreate cardId:uint price:coin +ignite scaffold message SellOfferBuy sellOfferId:uint +ignite scaffold message SellOfferRemove sellOfferId:uint diff --git a/proto/cardchain/cardchain/tx.proto b/proto/cardchain/cardchain/tx.proto index 344a5be0..11af7527 100644 --- a/proto/cardchain/cardchain/tx.proto +++ b/proto/cardchain/cardchain/tx.proto @@ -33,6 +33,23 @@ service Msg { rpc CouncilDeregister(MsgCouncilDeregister) returns (MsgCouncilDeregisterResponse); rpc MatchReport(MsgMatchReport) returns (MsgMatchReportResponse); + rpc CouncilCreate(MsgCouncilCreate) returns (MsgCouncilCreateResponse); + rpc MatchReporterAppoint(MsgMatchReporterAppoint) + returns (MsgMatchReporterAppointResponse); + rpc SetCreate(MsgSetCreate) returns (MsgSetCreateResponse); + rpc SetCardAdd(MsgSetCardAdd) returns (MsgSetCardAddResponse); + rpc SetCardRemove(MsgSetCardRemove) returns (MsgSetCardRemoveResponse); + rpc SetContributorAdd(MsgSetContributorAdd) + returns (MsgSetContributorAddResponse); + rpc SetContributorRemove(MsgSetContributorRemove) + returns (MsgSetContributorRemoveResponse); + rpc SetFinalize(MsgSetFinalize) returns (MsgSetFinalizeResponse); + rpc SetArtworkAdd(MsgSetArtworkAdd) returns (MsgSetArtworkAddResponse); + rpc SetStoryAdd(MsgSetStoryAdd) returns (MsgSetStoryAddResponse); + rpc BoosterPackBuy(MsgBoosterPackBuy) returns (MsgBoosterPackBuyResponse); + rpc SellOfferCreate(MsgSellOfferCreate) returns (MsgSellOfferCreateResponse); + rpc SellOfferBuy(MsgSellOfferBuy) returns (MsgSellOfferBuyResponse); + rpc SellOfferRemove(MsgSellOfferRemove) returns (MsgSellOfferRemoveResponse); } // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { @@ -152,3 +169,125 @@ message MsgMatchReport { } message MsgMatchReportResponse {} + +message MsgCouncilCreate { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 cardId = 2; +} + +message MsgCouncilCreateResponse {} + +message MsgMatchReporterAppoint { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + string reporter = 2; +} + +message MsgMatchReporterAppointResponse {} + +message MsgSetCreate { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + string name = 2; + string artist = 3; + string storyWriter = 4; + repeated string contributors = 5; +} + +message MsgSetCreateResponse {} + +message MsgSetCardAdd { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; + uint64 cardId = 3; +} + +message MsgSetCardAddResponse {} + +message MsgSetCardRemove { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; + uint64 cardId = 3; +} + +message MsgSetCardRemoveResponse {} + +message MsgSetContributorAdd { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; + string user = 3; +} + +message MsgSetContributorAddResponse {} + +message MsgSetContributorRemove { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; + string user = 3; +} + +message MsgSetContributorRemoveResponse {} + +message MsgSetFinalize { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; +} + +message MsgSetFinalizeResponse {} + +message MsgSetArtworkAdd { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; + bytes image = 3; +} + +message MsgSetArtworkAddResponse {} + +message MsgSetStoryAdd { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; + string story = 3; +} + +message MsgSetStoryAddResponse {} + +message MsgBoosterPackBuy { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 setId = 2; +} + +message MsgBoosterPackBuyResponse { bool airdropClaimed = 1; } + +message MsgSellOfferCreate { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 cardId = 2; + cosmos.base.v1beta1.Coin price = 3 [ (gogoproto.nullable) = false ]; +} + +message MsgSellOfferCreateResponse {} + +message MsgSellOfferBuy { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 sellOfferId = 2; +} + +message MsgSellOfferBuyResponse {} + +message MsgSellOfferRemove { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 sellOfferId = 2; +} + +message MsgSellOfferRemoveResponse {} diff --git a/x/cardchain/keeper/msg_server_booster_pack_buy.go b/x/cardchain/keeper/msg_server_booster_pack_buy.go new file mode 100644 index 00000000..baa74fc6 --- /dev/null +++ b/x/cardchain/keeper/msg_server_booster_pack_buy.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) BoosterPackBuy(goCtx context.Context, msg *types.MsgBoosterPackBuy) (*types.MsgBoosterPackBuyResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgBoosterPackBuyResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_council_create.go b/x/cardchain/keeper/msg_server_council_create.go new file mode 100644 index 00000000..9881a5b5 --- /dev/null +++ b/x/cardchain/keeper/msg_server_council_create.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) CouncilCreate(goCtx context.Context, msg *types.MsgCouncilCreate) (*types.MsgCouncilCreateResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgCouncilCreateResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_match_reporter_appoint.go b/x/cardchain/keeper/msg_server_match_reporter_appoint.go new file mode 100644 index 00000000..510ab86a --- /dev/null +++ b/x/cardchain/keeper/msg_server_match_reporter_appoint.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) MatchReporterAppoint(goCtx context.Context, msg *types.MsgMatchReporterAppoint) (*types.MsgMatchReporterAppointResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgMatchReporterAppointResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_sell_offer_buy.go b/x/cardchain/keeper/msg_server_sell_offer_buy.go new file mode 100644 index 00000000..0da02399 --- /dev/null +++ b/x/cardchain/keeper/msg_server_sell_offer_buy.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SellOfferBuy(goCtx context.Context, msg *types.MsgSellOfferBuy) (*types.MsgSellOfferBuyResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSellOfferBuyResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_sell_offer_create.go b/x/cardchain/keeper/msg_server_sell_offer_create.go new file mode 100644 index 00000000..9dbfdc2e --- /dev/null +++ b/x/cardchain/keeper/msg_server_sell_offer_create.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SellOfferCreate(goCtx context.Context, msg *types.MsgSellOfferCreate) (*types.MsgSellOfferCreateResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSellOfferCreateResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_sell_offer_remove.go b/x/cardchain/keeper/msg_server_sell_offer_remove.go new file mode 100644 index 00000000..399e0c72 --- /dev/null +++ b/x/cardchain/keeper/msg_server_sell_offer_remove.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SellOfferRemove(goCtx context.Context, msg *types.MsgSellOfferRemove) (*types.MsgSellOfferRemoveResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSellOfferRemoveResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_artwork_add.go b/x/cardchain/keeper/msg_server_set_artwork_add.go new file mode 100644 index 00000000..9ae35a6c --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_artwork_add.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetArtworkAdd(goCtx context.Context, msg *types.MsgSetArtworkAdd) (*types.MsgSetArtworkAddResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetArtworkAddResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_card_add.go b/x/cardchain/keeper/msg_server_set_card_add.go new file mode 100644 index 00000000..738c9cae --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_card_add.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetCardAdd(goCtx context.Context, msg *types.MsgSetCardAdd) (*types.MsgSetCardAddResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetCardAddResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_card_remove.go b/x/cardchain/keeper/msg_server_set_card_remove.go new file mode 100644 index 00000000..ae98edfa --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_card_remove.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetCardRemove(goCtx context.Context, msg *types.MsgSetCardRemove) (*types.MsgSetCardRemoveResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetCardRemoveResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_contributor_add.go b/x/cardchain/keeper/msg_server_set_contributor_add.go new file mode 100644 index 00000000..c7ee4eae --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_contributor_add.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetContributorAdd(goCtx context.Context, msg *types.MsgSetContributorAdd) (*types.MsgSetContributorAddResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetContributorAddResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_contributor_remove.go b/x/cardchain/keeper/msg_server_set_contributor_remove.go new file mode 100644 index 00000000..51ff018c --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_contributor_remove.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetContributorRemove(goCtx context.Context, msg *types.MsgSetContributorRemove) (*types.MsgSetContributorRemoveResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetContributorRemoveResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_create.go b/x/cardchain/keeper/msg_server_set_create.go new file mode 100644 index 00000000..5cf82d45 --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_create.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetCreate(goCtx context.Context, msg *types.MsgSetCreate) (*types.MsgSetCreateResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetCreateResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_finalize.go b/x/cardchain/keeper/msg_server_set_finalize.go new file mode 100644 index 00000000..f2cc1cbf --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_finalize.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetFinalize(goCtx context.Context, msg *types.MsgSetFinalize) (*types.MsgSetFinalizeResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetFinalizeResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_story_add.go b/x/cardchain/keeper/msg_server_set_story_add.go new file mode 100644 index 00000000..7d693562 --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_story_add.go @@ -0,0 +1,17 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetStoryAdd(goCtx context.Context, msg *types.MsgSetStoryAdd) (*types.MsgSetStoryAddResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgSetStoryAddResponse{}, nil +} diff --git a/x/cardchain/module/autocli.go b/x/cardchain/module/autocli.go index 708968cf..357a7c8b 100644 --- a/x/cardchain/module/autocli.go +++ b/x/cardchain/module/autocli.go @@ -94,6 +94,90 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "Send a MatchReport tx", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "matchId"}, {ProtoField: "playedCardsA"}, {ProtoField: "playedCardsB"}, {ProtoField: "outcome"}}, }, + { + RpcMethod: "CouncilCreate", + Use: "council-create [card-id]", + Short: "Send a CouncilCreate tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}}, + }, + { + RpcMethod: "MatchReporterAppoint", + Use: "match-reporter-appoint [reporter]", + Short: "Send a MatchReporterAppoint tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "reporter"}}, + }, + { + RpcMethod: "SetCreate", + Use: "set-create [name] [artist] [story-writer] [contributors]", + Short: "Send a SetCreate tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "name"}, {ProtoField: "artist"}, {ProtoField: "storyWriter"}, {ProtoField: "contributors"}}, + }, + { + RpcMethod: "SetCardAdd", + Use: "set-card-add [set-id] [card-id]", + Short: "Send a SetCardAdd tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}, {ProtoField: "cardId"}}, + }, + { + RpcMethod: "SetCardRemove", + Use: "set-card-remove [set-id] [card-id]", + Short: "Send a SetCardRemove tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}, {ProtoField: "cardId"}}, + }, + { + RpcMethod: "SetContributorAdd", + Use: "set-contributor-add [set-id] [user]", + Short: "Send a SetContributorAdd tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}, {ProtoField: "user"}}, + }, + { + RpcMethod: "SetContributorRemove", + Use: "set-contributor-remove [set-id] [user]", + Short: "Send a SetContributorRemove tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}, {ProtoField: "user"}}, + }, + { + RpcMethod: "SetFinalize", + Use: "set-finalize [set-id]", + Short: "Send a SetFinalize tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}}, + }, + { + RpcMethod: "SetArtworkAdd", + Use: "set-artwork-add [set-id] [image]", + Short: "Send a SetArtworkAdd tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}, {ProtoField: "image"}}, + }, + { + RpcMethod: "SetStoryAdd", + Use: "set-story-add [set-id] [story]", + Short: "Send a SetStoryAdd tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}, {ProtoField: "story"}}, + }, + { + RpcMethod: "BoosterPackBuy", + Use: "booster-pack-buy [set-id]", + Short: "Send a BoosterPackBuy tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "setId"}}, + }, + { + RpcMethod: "SellOfferCreate", + Use: "sell-offer-create [card-id] [price]", + Short: "Send a SellOfferCreate tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}, {ProtoField: "price"}}, + }, + { + RpcMethod: "SellOfferBuy", + Use: "sell-offer-buy [sell-offer-id]", + Short: "Send a SellOfferBuy tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "sellOfferId"}}, + }, + { + RpcMethod: "SellOfferRemove", + Use: "sell-offer-remove [sell-offer-id]", + Short: "Send a SellOfferRemove tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "sellOfferId"}}, + }, // this line is used by ignite scaffolding # autocli/tx }, }, diff --git a/x/cardchain/module/simulation.go b/x/cardchain/module/simulation.go index b5587031..6cc780da 100644 --- a/x/cardchain/module/simulation.go +++ b/x/cardchain/module/simulation.go @@ -67,6 +67,62 @@ const ( // TODO: Determine the simulation weight value defaultWeightMsgMatchReport int = 100 + opWeightMsgCouncilCreate = "op_weight_msg_council_create" + // TODO: Determine the simulation weight value + defaultWeightMsgCouncilCreate int = 100 + + opWeightMsgMatchReporterAppoint = "op_weight_msg_match_reporter_appoint" + // TODO: Determine the simulation weight value + defaultWeightMsgMatchReporterAppoint int = 100 + + opWeightMsgSetCreate = "op_weight_msg_set_create" + // TODO: Determine the simulation weight value + defaultWeightMsgSetCreate int = 100 + + opWeightMsgSetCardAdd = "op_weight_msg_set_card_add" + // TODO: Determine the simulation weight value + defaultWeightMsgSetCardAdd int = 100 + + opWeightMsgSetCardRemove = "op_weight_msg_set_card_remove" + // TODO: Determine the simulation weight value + defaultWeightMsgSetCardRemove int = 100 + + opWeightMsgSetContributorAdd = "op_weight_msg_set_contributor_add" + // TODO: Determine the simulation weight value + defaultWeightMsgSetContributorAdd int = 100 + + opWeightMsgSetContributorRemove = "op_weight_msg_set_contributor_remove" + // TODO: Determine the simulation weight value + defaultWeightMsgSetContributorRemove int = 100 + + opWeightMsgSetFinalize = "op_weight_msg_set_finalize" + // TODO: Determine the simulation weight value + defaultWeightMsgSetFinalize int = 100 + + opWeightMsgSetArtworkAdd = "op_weight_msg_set_artwork_add" + // TODO: Determine the simulation weight value + defaultWeightMsgSetArtworkAdd int = 100 + + opWeightMsgSetStoryAdd = "op_weight_msg_set_story_add" + // TODO: Determine the simulation weight value + defaultWeightMsgSetStoryAdd int = 100 + + opWeightMsgBoosterPackBuy = "op_weight_msg_booster_pack_buy" + // TODO: Determine the simulation weight value + defaultWeightMsgBoosterPackBuy int = 100 + + opWeightMsgSellOfferCreate = "op_weight_msg_sell_offer_create" + // TODO: Determine the simulation weight value + defaultWeightMsgSellOfferCreate int = 100 + + opWeightMsgSellOfferBuy = "op_weight_msg_sell_offer_buy" + // TODO: Determine the simulation weight value + defaultWeightMsgSellOfferBuy int = 100 + + opWeightMsgSellOfferRemove = "op_weight_msg_sell_offer_remove" + // TODO: Determine the simulation weight value + defaultWeightMsgSellOfferRemove int = 100 + // this line is used by starport scaffolding # simapp/module/const ) @@ -211,6 +267,160 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp cardchainsimulation.SimulateMsgMatchReport(am.accountKeeper, am.bankKeeper, am.keeper), )) + var weightMsgCouncilCreate int + simState.AppParams.GetOrGenerate(opWeightMsgCouncilCreate, &weightMsgCouncilCreate, nil, + func(_ *rand.Rand) { + weightMsgCouncilCreate = defaultWeightMsgCouncilCreate + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCouncilCreate, + cardchainsimulation.SimulateMsgCouncilCreate(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgMatchReporterAppoint int + simState.AppParams.GetOrGenerate(opWeightMsgMatchReporterAppoint, &weightMsgMatchReporterAppoint, nil, + func(_ *rand.Rand) { + weightMsgMatchReporterAppoint = defaultWeightMsgMatchReporterAppoint + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgMatchReporterAppoint, + cardchainsimulation.SimulateMsgMatchReporterAppoint(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetCreate int + simState.AppParams.GetOrGenerate(opWeightMsgSetCreate, &weightMsgSetCreate, nil, + func(_ *rand.Rand) { + weightMsgSetCreate = defaultWeightMsgSetCreate + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetCreate, + cardchainsimulation.SimulateMsgSetCreate(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetCardAdd int + simState.AppParams.GetOrGenerate(opWeightMsgSetCardAdd, &weightMsgSetCardAdd, nil, + func(_ *rand.Rand) { + weightMsgSetCardAdd = defaultWeightMsgSetCardAdd + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetCardAdd, + cardchainsimulation.SimulateMsgSetCardAdd(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetCardRemove int + simState.AppParams.GetOrGenerate(opWeightMsgSetCardRemove, &weightMsgSetCardRemove, nil, + func(_ *rand.Rand) { + weightMsgSetCardRemove = defaultWeightMsgSetCardRemove + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetCardRemove, + cardchainsimulation.SimulateMsgSetCardRemove(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetContributorAdd int + simState.AppParams.GetOrGenerate(opWeightMsgSetContributorAdd, &weightMsgSetContributorAdd, nil, + func(_ *rand.Rand) { + weightMsgSetContributorAdd = defaultWeightMsgSetContributorAdd + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetContributorAdd, + cardchainsimulation.SimulateMsgSetContributorAdd(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetContributorRemove int + simState.AppParams.GetOrGenerate(opWeightMsgSetContributorRemove, &weightMsgSetContributorRemove, nil, + func(_ *rand.Rand) { + weightMsgSetContributorRemove = defaultWeightMsgSetContributorRemove + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetContributorRemove, + cardchainsimulation.SimulateMsgSetContributorRemove(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetFinalize int + simState.AppParams.GetOrGenerate(opWeightMsgSetFinalize, &weightMsgSetFinalize, nil, + func(_ *rand.Rand) { + weightMsgSetFinalize = defaultWeightMsgSetFinalize + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetFinalize, + cardchainsimulation.SimulateMsgSetFinalize(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetArtworkAdd int + simState.AppParams.GetOrGenerate(opWeightMsgSetArtworkAdd, &weightMsgSetArtworkAdd, nil, + func(_ *rand.Rand) { + weightMsgSetArtworkAdd = defaultWeightMsgSetArtworkAdd + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetArtworkAdd, + cardchainsimulation.SimulateMsgSetArtworkAdd(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSetStoryAdd int + simState.AppParams.GetOrGenerate(opWeightMsgSetStoryAdd, &weightMsgSetStoryAdd, nil, + func(_ *rand.Rand) { + weightMsgSetStoryAdd = defaultWeightMsgSetStoryAdd + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetStoryAdd, + cardchainsimulation.SimulateMsgSetStoryAdd(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgBoosterPackBuy int + simState.AppParams.GetOrGenerate(opWeightMsgBoosterPackBuy, &weightMsgBoosterPackBuy, nil, + func(_ *rand.Rand) { + weightMsgBoosterPackBuy = defaultWeightMsgBoosterPackBuy + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgBoosterPackBuy, + cardchainsimulation.SimulateMsgBoosterPackBuy(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSellOfferCreate int + simState.AppParams.GetOrGenerate(opWeightMsgSellOfferCreate, &weightMsgSellOfferCreate, nil, + func(_ *rand.Rand) { + weightMsgSellOfferCreate = defaultWeightMsgSellOfferCreate + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSellOfferCreate, + cardchainsimulation.SimulateMsgSellOfferCreate(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSellOfferBuy int + simState.AppParams.GetOrGenerate(opWeightMsgSellOfferBuy, &weightMsgSellOfferBuy, nil, + func(_ *rand.Rand) { + weightMsgSellOfferBuy = defaultWeightMsgSellOfferBuy + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSellOfferBuy, + cardchainsimulation.SimulateMsgSellOfferBuy(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgSellOfferRemove int + simState.AppParams.GetOrGenerate(opWeightMsgSellOfferRemove, &weightMsgSellOfferRemove, nil, + func(_ *rand.Rand) { + weightMsgSellOfferRemove = defaultWeightMsgSellOfferRemove + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSellOfferRemove, + cardchainsimulation.SimulateMsgSellOfferRemove(am.accountKeeper, am.bankKeeper, am.keeper), + )) + // this line is used by starport scaffolding # simapp/module/operation return operations @@ -307,6 +517,118 @@ func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.Wei return nil }, ), + simulation.NewWeightedProposalMsg( + opWeightMsgCouncilCreate, + defaultWeightMsgCouncilCreate, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCouncilCreate(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgMatchReporterAppoint, + defaultWeightMsgMatchReporterAppoint, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgMatchReporterAppoint(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetCreate, + defaultWeightMsgSetCreate, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetCreate(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetCardAdd, + defaultWeightMsgSetCardAdd, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetCardAdd(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetCardRemove, + defaultWeightMsgSetCardRemove, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetCardRemove(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetContributorAdd, + defaultWeightMsgSetContributorAdd, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetContributorAdd(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetContributorRemove, + defaultWeightMsgSetContributorRemove, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetContributorRemove(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetFinalize, + defaultWeightMsgSetFinalize, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetFinalize(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetArtworkAdd, + defaultWeightMsgSetArtworkAdd, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetArtworkAdd(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSetStoryAdd, + defaultWeightMsgSetStoryAdd, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSetStoryAdd(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgBoosterPackBuy, + defaultWeightMsgBoosterPackBuy, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgBoosterPackBuy(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSellOfferCreate, + defaultWeightMsgSellOfferCreate, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSellOfferCreate(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSellOfferBuy, + defaultWeightMsgSellOfferBuy, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSellOfferBuy(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgSellOfferRemove, + defaultWeightMsgSellOfferRemove, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgSellOfferRemove(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), // this line is used by starport scaffolding # simapp/module/OpMsg } } diff --git a/x/cardchain/simulation/booster_pack_buy.go b/x/cardchain/simulation/booster_pack_buy.go new file mode 100644 index 00000000..0f5b82e9 --- /dev/null +++ b/x/cardchain/simulation/booster_pack_buy.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgBoosterPackBuy( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgBoosterPackBuy{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the BoosterPackBuy simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "BoosterPackBuy simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/council_create.go b/x/cardchain/simulation/council_create.go new file mode 100644 index 00000000..ce9bf448 --- /dev/null +++ b/x/cardchain/simulation/council_create.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgCouncilCreate( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgCouncilCreate{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CouncilCreate simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "CouncilCreate simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/match_reporter_appoint.go b/x/cardchain/simulation/match_reporter_appoint.go new file mode 100644 index 00000000..a8db61c4 --- /dev/null +++ b/x/cardchain/simulation/match_reporter_appoint.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgMatchReporterAppoint( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgMatchReporterAppoint{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the MatchReporterAppoint simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "MatchReporterAppoint simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/sell_offer_buy.go b/x/cardchain/simulation/sell_offer_buy.go new file mode 100644 index 00000000..74b0bf27 --- /dev/null +++ b/x/cardchain/simulation/sell_offer_buy.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSellOfferBuy( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSellOfferBuy{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SellOfferBuy simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SellOfferBuy simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/sell_offer_create.go b/x/cardchain/simulation/sell_offer_create.go new file mode 100644 index 00000000..e75a0173 --- /dev/null +++ b/x/cardchain/simulation/sell_offer_create.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSellOfferCreate( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSellOfferCreate{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SellOfferCreate simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SellOfferCreate simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/sell_offer_remove.go b/x/cardchain/simulation/sell_offer_remove.go new file mode 100644 index 00000000..e608610c --- /dev/null +++ b/x/cardchain/simulation/sell_offer_remove.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSellOfferRemove( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSellOfferRemove{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SellOfferRemove simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SellOfferRemove simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_artwork_add.go b/x/cardchain/simulation/set_artwork_add.go new file mode 100644 index 00000000..54bd4999 --- /dev/null +++ b/x/cardchain/simulation/set_artwork_add.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetArtworkAdd( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetArtworkAdd{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetArtworkAdd simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetArtworkAdd simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_card_add.go b/x/cardchain/simulation/set_card_add.go new file mode 100644 index 00000000..42cd38a2 --- /dev/null +++ b/x/cardchain/simulation/set_card_add.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetCardAdd( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetCardAdd{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetCardAdd simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetCardAdd simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_card_remove.go b/x/cardchain/simulation/set_card_remove.go new file mode 100644 index 00000000..7efa3d79 --- /dev/null +++ b/x/cardchain/simulation/set_card_remove.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetCardRemove( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetCardRemove{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetCardRemove simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetCardRemove simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_contributor_add.go b/x/cardchain/simulation/set_contributor_add.go new file mode 100644 index 00000000..de073825 --- /dev/null +++ b/x/cardchain/simulation/set_contributor_add.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetContributorAdd( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetContributorAdd{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetContributorAdd simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetContributorAdd simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_contributor_remove.go b/x/cardchain/simulation/set_contributor_remove.go new file mode 100644 index 00000000..dd38e4e5 --- /dev/null +++ b/x/cardchain/simulation/set_contributor_remove.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetContributorRemove( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetContributorRemove{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetContributorRemove simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetContributorRemove simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_create.go b/x/cardchain/simulation/set_create.go new file mode 100644 index 00000000..71428061 --- /dev/null +++ b/x/cardchain/simulation/set_create.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetCreate( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetCreate{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetCreate simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetCreate simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_finalize.go b/x/cardchain/simulation/set_finalize.go new file mode 100644 index 00000000..08879487 --- /dev/null +++ b/x/cardchain/simulation/set_finalize.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetFinalize( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetFinalize{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetFinalize simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetFinalize simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/set_story_add.go b/x/cardchain/simulation/set_story_add.go new file mode 100644 index 00000000..3d3aff4c --- /dev/null +++ b/x/cardchain/simulation/set_story_add.go @@ -0,0 +1,29 @@ +package simulation + +import ( + "math/rand" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +func SimulateMsgSetStoryAdd( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgSetStoryAdd{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetStoryAdd simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "SetStoryAdd simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/types/codec.go b/x/cardchain/types/codec.go index ab88a692..b9d04e2f 100644 --- a/x/cardchain/types/codec.go +++ b/x/cardchain/types/codec.go @@ -41,6 +41,48 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgMatchReport{}, ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCouncilCreate{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgMatchReporterAppoint{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetCreate{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetCardAdd{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetCardRemove{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetContributorAdd{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetContributorRemove{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetFinalize{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetArtworkAdd{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetStoryAdd{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgBoosterPackBuy{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSellOfferCreate{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSellOfferBuy{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSellOfferRemove{}, + ) // this line is used by starport scaffolding # 3 registry.RegisterImplementations((*sdk.Msg)(nil), diff --git a/x/cardchain/types/message_booster_pack_buy.go b/x/cardchain/types/message_booster_pack_buy.go new file mode 100644 index 00000000..d4f6ded1 --- /dev/null +++ b/x/cardchain/types/message_booster_pack_buy.go @@ -0,0 +1,24 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgBoosterPackBuy{} + +func NewMsgBoosterPackBuy(creator string, setId uint64) *MsgBoosterPackBuy { + return &MsgBoosterPackBuy{ + Creator: creator, + SetId: setId, + } +} + +func (msg *MsgBoosterPackBuy) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_booster_pack_buy_test.go b/x/cardchain/types/message_booster_pack_buy_test.go new file mode 100644 index 00000000..fed6181a --- /dev/null +++ b/x/cardchain/types/message_booster_pack_buy_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgBoosterPackBuy_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgBoosterPackBuy + err error + }{ + { + name: "invalid address", + msg: MsgBoosterPackBuy{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgBoosterPackBuy{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_council_create.go b/x/cardchain/types/message_council_create.go new file mode 100644 index 00000000..7760b271 --- /dev/null +++ b/x/cardchain/types/message_council_create.go @@ -0,0 +1,24 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgCouncilCreate{} + +func NewMsgCouncilCreate(creator string, cardId uint64) *MsgCouncilCreate { + return &MsgCouncilCreate{ + Creator: creator, + CardId: cardId, + } +} + +func (msg *MsgCouncilCreate) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_council_create_test.go b/x/cardchain/types/message_council_create_test.go new file mode 100644 index 00000000..a3c44f5a --- /dev/null +++ b/x/cardchain/types/message_council_create_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgCouncilCreate_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCouncilCreate + err error + }{ + { + name: "invalid address", + msg: MsgCouncilCreate{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgCouncilCreate{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_match_reporter_appoint.go b/x/cardchain/types/message_match_reporter_appoint.go new file mode 100644 index 00000000..ef3c226a --- /dev/null +++ b/x/cardchain/types/message_match_reporter_appoint.go @@ -0,0 +1,24 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgMatchReporterAppoint{} + +func NewMsgMatchReporterAppoint(creator string, reporter string) *MsgMatchReporterAppoint { + return &MsgMatchReporterAppoint{ + Creator: creator, + Reporter: reporter, + } +} + +func (msg *MsgMatchReporterAppoint) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_match_reporter_appoint_test.go b/x/cardchain/types/message_match_reporter_appoint_test.go new file mode 100644 index 00000000..8e28c611 --- /dev/null +++ b/x/cardchain/types/message_match_reporter_appoint_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgMatchReporterAppoint_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgMatchReporterAppoint + err error + }{ + { + name: "invalid address", + msg: MsgMatchReporterAppoint{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgMatchReporterAppoint{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_sell_offer_buy.go b/x/cardchain/types/message_sell_offer_buy.go new file mode 100644 index 00000000..5de4634b --- /dev/null +++ b/x/cardchain/types/message_sell_offer_buy.go @@ -0,0 +1,24 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSellOfferBuy{} + +func NewMsgSellOfferBuy(creator string, sellOfferId uint64) *MsgSellOfferBuy { + return &MsgSellOfferBuy{ + Creator: creator, + SellOfferId: sellOfferId, + } +} + +func (msg *MsgSellOfferBuy) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_sell_offer_buy_test.go b/x/cardchain/types/message_sell_offer_buy_test.go new file mode 100644 index 00000000..95cad61f --- /dev/null +++ b/x/cardchain/types/message_sell_offer_buy_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSellOfferBuy_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSellOfferBuy + err error + }{ + { + name: "invalid address", + msg: MsgSellOfferBuy{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSellOfferBuy{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_sell_offer_create.go b/x/cardchain/types/message_sell_offer_create.go new file mode 100644 index 00000000..877e75d9 --- /dev/null +++ b/x/cardchain/types/message_sell_offer_create.go @@ -0,0 +1,25 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSellOfferCreate{} + +func NewMsgSellOfferCreate(creator string, cardId uint64, price sdk.Coin) *MsgSellOfferCreate { + return &MsgSellOfferCreate{ + Creator: creator, + CardId: cardId, + Price: price, + } +} + +func (msg *MsgSellOfferCreate) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_sell_offer_create_test.go b/x/cardchain/types/message_sell_offer_create_test.go new file mode 100644 index 00000000..e83cd847 --- /dev/null +++ b/x/cardchain/types/message_sell_offer_create_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSellOfferCreate_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSellOfferCreate + err error + }{ + { + name: "invalid address", + msg: MsgSellOfferCreate{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSellOfferCreate{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_sell_offer_remove.go b/x/cardchain/types/message_sell_offer_remove.go new file mode 100644 index 00000000..4328aeb9 --- /dev/null +++ b/x/cardchain/types/message_sell_offer_remove.go @@ -0,0 +1,24 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSellOfferRemove{} + +func NewMsgSellOfferRemove(creator string, sellOfferId uint64) *MsgSellOfferRemove { + return &MsgSellOfferRemove{ + Creator: creator, + SellOfferId: sellOfferId, + } +} + +func (msg *MsgSellOfferRemove) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_sell_offer_remove_test.go b/x/cardchain/types/message_sell_offer_remove_test.go new file mode 100644 index 00000000..5923dfcd --- /dev/null +++ b/x/cardchain/types/message_sell_offer_remove_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSellOfferRemove_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSellOfferRemove + err error + }{ + { + name: "invalid address", + msg: MsgSellOfferRemove{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSellOfferRemove{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_artwork_add.go b/x/cardchain/types/message_set_artwork_add.go new file mode 100644 index 00000000..8f2bab55 --- /dev/null +++ b/x/cardchain/types/message_set_artwork_add.go @@ -0,0 +1,25 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetArtworkAdd{} + +func NewMsgSetArtworkAdd(creator string, setId uint64, image []byte) *MsgSetArtworkAdd { + return &MsgSetArtworkAdd{ + Creator: creator, + SetId: setId, + Image: image, + } +} + +func (msg *MsgSetArtworkAdd) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_artwork_add_test.go b/x/cardchain/types/message_set_artwork_add_test.go new file mode 100644 index 00000000..e7828c0e --- /dev/null +++ b/x/cardchain/types/message_set_artwork_add_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetArtworkAdd_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetArtworkAdd + err error + }{ + { + name: "invalid address", + msg: MsgSetArtworkAdd{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetArtworkAdd{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_card_add.go b/x/cardchain/types/message_set_card_add.go new file mode 100644 index 00000000..4fcd275c --- /dev/null +++ b/x/cardchain/types/message_set_card_add.go @@ -0,0 +1,25 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetCardAdd{} + +func NewMsgSetCardAdd(creator string, setId uint64, cardId uint64) *MsgSetCardAdd { + return &MsgSetCardAdd{ + Creator: creator, + SetId: setId, + CardId: cardId, + } +} + +func (msg *MsgSetCardAdd) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_card_add_test.go b/x/cardchain/types/message_set_card_add_test.go new file mode 100644 index 00000000..a9b12ebc --- /dev/null +++ b/x/cardchain/types/message_set_card_add_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetCardAdd_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetCardAdd + err error + }{ + { + name: "invalid address", + msg: MsgSetCardAdd{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetCardAdd{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_card_remove.go b/x/cardchain/types/message_set_card_remove.go new file mode 100644 index 00000000..16a05633 --- /dev/null +++ b/x/cardchain/types/message_set_card_remove.go @@ -0,0 +1,25 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetCardRemove{} + +func NewMsgSetCardRemove(creator string, setId uint64, cardId uint64) *MsgSetCardRemove { + return &MsgSetCardRemove{ + Creator: creator, + SetId: setId, + CardId: cardId, + } +} + +func (msg *MsgSetCardRemove) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_card_remove_test.go b/x/cardchain/types/message_set_card_remove_test.go new file mode 100644 index 00000000..a2908fda --- /dev/null +++ b/x/cardchain/types/message_set_card_remove_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetCardRemove_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetCardRemove + err error + }{ + { + name: "invalid address", + msg: MsgSetCardRemove{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetCardRemove{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_contributor_add.go b/x/cardchain/types/message_set_contributor_add.go new file mode 100644 index 00000000..f0d5339c --- /dev/null +++ b/x/cardchain/types/message_set_contributor_add.go @@ -0,0 +1,25 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetContributorAdd{} + +func NewMsgSetContributorAdd(creator string, setId uint64, user string) *MsgSetContributorAdd { + return &MsgSetContributorAdd{ + Creator: creator, + SetId: setId, + User: user, + } +} + +func (msg *MsgSetContributorAdd) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_contributor_add_test.go b/x/cardchain/types/message_set_contributor_add_test.go new file mode 100644 index 00000000..48b4e665 --- /dev/null +++ b/x/cardchain/types/message_set_contributor_add_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetContributorAdd_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetContributorAdd + err error + }{ + { + name: "invalid address", + msg: MsgSetContributorAdd{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetContributorAdd{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_contributor_remove.go b/x/cardchain/types/message_set_contributor_remove.go new file mode 100644 index 00000000..e408b0ae --- /dev/null +++ b/x/cardchain/types/message_set_contributor_remove.go @@ -0,0 +1,25 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetContributorRemove{} + +func NewMsgSetContributorRemove(creator string, setId uint64, user string) *MsgSetContributorRemove { + return &MsgSetContributorRemove{ + Creator: creator, + SetId: setId, + User: user, + } +} + +func (msg *MsgSetContributorRemove) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_contributor_remove_test.go b/x/cardchain/types/message_set_contributor_remove_test.go new file mode 100644 index 00000000..a14238a1 --- /dev/null +++ b/x/cardchain/types/message_set_contributor_remove_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetContributorRemove_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetContributorRemove + err error + }{ + { + name: "invalid address", + msg: MsgSetContributorRemove{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetContributorRemove{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_create.go b/x/cardchain/types/message_set_create.go new file mode 100644 index 00000000..c140d67c --- /dev/null +++ b/x/cardchain/types/message_set_create.go @@ -0,0 +1,27 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetCreate{} + +func NewMsgSetCreate(creator string, name string, artist string, storyWriter string, contributors []string) *MsgSetCreate { + return &MsgSetCreate{ + Creator: creator, + Name: name, + Artist: artist, + StoryWriter: storyWriter, + Contributors: contributors, + } +} + +func (msg *MsgSetCreate) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_create_test.go b/x/cardchain/types/message_set_create_test.go new file mode 100644 index 00000000..1a545cd9 --- /dev/null +++ b/x/cardchain/types/message_set_create_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetCreate_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetCreate + err error + }{ + { + name: "invalid address", + msg: MsgSetCreate{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetCreate{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_finalize.go b/x/cardchain/types/message_set_finalize.go new file mode 100644 index 00000000..3ee359f0 --- /dev/null +++ b/x/cardchain/types/message_set_finalize.go @@ -0,0 +1,24 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetFinalize{} + +func NewMsgSetFinalize(creator string, setId uint64) *MsgSetFinalize { + return &MsgSetFinalize{ + Creator: creator, + SetId: setId, + } +} + +func (msg *MsgSetFinalize) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_finalize_test.go b/x/cardchain/types/message_set_finalize_test.go new file mode 100644 index 00000000..8daa6f6c --- /dev/null +++ b/x/cardchain/types/message_set_finalize_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetFinalize_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetFinalize + err error + }{ + { + name: "invalid address", + msg: MsgSetFinalize{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetFinalize{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/message_set_story_add.go b/x/cardchain/types/message_set_story_add.go new file mode 100644 index 00000000..78519259 --- /dev/null +++ b/x/cardchain/types/message_set_story_add.go @@ -0,0 +1,25 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ sdk.Msg = &MsgSetStoryAdd{} + +func NewMsgSetStoryAdd(creator string, setId uint64, story string) *MsgSetStoryAdd { + return &MsgSetStoryAdd{ + Creator: creator, + SetId: setId, + Story: story, + } +} + +func (msg *MsgSetStoryAdd) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_story_add_test.go b/x/cardchain/types/message_set_story_add_test.go new file mode 100644 index 00000000..e5625170 --- /dev/null +++ b/x/cardchain/types/message_set_story_add_test.go @@ -0,0 +1,40 @@ +package types + +import ( + "testing" + + "github.com/DecentralCardGame/cardchain/testutil/sample" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/require" +) + +func TestMsgSetStoryAdd_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetStoryAdd + err error + }{ + { + name: "invalid address", + msg: MsgSetStoryAdd{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetStoryAdd{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/tx.pb.go b/x/cardchain/types/tx.pb.go index 535531d7..2cf8d63a 100644 --- a/x/cardchain/types/tx.pb.go +++ b/x/cardchain/types/tx.pb.go @@ -1206,1845 +1206,7796 @@ func (m *MsgMatchReportResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgMatchReportResponse proto.InternalMessageInfo -func init() { - proto.RegisterType((*MsgUpdateParams)(nil), "cardchain.cardchain.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "cardchain.cardchain.MsgUpdateParamsResponse") - proto.RegisterType((*MsgUserCreate)(nil), "cardchain.cardchain.MsgUserCreate") - proto.RegisterType((*MsgUserCreateResponse)(nil), "cardchain.cardchain.MsgUserCreateResponse") - proto.RegisterType((*MsgCardSchemeBuy)(nil), "cardchain.cardchain.MsgCardSchemeBuy") - proto.RegisterType((*MsgCardSchemeBuyResponse)(nil), "cardchain.cardchain.MsgCardSchemeBuyResponse") - proto.RegisterType((*MsgCardSaveContent)(nil), "cardchain.cardchain.MsgCardSaveContent") - proto.RegisterType((*MsgCardSaveContentResponse)(nil), "cardchain.cardchain.MsgCardSaveContentResponse") - proto.RegisterType((*MsgCardVote)(nil), "cardchain.cardchain.MsgCardVote") - proto.RegisterType((*MsgCardVoteResponse)(nil), "cardchain.cardchain.MsgCardVoteResponse") - proto.RegisterType((*MsgCardTransfer)(nil), "cardchain.cardchain.MsgCardTransfer") - proto.RegisterType((*MsgCardTransferResponse)(nil), "cardchain.cardchain.MsgCardTransferResponse") - proto.RegisterType((*MsgCardDonate)(nil), "cardchain.cardchain.MsgCardDonate") - proto.RegisterType((*MsgCardDonateResponse)(nil), "cardchain.cardchain.MsgCardDonateResponse") - proto.RegisterType((*MsgCardArtworkAdd)(nil), "cardchain.cardchain.MsgCardArtworkAdd") - proto.RegisterType((*MsgCardArtworkAddResponse)(nil), "cardchain.cardchain.MsgCardArtworkAddResponse") - proto.RegisterType((*MsgCardArtistChange)(nil), "cardchain.cardchain.MsgCardArtistChange") - proto.RegisterType((*MsgCardArtistChangeResponse)(nil), "cardchain.cardchain.MsgCardArtistChangeResponse") - proto.RegisterType((*MsgCouncilRegister)(nil), "cardchain.cardchain.MsgCouncilRegister") - proto.RegisterType((*MsgCouncilRegisterResponse)(nil), "cardchain.cardchain.MsgCouncilRegisterResponse") - proto.RegisterType((*MsgCouncilDeregister)(nil), "cardchain.cardchain.MsgCouncilDeregister") - proto.RegisterType((*MsgCouncilDeregisterResponse)(nil), "cardchain.cardchain.MsgCouncilDeregisterResponse") - proto.RegisterType((*MsgMatchReport)(nil), "cardchain.cardchain.MsgMatchReport") - proto.RegisterType((*MsgMatchReportResponse)(nil), "cardchain.cardchain.MsgMatchReportResponse") +type MsgCouncilCreate struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` } -func init() { proto.RegisterFile("cardchain/cardchain/tx.proto", fileDescriptor_3b4a3aba0ac94bc8) } - -var fileDescriptor_3b4a3aba0ac94bc8 = []byte{ - // 1108 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xd6, 0x4e, 0x9a, 0xbc, 0x26, 0x69, 0xb3, 0x09, 0xcd, 0x66, 0x13, 0x1c, 0xcb, 0xa4, - 0xc5, 0x04, 0x6a, 0x93, 0x54, 0x2a, 0x55, 0x05, 0x95, 0x6c, 0x47, 0x42, 0x1c, 0x2c, 0xd0, 0x06, - 0x7a, 0x40, 0x48, 0xd5, 0x78, 0x77, 0xba, 0x5e, 0xea, 0xdd, 0x31, 0x33, 0x63, 0xb7, 0xb9, 0x21, - 0xb8, 0x20, 0x4e, 0x7c, 0x0c, 0x8e, 0x39, 0xf0, 0x09, 0xe0, 0xd2, 0x63, 0xd5, 0x0b, 0x9c, 0x10, - 0x4a, 0x0e, 0xf9, 0x1a, 0x68, 0xf6, 0xcf, 0xec, 0x1f, 0xaf, 0x37, 0x6e, 0x2e, 0xc9, 0xbe, 0x99, - 0xdf, 0xfb, 0xbd, 0xdf, 0x7b, 0xf3, 0xe6, 0x8d, 0x0c, 0x3b, 0x26, 0xa2, 0x96, 0xd9, 0x47, 0x8e, - 0xd7, 0x8c, 0xbf, 0xf8, 0xcb, 0xc6, 0x90, 0x12, 0x4e, 0xd4, 0x75, 0xb9, 0xd6, 0x90, 0x5f, 0xfa, - 0x1a, 0x72, 0x1d, 0x8f, 0x34, 0xfd, 0xbf, 0x01, 0x4e, 0xdf, 0x34, 0x09, 0x73, 0x09, 0x6b, 0xba, - 0xcc, 0x6e, 0x8e, 0x0f, 0xc4, 0xbf, 0x70, 0x63, 0x2b, 0xd8, 0x78, 0xea, 0x5b, 0xcd, 0xc0, 0x08, - 0xb7, 0x36, 0x6c, 0x62, 0x93, 0x60, 0x5d, 0x7c, 0x85, 0xab, 0xd5, 0x3c, 0x3d, 0x43, 0x44, 0x91, - 0x1b, 0xf9, 0x55, 0xc2, 0x58, 0x3d, 0xc4, 0x70, 0x73, 0x7c, 0xd0, 0xc3, 0x1c, 0x1d, 0x34, 0x4d, - 0xe2, 0x78, 0x45, 0x0c, 0x63, 0xc2, 0x1d, 0x2f, 0x12, 0xb5, 0x9b, 0x87, 0x70, 0x11, 0x37, 0xfb, - 0x01, 0xa0, 0xf6, 0x97, 0x02, 0x37, 0xbb, 0xcc, 0xfe, 0x66, 0x68, 0x21, 0x8e, 0xbf, 0xf2, 0x83, - 0xab, 0x0f, 0x60, 0x09, 0x8d, 0x78, 0x9f, 0x50, 0x87, 0x9f, 0x68, 0x4a, 0x55, 0xa9, 0x2f, 0xb5, - 0xb5, 0x37, 0x7f, 0xdc, 0xdb, 0x08, 0x73, 0x6a, 0x59, 0x16, 0xc5, 0x8c, 0x1d, 0x73, 0xea, 0x78, - 0xb6, 0x11, 0x43, 0xd5, 0xc7, 0xb0, 0x10, 0xc8, 0xd7, 0xae, 0x55, 0x95, 0xfa, 0x8d, 0xc3, 0xed, - 0x46, 0x4e, 0x4d, 0x1b, 0x41, 0x90, 0xf6, 0xd2, 0xab, 0x7f, 0x77, 0xe7, 0x7e, 0xbf, 0x38, 0xdd, - 0x57, 0x8c, 0xd0, 0xeb, 0xd1, 0xc3, 0x9f, 0x2e, 0x4e, 0xf7, 0x63, 0xbe, 0x5f, 0x2f, 0x4e, 0xf7, - 0xef, 0xc4, 0xaa, 0x5f, 0x26, 0x32, 0xc8, 0x28, 0xae, 0x6d, 0xc1, 0x66, 0x66, 0xc9, 0xc0, 0x6c, - 0x48, 0x3c, 0x86, 0x6b, 0x36, 0xac, 0x88, 0x2d, 0x86, 0x69, 0x87, 0x62, 0xc4, 0xb1, 0xaa, 0xc1, - 0x75, 0x53, 0x7c, 0x11, 0x1a, 0xe4, 0x66, 0x44, 0xa6, 0xd8, 0xf1, 0xf0, 0x0b, 0x01, 0xf5, 0x13, - 0x58, 0x32, 0x22, 0x53, 0xdd, 0x80, 0x79, 0x34, 0x70, 0x10, 0xd3, 0x4a, 0xfe, 0x7a, 0x60, 0x3c, - 0x5a, 0x16, 0x7a, 0x23, 0xef, 0xda, 0x26, 0xbc, 0x93, 0x0a, 0x24, 0x15, 0xb8, 0x70, 0xab, 0xcb, - 0xec, 0x0e, 0xa2, 0xd6, 0xb1, 0xd9, 0xc7, 0x2e, 0x6e, 0x8f, 0x4e, 0x0a, 0x44, 0x1c, 0x40, 0xa9, - 0xe7, 0x58, 0x61, 0x05, 0xb7, 0x1a, 0x61, 0xcd, 0x45, 0x07, 0x34, 0xc2, 0x0e, 0x68, 0x74, 0x88, - 0xe3, 0xb5, 0xcb, 0xa2, 0x7e, 0x86, 0xc0, 0x66, 0x74, 0x1c, 0x82, 0x96, 0x0d, 0x17, 0x49, 0x51, - 0x6f, 0xc3, 0x82, 0x28, 0xe2, 0x17, 0x96, 0x1f, 0xb5, 0x6c, 0x84, 0x56, 0xed, 0x4f, 0x05, 0xd4, - 0xc8, 0x09, 0x8d, 0x71, 0x87, 0x78, 0x1c, 0x7b, 0xbc, 0x40, 0x65, 0x4c, 0x74, 0x2d, 0x49, 0xe4, - 0x7b, 0x04, 0xce, 0x7e, 0xa9, 0x96, 0x8d, 0xc8, 0x14, 0x25, 0xf4, 0x08, 0xc7, 0x4c, 0x2b, 0x07, - 0x25, 0xf4, 0x0d, 0xc1, 0x83, 0x28, 0x77, 0x18, 0xd7, 0xe6, 0xfd, 0xe5, 0xd0, 0x52, 0xf7, 0x60, - 0xa5, 0x87, 0x06, 0xc8, 0x33, 0x71, 0xcb, 0x33, 0xfb, 0x84, 0x6a, 0x0b, 0x55, 0xa5, 0xbe, 0x68, - 0xa4, 0x17, 0x33, 0x89, 0x1f, 0x81, 0x3e, 0x99, 0x83, 0x4c, 0xfd, 0x2e, 0xac, 0x22, 0x87, 0x5a, - 0x94, 0x0c, 0x3b, 0x03, 0xe4, 0xb8, 0x38, 0x28, 0xc1, 0xa2, 0x91, 0x59, 0xad, 0x7d, 0x0f, 0x37, - 0x42, 0x96, 0x27, 0xa4, 0xb0, 0x5b, 0xee, 0x43, 0x79, 0x4c, 0x38, 0x0e, 0x4f, 0x6a, 0x37, 0xb7, - 0xd7, 0x8f, 0x1d, 0xcf, 0x1e, 0x60, 0x41, 0x64, 0xf8, 0xe0, 0x8c, 0xe2, 0xcf, 0x60, 0x3d, 0x11, - 0xeb, 0xad, 0xa5, 0xba, 0xfe, 0xd5, 0x15, 0xee, 0x5f, 0x53, 0xe4, 0xb1, 0x67, 0x98, 0x5e, 0xe1, - 0xc4, 0x74, 0x58, 0xa4, 0xd8, 0xc4, 0xce, 0x18, 0xd3, 0xb0, 0xbb, 0xa5, 0x9d, 0x51, 0x1b, 0x5c, - 0xb2, 0x64, 0x38, 0xd9, 0xe2, 0xbf, 0x28, 0xfe, 0x2d, 0x13, 0x7b, 0x47, 0xc4, 0x2b, 0xbe, 0x65, - 0xd3, 0x84, 0x7c, 0x02, 0x0b, 0xc8, 0x25, 0xa3, 0xb0, 0x73, 0x66, 0xe8, 0xfd, 0x10, 0x9e, 0x7b, - 0x0d, 0x63, 0x25, 0x52, 0xe3, 0xcf, 0x0a, 0xac, 0x85, 0x3b, 0x2d, 0xca, 0x5f, 0x10, 0xfa, 0xbc, - 0x65, 0x59, 0x57, 0xd0, 0xb9, 0x01, 0xf3, 0x8e, 0x8b, 0x6c, 0x1c, 0x36, 0x78, 0x60, 0x08, 0x9e, - 0x67, 0xa3, 0xc1, 0xa0, 0x45, 0xb9, 0xdf, 0xe0, 0x8b, 0x46, 0x64, 0x66, 0xe4, 0x6d, 0xc3, 0xd6, - 0x84, 0x88, 0xc4, 0xa4, 0x58, 0x8f, 0x37, 0x1d, 0xc6, 0x3b, 0x7d, 0xe4, 0xd9, 0x57, 0xa9, 0x65, - 0x7c, 0xad, 0x4a, 0xc9, 0x6b, 0x95, 0xd1, 0xf2, 0x2e, 0x6c, 0xe7, 0x84, 0x93, 0x6a, 0x3e, 0x0d, - 0x66, 0x02, 0x19, 0x79, 0xa6, 0x33, 0x30, 0xb0, 0xed, 0x30, 0x5e, 0xd4, 0x61, 0x19, 0xf2, 0x9d, - 0xe0, 0x36, 0xa6, 0xbd, 0x25, 0xf7, 0x63, 0xd8, 0x88, 0x77, 0x8f, 0x30, 0x7d, 0x5b, 0xf6, 0x0a, - 0xec, 0xe4, 0xf9, 0x4b, 0xfe, 0x37, 0x0a, 0xac, 0x76, 0x99, 0xdd, 0x15, 0x2f, 0x9d, 0x81, 0x87, - 0x84, 0xf2, 0xe2, 0xb9, 0xef, 0x3f, 0x89, 0xb2, 0x8c, 0x91, 0xa9, 0xd6, 0x60, 0x79, 0x38, 0x40, - 0x27, 0xd8, 0x12, 0x45, 0x62, 0x2d, 0xad, 0x54, 0x2d, 0xd5, 0xcb, 0x46, 0x6a, 0x2d, 0x83, 0x69, - 0x6b, 0xe5, 0x09, 0x4c, 0x5b, 0x7d, 0x00, 0xd7, 0xc9, 0x88, 0x9b, 0xc4, 0xc5, 0xfe, 0x9c, 0x5b, - 0x3d, 0xdc, 0xc9, 0x1d, 0x17, 0x5f, 0x06, 0x18, 0x23, 0x02, 0x67, 0x92, 0xd6, 0xe0, 0x76, 0x3a, - 0xa7, 0x28, 0xdd, 0xc3, 0xbf, 0x97, 0xa0, 0xd4, 0x65, 0xb6, 0xda, 0x83, 0xe5, 0xd4, 0x4b, 0xbe, - 0x97, 0x1b, 0x26, 0xf3, 0x54, 0xea, 0x1f, 0xcd, 0x82, 0x92, 0xd3, 0xe9, 0x3b, 0x80, 0xc4, 0x6b, - 0x5a, 0x9b, 0xea, 0x2b, 0x31, 0xfa, 0xfe, 0xe5, 0x18, 0xc9, 0x8e, 0x61, 0x25, 0xfd, 0x52, 0xde, - 0x99, 0xe6, 0x9c, 0x82, 0xe9, 0xf7, 0x66, 0x82, 0xc9, 0x30, 0xcf, 0xe1, 0x66, 0xf6, 0xb1, 0x7b, - 0xbf, 0x90, 0x21, 0x06, 0xea, 0xcd, 0x19, 0x81, 0x32, 0xd8, 0x13, 0x58, 0x94, 0xef, 0x49, 0xb5, - 0xc8, 0x59, 0x20, 0xf4, 0xfa, 0x65, 0x08, 0xc9, 0xdb, 0x83, 0xe5, 0xd4, 0xf0, 0xdf, 0x2b, 0xf2, - 0x8c, 0x50, 0xd3, 0x4f, 0x3b, 0x6f, 0xb2, 0x8b, 0xd3, 0x4e, 0x4c, 0xf5, 0x5a, 0x91, 0x6f, 0x80, - 0x99, 0x7e, 0xda, 0x93, 0x33, 0x59, 0xed, 0xc3, 0x6a, 0x66, 0x1e, 0xdf, 0x2d, 0xf2, 0x8e, 0x71, - 0x7a, 0x63, 0x36, 0x9c, 0x8c, 0xe4, 0xc1, 0xad, 0x89, 0xb9, 0x5a, 0xbf, 0x84, 0x43, 0x22, 0xf5, - 0x8f, 0x67, 0x45, 0xa6, 0x1a, 0x2c, 0x33, 0x39, 0xa7, 0x37, 0x58, 0x1a, 0x58, 0xd0, 0x60, 0xf9, - 0xd3, 0x54, 0xfd, 0x01, 0xd6, 0x26, 0x47, 0xe9, 0x07, 0x97, 0xb0, 0xc4, 0x50, 0xfd, 0x60, 0x66, - 0xa8, 0x0c, 0xf9, 0x14, 0x6e, 0x24, 0x87, 0xeb, 0x7b, 0xd3, 0x18, 0x12, 0x20, 0xfd, 0xc3, 0x19, - 0x40, 0x51, 0x00, 0x7d, 0xfe, 0x47, 0xf1, 0xdb, 0xa0, 0x6d, 0xbc, 0x3a, 0xab, 0x28, 0xaf, 0xcf, - 0x2a, 0xca, 0x7f, 0x67, 0x15, 0xe5, 0xb7, 0xf3, 0xca, 0xdc, 0xeb, 0xf3, 0xca, 0xdc, 0x3f, 0xe7, - 0x95, 0xb9, 0x6f, 0x1f, 0xda, 0x0e, 0xef, 0x8f, 0x7a, 0x0d, 0x93, 0xb8, 0xcd, 0x23, 0x6c, 0x62, - 0x8f, 0x53, 0x34, 0x10, 0xe7, 0xf1, 0x39, 0x72, 0x71, 0x33, 0xff, 0x77, 0x03, 0x3f, 0x19, 0x62, - 0xd6, 0x5b, 0xf0, 0x7f, 0xfa, 0xdc, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x03, 0x95, 0x9e, - 0x11, 0x0e, 0x00, 0x00, +func (m *MsgCouncilCreate) Reset() { *m = MsgCouncilCreate{} } +func (m *MsgCouncilCreate) String() string { return proto.CompactTextString(m) } +func (*MsgCouncilCreate) ProtoMessage() {} +func (*MsgCouncilCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{24} +} +func (m *MsgCouncilCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCouncilCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCouncilCreate.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 *MsgCouncilCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCouncilCreate.Merge(m, src) +} +func (m *MsgCouncilCreate) XXX_Size() int { + return m.Size() +} +func (m *MsgCouncilCreate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCouncilCreate.DiscardUnknown(m) } -// 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 +var xxx_messageInfo_MsgCouncilCreate proto.InternalMessageInfo -// 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 { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - UserCreate(ctx context.Context, in *MsgUserCreate, opts ...grpc.CallOption) (*MsgUserCreateResponse, error) - CardSchemeBuy(ctx context.Context, in *MsgCardSchemeBuy, opts ...grpc.CallOption) (*MsgCardSchemeBuyResponse, error) - CardSaveContent(ctx context.Context, in *MsgCardSaveContent, opts ...grpc.CallOption) (*MsgCardSaveContentResponse, error) - CardVote(ctx context.Context, in *MsgCardVote, opts ...grpc.CallOption) (*MsgCardVoteResponse, error) - CardTransfer(ctx context.Context, in *MsgCardTransfer, opts ...grpc.CallOption) (*MsgCardTransferResponse, error) - CardDonate(ctx context.Context, in *MsgCardDonate, opts ...grpc.CallOption) (*MsgCardDonateResponse, error) - CardArtworkAdd(ctx context.Context, in *MsgCardArtworkAdd, opts ...grpc.CallOption) (*MsgCardArtworkAddResponse, error) - CardArtistChange(ctx context.Context, in *MsgCardArtistChange, opts ...grpc.CallOption) (*MsgCardArtistChangeResponse, error) - CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) - CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) - MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) +func (m *MsgCouncilCreate) GetCreator() string { + if m != nil { + return m.Creator + } + return "" } -type msgClient struct { - cc grpc1.ClientConn +func (m *MsgCouncilCreate) GetCardId() uint64 { + if m != nil { + return m.CardId + } + return 0 } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} +type MsgCouncilCreateResponse struct { } -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/UpdateParams", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgCouncilCreateResponse) Reset() { *m = MsgCouncilCreateResponse{} } +func (m *MsgCouncilCreateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCouncilCreateResponse) ProtoMessage() {} +func (*MsgCouncilCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{25} +} +func (m *MsgCouncilCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCouncilCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCouncilCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgCouncilCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCouncilCreateResponse.Merge(m, src) +} +func (m *MsgCouncilCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCouncilCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCouncilCreateResponse.DiscardUnknown(m) } -func (c *msgClient) UserCreate(ctx context.Context, in *MsgUserCreate, opts ...grpc.CallOption) (*MsgUserCreateResponse, error) { - out := new(MsgUserCreateResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/UserCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var xxx_messageInfo_MsgCouncilCreateResponse proto.InternalMessageInfo + +type MsgMatchReporterAppoint struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"` } -func (c *msgClient) CardSchemeBuy(ctx context.Context, in *MsgCardSchemeBuy, opts ...grpc.CallOption) (*MsgCardSchemeBuyResponse, error) { - out := new(MsgCardSchemeBuyResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardSchemeBuy", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgMatchReporterAppoint) Reset() { *m = MsgMatchReporterAppoint{} } +func (m *MsgMatchReporterAppoint) String() string { return proto.CompactTextString(m) } +func (*MsgMatchReporterAppoint) ProtoMessage() {} +func (*MsgMatchReporterAppoint) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{26} +} +func (m *MsgMatchReporterAppoint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMatchReporterAppoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMatchReporterAppoint.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgMatchReporterAppoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMatchReporterAppoint.Merge(m, src) +} +func (m *MsgMatchReporterAppoint) XXX_Size() int { + return m.Size() +} +func (m *MsgMatchReporterAppoint) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMatchReporterAppoint.DiscardUnknown(m) } -func (c *msgClient) CardSaveContent(ctx context.Context, in *MsgCardSaveContent, opts ...grpc.CallOption) (*MsgCardSaveContentResponse, error) { - out := new(MsgCardSaveContentResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardSaveContent", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_MsgMatchReporterAppoint proto.InternalMessageInfo + +func (m *MsgMatchReporterAppoint) GetCreator() string { + if m != nil { + return m.Creator } - return out, nil + return "" } -func (c *msgClient) CardVote(ctx context.Context, in *MsgCardVote, opts ...grpc.CallOption) (*MsgCardVoteResponse, error) { - out := new(MsgCardVoteResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardVote", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgMatchReporterAppoint) GetReporter() string { + if m != nil { + return m.Reporter } - return out, nil + return "" } -func (c *msgClient) CardTransfer(ctx context.Context, in *MsgCardTransfer, opts ...grpc.CallOption) (*MsgCardTransferResponse, error) { - out := new(MsgCardTransferResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardTransfer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type MsgMatchReporterAppointResponse struct { } -func (c *msgClient) CardDonate(ctx context.Context, in *MsgCardDonate, opts ...grpc.CallOption) (*MsgCardDonateResponse, error) { - out := new(MsgCardDonateResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardDonate", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgMatchReporterAppointResponse) Reset() { *m = MsgMatchReporterAppointResponse{} } +func (m *MsgMatchReporterAppointResponse) String() string { return proto.CompactTextString(m) } +func (*MsgMatchReporterAppointResponse) ProtoMessage() {} +func (*MsgMatchReporterAppointResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{27} +} +func (m *MsgMatchReporterAppointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMatchReporterAppointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMatchReporterAppointResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgMatchReporterAppointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMatchReporterAppointResponse.Merge(m, src) +} +func (m *MsgMatchReporterAppointResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgMatchReporterAppointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMatchReporterAppointResponse.DiscardUnknown(m) } -func (c *msgClient) CardArtworkAdd(ctx context.Context, in *MsgCardArtworkAdd, opts ...grpc.CallOption) (*MsgCardArtworkAddResponse, error) { - out := new(MsgCardArtworkAddResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardArtworkAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var xxx_messageInfo_MsgMatchReporterAppointResponse proto.InternalMessageInfo + +type MsgSetCreate struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` + StoryWriter string `protobuf:"bytes,4,opt,name=storyWriter,proto3" json:"storyWriter,omitempty"` + Contributors []string `protobuf:"bytes,5,rep,name=contributors,proto3" json:"contributors,omitempty"` } -func (c *msgClient) CardArtistChange(ctx context.Context, in *MsgCardArtistChange, opts ...grpc.CallOption) (*MsgCardArtistChangeResponse, error) { - out := new(MsgCardArtistChangeResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardArtistChange", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgSetCreate) Reset() { *m = MsgSetCreate{} } +func (m *MsgSetCreate) String() string { return proto.CompactTextString(m) } +func (*MsgSetCreate) ProtoMessage() {} +func (*MsgSetCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{28} +} +func (m *MsgSetCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *MsgSetCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCreate.Merge(m, src) +} +func (m *MsgSetCreate) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCreate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCreate.DiscardUnknown(m) } -func (c *msgClient) CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) { - out := new(MsgCouncilRegisterResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CouncilRegister", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_MsgSetCreate proto.InternalMessageInfo + +func (m *MsgSetCreate) GetCreator() string { + if m != nil { + return m.Creator } - return out, nil + return "" } -func (c *msgClient) CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) { - out := new(MsgCouncilDeregisterResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CouncilDeregister", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgSetCreate) GetName() string { + if m != nil { + return m.Name } - return out, nil + return "" } -func (c *msgClient) MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) { - out := new(MsgMatchReportResponse) - err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/MatchReport", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgSetCreate) GetArtist() string { + if m != nil { + return m.Artist } - return out, nil + return "" } -// MsgServer is the server API for Msg service. -type MsgServer interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - UserCreate(context.Context, *MsgUserCreate) (*MsgUserCreateResponse, error) - CardSchemeBuy(context.Context, *MsgCardSchemeBuy) (*MsgCardSchemeBuyResponse, error) - CardSaveContent(context.Context, *MsgCardSaveContent) (*MsgCardSaveContentResponse, error) - CardVote(context.Context, *MsgCardVote) (*MsgCardVoteResponse, error) - CardTransfer(context.Context, *MsgCardTransfer) (*MsgCardTransferResponse, error) - CardDonate(context.Context, *MsgCardDonate) (*MsgCardDonateResponse, error) - CardArtworkAdd(context.Context, *MsgCardArtworkAdd) (*MsgCardArtworkAddResponse, error) - CardArtistChange(context.Context, *MsgCardArtistChange) (*MsgCardArtistChangeResponse, error) - CouncilRegister(context.Context, *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) - CouncilDeregister(context.Context, *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) - MatchReport(context.Context, *MsgMatchReport) (*MsgMatchReportResponse, error) +func (m *MsgSetCreate) GetStoryWriter() string { + if m != nil { + return m.StoryWriter + } + return "" } -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { +func (m *MsgSetCreate) GetContributors() []string { + if m != nil { + return m.Contributors + } + return nil } -func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +type MsgSetCreateResponse struct { } -func (*UnimplementedMsgServer) UserCreate(ctx context.Context, req *MsgUserCreate) (*MsgUserCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserCreate not implemented") + +func (m *MsgSetCreateResponse) Reset() { *m = MsgSetCreateResponse{} } +func (m *MsgSetCreateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetCreateResponse) ProtoMessage() {} +func (*MsgSetCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{29} } -func (*UnimplementedMsgServer) CardSchemeBuy(ctx context.Context, req *MsgCardSchemeBuy) (*MsgCardSchemeBuyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardSchemeBuy not implemented") +func (m *MsgSetCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedMsgServer) CardSaveContent(ctx context.Context, req *MsgCardSaveContent) (*MsgCardSaveContentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardSaveContent not implemented") +func (m *MsgSetCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedMsgServer) CardVote(ctx context.Context, req *MsgCardVote) (*MsgCardVoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardVote not implemented") +func (m *MsgSetCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCreateResponse.Merge(m, src) } -func (*UnimplementedMsgServer) CardTransfer(ctx context.Context, req *MsgCardTransfer) (*MsgCardTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardTransfer not implemented") +func (m *MsgSetCreateResponse) XXX_Size() int { + return m.Size() } -func (*UnimplementedMsgServer) CardDonate(ctx context.Context, req *MsgCardDonate) (*MsgCardDonateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardDonate not implemented") +func (m *MsgSetCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCreateResponse.DiscardUnknown(m) } -func (*UnimplementedMsgServer) CardArtworkAdd(ctx context.Context, req *MsgCardArtworkAdd) (*MsgCardArtworkAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardArtworkAdd not implemented") + +var xxx_messageInfo_MsgSetCreateResponse proto.InternalMessageInfo + +type MsgSetCardAdd struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + CardId uint64 `protobuf:"varint,3,opt,name=cardId,proto3" json:"cardId,omitempty"` } -func (*UnimplementedMsgServer) CardArtistChange(ctx context.Context, req *MsgCardArtistChange) (*MsgCardArtistChangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardArtistChange not implemented") + +func (m *MsgSetCardAdd) Reset() { *m = MsgSetCardAdd{} } +func (m *MsgSetCardAdd) String() string { return proto.CompactTextString(m) } +func (*MsgSetCardAdd) ProtoMessage() {} +func (*MsgSetCardAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{30} } -func (*UnimplementedMsgServer) CouncilRegister(ctx context.Context, req *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilRegister not implemented") +func (m *MsgSetCardAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedMsgServer) CouncilDeregister(ctx context.Context, req *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilDeregister not implemented") +func (m *MsgSetCardAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCardAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedMsgServer) MatchReport(ctx context.Context, req *MsgMatchReport) (*MsgMatchReportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MatchReport not implemented") +func (m *MsgSetCardAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCardAdd.Merge(m, src) } - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) +func (m *MsgSetCardAdd) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCardAdd) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCardAdd.DiscardUnknown(m) } -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/UpdateParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) +var xxx_messageInfo_MsgSetCardAdd proto.InternalMessageInfo + +func (m *MsgSetCardAdd) GetCreator() string { + if m != nil { + return m.Creator } - return interceptor(ctx, in, info, handler) + return "" } -func _Msg_UserCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUserCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UserCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/UserCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UserCreate(ctx, req.(*MsgUserCreate)) +func (m *MsgSetCardAdd) GetSetId() uint64 { + if m != nil { + return m.SetId } - return interceptor(ctx, in, info, handler) + return 0 } -func _Msg_CardSchemeBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardSchemeBuy) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardSchemeBuy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CardSchemeBuy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardSchemeBuy(ctx, req.(*MsgCardSchemeBuy)) +func (m *MsgSetCardAdd) GetCardId() uint64 { + if m != nil { + return m.CardId } - return interceptor(ctx, in, info, handler) + return 0 } -func _Msg_CardSaveContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardSaveContent) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardSaveContent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CardSaveContent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardSaveContent(ctx, req.(*MsgCardSaveContent)) - } - return interceptor(ctx, in, info, handler) +type MsgSetCardAddResponse struct { } -func _Msg_CardVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardVote) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardVote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CardVote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardVote(ctx, req.(*MsgCardVote)) +func (m *MsgSetCardAddResponse) Reset() { *m = MsgSetCardAddResponse{} } +func (m *MsgSetCardAddResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetCardAddResponse) ProtoMessage() {} +func (*MsgSetCardAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{31} +} +func (m *MsgSetCardAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCardAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCardAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgSetCardAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCardAddResponse.Merge(m, src) +} +func (m *MsgSetCardAddResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCardAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCardAddResponse.DiscardUnknown(m) } -func _Msg_CardTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardTransfer) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CardTransfer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardTransfer(ctx, req.(*MsgCardTransfer)) - } - return interceptor(ctx, in, info, handler) +var xxx_messageInfo_MsgSetCardAddResponse proto.InternalMessageInfo + +type MsgSetCardRemove struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + CardId uint64 `protobuf:"varint,3,opt,name=cardId,proto3" json:"cardId,omitempty"` } -func _Msg_CardDonate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardDonate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardDonate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CardDonate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardDonate(ctx, req.(*MsgCardDonate)) +func (m *MsgSetCardRemove) Reset() { *m = MsgSetCardRemove{} } +func (m *MsgSetCardRemove) String() string { return proto.CompactTextString(m) } +func (*MsgSetCardRemove) ProtoMessage() {} +func (*MsgSetCardRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{32} +} +func (m *MsgSetCardRemove) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCardRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCardRemove.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgSetCardRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCardRemove.Merge(m, src) +} +func (m *MsgSetCardRemove) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCardRemove) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCardRemove.DiscardUnknown(m) } -func _Msg_CardArtworkAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardArtworkAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardArtworkAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CardArtworkAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardArtworkAdd(ctx, req.(*MsgCardArtworkAdd)) +var xxx_messageInfo_MsgSetCardRemove proto.InternalMessageInfo + +func (m *MsgSetCardRemove) GetCreator() string { + if m != nil { + return m.Creator } - return interceptor(ctx, in, info, handler) + return "" } -func _Msg_CardArtistChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardArtistChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardArtistChange(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CardArtistChange", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardArtistChange(ctx, req.(*MsgCardArtistChange)) +func (m *MsgSetCardRemove) GetSetId() uint64 { + if m != nil { + return m.SetId } - return interceptor(ctx, in, info, handler) + return 0 } -func _Msg_CouncilRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilRegister) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilRegister(ctx, in) +func (m *MsgSetCardRemove) GetCardId() uint64 { + if m != nil { + return m.CardId } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CouncilRegister", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilRegister(ctx, req.(*MsgCouncilRegister)) - } - return interceptor(ctx, in, info, handler) + return 0 } -func _Msg_CouncilDeregister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilDeregister) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilDeregister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/CouncilDeregister", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilDeregister(ctx, req.(*MsgCouncilDeregister)) +type MsgSetCardRemoveResponse struct { +} + +func (m *MsgSetCardRemoveResponse) Reset() { *m = MsgSetCardRemoveResponse{} } +func (m *MsgSetCardRemoveResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetCardRemoveResponse) ProtoMessage() {} +func (*MsgSetCardRemoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{33} +} +func (m *MsgSetCardRemoveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCardRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCardRemoveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgSetCardRemoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCardRemoveResponse.Merge(m, src) +} +func (m *MsgSetCardRemoveResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCardRemoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCardRemoveResponse.DiscardUnknown(m) } -func _Msg_MatchReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMatchReport) - if err := dec(in); err != nil { - return nil, err +var xxx_messageInfo_MsgSetCardRemoveResponse proto.InternalMessageInfo + +type MsgSetContributorAdd struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` +} + +func (m *MsgSetContributorAdd) Reset() { *m = MsgSetContributorAdd{} } +func (m *MsgSetContributorAdd) String() string { return proto.CompactTextString(m) } +func (*MsgSetContributorAdd) ProtoMessage() {} +func (*MsgSetContributorAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{34} +} +func (m *MsgSetContributorAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetContributorAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetContributorAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - if interceptor == nil { - return srv.(MsgServer).MatchReport(ctx, in) +} +func (m *MsgSetContributorAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetContributorAdd.Merge(m, src) +} +func (m *MsgSetContributorAdd) XXX_Size() int { + return m.Size() +} +func (m *MsgSetContributorAdd) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetContributorAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetContributorAdd proto.InternalMessageInfo + +func (m *MsgSetContributorAdd) GetCreator() string { + if m != nil { + return m.Creator } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cardchain.cardchain.Msg/MatchReport", + return "" +} + +func (m *MsgSetContributorAdd) GetSetId() uint64 { + if m != nil { + return m.SetId } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MatchReport(ctx, req.(*MsgMatchReport)) + return 0 +} + +func (m *MsgSetContributorAdd) GetUser() string { + if m != nil { + return m.User } - return interceptor(ctx, in, info, handler) + return "" } -var Msg_serviceDesc = _Msg_serviceDesc -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cardchain.cardchain.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "UserCreate", - Handler: _Msg_UserCreate_Handler, - }, - { - MethodName: "CardSchemeBuy", - Handler: _Msg_CardSchemeBuy_Handler, - }, - { - MethodName: "CardSaveContent", - Handler: _Msg_CardSaveContent_Handler, - }, - { - MethodName: "CardVote", - Handler: _Msg_CardVote_Handler, - }, - { - MethodName: "CardTransfer", - Handler: _Msg_CardTransfer_Handler, - }, - { - MethodName: "CardDonate", - Handler: _Msg_CardDonate_Handler, - }, - { - MethodName: "CardArtworkAdd", - Handler: _Msg_CardArtworkAdd_Handler, - }, - { - MethodName: "CardArtistChange", - Handler: _Msg_CardArtistChange_Handler, - }, - { - MethodName: "CouncilRegister", - Handler: _Msg_CouncilRegister_Handler, - }, - { - MethodName: "CouncilDeregister", - Handler: _Msg_CouncilDeregister_Handler, - }, - { - MethodName: "MatchReport", - Handler: _Msg_MatchReport_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cardchain/cardchain/tx.proto", +type MsgSetContributorAddResponse struct { } -func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSetContributorAddResponse) Reset() { *m = MsgSetContributorAddResponse{} } +func (m *MsgSetContributorAddResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetContributorAddResponse) ProtoMessage() {} +func (*MsgSetContributorAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{35} +} +func (m *MsgSetContributorAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetContributorAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetContributorAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil +} +func (m *MsgSetContributorAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetContributorAddResponse.Merge(m, src) +} +func (m *MsgSetContributorAddResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetContributorAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetContributorAddResponse.DiscardUnknown(m) } -func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgSetContributorAddResponse proto.InternalMessageInfo + +type MsgSetContributorRemove struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` } -func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) +func (m *MsgSetContributorRemove) Reset() { *m = MsgSetContributorRemove{} } +func (m *MsgSetContributorRemove) String() string { return proto.CompactTextString(m) } +func (*MsgSetContributorRemove) ProtoMessage() {} +func (*MsgSetContributorRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{36} +} +func (m *MsgSetContributorRemove) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetContributorRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetContributorRemove.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) if err != nil { - return 0, err + return nil, err } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + return b[:n], nil } - i-- - dAtA[i] = 0x12 - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa +} +func (m *MsgSetContributorRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetContributorRemove.Merge(m, src) +} +func (m *MsgSetContributorRemove) XXX_Size() int { + return m.Size() +} +func (m *MsgSetContributorRemove) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetContributorRemove.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetContributorRemove proto.InternalMessageInfo + +func (m *MsgSetContributorRemove) GetCreator() string { + if m != nil { + return m.Creator } - return len(dAtA) - i, nil + return "" } -func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSetContributorRemove) GetSetId() uint64 { + if m != nil { + return m.SetId } - return dAtA[:n], nil + return 0 } -func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSetContributorRemove) GetUser() string { + if m != nil { + return m.User + } + return "" } -func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +type MsgSetContributorRemoveResponse struct { } -func (m *MsgUserCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSetContributorRemoveResponse) Reset() { *m = MsgSetContributorRemoveResponse{} } +func (m *MsgSetContributorRemoveResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetContributorRemoveResponse) ProtoMessage() {} +func (*MsgSetContributorRemoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{37} +} +func (m *MsgSetContributorRemoveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetContributorRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetContributorRemoveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil +} +func (m *MsgSetContributorRemoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetContributorRemoveResponse.Merge(m, src) +} +func (m *MsgSetContributorRemoveResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetContributorRemoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetContributorRemoveResponse.DiscardUnknown(m) } -func (m *MsgUserCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgSetContributorRemoveResponse proto.InternalMessageInfo + +type MsgSetFinalize struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` } -func (m *MsgUserCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Alias) > 0 { - i -= len(m.Alias) - copy(dAtA[i:], m.Alias) - i = encodeVarintTx(dAtA, i, uint64(len(m.Alias))) - i-- - dAtA[i] = 0x1a - } - if len(m.NewUser) > 0 { - i -= len(m.NewUser) - copy(dAtA[i:], m.NewUser) - i = encodeVarintTx(dAtA, i, uint64(len(m.NewUser))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa +func (m *MsgSetFinalize) Reset() { *m = MsgSetFinalize{} } +func (m *MsgSetFinalize) String() string { return proto.CompactTextString(m) } +func (*MsgSetFinalize) ProtoMessage() {} +func (*MsgSetFinalize) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{38} +} +func (m *MsgSetFinalize) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetFinalize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetFinalize.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *MsgSetFinalize) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetFinalize.Merge(m, src) +} +func (m *MsgSetFinalize) XXX_Size() int { + return m.Size() +} +func (m *MsgSetFinalize) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetFinalize.DiscardUnknown(m) } -func (m *MsgUserCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_MsgSetFinalize proto.InternalMessageInfo + +func (m *MsgSetFinalize) GetCreator() string { + if m != nil { + return m.Creator } - return dAtA[:n], nil + return "" } -func (m *MsgUserCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSetFinalize) GetSetId() uint64 { + if m != nil { + return m.SetId + } + return 0 } -func (m *MsgUserCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +type MsgSetFinalizeResponse struct { } -func (m *MsgCardSchemeBuy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSetFinalizeResponse) Reset() { *m = MsgSetFinalizeResponse{} } +func (m *MsgSetFinalizeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetFinalizeResponse) ProtoMessage() {} +func (*MsgSetFinalizeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{39} +} +func (m *MsgSetFinalizeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetFinalizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetFinalizeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil +} +func (m *MsgSetFinalizeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetFinalizeResponse.Merge(m, src) +} +func (m *MsgSetFinalizeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetFinalizeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetFinalizeResponse.DiscardUnknown(m) } -func (m *MsgCardSchemeBuy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgSetFinalizeResponse proto.InternalMessageInfo + +type MsgSetArtworkAdd struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` } -func (m *MsgCardSchemeBuy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Bid.MarshalToSizedBuffer(dAtA[:i]) +func (m *MsgSetArtworkAdd) Reset() { *m = MsgSetArtworkAdd{} } +func (m *MsgSetArtworkAdd) String() string { return proto.CompactTextString(m) } +func (*MsgSetArtworkAdd) ProtoMessage() {} +func (*MsgSetArtworkAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{40} +} +func (m *MsgSetArtworkAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetArtworkAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetArtworkAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) if err != nil { - return 0, err + return nil, err } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *MsgSetArtworkAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetArtworkAdd.Merge(m, src) +} +func (m *MsgSetArtworkAdd) XXX_Size() int { + return m.Size() +} +func (m *MsgSetArtworkAdd) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetArtworkAdd.DiscardUnknown(m) } -func (m *MsgCardSchemeBuyResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_MsgSetArtworkAdd proto.InternalMessageInfo + +func (m *MsgSetArtworkAdd) GetCreator() string { + if m != nil { + return m.Creator } - return dAtA[:n], nil + return "" } -func (m *MsgCardSchemeBuyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSetArtworkAdd) GetSetId() uint64 { + if m != nil { + return m.SetId + } + return 0 } -func (m *MsgCardSchemeBuyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CardId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.CardId)) - i-- - dAtA[i] = 0x8 +func (m *MsgSetArtworkAdd) GetImage() []byte { + if m != nil { + return m.Image } - return len(dAtA) - i, nil + return nil } -func (m *MsgCardSaveContent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +type MsgSetArtworkAddResponse struct { +} + +func (m *MsgSetArtworkAddResponse) Reset() { *m = MsgSetArtworkAddResponse{} } +func (m *MsgSetArtworkAddResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetArtworkAddResponse) ProtoMessage() {} +func (*MsgSetArtworkAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{41} +} +func (m *MsgSetArtworkAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetArtworkAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetArtworkAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil +} +func (m *MsgSetArtworkAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetArtworkAddResponse.Merge(m, src) +} +func (m *MsgSetArtworkAddResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetArtworkAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetArtworkAddResponse.DiscardUnknown(m) } -func (m *MsgCardSaveContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgSetArtworkAddResponse proto.InternalMessageInfo + +type MsgSetStoryAdd struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` + Story string `protobuf:"bytes,3,opt,name=story,proto3" json:"story,omitempty"` } -func (m *MsgCardSaveContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BalanceAnchor { - i-- - if m.BalanceAnchor { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (m *MsgSetStoryAdd) Reset() { *m = MsgSetStoryAdd{} } +func (m *MsgSetStoryAdd) String() string { return proto.CompactTextString(m) } +func (*MsgSetStoryAdd) ProtoMessage() {} +func (*MsgSetStoryAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{42} +} +func (m *MsgSetStoryAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetStoryAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetStoryAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - i-- - dAtA[i] = 0x30 - } - if len(m.Artist) > 0 { - i -= len(m.Artist) - copy(dAtA[i:], m.Artist) - i = encodeVarintTx(dAtA, i, uint64(len(m.Artist))) - i-- - dAtA[i] = 0x2a - } - if len(m.Notes) > 0 { - i -= len(m.Notes) - copy(dAtA[i:], m.Notes) - i = encodeVarintTx(dAtA, i, uint64(len(m.Notes))) - i-- - dAtA[i] = 0x22 - } - if len(m.Content) > 0 { - i -= len(m.Content) - copy(dAtA[i:], m.Content) - i = encodeVarintTx(dAtA, i, uint64(len(m.Content))) - i-- - dAtA[i] = 0x1a - } - if m.CardId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.CardId)) - i-- - dAtA[i] = 0x10 + return b[:n], nil } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa +} +func (m *MsgSetStoryAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetStoryAdd.Merge(m, src) +} +func (m *MsgSetStoryAdd) XXX_Size() int { + return m.Size() +} +func (m *MsgSetStoryAdd) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetStoryAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetStoryAdd proto.InternalMessageInfo + +func (m *MsgSetStoryAdd) GetCreator() string { + if m != nil { + return m.Creator } - return len(dAtA) - i, nil + return "" } -func (m *MsgCardSaveContentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSetStoryAdd) GetSetId() uint64 { + if m != nil { + return m.SetId } - return dAtA[:n], nil + return 0 } -func (m *MsgCardSaveContentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSetStoryAdd) GetStory() string { + if m != nil { + return m.Story + } + return "" } -func (m *MsgCardSaveContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AirdropClaimed { - i-- - if m.AirdropClaimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +type MsgSetStoryAddResponse struct { } -func (m *MsgCardVote) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSetStoryAddResponse) Reset() { *m = MsgSetStoryAddResponse{} } +func (m *MsgSetStoryAddResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetStoryAddResponse) ProtoMessage() {} +func (*MsgSetStoryAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{43} +} +func (m *MsgSetStoryAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetStoryAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetStoryAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil +} +func (m *MsgSetStoryAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetStoryAddResponse.Merge(m, src) +} +func (m *MsgSetStoryAddResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetStoryAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetStoryAddResponse.DiscardUnknown(m) } -func (m *MsgCardVote) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgSetStoryAddResponse proto.InternalMessageInfo + +type MsgBoosterPackBuy struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` } -func (m *MsgCardVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Vote != nil { - { - size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) +func (m *MsgBoosterPackBuy) Reset() { *m = MsgBoosterPackBuy{} } +func (m *MsgBoosterPackBuy) String() string { return proto.CompactTextString(m) } +func (*MsgBoosterPackBuy) ProtoMessage() {} +func (*MsgBoosterPackBuy) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{44} +} +func (m *MsgBoosterPackBuy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBoosterPackBuy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBoosterPackBuy.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - i-- - dAtA[i] = 0x12 + return b[:n], nil } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa +} +func (m *MsgBoosterPackBuy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBoosterPackBuy.Merge(m, src) +} +func (m *MsgBoosterPackBuy) XXX_Size() int { + return m.Size() +} +func (m *MsgBoosterPackBuy) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBoosterPackBuy.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgBoosterPackBuy proto.InternalMessageInfo + +func (m *MsgBoosterPackBuy) GetCreator() string { + if m != nil { + return m.Creator } - return len(dAtA) - i, nil + return "" } -func (m *MsgCardVoteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgBoosterPackBuy) GetSetId() uint64 { + if m != nil { + return m.SetId } - return dAtA[:n], nil + return 0 } -func (m *MsgCardVoteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type MsgBoosterPackBuyResponse struct { + AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` } -func (m *MsgCardVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AirdropClaimed { - i-- - if m.AirdropClaimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (m *MsgBoosterPackBuyResponse) Reset() { *m = MsgBoosterPackBuyResponse{} } +func (m *MsgBoosterPackBuyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBoosterPackBuyResponse) ProtoMessage() {} +func (*MsgBoosterPackBuyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{45} +} +func (m *MsgBoosterPackBuyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgBoosterPackBuyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgBoosterPackBuyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - i-- - dAtA[i] = 0x8 + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *MsgBoosterPackBuyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBoosterPackBuyResponse.Merge(m, src) +} +func (m *MsgBoosterPackBuyResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgBoosterPackBuyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBoosterPackBuyResponse.DiscardUnknown(m) } -func (m *MsgCardTransfer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_MsgBoosterPackBuyResponse proto.InternalMessageInfo + +func (m *MsgBoosterPackBuyResponse) GetAirdropClaimed() bool { + if m != nil { + return m.AirdropClaimed } - return dAtA[:n], nil + return false } -func (m *MsgCardTransfer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type MsgSellOfferCreate struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Price types.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price"` } -func (m *MsgCardTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Receiver) > 0 { - i -= len(m.Receiver) - copy(dAtA[i:], m.Receiver) - i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) - i-- - dAtA[i] = 0x1a - } - if m.CardId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.CardId)) - i-- - dAtA[i] = 0x10 +func (m *MsgSellOfferCreate) Reset() { *m = MsgSellOfferCreate{} } +func (m *MsgSellOfferCreate) String() string { return proto.CompactTextString(m) } +func (*MsgSellOfferCreate) ProtoMessage() {} +func (*MsgSellOfferCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{46} +} +func (m *MsgSellOfferCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSellOfferCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSellOfferCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa +} +func (m *MsgSellOfferCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSellOfferCreate.Merge(m, src) +} +func (m *MsgSellOfferCreate) XXX_Size() int { + return m.Size() +} +func (m *MsgSellOfferCreate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSellOfferCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSellOfferCreate proto.InternalMessageInfo + +func (m *MsgSellOfferCreate) GetCreator() string { + if m != nil { + return m.Creator } - return len(dAtA) - i, nil + return "" } -func (m *MsgCardTransferResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSellOfferCreate) GetCardId() uint64 { + if m != nil { + return m.CardId } - return dAtA[:n], nil + return 0 } -func (m *MsgCardTransferResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSellOfferCreate) GetPrice() types.Coin { + if m != nil { + return m.Price + } + return types.Coin{} } -func (m *MsgCardTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +type MsgSellOfferCreateResponse struct { } -func (m *MsgCardDonate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSellOfferCreateResponse) Reset() { *m = MsgSellOfferCreateResponse{} } +func (m *MsgSellOfferCreateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSellOfferCreateResponse) ProtoMessage() {} +func (*MsgSellOfferCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{47} +} +func (m *MsgSellOfferCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSellOfferCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSellOfferCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil +} +func (m *MsgSellOfferCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSellOfferCreateResponse.Merge(m, src) +} +func (m *MsgSellOfferCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSellOfferCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSellOfferCreateResponse.DiscardUnknown(m) } -func (m *MsgCardDonate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgSellOfferCreateResponse proto.InternalMessageInfo + +type MsgSellOfferBuy struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SellOfferId uint64 `protobuf:"varint,2,opt,name=sellOfferId,proto3" json:"sellOfferId,omitempty"` } -func (m *MsgCardDonate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) +func (m *MsgSellOfferBuy) Reset() { *m = MsgSellOfferBuy{} } +func (m *MsgSellOfferBuy) String() string { return proto.CompactTextString(m) } +func (*MsgSellOfferBuy) ProtoMessage() {} +func (*MsgSellOfferBuy) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{48} +} +func (m *MsgSellOfferBuy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSellOfferBuy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSellOfferBuy.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) if err != nil { - return 0, err + return nil, err } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.CardId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa + return b[:n], nil } - return len(dAtA) - i, nil } - -func (m *MsgCardDonateResponse) 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 *MsgSellOfferBuy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSellOfferBuy.Merge(m, src) } - -func (m *MsgCardDonateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSellOfferBuy) XXX_Size() int { + return m.Size() +} +func (m *MsgSellOfferBuy) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSellOfferBuy.DiscardUnknown(m) } -func (m *MsgCardDonateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +var xxx_messageInfo_MsgSellOfferBuy proto.InternalMessageInfo + +func (m *MsgSellOfferBuy) GetCreator() string { + if m != nil { + return m.Creator + } + return "" } -func (m *MsgCardArtworkAdd) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSellOfferBuy) GetSellOfferId() uint64 { + if m != nil { + return m.SellOfferId } - return dAtA[:n], nil + return 0 } -func (m *MsgCardArtworkAdd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type MsgSellOfferBuyResponse struct { } -func (m *MsgCardArtworkAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FullArt { - i-- - if m.FullArt { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (m *MsgSellOfferBuyResponse) Reset() { *m = MsgSellOfferBuyResponse{} } +func (m *MsgSellOfferBuyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSellOfferBuyResponse) ProtoMessage() {} +func (*MsgSellOfferBuyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{49} +} +func (m *MsgSellOfferBuyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSellOfferBuyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSellOfferBuyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - i-- - dAtA[i] = 0x20 - } - if len(m.Image) > 0 { - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintTx(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0x1a - } - if m.CardId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa + return b[:n], nil } - return len(dAtA) - i, nil } - -func (m *MsgCardArtworkAddResponse) 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 *MsgSellOfferBuyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSellOfferBuyResponse.Merge(m, src) } - -func (m *MsgCardArtworkAddResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSellOfferBuyResponse) XXX_Size() int { + return m.Size() } - -func (m *MsgCardArtworkAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (m *MsgSellOfferBuyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSellOfferBuyResponse.DiscardUnknown(m) } -func (m *MsgCardArtistChange) 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 -} +var xxx_messageInfo_MsgSellOfferBuyResponse proto.InternalMessageInfo -func (m *MsgCardArtistChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type MsgSellOfferRemove struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + SellOfferId uint64 `protobuf:"varint,2,opt,name=sellOfferId,proto3" json:"sellOfferId,omitempty"` } -func (m *MsgCardArtistChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Artist) > 0 { - i -= len(m.Artist) - copy(dAtA[i:], m.Artist) - i = encodeVarintTx(dAtA, i, uint64(len(m.Artist))) - i-- - dAtA[i] = 0x1a - } - if m.CardId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *MsgSellOfferRemove) Reset() { *m = MsgSellOfferRemove{} } +func (m *MsgSellOfferRemove) String() string { return proto.CompactTextString(m) } +func (*MsgSellOfferRemove) ProtoMessage() {} +func (*MsgSellOfferRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{50} } - -func (m *MsgCardArtistChangeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSellOfferRemove) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSellOfferRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSellOfferRemove.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *MsgCardArtistChangeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSellOfferRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSellOfferRemove.Merge(m, src) } - -func (m *MsgCardArtistChangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (m *MsgSellOfferRemove) XXX_Size() int { + return m.Size() } - -func (m *MsgCouncilRegister) 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 *MsgSellOfferRemove) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSellOfferRemove.DiscardUnknown(m) } -func (m *MsgCouncilRegister) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +var xxx_messageInfo_MsgSellOfferRemove proto.InternalMessageInfo -func (m *MsgCouncilRegister) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa +func (m *MsgSellOfferRemove) GetCreator() string { + if m != nil { + return m.Creator } - return len(dAtA) - i, nil + return "" } -func (m *MsgCouncilRegisterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSellOfferRemove) GetSellOfferId() uint64 { + if m != nil { + return m.SellOfferId } - return dAtA[:n], nil + return 0 } -func (m *MsgCouncilRegisterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type MsgSellOfferRemoveResponse struct { } -func (m *MsgCouncilRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (m *MsgSellOfferRemoveResponse) Reset() { *m = MsgSellOfferRemoveResponse{} } +func (m *MsgSellOfferRemoveResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSellOfferRemoveResponse) ProtoMessage() {} +func (*MsgSellOfferRemoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{51} } - -func (m *MsgCouncilDeregister) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgSellOfferRemoveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSellOfferRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSellOfferRemoveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *MsgCouncilDeregister) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgSellOfferRemoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSellOfferRemoveResponse.Merge(m, src) } - -func (m *MsgCouncilDeregister) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *MsgSellOfferRemoveResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSellOfferRemoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSellOfferRemoveResponse.DiscardUnknown(m) } -func (m *MsgCouncilDeregisterResponse) 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 +var xxx_messageInfo_MsgSellOfferRemoveResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "cardchain.cardchain.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "cardchain.cardchain.MsgUpdateParamsResponse") + proto.RegisterType((*MsgUserCreate)(nil), "cardchain.cardchain.MsgUserCreate") + proto.RegisterType((*MsgUserCreateResponse)(nil), "cardchain.cardchain.MsgUserCreateResponse") + proto.RegisterType((*MsgCardSchemeBuy)(nil), "cardchain.cardchain.MsgCardSchemeBuy") + proto.RegisterType((*MsgCardSchemeBuyResponse)(nil), "cardchain.cardchain.MsgCardSchemeBuyResponse") + proto.RegisterType((*MsgCardSaveContent)(nil), "cardchain.cardchain.MsgCardSaveContent") + proto.RegisterType((*MsgCardSaveContentResponse)(nil), "cardchain.cardchain.MsgCardSaveContentResponse") + proto.RegisterType((*MsgCardVote)(nil), "cardchain.cardchain.MsgCardVote") + proto.RegisterType((*MsgCardVoteResponse)(nil), "cardchain.cardchain.MsgCardVoteResponse") + proto.RegisterType((*MsgCardTransfer)(nil), "cardchain.cardchain.MsgCardTransfer") + proto.RegisterType((*MsgCardTransferResponse)(nil), "cardchain.cardchain.MsgCardTransferResponse") + proto.RegisterType((*MsgCardDonate)(nil), "cardchain.cardchain.MsgCardDonate") + proto.RegisterType((*MsgCardDonateResponse)(nil), "cardchain.cardchain.MsgCardDonateResponse") + proto.RegisterType((*MsgCardArtworkAdd)(nil), "cardchain.cardchain.MsgCardArtworkAdd") + proto.RegisterType((*MsgCardArtworkAddResponse)(nil), "cardchain.cardchain.MsgCardArtworkAddResponse") + proto.RegisterType((*MsgCardArtistChange)(nil), "cardchain.cardchain.MsgCardArtistChange") + proto.RegisterType((*MsgCardArtistChangeResponse)(nil), "cardchain.cardchain.MsgCardArtistChangeResponse") + proto.RegisterType((*MsgCouncilRegister)(nil), "cardchain.cardchain.MsgCouncilRegister") + proto.RegisterType((*MsgCouncilRegisterResponse)(nil), "cardchain.cardchain.MsgCouncilRegisterResponse") + proto.RegisterType((*MsgCouncilDeregister)(nil), "cardchain.cardchain.MsgCouncilDeregister") + proto.RegisterType((*MsgCouncilDeregisterResponse)(nil), "cardchain.cardchain.MsgCouncilDeregisterResponse") + proto.RegisterType((*MsgMatchReport)(nil), "cardchain.cardchain.MsgMatchReport") + proto.RegisterType((*MsgMatchReportResponse)(nil), "cardchain.cardchain.MsgMatchReportResponse") + proto.RegisterType((*MsgCouncilCreate)(nil), "cardchain.cardchain.MsgCouncilCreate") + proto.RegisterType((*MsgCouncilCreateResponse)(nil), "cardchain.cardchain.MsgCouncilCreateResponse") + proto.RegisterType((*MsgMatchReporterAppoint)(nil), "cardchain.cardchain.MsgMatchReporterAppoint") + proto.RegisterType((*MsgMatchReporterAppointResponse)(nil), "cardchain.cardchain.MsgMatchReporterAppointResponse") + proto.RegisterType((*MsgSetCreate)(nil), "cardchain.cardchain.MsgSetCreate") + proto.RegisterType((*MsgSetCreateResponse)(nil), "cardchain.cardchain.MsgSetCreateResponse") + proto.RegisterType((*MsgSetCardAdd)(nil), "cardchain.cardchain.MsgSetCardAdd") + proto.RegisterType((*MsgSetCardAddResponse)(nil), "cardchain.cardchain.MsgSetCardAddResponse") + proto.RegisterType((*MsgSetCardRemove)(nil), "cardchain.cardchain.MsgSetCardRemove") + proto.RegisterType((*MsgSetCardRemoveResponse)(nil), "cardchain.cardchain.MsgSetCardRemoveResponse") + proto.RegisterType((*MsgSetContributorAdd)(nil), "cardchain.cardchain.MsgSetContributorAdd") + proto.RegisterType((*MsgSetContributorAddResponse)(nil), "cardchain.cardchain.MsgSetContributorAddResponse") + proto.RegisterType((*MsgSetContributorRemove)(nil), "cardchain.cardchain.MsgSetContributorRemove") + proto.RegisterType((*MsgSetContributorRemoveResponse)(nil), "cardchain.cardchain.MsgSetContributorRemoveResponse") + proto.RegisterType((*MsgSetFinalize)(nil), "cardchain.cardchain.MsgSetFinalize") + proto.RegisterType((*MsgSetFinalizeResponse)(nil), "cardchain.cardchain.MsgSetFinalizeResponse") + proto.RegisterType((*MsgSetArtworkAdd)(nil), "cardchain.cardchain.MsgSetArtworkAdd") + proto.RegisterType((*MsgSetArtworkAddResponse)(nil), "cardchain.cardchain.MsgSetArtworkAddResponse") + proto.RegisterType((*MsgSetStoryAdd)(nil), "cardchain.cardchain.MsgSetStoryAdd") + proto.RegisterType((*MsgSetStoryAddResponse)(nil), "cardchain.cardchain.MsgSetStoryAddResponse") + proto.RegisterType((*MsgBoosterPackBuy)(nil), "cardchain.cardchain.MsgBoosterPackBuy") + proto.RegisterType((*MsgBoosterPackBuyResponse)(nil), "cardchain.cardchain.MsgBoosterPackBuyResponse") + proto.RegisterType((*MsgSellOfferCreate)(nil), "cardchain.cardchain.MsgSellOfferCreate") + proto.RegisterType((*MsgSellOfferCreateResponse)(nil), "cardchain.cardchain.MsgSellOfferCreateResponse") + proto.RegisterType((*MsgSellOfferBuy)(nil), "cardchain.cardchain.MsgSellOfferBuy") + proto.RegisterType((*MsgSellOfferBuyResponse)(nil), "cardchain.cardchain.MsgSellOfferBuyResponse") + proto.RegisterType((*MsgSellOfferRemove)(nil), "cardchain.cardchain.MsgSellOfferRemove") + proto.RegisterType((*MsgSellOfferRemoveResponse)(nil), "cardchain.cardchain.MsgSellOfferRemoveResponse") } -func (m *MsgCouncilDeregisterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func init() { proto.RegisterFile("cardchain/cardchain/tx.proto", fileDescriptor_3b4a3aba0ac94bc8) } + +var fileDescriptor_3b4a3aba0ac94bc8 = []byte{ + // 1679 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcf, 0x73, 0xd3, 0xc6, + 0x17, 0x8f, 0xb0, 0x13, 0x92, 0x4d, 0x08, 0x20, 0x02, 0x38, 0x22, 0x5f, 0xc7, 0x98, 0x04, 0x42, + 0xbe, 0x89, 0xdd, 0x04, 0x4a, 0x19, 0xa6, 0x65, 0x26, 0x4e, 0xa6, 0x9d, 0x1e, 0x52, 0xa8, 0xd2, + 0xd2, 0xe9, 0x4f, 0x66, 0x2d, 0x6f, 0x64, 0x35, 0x96, 0xd6, 0x5d, 0xad, 0x0d, 0xe1, 0xd4, 0x69, + 0x2f, 0x9d, 0xf6, 0xd2, 0x73, 0xff, 0x02, 0x8e, 0x39, 0xf4, 0x2f, 0x68, 0x2f, 0x1c, 0x19, 0x4e, + 0x3d, 0x75, 0x3a, 0x70, 0xc8, 0xbf, 0xd1, 0xd9, 0x5d, 0x69, 0xf5, 0xc3, 0x92, 0x2c, 0x67, 0xa6, + 0x97, 0x44, 0xbb, 0xfb, 0xd9, 0xf7, 0x3e, 0xef, 0xed, 0xdb, 0x7d, 0xef, 0x8d, 0xc1, 0x82, 0x01, + 0x49, 0xcb, 0x68, 0x43, 0xcb, 0xa9, 0x07, 0x5f, 0xf4, 0x69, 0xad, 0x4b, 0x30, 0xc5, 0xea, 0x05, + 0x39, 0x57, 0x93, 0x5f, 0xda, 0x79, 0x68, 0x5b, 0x0e, 0xae, 0xf3, 0xbf, 0x02, 0xa7, 0x5d, 0x36, + 0xb0, 0x6b, 0x63, 0xb7, 0x6e, 0xbb, 0x66, 0xbd, 0xbf, 0xc1, 0xfe, 0x79, 0x0b, 0xf3, 0x62, 0xe1, + 0x31, 0x1f, 0xd5, 0xc5, 0xc0, 0x5b, 0x9a, 0x33, 0xb1, 0x89, 0xc5, 0x3c, 0xfb, 0xf2, 0x66, 0x2b, + 0x49, 0x7c, 0xba, 0x90, 0x40, 0xdb, 0xdf, 0x57, 0xf6, 0x74, 0x35, 0xa1, 0x8b, 0xea, 0xfd, 0x8d, + 0x26, 0xa2, 0x70, 0xa3, 0x6e, 0x60, 0xcb, 0xc9, 0x92, 0xd0, 0xc7, 0xd4, 0x72, 0x7c, 0x52, 0x8b, + 0x49, 0x08, 0x1b, 0x52, 0xa3, 0x2d, 0x00, 0xd5, 0x3f, 0x15, 0x70, 0x76, 0xd7, 0x35, 0x3f, 0xed, + 0xb6, 0x20, 0x45, 0x0f, 0xb9, 0x72, 0xf5, 0x0e, 0x98, 0x82, 0x3d, 0xda, 0xc6, 0xc4, 0xa2, 0x87, + 0x25, 0xa5, 0xa2, 0xac, 0x4c, 0x35, 0x4a, 0xaf, 0x7e, 0x5f, 0x9f, 0xf3, 0x6c, 0xda, 0x6a, 0xb5, + 0x08, 0x72, 0xdd, 0x3d, 0x4a, 0x2c, 0xc7, 0xd4, 0x03, 0xa8, 0x7a, 0x1f, 0x4c, 0x08, 0xfa, 0xa5, + 0x53, 0x15, 0x65, 0x65, 0x7a, 0xf3, 0x4a, 0x2d, 0xc1, 0xa7, 0x35, 0xa1, 0xa4, 0x31, 0xf5, 0xe2, + 0xef, 0xc5, 0xb1, 0xe7, 0xc7, 0x47, 0xab, 0x8a, 0xee, 0xed, 0xba, 0x77, 0xf7, 0x87, 0xe3, 0xa3, + 0xd5, 0x40, 0xde, 0xcf, 0xc7, 0x47, 0xab, 0xcb, 0x01, 0xeb, 0xa7, 0x21, 0x0b, 0x62, 0x8c, 0xab, + 0xf3, 0xe0, 0x72, 0x6c, 0x4a, 0x47, 0x6e, 0x17, 0x3b, 0x2e, 0xaa, 0x9a, 0xe0, 0x0c, 0x5b, 0x72, + 0x11, 0xd9, 0x26, 0x08, 0x52, 0xa4, 0x96, 0xc0, 0x69, 0x83, 0x7d, 0x61, 0x22, 0x6c, 0xd3, 0xfd, + 0x21, 0x5b, 0x71, 0xd0, 0x13, 0x06, 0xe5, 0x06, 0x4c, 0xe9, 0xfe, 0x50, 0x9d, 0x03, 0xe3, 0xb0, + 0x63, 0x41, 0xb7, 0x54, 0xe0, 0xf3, 0x62, 0x70, 0x6f, 0x86, 0xf1, 0xf5, 0x77, 0x57, 0x2f, 0x83, + 0x8b, 0x11, 0x45, 0x92, 0x81, 0x0d, 0xce, 0xed, 0xba, 0xe6, 0x36, 0x24, 0xad, 0x3d, 0xa3, 0x8d, + 0x6c, 0xd4, 0xe8, 0x1d, 0x66, 0x90, 0xd8, 0x00, 0x85, 0xa6, 0xd5, 0xf2, 0x3c, 0x38, 0x5f, 0xf3, + 0x7c, 0xce, 0x22, 0xa0, 0xe6, 0x45, 0x40, 0x6d, 0x1b, 0x5b, 0x4e, 0xa3, 0xc8, 0xfc, 0xa7, 0x33, + 0x6c, 0x8c, 0xc7, 0x26, 0x28, 0xc5, 0xd5, 0xf9, 0x54, 0xd4, 0x4b, 0x60, 0x82, 0x39, 0xf1, 0xc3, + 0x16, 0xd7, 0x5a, 0xd4, 0xbd, 0x51, 0xf5, 0x0f, 0x05, 0xa8, 0xfe, 0x26, 0xd8, 0x47, 0xdb, 0xd8, + 0xa1, 0xc8, 0xa1, 0x19, 0x2c, 0x03, 0x41, 0xa7, 0xc2, 0x82, 0xf8, 0x0e, 0xb1, 0x99, 0xbb, 0x6a, + 0x46, 0xf7, 0x87, 0xcc, 0x85, 0x0e, 0xa6, 0xc8, 0x2d, 0x15, 0x85, 0x0b, 0xf9, 0x80, 0xc9, 0x81, + 0x84, 0x5a, 0x2e, 0x2d, 0x8d, 0xf3, 0x69, 0x6f, 0xa4, 0x2e, 0x81, 0x33, 0x4d, 0xd8, 0x81, 0x8e, + 0x81, 0xb6, 0x1c, 0xa3, 0x8d, 0x49, 0x69, 0xa2, 0xa2, 0xac, 0x4c, 0xea, 0xd1, 0xc9, 0x98, 0xe1, + 0x3b, 0x40, 0x1b, 0xb4, 0x41, 0x9a, 0x7e, 0x1d, 0xcc, 0x42, 0x8b, 0xb4, 0x08, 0xee, 0x6e, 0x77, + 0xa0, 0x65, 0x23, 0xe1, 0x82, 0x49, 0x3d, 0x36, 0x5b, 0xfd, 0x16, 0x4c, 0x7b, 0x52, 0x1e, 0xe1, + 0xcc, 0x68, 0xb9, 0x05, 0x8a, 0x7d, 0x4c, 0x91, 0x77, 0x52, 0x8b, 0x89, 0xb1, 0xbe, 0x67, 0x39, + 0x66, 0x07, 0x31, 0x41, 0x3a, 0x07, 0xc7, 0x18, 0xbf, 0x07, 0x2e, 0x84, 0x74, 0x8d, 0x4c, 0xd5, + 0xe6, 0x57, 0x97, 0x6d, 0xff, 0x84, 0x40, 0xc7, 0xdd, 0x47, 0xe4, 0x04, 0x27, 0xa6, 0x81, 0x49, + 0x82, 0x0c, 0x64, 0xf5, 0x11, 0xf1, 0xa2, 0x5b, 0x8e, 0x63, 0x6c, 0xc5, 0x25, 0x0b, 0xab, 0x93, + 0x21, 0xfe, 0x93, 0xc2, 0x6f, 0x19, 0x5b, 0xdb, 0xc1, 0x4e, 0xf6, 0x2d, 0x4b, 0x23, 0xf2, 0x0e, + 0x98, 0x80, 0x36, 0xee, 0x79, 0x91, 0x93, 0x23, 0xf6, 0x3d, 0x78, 0xe2, 0x35, 0x0c, 0x98, 0x48, + 0x8e, 0x3f, 0x2a, 0xe0, 0xbc, 0xb7, 0xb2, 0x45, 0xe8, 0x13, 0x4c, 0x0e, 0xb6, 0x5a, 0xad, 0x13, + 0xf0, 0x9c, 0x03, 0xe3, 0x96, 0x0d, 0x4d, 0xe4, 0x05, 0xb8, 0x18, 0x30, 0x39, 0xfb, 0xbd, 0x4e, + 0x67, 0x8b, 0x50, 0x1e, 0xe0, 0x93, 0xba, 0x3f, 0x8c, 0xd1, 0xbb, 0x02, 0xe6, 0x07, 0x48, 0x84, + 0x5e, 0x8a, 0x0b, 0xc1, 0xa2, 0xe5, 0xd2, 0xed, 0x36, 0x74, 0xcc, 0x93, 0xf8, 0x32, 0xb8, 0x56, + 0x85, 0xf0, 0xb5, 0x8a, 0x71, 0xf9, 0x1f, 0xb8, 0x92, 0xa0, 0x4e, 0xb2, 0x79, 0x57, 0xbc, 0x09, + 0xb8, 0xe7, 0x18, 0x56, 0x47, 0x47, 0xa6, 0xe5, 0xd2, 0xac, 0x08, 0x8b, 0x09, 0x5f, 0x10, 0xb7, + 0x31, 0xba, 0x5b, 0xca, 0xbe, 0x0f, 0xe6, 0x82, 0xd5, 0x1d, 0x44, 0x46, 0x95, 0x5e, 0x06, 0x0b, + 0x49, 0xfb, 0xa5, 0xfc, 0x57, 0x0a, 0x98, 0xdd, 0x75, 0xcd, 0x5d, 0x96, 0xe9, 0x74, 0xd4, 0xc5, + 0x84, 0x66, 0xbf, 0xfb, 0x3c, 0x25, 0x4a, 0x37, 0xfa, 0x43, 0xb5, 0x0a, 0x66, 0xba, 0x1d, 0x78, + 0x88, 0x5a, 0xcc, 0x49, 0xee, 0x56, 0xa9, 0x50, 0x29, 0xac, 0x14, 0xf5, 0xc8, 0x5c, 0x0c, 0xd3, + 0x28, 0x15, 0x07, 0x30, 0x0d, 0xf5, 0x0e, 0x38, 0x8d, 0x7b, 0xd4, 0xc0, 0x36, 0xe2, 0xef, 0xdc, + 0xec, 0xe6, 0x42, 0xe2, 0x73, 0xf1, 0x40, 0x60, 0x74, 0x1f, 0x1c, 0x33, 0xba, 0x04, 0x2e, 0x45, + 0x6d, 0x92, 0xe6, 0xea, 0x22, 0xc5, 0x08, 0x77, 0x0c, 0xcd, 0x73, 0x29, 0x51, 0x13, 0xd3, 0xa6, + 0x89, 0x3c, 0x12, 0x96, 0x29, 0xf5, 0x7d, 0xcd, 0x9f, 0x82, 0x10, 0x13, 0x44, 0xb6, 0xba, 0x5d, + 0x6c, 0x65, 0xe6, 0x0c, 0xfe, 0xd2, 0x08, 0xb0, 0x97, 0x5f, 0xe5, 0x38, 0xa6, 0xfa, 0x2a, 0x58, + 0x4c, 0x11, 0x2f, 0x19, 0x3c, 0x57, 0xc0, 0xcc, 0xae, 0x6b, 0xee, 0x21, 0x3a, 0xd4, 0x5c, 0x15, + 0x14, 0x1d, 0x68, 0x23, 0x4f, 0x27, 0xff, 0x4e, 0xbb, 0x20, 0x6a, 0x05, 0x4c, 0xbb, 0x14, 0x93, + 0xc3, 0xcf, 0x88, 0xc5, 0x68, 0x8a, 0x5c, 0x15, 0x9e, 0x62, 0xc7, 0xcd, 0x52, 0x1a, 0xb1, 0x9a, + 0x3d, 0x8a, 0x89, 0x5b, 0x1a, 0xaf, 0x14, 0x56, 0xa6, 0xf4, 0xc8, 0x5c, 0xcc, 0x9a, 0x4b, 0x3c, + 0xd6, 0x25, 0x53, 0x69, 0x02, 0xe2, 0x6f, 0x26, 0x9b, 0x67, 0x37, 0x30, 0xf3, 0x2d, 0x9a, 0x03, + 0xe3, 0x2e, 0xa2, 0xf2, 0xc0, 0xc4, 0x20, 0x74, 0x8e, 0x85, 0x8c, 0x73, 0x14, 0x0f, 0x62, 0xa0, + 0x46, 0xea, 0x6f, 0xf3, 0xa0, 0xf1, 0x16, 0x74, 0x64, 0xe3, 0x3e, 0xfa, 0x8f, 0x28, 0x88, 0x50, + 0x8a, 0x68, 0x0a, 0xb1, 0xf0, 0xbd, 0x13, 0x78, 0xf0, 0x24, 0xce, 0x50, 0x41, 0xb1, 0xe7, 0xca, + 0x1c, 0xc6, 0xbf, 0x13, 0xdf, 0x8c, 0x01, 0x4d, 0x92, 0xc9, 0x01, 0x0f, 0xea, 0xe8, 0xfa, 0x09, + 0xdd, 0x32, 0x9c, 0x8c, 0x08, 0xf1, 0x24, 0x65, 0x92, 0xcf, 0x47, 0xfc, 0x09, 0xdb, 0x43, 0xf4, + 0x7d, 0xcb, 0x81, 0x1d, 0xeb, 0xd9, 0xc8, 0x34, 0x12, 0x9f, 0x8f, 0x90, 0x3c, 0xa9, 0x69, 0xdf, + 0x8f, 0x84, 0x5c, 0x89, 0x31, 0xd9, 0xe4, 0xc4, 0xb4, 0x98, 0x16, 0x07, 0x09, 0xb9, 0xaf, 0xe5, + 0x5b, 0xbb, 0xc7, 0x2e, 0xdb, 0x09, 0x19, 0xf0, 0x8b, 0xea, 0x17, 0xe9, 0x7c, 0x90, 0xe6, 0x03, + 0x5f, 0x8b, 0xd4, 0xff, 0x31, 0xaf, 0x0e, 0x1a, 0x18, 0xb3, 0x3c, 0xf2, 0x10, 0x1a, 0x07, 0xd9, + 0x65, 0x7a, 0x1e, 0x87, 0x6f, 0xf3, 0x5c, 0x1f, 0x15, 0x39, 0x72, 0x91, 0xf7, 0x8b, 0x28, 0xcd, + 0xf7, 0x50, 0xa7, 0xf3, 0x60, 0x7f, 0x3f, 0x47, 0x17, 0x93, 0x56, 0x13, 0xbc, 0x0d, 0xc6, 0xbb, + 0xc4, 0x32, 0x50, 0xde, 0xf2, 0x4a, 0xa0, 0x13, 0xb3, 0x7a, 0x8c, 0x8c, 0xf4, 0xe1, 0x97, 0xbc, + 0x20, 0x95, 0xab, 0xd9, 0x1e, 0x64, 0x4f, 0xad, 0x8f, 0x94, 0x64, 0xc3, 0x53, 0x89, 0xe5, 0x67, + 0x58, 0xb8, 0xd4, 0xfb, 0x4d, 0xd4, 0x45, 0x43, 0x2f, 0xed, 0xa8, 0xaa, 0x63, 0x56, 0x47, 0xef, + 0xe9, 0xe6, 0x6f, 0x17, 0x41, 0x61, 0xd7, 0x35, 0xd5, 0x26, 0x98, 0x89, 0xb4, 0xd1, 0x4b, 0x89, + 0x39, 0x3e, 0xd6, 0xa7, 0x6a, 0x6b, 0x79, 0x50, 0x32, 0x6a, 0xbe, 0x02, 0x20, 0xd4, 0xca, 0x56, + 0x53, 0xf7, 0x4a, 0x8c, 0xb6, 0x3a, 0x1c, 0x23, 0xa5, 0x23, 0x70, 0x26, 0xda, 0xa6, 0x2e, 0xa7, + 0x6d, 0x8e, 0xc0, 0xb4, 0xf5, 0x5c, 0x30, 0xa9, 0xe6, 0x00, 0x9c, 0x8d, 0x77, 0x9a, 0x37, 0x32, + 0x25, 0x04, 0x40, 0xad, 0x9e, 0x13, 0x28, 0x95, 0x3d, 0x02, 0x93, 0xb2, 0x99, 0xab, 0x64, 0x6d, + 0x66, 0x08, 0x6d, 0x65, 0x18, 0x42, 0xca, 0x6d, 0x82, 0x99, 0x48, 0xe7, 0xb5, 0x94, 0xb5, 0xd3, + 0x47, 0xa5, 0x9f, 0x76, 0x52, 0x5b, 0xc5, 0x4e, 0x3b, 0xd4, 0x52, 0x55, 0xb3, 0xf6, 0x0a, 0x4c, + 0xfa, 0x69, 0x0f, 0x36, 0x44, 0x6a, 0x1b, 0xcc, 0xc6, 0x9a, 0xa1, 0xeb, 0x59, 0xbb, 0x03, 0x9c, + 0x56, 0xcb, 0x87, 0x93, 0x9a, 0x1c, 0x70, 0x6e, 0xa0, 0xa9, 0x59, 0x19, 0x22, 0x43, 0x22, 0xb5, + 0xb7, 0xf2, 0x22, 0x23, 0x01, 0x16, 0x6b, 0x5b, 0xd2, 0x03, 0x2c, 0x0a, 0xcc, 0x08, 0xb0, 0xe4, + 0x56, 0x46, 0xfd, 0x0e, 0x9c, 0x1f, 0xec, 0x63, 0x6e, 0x0e, 0x91, 0x12, 0x40, 0xb5, 0x8d, 0xdc, + 0x50, 0xa9, 0xf2, 0x31, 0x98, 0x0e, 0x77, 0x36, 0xd7, 0xd2, 0x24, 0x84, 0x40, 0xda, 0xff, 0x73, + 0x80, 0x22, 0x0f, 0x41, 0xa4, 0x99, 0x58, 0x1e, 0x42, 0xd2, 0x7b, 0x6c, 0xd6, 0x73, 0xc1, 0xa4, + 0x9a, 0x67, 0x60, 0x2e, 0xb1, 0x87, 0x58, 0xcb, 0xc1, 0x55, 0xa2, 0xb5, 0xdb, 0xa3, 0xa0, 0xa5, + 0xee, 0xcf, 0xc1, 0x54, 0xd0, 0x3c, 0x5c, 0x4d, 0x13, 0x21, 0x21, 0xda, 0xcd, 0xa1, 0x90, 0xf0, + 0xb5, 0x0d, 0x55, 0xf5, 0xd5, 0xac, 0x8d, 0x02, 0x93, 0x7e, 0x6d, 0x07, 0xcb, 0x76, 0x76, 0x36, + 0xd1, 0x9a, 0x7d, 0x79, 0xc8, 0x66, 0x01, 0x4b, 0x3f, 0x9b, 0xc4, 0xba, 0x9c, 0x85, 0xf5, 0x60, + 0x51, 0x9e, 0xe9, 0x84, 0x08, 0x34, 0x3d, 0xac, 0x53, 0x0b, 0x70, 0x16, 0x0e, 0x89, 0xd5, 0xf7, + 0x5a, 0x3e, 0x51, 0x9e, 0x9d, 0xb7, 0x47, 0x41, 0x87, 0xaf, 0x54, 0xb8, 0xd2, 0xbe, 0x96, 0x21, + 0xc4, 0x07, 0xa5, 0x5f, 0xa9, 0x84, 0x1a, 0xdb, 0x3b, 0xb6, 0xd0, 0x63, 0x9b, 0x75, 0x6c, 0xa1, + 0xb7, 0x76, 0x3d, 0x17, 0x2c, 0x66, 0x87, 0xac, 0xa1, 0xb3, 0xec, 0xf0, 0x41, 0x99, 0x76, 0xc4, + 0xeb, 0x64, 0x96, 0x35, 0x62, 0x45, 0x72, 0x6a, 0xd6, 0x88, 0xe2, 0xd2, 0xb3, 0x46, 0x4a, 0x85, + 0x7c, 0x00, 0xce, 0xc6, 0xab, 0xde, 0x1b, 0xe9, 0x4c, 0x23, 0xc0, 0xf4, 0x57, 0x3c, 0xa5, 0x74, + 0x65, 0xe9, 0x3c, 0x52, 0xb7, 0x2e, 0x0d, 0x15, 0xc0, 0x4c, 0x5a, 0xcb, 0x83, 0x4a, 0x34, 0xc8, + 0x0b, 0xed, 0xe1, 0x06, 0x79, 0x51, 0x5d, 0xcf, 0x09, 0xf4, 0x95, 0x69, 0xe3, 0xdf, 0x1f, 0x1f, + 0xad, 0x2a, 0x0d, 0xfd, 0xc5, 0xeb, 0xb2, 0xf2, 0xf2, 0x75, 0x59, 0xf9, 0xe7, 0x75, 0x59, 0xf9, + 0xf5, 0x4d, 0x79, 0xec, 0xe5, 0x9b, 0xf2, 0xd8, 0x5f, 0x6f, 0xca, 0x63, 0x5f, 0xdc, 0x35, 0x2d, + 0xda, 0xee, 0x35, 0x6b, 0x06, 0xb6, 0xeb, 0x3b, 0xc8, 0x40, 0x0e, 0x25, 0xb0, 0xc3, 0x1e, 0x82, + 0x0f, 0xa0, 0x8d, 0xea, 0xc9, 0xbf, 0xbb, 0xd0, 0xc3, 0x2e, 0x72, 0x9b, 0x13, 0xfc, 0xa7, 0xa3, + 0x5b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x34, 0xf5, 0x60, 0x44, 0x51, 0x1b, 0x00, 0x00, } -func (m *MsgCouncilDeregisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +// 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 { + // UpdateParams defines a (governance) operation for updating the module + // parameters. The authority defaults to the x/gov module account. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + UserCreate(ctx context.Context, in *MsgUserCreate, opts ...grpc.CallOption) (*MsgUserCreateResponse, error) + CardSchemeBuy(ctx context.Context, in *MsgCardSchemeBuy, opts ...grpc.CallOption) (*MsgCardSchemeBuyResponse, error) + CardSaveContent(ctx context.Context, in *MsgCardSaveContent, opts ...grpc.CallOption) (*MsgCardSaveContentResponse, error) + CardVote(ctx context.Context, in *MsgCardVote, opts ...grpc.CallOption) (*MsgCardVoteResponse, error) + CardTransfer(ctx context.Context, in *MsgCardTransfer, opts ...grpc.CallOption) (*MsgCardTransferResponse, error) + CardDonate(ctx context.Context, in *MsgCardDonate, opts ...grpc.CallOption) (*MsgCardDonateResponse, error) + CardArtworkAdd(ctx context.Context, in *MsgCardArtworkAdd, opts ...grpc.CallOption) (*MsgCardArtworkAddResponse, error) + CardArtistChange(ctx context.Context, in *MsgCardArtistChange, opts ...grpc.CallOption) (*MsgCardArtistChangeResponse, error) + CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) + CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) + MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) + CouncilCreate(ctx context.Context, in *MsgCouncilCreate, opts ...grpc.CallOption) (*MsgCouncilCreateResponse, error) + MatchReporterAppoint(ctx context.Context, in *MsgMatchReporterAppoint, opts ...grpc.CallOption) (*MsgMatchReporterAppointResponse, error) + SetCreate(ctx context.Context, in *MsgSetCreate, opts ...grpc.CallOption) (*MsgSetCreateResponse, error) + SetCardAdd(ctx context.Context, in *MsgSetCardAdd, opts ...grpc.CallOption) (*MsgSetCardAddResponse, error) + SetCardRemove(ctx context.Context, in *MsgSetCardRemove, opts ...grpc.CallOption) (*MsgSetCardRemoveResponse, error) + SetContributorAdd(ctx context.Context, in *MsgSetContributorAdd, opts ...grpc.CallOption) (*MsgSetContributorAddResponse, error) + SetContributorRemove(ctx context.Context, in *MsgSetContributorRemove, opts ...grpc.CallOption) (*MsgSetContributorRemoveResponse, error) + SetFinalize(ctx context.Context, in *MsgSetFinalize, opts ...grpc.CallOption) (*MsgSetFinalizeResponse, error) + SetArtworkAdd(ctx context.Context, in *MsgSetArtworkAdd, opts ...grpc.CallOption) (*MsgSetArtworkAddResponse, error) + SetStoryAdd(ctx context.Context, in *MsgSetStoryAdd, opts ...grpc.CallOption) (*MsgSetStoryAddResponse, error) + BoosterPackBuy(ctx context.Context, in *MsgBoosterPackBuy, opts ...grpc.CallOption) (*MsgBoosterPackBuyResponse, error) + SellOfferCreate(ctx context.Context, in *MsgSellOfferCreate, opts ...grpc.CallOption) (*MsgSellOfferCreateResponse, error) + SellOfferBuy(ctx context.Context, in *MsgSellOfferBuy, opts ...grpc.CallOption) (*MsgSellOfferBuyResponse, error) + SellOfferRemove(ctx context.Context, in *MsgSellOfferRemove, opts ...grpc.CallOption) (*MsgSellOfferRemoveResponse, error) } -func (m *MsgMatchReport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgMatchReport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) UserCreate(ctx context.Context, in *MsgUserCreate, opts ...grpc.CallOption) (*MsgUserCreateResponse, error) { + out := new(MsgUserCreateResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/UserCreate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgMatchReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Outcome != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Outcome)) - i-- - dAtA[i] = 0x28 - } - if len(m.PlayedCardsB) > 0 { - dAtA6 := make([]byte, len(m.PlayedCardsB)*10) - var j5 int - for _, num := range m.PlayedCardsB { - for num >= 1<<7 { - dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j5++ - } - dAtA6[j5] = uint8(num) - j5++ - } - i -= j5 - copy(dAtA[i:], dAtA6[:j5]) - i = encodeVarintTx(dAtA, i, uint64(j5)) - i-- - dAtA[i] = 0x22 - } - if len(m.PlayedCardsA) > 0 { - dAtA8 := make([]byte, len(m.PlayedCardsA)*10) - var j7 int - for _, num := range m.PlayedCardsA { - for num >= 1<<7 { - dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j7++ - } - dAtA8[j7] = uint8(num) - j7++ - } - i -= j7 - copy(dAtA[i:], dAtA8[:j7]) - i = encodeVarintTx(dAtA, i, uint64(j7)) - i-- - dAtA[i] = 0x1a - } - if m.MatchId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.MatchId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa +func (c *msgClient) CardSchemeBuy(ctx context.Context, in *MsgCardSchemeBuy, opts ...grpc.CallOption) (*MsgCardSchemeBuyResponse, error) { + out := new(MsgCardSchemeBuyResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardSchemeBuy", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *MsgMatchReportResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) CardSaveContent(ctx context.Context, in *MsgCardSaveContent, opts ...grpc.CallOption) (*MsgCardSaveContentResponse, error) { + out := new(MsgCardSaveContentResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardSaveContent", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgMatchReportResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) CardVote(ctx context.Context, in *MsgCardVote, opts ...grpc.CallOption) (*MsgCardVoteResponse, error) { + out := new(MsgCardVoteResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardVote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgMatchReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (c *msgClient) CardTransfer(ctx context.Context, in *MsgCardTransfer, opts ...grpc.CallOption) (*MsgCardTransferResponse, error) { + out := new(MsgCardTransferResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardTransfer", in, out, opts...) + if err != nil { + return nil, err + } + return out, 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++ +func (c *msgClient) CardDonate(ctx context.Context, in *MsgCardDonate, opts ...grpc.CallOption) (*MsgCardDonateResponse, error) { + out := new(MsgCardDonateResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardDonate", in, out, opts...) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return out, nil } -func (m *MsgUpdateParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + +func (c *msgClient) CardArtworkAdd(ctx context.Context, in *MsgCardArtworkAdd, opts ...grpc.CallOption) (*MsgCardArtworkAddResponse, error) { + out := new(MsgCardArtworkAddResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardArtworkAdd", in, out, opts...) + if err != nil { + return nil, err } - l = m.Params.Size() - n += 1 + l + sovTx(uint64(l)) - return n + return out, nil } -func (m *MsgUpdateParamsResponse) Size() (n int) { - if m == nil { - return 0 +func (c *msgClient) CardArtistChange(ctx context.Context, in *MsgCardArtistChange, opts ...grpc.CallOption) (*MsgCardArtistChangeResponse, error) { + out := new(MsgCardArtistChangeResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CardArtistChange", in, out, opts...) + if err != nil { + return nil, err } - var l int - _ = l - return n + return out, nil } -func (m *MsgUserCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.NewUser) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (c *msgClient) CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) { + out := new(MsgCouncilRegisterResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CouncilRegister", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgUserCreateResponse) Size() (n int) { - if m == nil { - return 0 +func (c *msgClient) CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) { + out := new(MsgCouncilDeregisterResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CouncilDeregister", in, out, opts...) + if err != nil { + return nil, err } - var l int - _ = l - return n + return out, nil } -func (m *MsgCardSchemeBuy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (c *msgClient) MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) { + out := new(MsgMatchReportResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/MatchReport", in, out, opts...) + if err != nil { + return nil, err } - l = m.Bid.Size() - n += 1 + l + sovTx(uint64(l)) - return n + return out, nil } -func (m *MsgCardSchemeBuyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CardId != 0 { - n += 1 + sovTx(uint64(m.CardId)) +func (c *msgClient) CouncilCreate(ctx context.Context, in *MsgCouncilCreate, opts ...grpc.CallOption) (*MsgCouncilCreateResponse, error) { + out := new(MsgCouncilCreateResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/CouncilCreate", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardSaveContent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.CardId != 0 { - n += 1 + sovTx(uint64(m.CardId)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Notes) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Artist) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.BalanceAnchor { - n += 2 +func (c *msgClient) MatchReporterAppoint(ctx context.Context, in *MsgMatchReporterAppoint, opts ...grpc.CallOption) (*MsgMatchReporterAppointResponse, error) { + out := new(MsgMatchReporterAppointResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/MatchReporterAppoint", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardSaveContentResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AirdropClaimed { - n += 2 +func (c *msgClient) SetCreate(ctx context.Context, in *MsgSetCreate, opts ...grpc.CallOption) (*MsgSetCreateResponse, error) { + out := new(MsgSetCreateResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetCreate", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardVote) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Vote != nil { - l = m.Vote.Size() - n += 1 + l + sovTx(uint64(l)) +func (c *msgClient) SetCardAdd(ctx context.Context, in *MsgSetCardAdd, opts ...grpc.CallOption) (*MsgSetCardAddResponse, error) { + out := new(MsgSetCardAddResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetCardAdd", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardVoteResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AirdropClaimed { - n += 2 +func (c *msgClient) SetCardRemove(ctx context.Context, in *MsgSetCardRemove, opts ...grpc.CallOption) (*MsgSetCardRemoveResponse, error) { + out := new(MsgSetCardRemoveResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetCardRemove", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardTransfer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.CardId != 0 { - n += 1 + sovTx(uint64(m.CardId)) - } - l = len(m.Receiver) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (c *msgClient) SetContributorAdd(ctx context.Context, in *MsgSetContributorAdd, opts ...grpc.CallOption) (*MsgSetContributorAddResponse, error) { + out := new(MsgSetContributorAddResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetContributorAdd", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardTransferResponse) Size() (n int) { - if m == nil { - return 0 +func (c *msgClient) SetContributorRemove(ctx context.Context, in *MsgSetContributorRemove, opts ...grpc.CallOption) (*MsgSetContributorRemoveResponse, error) { + out := new(MsgSetContributorRemoveResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetContributorRemove", in, out, opts...) + if err != nil { + return nil, err } - var l int - _ = l - return n + return out, nil } -func (m *MsgCardDonate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.CardId != 0 { - n += 1 + sovTx(uint64(m.CardId)) +func (c *msgClient) SetFinalize(ctx context.Context, in *MsgSetFinalize, opts ...grpc.CallOption) (*MsgSetFinalizeResponse, error) { + out := new(MsgSetFinalizeResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetFinalize", in, out, opts...) + if err != nil { + return nil, err } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) - return n + return out, nil } -func (m *MsgCardDonateResponse) Size() (n int) { - if m == nil { - return 0 +func (c *msgClient) SetArtworkAdd(ctx context.Context, in *MsgSetArtworkAdd, opts ...grpc.CallOption) (*MsgSetArtworkAddResponse, error) { + out := new(MsgSetArtworkAddResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetArtworkAdd", in, out, opts...) + if err != nil { + return nil, err } - var l int - _ = l - return n + return out, nil } -func (m *MsgCardArtworkAdd) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.CardId != 0 { - n += 1 + sovTx(uint64(m.CardId)) - } - l = len(m.Image) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.FullArt { - n += 2 +func (c *msgClient) SetStoryAdd(ctx context.Context, in *MsgSetStoryAdd, opts ...grpc.CallOption) (*MsgSetStoryAddResponse, error) { + out := new(MsgSetStoryAddResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SetStoryAdd", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardArtworkAddResponse) Size() (n int) { - if m == nil { - return 0 +func (c *msgClient) BoosterPackBuy(ctx context.Context, in *MsgBoosterPackBuy, opts ...grpc.CallOption) (*MsgBoosterPackBuyResponse, error) { + out := new(MsgBoosterPackBuyResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/BoosterPackBuy", in, out, opts...) + if err != nil { + return nil, err } - var l int - _ = l - return n + return out, nil } -func (m *MsgCardArtistChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.CardId != 0 { - n += 1 + sovTx(uint64(m.CardId)) - } - l = len(m.Artist) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (c *msgClient) SellOfferCreate(ctx context.Context, in *MsgSellOfferCreate, opts ...grpc.CallOption) (*MsgSellOfferCreateResponse, error) { + out := new(MsgSellOfferCreateResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SellOfferCreate", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCardArtistChangeResponse) Size() (n int) { - if m == nil { - return 0 +func (c *msgClient) SellOfferBuy(ctx context.Context, in *MsgSellOfferBuy, opts ...grpc.CallOption) (*MsgSellOfferBuyResponse, error) { + out := new(MsgSellOfferBuyResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SellOfferBuy", in, out, opts...) + if err != nil { + return nil, err } - var l int - _ = l - return n + return out, nil } -func (m *MsgCouncilRegister) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func (c *msgClient) SellOfferRemove(ctx context.Context, in *MsgSellOfferRemove, opts ...grpc.CallOption) (*MsgSellOfferRemoveResponse, error) { + out := new(MsgSellOfferRemoveResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/SellOfferRemove", in, out, opts...) + if err != nil { + return nil, err } - return n + return out, nil } -func (m *MsgCouncilRegisterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +// MsgServer is the server API for Msg service. +type MsgServer interface { + // UpdateParams defines a (governance) operation for updating the module + // parameters. The authority defaults to the x/gov module account. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + UserCreate(context.Context, *MsgUserCreate) (*MsgUserCreateResponse, error) + CardSchemeBuy(context.Context, *MsgCardSchemeBuy) (*MsgCardSchemeBuyResponse, error) + CardSaveContent(context.Context, *MsgCardSaveContent) (*MsgCardSaveContentResponse, error) + CardVote(context.Context, *MsgCardVote) (*MsgCardVoteResponse, error) + CardTransfer(context.Context, *MsgCardTransfer) (*MsgCardTransferResponse, error) + CardDonate(context.Context, *MsgCardDonate) (*MsgCardDonateResponse, error) + CardArtworkAdd(context.Context, *MsgCardArtworkAdd) (*MsgCardArtworkAddResponse, error) + CardArtistChange(context.Context, *MsgCardArtistChange) (*MsgCardArtistChangeResponse, error) + CouncilRegister(context.Context, *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) + CouncilDeregister(context.Context, *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) + MatchReport(context.Context, *MsgMatchReport) (*MsgMatchReportResponse, error) + CouncilCreate(context.Context, *MsgCouncilCreate) (*MsgCouncilCreateResponse, error) + MatchReporterAppoint(context.Context, *MsgMatchReporterAppoint) (*MsgMatchReporterAppointResponse, error) + SetCreate(context.Context, *MsgSetCreate) (*MsgSetCreateResponse, error) + SetCardAdd(context.Context, *MsgSetCardAdd) (*MsgSetCardAddResponse, error) + SetCardRemove(context.Context, *MsgSetCardRemove) (*MsgSetCardRemoveResponse, error) + SetContributorAdd(context.Context, *MsgSetContributorAdd) (*MsgSetContributorAddResponse, error) + SetContributorRemove(context.Context, *MsgSetContributorRemove) (*MsgSetContributorRemoveResponse, error) + SetFinalize(context.Context, *MsgSetFinalize) (*MsgSetFinalizeResponse, error) + SetArtworkAdd(context.Context, *MsgSetArtworkAdd) (*MsgSetArtworkAddResponse, error) + SetStoryAdd(context.Context, *MsgSetStoryAdd) (*MsgSetStoryAddResponse, error) + BoosterPackBuy(context.Context, *MsgBoosterPackBuy) (*MsgBoosterPackBuyResponse, error) + SellOfferCreate(context.Context, *MsgSellOfferCreate) (*MsgSellOfferCreateResponse, error) + SellOfferBuy(context.Context, *MsgSellOfferBuy) (*MsgSellOfferBuyResponse, error) + SellOfferRemove(context.Context, *MsgSellOfferRemove) (*MsgSellOfferRemoveResponse, error) } -func (m *MsgCouncilDeregister) Size() (n int) { - if m == nil { - return 0 +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (*UnimplementedMsgServer) UserCreate(ctx context.Context, req *MsgUserCreate) (*MsgUserCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserCreate not implemented") +} +func (*UnimplementedMsgServer) CardSchemeBuy(ctx context.Context, req *MsgCardSchemeBuy) (*MsgCardSchemeBuyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardSchemeBuy not implemented") +} +func (*UnimplementedMsgServer) CardSaveContent(ctx context.Context, req *MsgCardSaveContent) (*MsgCardSaveContentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardSaveContent not implemented") +} +func (*UnimplementedMsgServer) CardVote(ctx context.Context, req *MsgCardVote) (*MsgCardVoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardVote not implemented") +} +func (*UnimplementedMsgServer) CardTransfer(ctx context.Context, req *MsgCardTransfer) (*MsgCardTransferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardTransfer not implemented") +} +func (*UnimplementedMsgServer) CardDonate(ctx context.Context, req *MsgCardDonate) (*MsgCardDonateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardDonate not implemented") +} +func (*UnimplementedMsgServer) CardArtworkAdd(ctx context.Context, req *MsgCardArtworkAdd) (*MsgCardArtworkAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardArtworkAdd not implemented") +} +func (*UnimplementedMsgServer) CardArtistChange(ctx context.Context, req *MsgCardArtistChange) (*MsgCardArtistChangeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardArtistChange not implemented") +} +func (*UnimplementedMsgServer) CouncilRegister(ctx context.Context, req *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CouncilRegister not implemented") +} +func (*UnimplementedMsgServer) CouncilDeregister(ctx context.Context, req *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CouncilDeregister not implemented") +} +func (*UnimplementedMsgServer) MatchReport(ctx context.Context, req *MsgMatchReport) (*MsgMatchReportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MatchReport not implemented") +} +func (*UnimplementedMsgServer) CouncilCreate(ctx context.Context, req *MsgCouncilCreate) (*MsgCouncilCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CouncilCreate not implemented") +} +func (*UnimplementedMsgServer) MatchReporterAppoint(ctx context.Context, req *MsgMatchReporterAppoint) (*MsgMatchReporterAppointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MatchReporterAppoint not implemented") +} +func (*UnimplementedMsgServer) SetCreate(ctx context.Context, req *MsgSetCreate) (*MsgSetCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCreate not implemented") +} +func (*UnimplementedMsgServer) SetCardAdd(ctx context.Context, req *MsgSetCardAdd) (*MsgSetCardAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCardAdd not implemented") +} +func (*UnimplementedMsgServer) SetCardRemove(ctx context.Context, req *MsgSetCardRemove) (*MsgSetCardRemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCardRemove not implemented") +} +func (*UnimplementedMsgServer) SetContributorAdd(ctx context.Context, req *MsgSetContributorAdd) (*MsgSetContributorAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetContributorAdd not implemented") +} +func (*UnimplementedMsgServer) SetContributorRemove(ctx context.Context, req *MsgSetContributorRemove) (*MsgSetContributorRemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetContributorRemove not implemented") +} +func (*UnimplementedMsgServer) SetFinalize(ctx context.Context, req *MsgSetFinalize) (*MsgSetFinalizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetFinalize not implemented") +} +func (*UnimplementedMsgServer) SetArtworkAdd(ctx context.Context, req *MsgSetArtworkAdd) (*MsgSetArtworkAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetArtworkAdd not implemented") +} +func (*UnimplementedMsgServer) SetStoryAdd(ctx context.Context, req *MsgSetStoryAdd) (*MsgSetStoryAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetStoryAdd not implemented") +} +func (*UnimplementedMsgServer) BoosterPackBuy(ctx context.Context, req *MsgBoosterPackBuy) (*MsgBoosterPackBuyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoosterPackBuy not implemented") +} +func (*UnimplementedMsgServer) SellOfferCreate(ctx context.Context, req *MsgSellOfferCreate) (*MsgSellOfferCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SellOfferCreate not implemented") +} +func (*UnimplementedMsgServer) SellOfferBuy(ctx context.Context, req *MsgSellOfferBuy) (*MsgSellOfferBuyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SellOfferBuy not implemented") +} +func (*UnimplementedMsgServer) SellOfferRemove(ctx context.Context, req *MsgSellOfferRemove) (*MsgSellOfferRemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SellOfferRemove not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgCouncilDeregisterResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_UserCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUserCreate) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n + if interceptor == nil { + return srv.(MsgServer).UserCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/UserCreate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UserCreate(ctx, req.(*MsgUserCreate)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgMatchReport) Size() (n int) { - if m == nil { - return 0 +func _Msg_CardSchemeBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCardSchemeBuy) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).CardSchemeBuy(ctx, in) } - if m.MatchId != 0 { - n += 1 + sovTx(uint64(m.MatchId)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CardSchemeBuy", } - if len(m.PlayedCardsA) > 0 { - l = 0 - for _, e := range m.PlayedCardsA { - l += sovTx(uint64(e)) - } - n += 1 + sovTx(uint64(l)) + l + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardSchemeBuy(ctx, req.(*MsgCardSchemeBuy)) } - if len(m.PlayedCardsB) > 0 { - l = 0 - for _, e := range m.PlayedCardsB { - l += sovTx(uint64(e)) - } - n += 1 + sovTx(uint64(l)) + l + return interceptor(ctx, in, info, handler) +} + +func _Msg_CardSaveContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCardSaveContent) + if err := dec(in); err != nil { + return nil, err } - if m.Outcome != 0 { - n += 1 + sovTx(uint64(m.Outcome)) + if interceptor == nil { + return srv.(MsgServer).CardSaveContent(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CardSaveContent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardSaveContent(ctx, req.(*MsgCardSaveContent)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgMatchReportResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_CardVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCardVote) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n + if interceptor == nil { + return srv.(MsgServer).CardVote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CardVote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardVote(ctx, req.(*MsgCardVote)) + } + return interceptor(ctx, in, info, handler) } -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +func _Msg_CardTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCardTransfer) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CardTransfer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CardTransfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardTransfer(ctx, req.(*MsgCardTransfer)) + } + return interceptor(ctx, in, info, handler) } -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func _Msg_CardDonate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCardDonate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CardDonate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CardDonate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardDonate(ctx, req.(*MsgCardDonate)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgUpdateParams) 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 { + +func _Msg_CardArtworkAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCardArtworkAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CardArtworkAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CardArtworkAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardArtworkAdd(ctx, req.(*MsgCardArtworkAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CardArtistChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCardArtistChange) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CardArtistChange(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CardArtistChange", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardArtistChange(ctx, req.(*MsgCardArtistChange)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CouncilRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCouncilRegister) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CouncilRegister(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CouncilRegister", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CouncilRegister(ctx, req.(*MsgCouncilRegister)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CouncilDeregister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCouncilDeregister) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CouncilDeregister(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CouncilDeregister", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CouncilDeregister(ctx, req.(*MsgCouncilDeregister)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_MatchReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMatchReport) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MatchReport(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/MatchReport", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MatchReport(ctx, req.(*MsgMatchReport)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CouncilCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCouncilCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CouncilCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/CouncilCreate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CouncilCreate(ctx, req.(*MsgCouncilCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_MatchReporterAppoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMatchReporterAppoint) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MatchReporterAppoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/MatchReporterAppoint", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MatchReporterAppoint(ctx, req.(*MsgMatchReporterAppoint)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetCreate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCreate(ctx, req.(*MsgSetCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCardAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCardAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCardAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetCardAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCardAdd(ctx, req.(*MsgSetCardAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCardRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCardRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCardRemove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetCardRemove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCardRemove(ctx, req.(*MsgSetCardRemove)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetContributorAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetContributorAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetContributorAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetContributorAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetContributorAdd(ctx, req.(*MsgSetContributorAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetContributorRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetContributorRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetContributorRemove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetContributorRemove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetContributorRemove(ctx, req.(*MsgSetContributorRemove)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetFinalize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetFinalize) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetFinalize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetFinalize", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetFinalize(ctx, req.(*MsgSetFinalize)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetArtworkAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetArtworkAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetArtworkAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetArtworkAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetArtworkAdd(ctx, req.(*MsgSetArtworkAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetStoryAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetStoryAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetStoryAdd(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SetStoryAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetStoryAdd(ctx, req.(*MsgSetStoryAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_BoosterPackBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBoosterPackBuy) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).BoosterPackBuy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/BoosterPackBuy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).BoosterPackBuy(ctx, req.(*MsgBoosterPackBuy)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SellOfferCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSellOfferCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SellOfferCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SellOfferCreate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SellOfferCreate(ctx, req.(*MsgSellOfferCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SellOfferBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSellOfferBuy) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SellOfferBuy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SellOfferBuy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SellOfferBuy(ctx, req.(*MsgSellOfferBuy)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SellOfferRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSellOfferRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SellOfferRemove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/SellOfferRemove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SellOfferRemove(ctx, req.(*MsgSellOfferRemove)) + } + return interceptor(ctx, in, info, handler) +} + +var Msg_serviceDesc = _Msg_serviceDesc +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cardchain.cardchain.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "UserCreate", + Handler: _Msg_UserCreate_Handler, + }, + { + MethodName: "CardSchemeBuy", + Handler: _Msg_CardSchemeBuy_Handler, + }, + { + MethodName: "CardSaveContent", + Handler: _Msg_CardSaveContent_Handler, + }, + { + MethodName: "CardVote", + Handler: _Msg_CardVote_Handler, + }, + { + MethodName: "CardTransfer", + Handler: _Msg_CardTransfer_Handler, + }, + { + MethodName: "CardDonate", + Handler: _Msg_CardDonate_Handler, + }, + { + MethodName: "CardArtworkAdd", + Handler: _Msg_CardArtworkAdd_Handler, + }, + { + MethodName: "CardArtistChange", + Handler: _Msg_CardArtistChange_Handler, + }, + { + MethodName: "CouncilRegister", + Handler: _Msg_CouncilRegister_Handler, + }, + { + MethodName: "CouncilDeregister", + Handler: _Msg_CouncilDeregister_Handler, + }, + { + MethodName: "MatchReport", + Handler: _Msg_MatchReport_Handler, + }, + { + MethodName: "CouncilCreate", + Handler: _Msg_CouncilCreate_Handler, + }, + { + MethodName: "MatchReporterAppoint", + Handler: _Msg_MatchReporterAppoint_Handler, + }, + { + MethodName: "SetCreate", + Handler: _Msg_SetCreate_Handler, + }, + { + MethodName: "SetCardAdd", + Handler: _Msg_SetCardAdd_Handler, + }, + { + MethodName: "SetCardRemove", + Handler: _Msg_SetCardRemove_Handler, + }, + { + MethodName: "SetContributorAdd", + Handler: _Msg_SetContributorAdd_Handler, + }, + { + MethodName: "SetContributorRemove", + Handler: _Msg_SetContributorRemove_Handler, + }, + { + MethodName: "SetFinalize", + Handler: _Msg_SetFinalize_Handler, + }, + { + MethodName: "SetArtworkAdd", + Handler: _Msg_SetArtworkAdd_Handler, + }, + { + MethodName: "SetStoryAdd", + Handler: _Msg_SetStoryAdd_Handler, + }, + { + MethodName: "BoosterPackBuy", + Handler: _Msg_BoosterPackBuy_Handler, + }, + { + MethodName: "SellOfferCreate", + Handler: _Msg_SellOfferCreate_Handler, + }, + { + MethodName: "SellOfferBuy", + Handler: _Msg_SellOfferBuy_Handler, + }, + { + MethodName: "SellOfferRemove", + Handler: _Msg_SellOfferRemove_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cardchain/cardchain/tx.proto", +} + +func (m *MsgUpdateParams) 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 *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) 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 *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgUserCreate) 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 *MsgUserCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUserCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Alias) > 0 { + i -= len(m.Alias) + copy(dAtA[i:], m.Alias) + i = encodeVarintTx(dAtA, i, uint64(len(m.Alias))) + i-- + dAtA[i] = 0x1a + } + if len(m.NewUser) > 0 { + i -= len(m.NewUser) + copy(dAtA[i:], m.NewUser) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewUser))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUserCreateResponse) 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 *MsgUserCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUserCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCardSchemeBuy) 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 *MsgCardSchemeBuy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardSchemeBuy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Bid.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCardSchemeBuyResponse) 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 *MsgCardSchemeBuyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardSchemeBuyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgCardSaveContent) 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 *MsgCardSaveContent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardSaveContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BalanceAnchor { + i-- + if m.BalanceAnchor { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.Artist) > 0 { + i -= len(m.Artist) + copy(dAtA[i:], m.Artist) + i = encodeVarintTx(dAtA, i, uint64(len(m.Artist))) + i-- + dAtA[i] = 0x2a + } + if len(m.Notes) > 0 { + i -= len(m.Notes) + copy(dAtA[i:], m.Notes) + i = encodeVarintTx(dAtA, i, uint64(len(m.Notes))) + i-- + dAtA[i] = 0x22 + } + if len(m.Content) > 0 { + i -= len(m.Content) + copy(dAtA[i:], m.Content) + i = encodeVarintTx(dAtA, i, uint64(len(m.Content))) + i-- + dAtA[i] = 0x1a + } + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCardSaveContentResponse) 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 *MsgCardSaveContentResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardSaveContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AirdropClaimed { + i-- + if m.AirdropClaimed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgCardVote) 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 *MsgCardVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Vote != nil { + { + size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCardVoteResponse) 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 *MsgCardVoteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AirdropClaimed { + i-- + if m.AirdropClaimed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgCardTransfer) 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 *MsgCardTransfer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x1a + } + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCardTransferResponse) 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 *MsgCardTransferResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCardDonate) 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 *MsgCardDonate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardDonate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCardDonateResponse) 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 *MsgCardDonateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardDonateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCardArtworkAdd) 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 *MsgCardArtworkAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardArtworkAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FullArt { + i-- + if m.FullArt { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.Image) > 0 { + i -= len(m.Image) + copy(dAtA[i:], m.Image) + i = encodeVarintTx(dAtA, i, uint64(len(m.Image))) + i-- + dAtA[i] = 0x1a + } + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCardArtworkAddResponse) 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 *MsgCardArtworkAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardArtworkAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCardArtistChange) 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 *MsgCardArtistChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardArtistChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Artist) > 0 { + i -= len(m.Artist) + copy(dAtA[i:], m.Artist) + i = encodeVarintTx(dAtA, i, uint64(len(m.Artist))) + i-- + dAtA[i] = 0x1a + } + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCardArtistChangeResponse) 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 *MsgCardArtistChangeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCardArtistChangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCouncilRegister) 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 *MsgCouncilRegister) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCouncilRegister) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCouncilRegisterResponse) 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 *MsgCouncilRegisterResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCouncilRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCouncilDeregister) 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 *MsgCouncilDeregister) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCouncilDeregister) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCouncilDeregisterResponse) 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 *MsgCouncilDeregisterResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCouncilDeregisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgMatchReport) 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 *MsgMatchReport) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMatchReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Outcome != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Outcome)) + i-- + dAtA[i] = 0x28 + } + if len(m.PlayedCardsB) > 0 { + dAtA6 := make([]byte, len(m.PlayedCardsB)*10) + var j5 int + for _, num := range m.PlayedCardsB { + for num >= 1<<7 { + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA6[j5] = uint8(num) + j5++ + } + i -= j5 + copy(dAtA[i:], dAtA6[:j5]) + i = encodeVarintTx(dAtA, i, uint64(j5)) + i-- + dAtA[i] = 0x22 + } + if len(m.PlayedCardsA) > 0 { + dAtA8 := make([]byte, len(m.PlayedCardsA)*10) + var j7 int + for _, num := range m.PlayedCardsA { + for num >= 1<<7 { + dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j7++ + } + dAtA8[j7] = uint8(num) + j7++ + } + i -= j7 + copy(dAtA[i:], dAtA8[:j7]) + i = encodeVarintTx(dAtA, i, uint64(j7)) + i-- + dAtA[i] = 0x1a + } + if m.MatchId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.MatchId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgMatchReportResponse) 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 *MsgMatchReportResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMatchReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCouncilCreate) 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 *MsgCouncilCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCouncilCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCouncilCreateResponse) 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 *MsgCouncilCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCouncilCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgMatchReporterAppoint) 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 *MsgMatchReporterAppoint) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMatchReporterAppoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reporter) > 0 { + i -= len(m.Reporter) + copy(dAtA[i:], m.Reporter) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reporter))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgMatchReporterAppointResponse) 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 *MsgMatchReporterAppointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMatchReporterAppointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetCreate) 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 *MsgSetCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Contributors) > 0 { + for iNdEx := len(m.Contributors) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Contributors[iNdEx]) + copy(dAtA[i:], m.Contributors[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Contributors[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.StoryWriter) > 0 { + i -= len(m.StoryWriter) + copy(dAtA[i:], m.StoryWriter) + i = encodeVarintTx(dAtA, i, uint64(len(m.StoryWriter))) + i-- + dAtA[i] = 0x22 + } + if len(m.Artist) > 0 { + i -= len(m.Artist) + copy(dAtA[i:], m.Artist) + i = encodeVarintTx(dAtA, i, uint64(len(m.Artist))) + 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.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetCreateResponse) 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 *MsgSetCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetCardAdd) 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 *MsgSetCardAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCardAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x18 + } + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetCardAddResponse) 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 *MsgSetCardAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCardAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetCardRemove) 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 *MsgSetCardRemove) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCardRemove) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x18 + } + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetCardRemoveResponse) 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 *MsgSetCardRemoveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCardRemoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetContributorAdd) 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 *MsgSetContributorAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetContributorAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarintTx(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0x1a + } + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetContributorAddResponse) 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 *MsgSetContributorAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetContributorAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetContributorRemove) 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 *MsgSetContributorRemove) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetContributorRemove) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarintTx(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0x1a + } + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetContributorRemoveResponse) 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 *MsgSetContributorRemoveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetContributorRemoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetFinalize) 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 *MsgSetFinalize) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetFinalize) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetFinalizeResponse) 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 *MsgSetFinalizeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetFinalizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetArtworkAdd) 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 *MsgSetArtworkAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetArtworkAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Image) > 0 { + i -= len(m.Image) + copy(dAtA[i:], m.Image) + i = encodeVarintTx(dAtA, i, uint64(len(m.Image))) + i-- + dAtA[i] = 0x1a + } + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetArtworkAddResponse) 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 *MsgSetArtworkAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetArtworkAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetStoryAdd) 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 *MsgSetStoryAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetStoryAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Story) > 0 { + i -= len(m.Story) + copy(dAtA[i:], m.Story) + i = encodeVarintTx(dAtA, i, uint64(len(m.Story))) + i-- + dAtA[i] = 0x1a + } + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetStoryAddResponse) 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 *MsgSetStoryAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetStoryAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgBoosterPackBuy) 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 *MsgBoosterPackBuy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBoosterPackBuy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SetId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SetId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgBoosterPackBuyResponse) 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 *MsgBoosterPackBuyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgBoosterPackBuyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AirdropClaimed { + i-- + if m.AirdropClaimed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgSellOfferCreate) 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 *MsgSellOfferCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSellOfferCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Price.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.CardId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CardId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSellOfferCreateResponse) 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 *MsgSellOfferCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSellOfferCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSellOfferBuy) 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 *MsgSellOfferBuy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSellOfferBuy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SellOfferId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SellOfferId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSellOfferBuyResponse) 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 *MsgSellOfferBuyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSellOfferBuyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSellOfferRemove) 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 *MsgSellOfferRemove) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSellOfferRemove) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SellOfferId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.SellOfferId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSellOfferRemoveResponse) 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 *MsgSellOfferRemoveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSellOfferRemoveResponse) 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 *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUserCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewUser) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Alias) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUserCreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCardSchemeBuy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Bid.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCardSchemeBuyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + return n +} + +func (m *MsgCardSaveContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + l = len(m.Content) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Notes) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Artist) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.BalanceAnchor { + n += 2 + } + return n +} + +func (m *MsgCardSaveContentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AirdropClaimed { + n += 2 + } + return n +} + +func (m *MsgCardVote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Vote != nil { + l = m.Vote.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCardVoteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AirdropClaimed { + n += 2 + } + return n +} + +func (m *MsgCardTransfer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCardTransferResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCardDonate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCardDonateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCardArtworkAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + l = len(m.Image) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.FullArt { + n += 2 + } + return n +} + +func (m *MsgCardArtworkAddResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCardArtistChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + l = len(m.Artist) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCardArtistChangeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCouncilRegister) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCouncilRegisterResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCouncilDeregister) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCouncilDeregisterResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgMatchReport) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.MatchId != 0 { + n += 1 + sovTx(uint64(m.MatchId)) + } + if len(m.PlayedCardsA) > 0 { + l = 0 + for _, e := range m.PlayedCardsA { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.PlayedCardsB) > 0 { + l = 0 + for _, e := range m.PlayedCardsB { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if m.Outcome != 0 { + n += 1 + sovTx(uint64(m.Outcome)) + } + return n +} + +func (m *MsgMatchReportResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCouncilCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + return n +} + +func (m *MsgCouncilCreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgMatchReporterAppoint) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Reporter) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgMatchReporterAppointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + 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.Artist) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.StoryWriter) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Contributors) > 0 { + for _, s := range m.Contributors { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetCreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetCardAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + return n +} + +func (m *MsgSetCardAddResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetCardRemove) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + return n +} + +func (m *MsgSetCardRemoveResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetContributorAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + l = len(m.User) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetContributorAddResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetContributorRemove) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + l = len(m.User) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetContributorRemoveResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetFinalize) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + return n +} + +func (m *MsgSetFinalizeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetArtworkAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + l = len(m.Image) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetArtworkAddResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetStoryAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + l = len(m.Story) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetStoryAddResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBoosterPackBuy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SetId != 0 { + n += 1 + sovTx(uint64(m.SetId)) + } + return n +} + +func (m *MsgBoosterPackBuyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AirdropClaimed { + n += 2 + } + return n +} + +func (m *MsgSellOfferCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CardId != 0 { + n += 1 + sovTx(uint64(m.CardId)) + } + l = m.Price.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSellOfferCreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSellOfferBuy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SellOfferId != 0 { + n += 1 + sovTx(uint64(m.SellOfferId)) + } + return n +} + +func (m *MsgSellOfferBuyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSellOfferRemove) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.SellOfferId != 0 { + n += 1 + sovTx(uint64(m.SellOfferId)) + } + return n +} + +func (m *MsgSellOfferRemoveResponse) 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 *MsgUpdateParams) 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 + } + if err := m.Params.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 *MsgUpdateParamsResponse) 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: 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 *MsgUserCreate) 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: MsgUserCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUserCreate: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewUser", 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.NewUser = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alias", 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.Alias = 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 *MsgUserCreateResponse) 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: MsgUserCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUserCreateResponse: 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 *MsgCardSchemeBuy) 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: MsgCardSchemeBuy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardSchemeBuy: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Bid.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 *MsgCardSchemeBuyResponse) 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: MsgCardSchemeBuyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardSchemeBuyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgCardSaveContent) 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: MsgCardSaveContent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardSaveContent: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) + if m.Content == nil { + m.Content = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Notes", 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.Notes = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artist", 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.Artist = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BalanceAnchor", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BalanceAnchor = bool(v != 0) + 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 *MsgCardSaveContentResponse) 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: MsgCardSaveContentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardSaveContentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AirdropClaimed = bool(v != 0) + 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 *MsgCardVote) 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: MsgCardVote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardVote: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vote == nil { + m.Vote = &SingleVote{} + } + if err := m.Vote.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 *MsgCardVoteResponse) 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: MsgCardVoteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AirdropClaimed = bool(v != 0) + 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 *MsgCardTransfer) 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: MsgCardTransfer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardTransfer: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = 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 *MsgCardTransferResponse) 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: MsgCardTransferResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardTransferResponse: 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 *MsgCardDonate) 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: MsgCardDonate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardDonate: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.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 *MsgCardDonateResponse) 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: MsgCardDonateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardDonateResponse: 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 *MsgCardArtworkAdd) 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: MsgCardArtworkAdd: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardArtworkAdd: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Image = append(m.Image[:0], dAtA[iNdEx:postIndex]...) + if m.Image == nil { + m.Image = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FullArt", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FullArt = bool(v != 0) + 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 *MsgCardArtworkAddResponse) 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: MsgCardArtworkAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardArtworkAddResponse: 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 *MsgCardArtistChange) 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: MsgCardArtistChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardArtistChange: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artist", 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.Artist = 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 *MsgCardArtistChangeResponse) 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: MsgCardArtistChangeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCardArtistChangeResponse: 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 *MsgCouncilRegister) 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: MsgCouncilRegister: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCouncilRegister: 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 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.Creator = 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 *MsgCouncilRegisterResponse) 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: MsgCouncilRegisterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCouncilRegisterResponse: 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 *MsgCouncilDeregister) 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: MsgCouncilDeregister: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCouncilDeregister: 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 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.Creator = 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 *MsgCouncilDeregisterResponse) 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: MsgCouncilDeregisterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCouncilDeregisterResponse: 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 *MsgMatchReport) 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: MsgMatchReport: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMatchReport: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType) + } + m.MatchId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MatchId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PlayedCardsA = append(m.PlayedCardsA, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PlayedCardsA) == 0 { + m.PlayedCardsA = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PlayedCardsA = append(m.PlayedCardsA, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field PlayedCardsA", wireType) + } + case 4: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PlayedCardsB = append(m.PlayedCardsB, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PlayedCardsB) == 0 { + m.PlayedCardsB = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PlayedCardsB = append(m.PlayedCardsB, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field PlayedCardsB", wireType) + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + } + m.Outcome = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Outcome |= Outcome(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgMatchReportResponse) 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: MsgMatchReportResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMatchReportResponse: 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 *MsgCouncilCreate) 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: MsgCouncilCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCouncilCreate: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgCouncilCreateResponse) 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: MsgCouncilCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCouncilCreateResponse: 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 *MsgMatchReporterAppoint) 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: MsgMatchReporterAppoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMatchReporterAppoint: 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reporter", 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.Reporter = 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 *MsgMatchReporterAppointResponse) 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: MsgMatchReporterAppointResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMatchReporterAppointResponse: 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 *MsgSetCreate) 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 + 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: MsgSetCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCreate: 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 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.Creator = 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 Artist", 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Artist = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StoryWriter", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3072,13 +9023,13 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Authority = string(dAtA[iNdEx:postIndex]) + m.StoryWriter = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Contributors", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3088,24 +9039,23 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Contributors = append(m.Contributors, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -3128,7 +9078,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetCreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3151,10 +9101,10 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetCreateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3178,7 +9128,7 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { +func (m *MsgSetCardAdd) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3201,10 +9151,10 @@ func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUserCreate: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetCardAdd: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUserCreate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetCardAdd: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3240,10 +9190,10 @@ func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewUser", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) } - var stringLen uint64 + m.SetId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3253,29 +9203,16 @@ func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.SetId |= 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.NewUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) } - var stringLen uint64 + m.CardId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3285,24 +9222,11 @@ func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.CardId |= 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.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3324,7 +9248,7 @@ func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUserCreateResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetCardAddResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3347,10 +9271,10 @@ func (m *MsgUserCreateResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUserCreateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetCardAddResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUserCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetCardAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3374,7 +9298,7 @@ func (m *MsgUserCreateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSchemeBuy) Unmarshal(dAtA []byte) error { +func (m *MsgSetCardRemove) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3397,10 +9321,10 @@ func (m *MsgCardSchemeBuy) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardSchemeBuy: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetCardRemove: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardSchemeBuy: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetCardRemove: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3436,10 +9360,10 @@ func (m *MsgCardSchemeBuy) Unmarshal(dAtA []byte) error { m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bid", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) } - var msglen int + m.SetId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3449,25 +9373,30 @@ func (m *MsgCardSchemeBuy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.SetId |= uint64(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 + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) } - if err := m.Bid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3489,7 +9418,7 @@ func (m *MsgCardSchemeBuy) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSchemeBuyResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetCardRemoveResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3512,31 +9441,12 @@ func (m *MsgCardSchemeBuyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardSchemeBuyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetCardRemoveResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardSchemeBuyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetCardRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - m.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3558,7 +9468,7 @@ func (m *MsgCardSchemeBuyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { +func (m *MsgSetContributorAdd) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3581,10 +9491,10 @@ func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardSaveContent: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetContributorAdd: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardSaveContent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetContributorAdd: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3621,9 +9531,9 @@ func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) } - m.CardId = 0 + m.SetId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3633,80 +9543,14 @@ func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CardId |= uint64(b&0x7F) << shift + m.SetId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) - if m.Content == nil { - m.Content = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Notes", 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.Notes = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Artist", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3731,31 +9575,11 @@ func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { if postIndex < 0 { return ErrInvalidLengthTx } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Artist = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BalanceAnchor", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if postIndex > l { + return io.ErrUnexpectedEOF } - m.BalanceAnchor = bool(v != 0) + m.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3777,7 +9601,7 @@ func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSaveContentResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetContributorAddResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3800,32 +9624,12 @@ func (m *MsgCardSaveContentResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardSaveContentResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetContributorAddResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardSaveContentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetContributorAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AirdropClaimed = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3847,7 +9651,7 @@ func (m *MsgCardSaveContentResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardVote) Unmarshal(dAtA []byte) error { +func (m *MsgSetContributorRemove) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3870,10 +9674,10 @@ func (m *MsgCardVote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardVote: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetContributorRemove: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardVote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetContributorRemove: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3909,10 +9713,29 @@ func (m *MsgCardVote) Unmarshal(dAtA []byte) error { m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) + } + m.SetId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SetId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3922,27 +9745,23 @@ func (m *MsgCardVote) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Vote == nil { - m.Vote = &SingleVote{} - } - if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.User = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3965,7 +9784,7 @@ func (m *MsgCardVote) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardVoteResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetContributorRemoveResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3988,32 +9807,12 @@ func (m *MsgCardVoteResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardVoteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetContributorRemoveResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetContributorRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AirdropClaimed = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4035,7 +9834,7 @@ func (m *MsgCardVoteResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardTransfer) Unmarshal(dAtA []byte) error { +func (m *MsgSetFinalize) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4058,10 +9857,10 @@ func (m *MsgCardTransfer) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardTransfer: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetFinalize: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardTransfer: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetFinalize: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4098,28 +9897,9 @@ func (m *MsgCardTransfer) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - m.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) - } - var stringLen uint64 + m.SetId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4129,24 +9909,11 @@ func (m *MsgCardTransfer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.SetId |= 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.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4168,7 +9935,7 @@ func (m *MsgCardTransfer) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardTransferResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetFinalizeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4191,10 +9958,10 @@ func (m *MsgCardTransferResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardTransferResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetFinalizeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardTransferResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetFinalizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4218,7 +9985,7 @@ func (m *MsgCardTransferResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardDonate) Unmarshal(dAtA []byte) error { +func (m *MsgSetArtworkAdd) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4241,10 +10008,10 @@ func (m *MsgCardDonate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardDonate: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetArtworkAdd: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardDonate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetArtworkAdd: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4281,9 +10048,9 @@ func (m *MsgCardDonate) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) } - m.CardId = 0 + m.SetId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4293,16 +10060,16 @@ func (m *MsgCardDonate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CardId |= uint64(b&0x7F) << shift + m.SetId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4312,23 +10079,24 @@ func (m *MsgCardDonate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Image = append(m.Image[:0], dAtA[iNdEx:postIndex]...) + if m.Image == nil { + m.Image = []byte{} } iNdEx = postIndex default: @@ -4352,7 +10120,7 @@ func (m *MsgCardDonate) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardDonateResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetArtworkAddResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4375,10 +10143,10 @@ func (m *MsgCardDonateResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardDonateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetArtworkAddResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardDonateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetArtworkAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4402,7 +10170,7 @@ func (m *MsgCardDonateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardArtworkAdd) Unmarshal(dAtA []byte) error { +func (m *MsgSetStoryAdd) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4425,10 +10193,10 @@ func (m *MsgCardArtworkAdd) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardArtworkAdd: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetStoryAdd: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardArtworkAdd: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetStoryAdd: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4465,9 +10233,9 @@ func (m *MsgCardArtworkAdd) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) } - m.CardId = 0 + m.SetId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4477,16 +10245,16 @@ func (m *MsgCardArtworkAdd) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CardId |= uint64(b&0x7F) << shift + m.SetId |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Story", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4496,46 +10264,24 @@ func (m *MsgCardArtworkAdd) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.Image = append(m.Image[:0], dAtA[iNdEx:postIndex]...) - if m.Image == nil { - m.Image = []byte{} - } + m.Story = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullArt", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.FullArt = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4557,7 +10303,7 @@ func (m *MsgCardArtworkAdd) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardArtworkAddResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetStoryAddResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4580,10 +10326,10 @@ func (m *MsgCardArtworkAddResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardArtworkAddResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetStoryAddResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardArtworkAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetStoryAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4607,7 +10353,7 @@ func (m *MsgCardArtworkAddResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardArtistChange) Unmarshal(dAtA []byte) error { +func (m *MsgBoosterPackBuy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4630,10 +10376,10 @@ func (m *MsgCardArtistChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardArtistChange: wiretype end group for non-group") + return fmt.Errorf("proto: MsgBoosterPackBuy: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardArtistChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgBoosterPackBuy: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4670,28 +10416,9 @@ func (m *MsgCardArtistChange) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - m.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Artist", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) } - var stringLen uint64 + m.SetId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4701,24 +10428,11 @@ func (m *MsgCardArtistChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.SetId |= 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.Artist = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4740,7 +10454,7 @@ func (m *MsgCardArtistChange) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardArtistChangeResponse) Unmarshal(dAtA []byte) error { +func (m *MsgBoosterPackBuyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4763,12 +10477,32 @@ func (m *MsgCardArtistChangeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCardArtistChangeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgBoosterPackBuyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCardArtistChangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgBoosterPackBuyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AirdropClaimed = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4790,7 +10524,7 @@ func (m *MsgCardArtistChangeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCouncilRegister) Unmarshal(dAtA []byte) error { +func (m *MsgSellOfferCreate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4813,10 +10547,10 @@ func (m *MsgCouncilRegister) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCouncilRegister: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSellOfferCreate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCouncilRegister: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSellOfferCreate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4851,6 +10585,58 @@ func (m *MsgCouncilRegister) Unmarshal(dAtA []byte) error { } m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) + } + m.CardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4872,7 +10658,7 @@ func (m *MsgCouncilRegister) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCouncilRegisterResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSellOfferCreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4895,10 +10681,10 @@ func (m *MsgCouncilRegisterResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCouncilRegisterResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSellOfferCreateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCouncilRegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSellOfferCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4922,7 +10708,7 @@ func (m *MsgCouncilRegisterResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCouncilDeregister) Unmarshal(dAtA []byte) error { +func (m *MsgSellOfferBuy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4945,10 +10731,10 @@ func (m *MsgCouncilDeregister) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCouncilDeregister: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSellOfferBuy: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCouncilDeregister: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSellOfferBuy: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4983,6 +10769,25 @@ func (m *MsgCouncilDeregister) Unmarshal(dAtA []byte) error { } m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SellOfferId", wireType) + } + m.SellOfferId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SellOfferId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -5004,7 +10809,7 @@ func (m *MsgCouncilDeregister) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCouncilDeregisterResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSellOfferBuyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5027,10 +10832,10 @@ func (m *MsgCouncilDeregisterResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCouncilDeregisterResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSellOfferBuyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCouncilDeregisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSellOfferBuyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5054,7 +10859,7 @@ func (m *MsgCouncilDeregisterResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMatchReport) Unmarshal(dAtA []byte) error { +func (m *MsgSellOfferRemove) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5077,10 +10882,10 @@ func (m *MsgMatchReport) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMatchReport: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSellOfferRemove: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMatchReport: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSellOfferRemove: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5117,180 +10922,9 @@ func (m *MsgMatchReport) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType) - } - m.MatchId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MatchId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PlayedCardsA = append(m.PlayedCardsA, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.PlayedCardsA) == 0 { - m.PlayedCardsA = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PlayedCardsA = append(m.PlayedCardsA, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field PlayedCardsA", wireType) - } - case 4: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PlayedCardsB = append(m.PlayedCardsB, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.PlayedCardsB) == 0 { - m.PlayedCardsB = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PlayedCardsB = append(m.PlayedCardsB, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field PlayedCardsB", wireType) - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SellOfferId", wireType) } - m.Outcome = 0 + m.SellOfferId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5300,7 +10934,7 @@ func (m *MsgMatchReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Outcome |= Outcome(b&0x7F) << shift + m.SellOfferId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5326,7 +10960,7 @@ func (m *MsgMatchReport) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMatchReportResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSellOfferRemoveResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5349,10 +10983,10 @@ func (m *MsgMatchReportResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMatchReportResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSellOfferRemoveResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMatchReportResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSellOfferRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: