From 44184b893f587abead5803d97d1751807bbad5aa Mon Sep 17 00:00:00 2001 From: lxgr-linux Date: Tue, 17 Dec 2024 00:01:30 +0100 Subject: [PATCH] feat(#242): Second wave of txs --- api/cardchain/cardchain/genesis.pulsar.go | 9 +- api/cardchain/cardchain/match.pulsar.go | 2189 +++++ .../cardchain/module/module.pulsar.go | 9 +- api/cardchain/cardchain/params.pulsar.go | 9 +- api/cardchain/cardchain/query.pulsar.go | 9 +- api/cardchain/cardchain/query_grpc.pb.go | 1 + api/cardchain/cardchain/tx.pulsar.go | 7824 ++++++++++++++++- api/cardchain/cardchain/tx_grpc.pb.go | 270 +- api/cardchain/cardchain/voting.pulsar.go | 7 +- docs/static/openapi.yml | 2 +- gen.sh | 16 +- proto/cardchain/cardchain/tx.proto | 127 +- .../keeper/msg_server_card_artist_change.go | 17 + .../keeper/msg_server_card_artwork_add.go | 17 + x/cardchain/keeper/msg_server_card_donate.go | 17 + .../keeper/msg_server_card_transfer.go | 17 + x/cardchain/keeper/msg_server_card_vote.go | 9 +- .../keeper/msg_server_council_deregister.go | 17 + .../keeper/msg_server_council_register.go | 17 + x/cardchain/keeper/msg_server_match_report.go | 17 + x/cardchain/module/autocli.go | 54 +- x/cardchain/module/simulation.go | 177 +- x/cardchain/simulation/card_artist_change.go | 29 + x/cardchain/simulation/card_artwork_add.go | 29 + x/cardchain/simulation/card_donate.go | 29 + x/cardchain/simulation/card_transfer.go | 29 + x/cardchain/simulation/council_deregister.go | 29 + x/cardchain/simulation/council_register.go | 29 + x/cardchain/simulation/match_report.go | 29 + x/cardchain/types/codec.go | 27 +- x/cardchain/types/genesis.pb.go | 7 +- x/cardchain/types/match.pb.go | 1162 +++ .../types/message_card_artist_change.go | 25 + .../types/message_card_artist_change_test.go | 40 + x/cardchain/types/message_card_artwork_add.go | 26 + .../types/message_card_artwork_add_test.go | 40 + x/cardchain/types/message_card_donate.go | 25 + x/cardchain/types/message_card_donate_test.go | 40 + x/cardchain/types/message_card_transfer.go | 25 + .../types/message_card_transfer_test.go | 40 + x/cardchain/types/message_card_vote.go | 15 +- x/cardchain/types/message_card_vote_test.go | 2 +- .../types/message_council_deregister.go | 23 + .../types/message_council_deregister_test.go | 40 + x/cardchain/types/message_council_register.go | 23 + .../types/message_council_register_test.go | 40 + x/cardchain/types/message_match_report.go | 27 + .../types/message_match_report_test.go | 40 + x/cardchain/types/params.pb.go | 7 +- x/cardchain/types/query.pb.go | 7 +- x/cardchain/types/tx.pb.go | 4833 ++++++++-- x/cardchain/types/voting.pb.go | 3 +- 52 files changed, 16231 insertions(+), 1320 deletions(-) create mode 100644 api/cardchain/cardchain/match.pulsar.go create mode 100644 x/cardchain/keeper/msg_server_card_artist_change.go create mode 100644 x/cardchain/keeper/msg_server_card_artwork_add.go create mode 100644 x/cardchain/keeper/msg_server_card_donate.go create mode 100644 x/cardchain/keeper/msg_server_card_transfer.go create mode 100644 x/cardchain/keeper/msg_server_council_deregister.go create mode 100644 x/cardchain/keeper/msg_server_council_register.go create mode 100644 x/cardchain/keeper/msg_server_match_report.go create mode 100644 x/cardchain/simulation/card_artist_change.go create mode 100644 x/cardchain/simulation/card_artwork_add.go create mode 100644 x/cardchain/simulation/card_donate.go create mode 100644 x/cardchain/simulation/card_transfer.go create mode 100644 x/cardchain/simulation/council_deregister.go create mode 100644 x/cardchain/simulation/council_register.go create mode 100644 x/cardchain/simulation/match_report.go create mode 100644 x/cardchain/types/match.pb.go create mode 100644 x/cardchain/types/message_card_artist_change.go create mode 100644 x/cardchain/types/message_card_artist_change_test.go create mode 100644 x/cardchain/types/message_card_artwork_add.go create mode 100644 x/cardchain/types/message_card_artwork_add_test.go create mode 100644 x/cardchain/types/message_card_donate.go create mode 100644 x/cardchain/types/message_card_donate_test.go create mode 100644 x/cardchain/types/message_card_transfer.go create mode 100644 x/cardchain/types/message_card_transfer_test.go create mode 100644 x/cardchain/types/message_council_deregister.go create mode 100644 x/cardchain/types/message_council_deregister_test.go create mode 100644 x/cardchain/types/message_council_register.go create mode 100644 x/cardchain/types/message_council_register_test.go create mode 100644 x/cardchain/types/message_match_report.go create mode 100644 x/cardchain/types/message_match_report_test.go diff --git a/api/cardchain/cardchain/genesis.pulsar.go b/api/cardchain/cardchain/genesis.pulsar.go index 95f741db..6468855f 100644 --- a/api/cardchain/cardchain/genesis.pulsar.go +++ b/api/cardchain/cardchain/genesis.pulsar.go @@ -2,16 +2,17 @@ package cardchain import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/cardchain/cardchain/match.pulsar.go b/api/cardchain/cardchain/match.pulsar.go new file mode 100644 index 00000000..b2e29884 --- /dev/null +++ b/api/cardchain/cardchain/match.pulsar.go @@ -0,0 +1,2189 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cardchain + +import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +var ( + md_Match protoreflect.MessageDescriptor + fd_Match_timestamp protoreflect.FieldDescriptor + fd_Match_reporter protoreflect.FieldDescriptor + fd_Match_playerA protoreflect.FieldDescriptor + fd_Match_playerB protoreflect.FieldDescriptor + fd_Match_outcome protoreflect.FieldDescriptor + fd_Match_coinsDistributed protoreflect.FieldDescriptor + fd_Match_serverConfirmed protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_match_proto_init() + md_Match = File_cardchain_cardchain_match_proto.Messages().ByName("Match") + fd_Match_timestamp = md_Match.Fields().ByName("timestamp") + fd_Match_reporter = md_Match.Fields().ByName("reporter") + fd_Match_playerA = md_Match.Fields().ByName("playerA") + fd_Match_playerB = md_Match.Fields().ByName("playerB") + fd_Match_outcome = md_Match.Fields().ByName("outcome") + fd_Match_coinsDistributed = md_Match.Fields().ByName("coinsDistributed") + fd_Match_serverConfirmed = md_Match.Fields().ByName("serverConfirmed") +} + +var _ protoreflect.Message = (*fastReflection_Match)(nil) + +type fastReflection_Match Match + +func (x *Match) ProtoReflect() protoreflect.Message { + return (*fastReflection_Match)(x) +} + +func (x *Match) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_match_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Match_messageType fastReflection_Match_messageType +var _ protoreflect.MessageType = fastReflection_Match_messageType{} + +type fastReflection_Match_messageType struct{} + +func (x fastReflection_Match_messageType) Zero() protoreflect.Message { + return (*fastReflection_Match)(nil) +} +func (x fastReflection_Match_messageType) New() protoreflect.Message { + return new(fastReflection_Match) +} +func (x fastReflection_Match_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Match +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Match) Descriptor() protoreflect.MessageDescriptor { + return md_Match +} + +// 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_Match) Type() protoreflect.MessageType { + return _fastReflection_Match_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Match) New() protoreflect.Message { + return new(fastReflection_Match) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Match) Interface() protoreflect.ProtoMessage { + return (*Match)(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_Match) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Timestamp != uint64(0) { + value := protoreflect.ValueOfUint64(x.Timestamp) + if !f(fd_Match_timestamp, value) { + return + } + } + if x.Reporter != "" { + value := protoreflect.ValueOfString(x.Reporter) + if !f(fd_Match_reporter, value) { + return + } + } + if x.PlayerA != nil { + value := protoreflect.ValueOfMessage(x.PlayerA.ProtoReflect()) + if !f(fd_Match_playerA, value) { + return + } + } + if x.PlayerB != nil { + value := protoreflect.ValueOfMessage(x.PlayerB.ProtoReflect()) + if !f(fd_Match_playerB, value) { + return + } + } + if x.Outcome != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Outcome)) + if !f(fd_Match_outcome, value) { + return + } + } + if x.CoinsDistributed != false { + value := protoreflect.ValueOfBool(x.CoinsDistributed) + if !f(fd_Match_coinsDistributed, value) { + return + } + } + if x.ServerConfirmed != false { + value := protoreflect.ValueOfBool(x.ServerConfirmed) + if !f(fd_Match_serverConfirmed, 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_Match) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.Match.timestamp": + return x.Timestamp != uint64(0) + case "cardchain.cardchain.Match.reporter": + return x.Reporter != "" + case "cardchain.cardchain.Match.playerA": + return x.PlayerA != nil + case "cardchain.cardchain.Match.playerB": + return x.PlayerB != nil + case "cardchain.cardchain.Match.outcome": + return x.Outcome != 0 + case "cardchain.cardchain.Match.coinsDistributed": + return x.CoinsDistributed != false + case "cardchain.cardchain.Match.serverConfirmed": + return x.ServerConfirmed != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) + } + panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.Match.timestamp": + x.Timestamp = uint64(0) + case "cardchain.cardchain.Match.reporter": + x.Reporter = "" + case "cardchain.cardchain.Match.playerA": + x.PlayerA = nil + case "cardchain.cardchain.Match.playerB": + x.PlayerB = nil + case "cardchain.cardchain.Match.outcome": + x.Outcome = 0 + case "cardchain.cardchain.Match.coinsDistributed": + x.CoinsDistributed = false + case "cardchain.cardchain.Match.serverConfirmed": + x.ServerConfirmed = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) + } + panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.Match.timestamp": + value := x.Timestamp + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.Match.reporter": + value := x.Reporter + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.Match.playerA": + value := x.PlayerA + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cardchain.cardchain.Match.playerB": + value := x.PlayerB + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "cardchain.cardchain.Match.outcome": + value := x.Outcome + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "cardchain.cardchain.Match.coinsDistributed": + value := x.CoinsDistributed + return protoreflect.ValueOfBool(value) + case "cardchain.cardchain.Match.serverConfirmed": + value := x.ServerConfirmed + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) + } + panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.Match.timestamp": + x.Timestamp = value.Uint() + case "cardchain.cardchain.Match.reporter": + x.Reporter = value.Interface().(string) + case "cardchain.cardchain.Match.playerA": + x.PlayerA = value.Message().Interface().(*MatchPlayer) + case "cardchain.cardchain.Match.playerB": + x.PlayerB = value.Message().Interface().(*MatchPlayer) + case "cardchain.cardchain.Match.outcome": + x.Outcome = (Outcome)(value.Enum()) + case "cardchain.cardchain.Match.coinsDistributed": + x.CoinsDistributed = value.Bool() + case "cardchain.cardchain.Match.serverConfirmed": + x.ServerConfirmed = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) + } + panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.Match.playerA": + if x.PlayerA == nil { + x.PlayerA = new(MatchPlayer) + } + return protoreflect.ValueOfMessage(x.PlayerA.ProtoReflect()) + case "cardchain.cardchain.Match.playerB": + if x.PlayerB == nil { + x.PlayerB = new(MatchPlayer) + } + return protoreflect.ValueOfMessage(x.PlayerB.ProtoReflect()) + case "cardchain.cardchain.Match.timestamp": + panic(fmt.Errorf("field timestamp of message cardchain.cardchain.Match is not mutable")) + case "cardchain.cardchain.Match.reporter": + panic(fmt.Errorf("field reporter of message cardchain.cardchain.Match is not mutable")) + case "cardchain.cardchain.Match.outcome": + panic(fmt.Errorf("field outcome of message cardchain.cardchain.Match is not mutable")) + case "cardchain.cardchain.Match.coinsDistributed": + panic(fmt.Errorf("field coinsDistributed of message cardchain.cardchain.Match is not mutable")) + case "cardchain.cardchain.Match.serverConfirmed": + panic(fmt.Errorf("field serverConfirmed of message cardchain.cardchain.Match is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) + } + panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.Match.timestamp": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.Match.reporter": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.Match.playerA": + m := new(MatchPlayer) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cardchain.cardchain.Match.playerB": + m := new(MatchPlayer) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "cardchain.cardchain.Match.outcome": + return protoreflect.ValueOfEnum(0) + case "cardchain.cardchain.Match.coinsDistributed": + return protoreflect.ValueOfBool(false) + case "cardchain.cardchain.Match.serverConfirmed": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) + } + panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Match", 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_Match) 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_Match) 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_Match) 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_Match) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Match) + 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.Timestamp != 0 { + n += 1 + runtime.Sov(uint64(x.Timestamp)) + } + l = len(x.Reporter) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PlayerA != nil { + l = options.Size(x.PlayerA) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PlayerB != nil { + l = options.Size(x.PlayerB) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Outcome != 0 { + n += 1 + runtime.Sov(uint64(x.Outcome)) + } + if x.CoinsDistributed { + n += 2 + } + if x.ServerConfirmed { + 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().(*Match) + 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.CoinsDistributed { + i-- + if x.CoinsDistributed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if x.ServerConfirmed { + i-- + if x.ServerConfirmed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if x.Outcome != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) + i-- + dAtA[i] = 0x38 + } + if x.PlayerB != nil { + encoded, err := options.Marshal(x.PlayerB) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if x.PlayerA != nil { + encoded, err := options.Marshal(x.PlayerA) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.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 x.Timestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) + 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().(*Match) + 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: Match: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Match: 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 Timestamp", wireType) + } + x.Timestamp = 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.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayerA", 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.PlayerA == nil { + x.PlayerA = &MatchPlayer{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PlayerA); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayerB", 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.PlayerB == nil { + x.PlayerB = &MatchPlayer{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PlayerB); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + } + x.Outcome = 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.Outcome |= Outcome(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoinsDistributed", 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.CoinsDistributed = bool(v != 0) + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ServerConfirmed", 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.ServerConfirmed = 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 _ protoreflect.List = (*_MatchPlayer_2_list)(nil) + +type _MatchPlayer_2_list struct { + list *[]uint64 +} + +func (x *_MatchPlayer_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MatchPlayer_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_MatchPlayer_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MatchPlayer_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MatchPlayer_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MatchPlayer at list field PlayedCards as it is not of Message kind")) +} + +func (x *_MatchPlayer_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MatchPlayer_2_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_MatchPlayer_2_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_MatchPlayer_5_list)(nil) + +type _MatchPlayer_5_list struct { + list *[]uint64 +} + +func (x *_MatchPlayer_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MatchPlayer_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_MatchPlayer_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MatchPlayer_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MatchPlayer_5_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MatchPlayer at list field Deck as it is not of Message kind")) +} + +func (x *_MatchPlayer_5_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MatchPlayer_5_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_MatchPlayer_5_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_MatchPlayer_6_list)(nil) + +type _MatchPlayer_6_list struct { + list *[]*SingleVote +} + +func (x *_MatchPlayer_6_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MatchPlayer_6_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MatchPlayer_6_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SingleVote) + (*x.list)[i] = concreteValue +} + +func (x *_MatchPlayer_6_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SingleVote) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MatchPlayer_6_list) AppendMutable() protoreflect.Value { + v := new(SingleVote) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MatchPlayer_6_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MatchPlayer_6_list) NewElement() protoreflect.Value { + v := new(SingleVote) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MatchPlayer_6_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MatchPlayer protoreflect.MessageDescriptor + fd_MatchPlayer_addr protoreflect.FieldDescriptor + fd_MatchPlayer_playedCards protoreflect.FieldDescriptor + fd_MatchPlayer_confirmed protoreflect.FieldDescriptor + fd_MatchPlayer_outcome protoreflect.FieldDescriptor + fd_MatchPlayer_deck protoreflect.FieldDescriptor + fd_MatchPlayer_votedCards protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_match_proto_init() + md_MatchPlayer = File_cardchain_cardchain_match_proto.Messages().ByName("MatchPlayer") + fd_MatchPlayer_addr = md_MatchPlayer.Fields().ByName("addr") + fd_MatchPlayer_playedCards = md_MatchPlayer.Fields().ByName("playedCards") + fd_MatchPlayer_confirmed = md_MatchPlayer.Fields().ByName("confirmed") + fd_MatchPlayer_outcome = md_MatchPlayer.Fields().ByName("outcome") + fd_MatchPlayer_deck = md_MatchPlayer.Fields().ByName("deck") + fd_MatchPlayer_votedCards = md_MatchPlayer.Fields().ByName("votedCards") +} + +var _ protoreflect.Message = (*fastReflection_MatchPlayer)(nil) + +type fastReflection_MatchPlayer MatchPlayer + +func (x *MatchPlayer) ProtoReflect() protoreflect.Message { + return (*fastReflection_MatchPlayer)(x) +} + +func (x *MatchPlayer) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_match_proto_msgTypes[1] + 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_MatchPlayer_messageType fastReflection_MatchPlayer_messageType +var _ protoreflect.MessageType = fastReflection_MatchPlayer_messageType{} + +type fastReflection_MatchPlayer_messageType struct{} + +func (x fastReflection_MatchPlayer_messageType) Zero() protoreflect.Message { + return (*fastReflection_MatchPlayer)(nil) +} +func (x fastReflection_MatchPlayer_messageType) New() protoreflect.Message { + return new(fastReflection_MatchPlayer) +} +func (x fastReflection_MatchPlayer_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MatchPlayer +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MatchPlayer) Descriptor() protoreflect.MessageDescriptor { + return md_MatchPlayer +} + +// 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_MatchPlayer) Type() protoreflect.MessageType { + return _fastReflection_MatchPlayer_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MatchPlayer) New() protoreflect.Message { + return new(fastReflection_MatchPlayer) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MatchPlayer) Interface() protoreflect.ProtoMessage { + return (*MatchPlayer)(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_MatchPlayer) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Addr != "" { + value := protoreflect.ValueOfString(x.Addr) + if !f(fd_MatchPlayer_addr, value) { + return + } + } + if len(x.PlayedCards) != 0 { + value := protoreflect.ValueOfList(&_MatchPlayer_2_list{list: &x.PlayedCards}) + if !f(fd_MatchPlayer_playedCards, value) { + return + } + } + if x.Confirmed != false { + value := protoreflect.ValueOfBool(x.Confirmed) + if !f(fd_MatchPlayer_confirmed, value) { + return + } + } + if x.Outcome != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Outcome)) + if !f(fd_MatchPlayer_outcome, value) { + return + } + } + if len(x.Deck) != 0 { + value := protoreflect.ValueOfList(&_MatchPlayer_5_list{list: &x.Deck}) + if !f(fd_MatchPlayer_deck, value) { + return + } + } + if len(x.VotedCards) != 0 { + value := protoreflect.ValueOfList(&_MatchPlayer_6_list{list: &x.VotedCards}) + if !f(fd_MatchPlayer_votedCards, 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_MatchPlayer) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MatchPlayer.addr": + return x.Addr != "" + case "cardchain.cardchain.MatchPlayer.playedCards": + return len(x.PlayedCards) != 0 + case "cardchain.cardchain.MatchPlayer.confirmed": + return x.Confirmed != false + case "cardchain.cardchain.MatchPlayer.outcome": + return x.Outcome != 0 + case "cardchain.cardchain.MatchPlayer.deck": + return len(x.Deck) != 0 + case "cardchain.cardchain.MatchPlayer.votedCards": + return len(x.VotedCards) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MatchPlayer.addr": + x.Addr = "" + case "cardchain.cardchain.MatchPlayer.playedCards": + x.PlayedCards = nil + case "cardchain.cardchain.MatchPlayer.confirmed": + x.Confirmed = false + case "cardchain.cardchain.MatchPlayer.outcome": + x.Outcome = 0 + case "cardchain.cardchain.MatchPlayer.deck": + x.Deck = nil + case "cardchain.cardchain.MatchPlayer.votedCards": + x.VotedCards = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MatchPlayer.addr": + value := x.Addr + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MatchPlayer.playedCards": + if len(x.PlayedCards) == 0 { + return protoreflect.ValueOfList(&_MatchPlayer_2_list{}) + } + listValue := &_MatchPlayer_2_list{list: &x.PlayedCards} + return protoreflect.ValueOfList(listValue) + case "cardchain.cardchain.MatchPlayer.confirmed": + value := x.Confirmed + return protoreflect.ValueOfBool(value) + case "cardchain.cardchain.MatchPlayer.outcome": + value := x.Outcome + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "cardchain.cardchain.MatchPlayer.deck": + if len(x.Deck) == 0 { + return protoreflect.ValueOfList(&_MatchPlayer_5_list{}) + } + listValue := &_MatchPlayer_5_list{list: &x.Deck} + return protoreflect.ValueOfList(listValue) + case "cardchain.cardchain.MatchPlayer.votedCards": + if len(x.VotedCards) == 0 { + return protoreflect.ValueOfList(&_MatchPlayer_6_list{}) + } + listValue := &_MatchPlayer_6_list{list: &x.VotedCards} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MatchPlayer.addr": + x.Addr = value.Interface().(string) + case "cardchain.cardchain.MatchPlayer.playedCards": + lv := value.List() + clv := lv.(*_MatchPlayer_2_list) + x.PlayedCards = *clv.list + case "cardchain.cardchain.MatchPlayer.confirmed": + x.Confirmed = value.Bool() + case "cardchain.cardchain.MatchPlayer.outcome": + x.Outcome = (Outcome)(value.Enum()) + case "cardchain.cardchain.MatchPlayer.deck": + lv := value.List() + clv := lv.(*_MatchPlayer_5_list) + x.Deck = *clv.list + case "cardchain.cardchain.MatchPlayer.votedCards": + lv := value.List() + clv := lv.(*_MatchPlayer_6_list) + x.VotedCards = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MatchPlayer.playedCards": + if x.PlayedCards == nil { + x.PlayedCards = []uint64{} + } + value := &_MatchPlayer_2_list{list: &x.PlayedCards} + return protoreflect.ValueOfList(value) + case "cardchain.cardchain.MatchPlayer.deck": + if x.Deck == nil { + x.Deck = []uint64{} + } + value := &_MatchPlayer_5_list{list: &x.Deck} + return protoreflect.ValueOfList(value) + case "cardchain.cardchain.MatchPlayer.votedCards": + if x.VotedCards == nil { + x.VotedCards = []*SingleVote{} + } + value := &_MatchPlayer_6_list{list: &x.VotedCards} + return protoreflect.ValueOfList(value) + case "cardchain.cardchain.MatchPlayer.addr": + panic(fmt.Errorf("field addr of message cardchain.cardchain.MatchPlayer is not mutable")) + case "cardchain.cardchain.MatchPlayer.confirmed": + panic(fmt.Errorf("field confirmed of message cardchain.cardchain.MatchPlayer is not mutable")) + case "cardchain.cardchain.MatchPlayer.outcome": + panic(fmt.Errorf("field outcome of message cardchain.cardchain.MatchPlayer is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MatchPlayer.addr": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MatchPlayer.playedCards": + list := []uint64{} + return protoreflect.ValueOfList(&_MatchPlayer_2_list{list: &list}) + case "cardchain.cardchain.MatchPlayer.confirmed": + return protoreflect.ValueOfBool(false) + case "cardchain.cardchain.MatchPlayer.outcome": + return protoreflect.ValueOfEnum(0) + case "cardchain.cardchain.MatchPlayer.deck": + list := []uint64{} + return protoreflect.ValueOfList(&_MatchPlayer_5_list{list: &list}) + case "cardchain.cardchain.MatchPlayer.votedCards": + list := []*SingleVote{} + return protoreflect.ValueOfList(&_MatchPlayer_6_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MatchPlayer", 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_MatchPlayer) 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_MatchPlayer) 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_MatchPlayer) 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_MatchPlayer) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MatchPlayer) + 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.Addr) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PlayedCards) > 0 { + l = 0 + for _, e := range x.PlayedCards { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if x.Confirmed { + n += 2 + } + if x.Outcome != 0 { + n += 1 + runtime.Sov(uint64(x.Outcome)) + } + if len(x.Deck) > 0 { + l = 0 + for _, e := range x.Deck { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if len(x.VotedCards) > 0 { + for _, e := range x.VotedCards { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MatchPlayer) + 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.VotedCards) > 0 { + for iNdEx := len(x.VotedCards) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.VotedCards[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + } + if len(x.Deck) > 0 { + var pksize2 int + for _, num := range x.Deck { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range x.Deck { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x2a + } + if x.Outcome != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) + i-- + dAtA[i] = 0x20 + } + if x.Confirmed { + i-- + if x.Confirmed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(x.PlayedCards) > 0 { + var pksize4 int + for _, num := range x.PlayedCards { + pksize4 += runtime.Sov(uint64(num)) + } + i -= pksize4 + j3 := i + for _, num := range x.PlayedCards { + for num >= 1<<7 { + dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA[j3] = uint8(num) + j3++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) + i-- + dAtA[i] = 0x12 + } + if len(x.Addr) > 0 { + i -= len(x.Addr) + copy(dAtA[i:], x.Addr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Addr))) + 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().(*MatchPlayer) + 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: MatchPlayer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MatchPlayer: 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 Addr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PlayedCards = append(x.PlayedCards, v) + } else if wireType == 2 { + var packedLen 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.PlayedCards) == 0 { + x.PlayedCards = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PlayedCards = append(x.PlayedCards, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayedCards", wireType) + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Confirmed", 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.Confirmed = bool(v != 0) + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + } + x.Outcome = 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.Outcome |= Outcome(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Deck = append(x.Deck, v) + } else if wireType == 2 { + var packedLen 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.Deck) == 0 { + x.Deck = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Deck = append(x.Deck, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deck", wireType) + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotedCards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.VotedCards = append(x.VotedCards, &SingleVote{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VotedCards[len(x.VotedCards)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: cardchain/cardchain/match.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) +) + +type Outcome int32 + +const ( + Outcome_AWon Outcome = 0 + Outcome_BWon Outcome = 1 + Outcome_Draw Outcome = 2 + Outcome_Aborted Outcome = 3 +) + +// Enum value maps for Outcome. +var ( + Outcome_name = map[int32]string{ + 0: "AWon", + 1: "BWon", + 2: "Draw", + 3: "Aborted", + } + Outcome_value = map[string]int32{ + "AWon": 0, + "BWon": 1, + "Draw": 2, + "Aborted": 3, + } +) + +func (x Outcome) Enum() *Outcome { + p := new(Outcome) + *p = x + return p +} + +func (x Outcome) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Outcome) Descriptor() protoreflect.EnumDescriptor { + return file_cardchain_cardchain_match_proto_enumTypes[0].Descriptor() +} + +func (Outcome) Type() protoreflect.EnumType { + return &file_cardchain_cardchain_match_proto_enumTypes[0] +} + +func (x Outcome) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Outcome.Descriptor instead. +func (Outcome) EnumDescriptor() ([]byte, []int) { + return file_cardchain_cardchain_match_proto_rawDescGZIP(), []int{0} +} + +type Match struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"` + PlayerA *MatchPlayer `protobuf:"bytes,3,opt,name=playerA,proto3" json:"playerA,omitempty"` + PlayerB *MatchPlayer `protobuf:"bytes,4,opt,name=playerB,proto3" json:"playerB,omitempty"` + Outcome Outcome `protobuf:"varint,7,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` + CoinsDistributed bool `protobuf:"varint,10,opt,name=coinsDistributed,proto3" json:"coinsDistributed,omitempty"` + ServerConfirmed bool `protobuf:"varint,8,opt,name=serverConfirmed,proto3" json:"serverConfirmed,omitempty"` +} + +func (x *Match) Reset() { + *x = Match{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_match_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Match) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Match) ProtoMessage() {} + +// Deprecated: Use Match.ProtoReflect.Descriptor instead. +func (*Match) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_match_proto_rawDescGZIP(), []int{0} +} + +func (x *Match) GetTimestamp() uint64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +func (x *Match) GetReporter() string { + if x != nil { + return x.Reporter + } + return "" +} + +func (x *Match) GetPlayerA() *MatchPlayer { + if x != nil { + return x.PlayerA + } + return nil +} + +func (x *Match) GetPlayerB() *MatchPlayer { + if x != nil { + return x.PlayerB + } + return nil +} + +func (x *Match) GetOutcome() Outcome { + if x != nil { + return x.Outcome + } + return Outcome_AWon +} + +func (x *Match) GetCoinsDistributed() bool { + if x != nil { + return x.CoinsDistributed + } + return false +} + +func (x *Match) GetServerConfirmed() bool { + if x != nil { + return x.ServerConfirmed + } + return false +} + +type MatchPlayer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + PlayedCards []uint64 `protobuf:"varint,2,rep,packed,name=playedCards,proto3" json:"playedCards,omitempty"` + Confirmed bool `protobuf:"varint,3,opt,name=confirmed,proto3" json:"confirmed,omitempty"` + Outcome Outcome `protobuf:"varint,4,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` + Deck []uint64 `protobuf:"varint,5,rep,packed,name=deck,proto3" json:"deck,omitempty"` + VotedCards []*SingleVote `protobuf:"bytes,6,rep,name=votedCards,proto3" json:"votedCards,omitempty"` +} + +func (x *MatchPlayer) Reset() { + *x = MatchPlayer{} + if protoimpl.UnsafeEnabled { + mi := &file_cardchain_cardchain_match_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MatchPlayer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MatchPlayer) ProtoMessage() {} + +// Deprecated: Use MatchPlayer.ProtoReflect.Descriptor instead. +func (*MatchPlayer) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_match_proto_rawDescGZIP(), []int{1} +} + +func (x *MatchPlayer) GetAddr() string { + if x != nil { + return x.Addr + } + return "" +} + +func (x *MatchPlayer) GetPlayedCards() []uint64 { + if x != nil { + return x.PlayedCards + } + return nil +} + +func (x *MatchPlayer) GetConfirmed() bool { + if x != nil { + return x.Confirmed + } + return false +} + +func (x *MatchPlayer) GetOutcome() Outcome { + if x != nil { + return x.Outcome + } + return Outcome_AWon +} + +func (x *MatchPlayer) GetDeck() []uint64 { + if x != nil { + return x.Deck + } + return nil +} + +func (x *MatchPlayer) GetVotedCards() []*SingleVote { + if x != nil { + return x.VotedCards + } + return nil +} + +var File_cardchain_cardchain_match_proto protoreflect.FileDescriptor + +var file_cardchain_cardchain_match_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, + 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x02, 0x0a, 0x05, 0x4d, 0x61, 0x74, + 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 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, 0x12, 0x3a, 0x0a, 0x07, + 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, + 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x42, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x07, 0x70, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x42, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4f, 0x75, 0x74, 0x63, + 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, + 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x44, 0x69, 0x73, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, + 0x65, 0x64, 0x22, 0xee, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64, + 0x43, 0x61, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x6c, 0x61, + 0x79, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4f, 0x75, + 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x03, 0x28, 0x04, 0x52, 0x04, 0x64, 0x65, + 0x63, 0x6b, 0x12, 0x3f, 0x0a, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, + 0x72, 0x64, 0x73, 0x2a, 0x34, 0x0a, 0x07, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x08, + 0x0a, 0x04, 0x41, 0x57, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x57, 0x6f, 0x6e, + 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x61, 0x77, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, + 0x41, 0x62, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x10, 0x03, 0x42, 0xd2, 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, 0x0a, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, + 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, + 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cardchain_cardchain_match_proto_rawDescOnce sync.Once + file_cardchain_cardchain_match_proto_rawDescData = file_cardchain_cardchain_match_proto_rawDesc +) + +func file_cardchain_cardchain_match_proto_rawDescGZIP() []byte { + file_cardchain_cardchain_match_proto_rawDescOnce.Do(func() { + file_cardchain_cardchain_match_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_match_proto_rawDescData) + }) + return file_cardchain_cardchain_match_proto_rawDescData +} + +var file_cardchain_cardchain_match_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cardchain_cardchain_match_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cardchain_cardchain_match_proto_goTypes = []interface{}{ + (Outcome)(0), // 0: cardchain.cardchain.Outcome + (*Match)(nil), // 1: cardchain.cardchain.Match + (*MatchPlayer)(nil), // 2: cardchain.cardchain.MatchPlayer + (*SingleVote)(nil), // 3: cardchain.cardchain.SingleVote +} +var file_cardchain_cardchain_match_proto_depIdxs = []int32{ + 2, // 0: cardchain.cardchain.Match.playerA:type_name -> cardchain.cardchain.MatchPlayer + 2, // 1: cardchain.cardchain.Match.playerB:type_name -> cardchain.cardchain.MatchPlayer + 0, // 2: cardchain.cardchain.Match.outcome:type_name -> cardchain.cardchain.Outcome + 0, // 3: cardchain.cardchain.MatchPlayer.outcome:type_name -> cardchain.cardchain.Outcome + 3, // 4: cardchain.cardchain.MatchPlayer.votedCards:type_name -> cardchain.cardchain.SingleVote + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] 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 +} + +func init() { file_cardchain_cardchain_match_proto_init() } +func file_cardchain_cardchain_match_proto_init() { + if File_cardchain_cardchain_match_proto != nil { + return + } + file_cardchain_cardchain_voting_proto_init() + if !protoimpl.UnsafeEnabled { + file_cardchain_cardchain_match_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Match); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardchain_cardchain_match_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MatchPlayer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cardchain_cardchain_match_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cardchain_cardchain_match_proto_goTypes, + DependencyIndexes: file_cardchain_cardchain_match_proto_depIdxs, + EnumInfos: file_cardchain_cardchain_match_proto_enumTypes, + MessageInfos: file_cardchain_cardchain_match_proto_msgTypes, + }.Build() + File_cardchain_cardchain_match_proto = out.File + file_cardchain_cardchain_match_proto_rawDesc = nil + file_cardchain_cardchain_match_proto_goTypes = nil + file_cardchain_cardchain_match_proto_depIdxs = nil +} diff --git a/api/cardchain/cardchain/module/module.pulsar.go b/api/cardchain/cardchain/module/module.pulsar.go index 2b190f83..dead9881 100644 --- a/api/cardchain/cardchain/module/module.pulsar.go +++ b/api/cardchain/cardchain/module/module.pulsar.go @@ -2,15 +2,16 @@ package module import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/cardchain/cardchain/params.pulsar.go b/api/cardchain/cardchain/params.pulsar.go index 1b2cbd3b..e1114a45 100644 --- a/api/cardchain/cardchain/params.pulsar.go +++ b/api/cardchain/cardchain/params.pulsar.go @@ -2,16 +2,17 @@ package cardchain import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/cardchain/cardchain/query.pulsar.go b/api/cardchain/cardchain/query.pulsar.go index 2fbc5336..dd2bbea8 100644 --- a/api/cardchain/cardchain/query.pulsar.go +++ b/api/cardchain/cardchain/query.pulsar.go @@ -2,18 +2,19 @@ package cardchain import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/base/query/v1beta1" - fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/cardchain/cardchain/query_grpc.pb.go b/api/cardchain/cardchain/query_grpc.pb.go index 641cf1eb..209e296a 100644 --- a/api/cardchain/cardchain/query_grpc.pb.go +++ b/api/cardchain/cardchain/query_grpc.pb.go @@ -8,6 +8,7 @@ package cardchain import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/cardchain/cardchain/tx.pulsar.go b/api/cardchain/cardchain/tx.pulsar.go index e34d9143..ceadfe7a 100644 --- a/api/cardchain/cardchain/tx.pulsar.go +++ b/api/cardchain/cardchain/tx.pulsar.go @@ -2,19 +2,20 @@ package cardchain import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" ) var ( @@ -4712,435 +4713,7371 @@ func (x *fastReflection_MsgCardVoteResponse) ProtoMethods() *protoiface.Methods } } -// 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) +var ( + md_MsgCardTransfer protoreflect.MessageDescriptor + fd_MsgCardTransfer_creator protoreflect.FieldDescriptor + fd_MsgCardTransfer_cardId protoreflect.FieldDescriptor + fd_MsgCardTransfer_receiver protoreflect.FieldDescriptor ) -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardTransfer = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardTransfer") + fd_MsgCardTransfer_creator = md_MsgCardTransfer.Fields().ByName("creator") + fd_MsgCardTransfer_cardId = md_MsgCardTransfer.Fields().ByName("cardId") + fd_MsgCardTransfer_receiver = md_MsgCardTransfer.Fields().ByName("receiver") +} - // 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"` +var _ protoreflect.Message = (*fastReflection_MsgCardTransfer)(nil) + +type fastReflection_MsgCardTransfer MsgCardTransfer + +func (x *MsgCardTransfer) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardTransfer)(x) } -func (x *MsgUpdateParams) Reset() { - *x = MsgUpdateParams{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[0] +func (x *MsgCardTransfer) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } + return mi.MessageOf(x) } -func (x *MsgUpdateParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParams) ProtoMessage() {} +var _fastReflection_MsgCardTransfer_messageType fastReflection_MsgCardTransfer_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardTransfer_messageType{} -// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{0} -} +type fastReflection_MsgCardTransfer_messageType struct{} -func (x *MsgUpdateParams) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" +func (x fastReflection_MsgCardTransfer_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardTransfer)(nil) } - -func (x *MsgUpdateParams) GetParams() *Params { - if x != nil { - return x.Params - } - return nil +func (x fastReflection_MsgCardTransfer_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardTransfer) } - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x fastReflection_MsgCardTransfer_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardTransfer } -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) - } +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardTransfer) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardTransfer } -func (x *MsgUpdateParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) +// 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_MsgCardTransfer) Type() protoreflect.MessageType { + return _fastReflection_MsgCardTransfer_messageType } -func (*MsgUpdateParamsResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{1} +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardTransfer) New() protoreflect.Message { + return new(fastReflection_MsgCardTransfer) } -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"` +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardTransfer) Interface() protoreflect.ProtoMessage { + return (*MsgCardTransfer)(x) } -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) +// 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_MsgCardTransfer) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCardTransfer_creator, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgCardTransfer_cardId, value) { + return + } + } + if x.Receiver != "" { + value := protoreflect.ValueOfString(x.Receiver) + if !f(fd_MsgCardTransfer_receiver, value) { + return + } } } -func (x *MsgUserCreate) String() string { - return protoimpl.X.MessageStringOf(x) +// 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_MsgCardTransfer) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardTransfer.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgCardTransfer.cardId": + return x.CardId != uint64(0) + case "cardchain.cardchain.MsgCardTransfer.receiver": + return x.Receiver != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer does not contain field %s", fd.FullName())) + } } -func (*MsgUserCreate) ProtoMessage() {} - -// Deprecated: Use MsgUserCreate.ProtoReflect.Descriptor instead. -func (*MsgUserCreate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{2} +// 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_MsgCardTransfer) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardTransfer.creator": + x.Creator = "" + case "cardchain.cardchain.MsgCardTransfer.cardId": + x.CardId = uint64(0) + case "cardchain.cardchain.MsgCardTransfer.receiver": + x.Receiver = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer does not contain field %s", fd.FullName())) + } } -func (x *MsgUserCreate) GetCreator() string { - if x != nil { - return x.Creator +// 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_MsgCardTransfer) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgCardTransfer.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgCardTransfer.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgCardTransfer.receiver": + value := x.Receiver + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer does not contain field %s", descriptor.FullName())) } - return "" } -func (x *MsgUserCreate) GetNewUser() string { - if x != nil { - return x.NewUser +// 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_MsgCardTransfer) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardTransfer.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgCardTransfer.cardId": + x.CardId = value.Uint() + case "cardchain.cardchain.MsgCardTransfer.receiver": + x.Receiver = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer does not contain field %s", fd.FullName())) } - return "" } -func (x *MsgUserCreate) GetAlias() string { - if x != nil { - return x.Alias +// 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_MsgCardTransfer) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardTransfer.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardTransfer is not mutable")) + case "cardchain.cardchain.MsgCardTransfer.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardTransfer is not mutable")) + case "cardchain.cardchain.MsgCardTransfer.receiver": + panic(fmt.Errorf("field receiver of message cardchain.cardchain.MsgCardTransfer is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer does not contain field %s", fd.FullName())) } - return "" } -type MsgUserCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCardTransfer) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardTransfer.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgCardTransfer.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgCardTransfer.receiver": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer does not contain field %s", fd.FullName())) + } } -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) +// 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_MsgCardTransfer) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardTransfer", d.FullName())) } + panic("unreachable") } -func (x *MsgUserCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) +// 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_MsgCardTransfer) GetUnknown() protoreflect.RawFields { + return x.unknownFields } -func (*MsgUserCreateResponse) ProtoMessage() {} +// 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_MsgCardTransfer) 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_MsgCardTransfer) 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_MsgCardTransfer) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardTransfer) + 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)) + } + l = len(x.Receiver) + 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().(*MsgCardTransfer) + 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.Receiver) > 0 { + i -= len(x.Receiver) + copy(dAtA[i:], x.Receiver) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Receiver))) + 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().(*MsgCardTransfer) + 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: MsgCardTransfer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardTransfer: 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 Receiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Receiver = 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_MsgCardTransferResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardTransferResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardTransferResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCardTransferResponse)(nil) + +type fastReflection_MsgCardTransferResponse MsgCardTransferResponse + +func (x *MsgCardTransferResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardTransferResponse)(x) +} + +func (x *MsgCardTransferResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCardTransferResponse_messageType fastReflection_MsgCardTransferResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardTransferResponse_messageType{} + +type fastReflection_MsgCardTransferResponse_messageType struct{} + +func (x fastReflection_MsgCardTransferResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardTransferResponse)(nil) +} +func (x fastReflection_MsgCardTransferResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardTransferResponse) +} +func (x fastReflection_MsgCardTransferResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardTransferResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardTransferResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardTransferResponse +} + +// 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_MsgCardTransferResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCardTransferResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardTransferResponse) New() protoreflect.Message { + return new(fastReflection_MsgCardTransferResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardTransferResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCardTransferResponse)(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_MsgCardTransferResponse) 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_MsgCardTransferResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) 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.MsgCardTransferResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) 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.MsgCardTransferResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) 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.MsgCardTransferResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) 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.MsgCardTransferResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardTransferResponse", 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_MsgCardTransferResponse) 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_MsgCardTransferResponse) 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_MsgCardTransferResponse) 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_MsgCardTransferResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardTransferResponse) + 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().(*MsgCardTransferResponse) + 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().(*MsgCardTransferResponse) + 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: MsgCardTransferResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardTransferResponse: 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_MsgCardDonate protoreflect.MessageDescriptor + fd_MsgCardDonate_creator protoreflect.FieldDescriptor + fd_MsgCardDonate_cardId protoreflect.FieldDescriptor + fd_MsgCardDonate_amount protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardDonate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardDonate") + fd_MsgCardDonate_creator = md_MsgCardDonate.Fields().ByName("creator") + fd_MsgCardDonate_cardId = md_MsgCardDonate.Fields().ByName("cardId") + fd_MsgCardDonate_amount = md_MsgCardDonate.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_MsgCardDonate)(nil) + +type fastReflection_MsgCardDonate MsgCardDonate + +func (x *MsgCardDonate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardDonate)(x) +} + +func (x *MsgCardDonate) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCardDonate_messageType fastReflection_MsgCardDonate_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardDonate_messageType{} + +type fastReflection_MsgCardDonate_messageType struct{} + +func (x fastReflection_MsgCardDonate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardDonate)(nil) +} +func (x fastReflection_MsgCardDonate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardDonate) +} +func (x fastReflection_MsgCardDonate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardDonate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardDonate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardDonate +} + +// 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_MsgCardDonate) Type() protoreflect.MessageType { + return _fastReflection_MsgCardDonate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardDonate) New() protoreflect.Message { + return new(fastReflection_MsgCardDonate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardDonate) Interface() protoreflect.ProtoMessage { + return (*MsgCardDonate)(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_MsgCardDonate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCardDonate_creator, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgCardDonate_cardId, value) { + return + } + } + if x.Amount != nil { + value := protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) + if !f(fd_MsgCardDonate_amount, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCardDonate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardDonate.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgCardDonate.cardId": + return x.CardId != uint64(0) + case "cardchain.cardchain.MsgCardDonate.amount": + return x.Amount != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardDonate.creator": + x.Creator = "" + case "cardchain.cardchain.MsgCardDonate.cardId": + x.CardId = uint64(0) + case "cardchain.cardchain.MsgCardDonate.amount": + x.Amount = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgCardDonate.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgCardDonate.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgCardDonate.amount": + value := x.Amount + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardDonate.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgCardDonate.cardId": + x.CardId = value.Uint() + case "cardchain.cardchain.MsgCardDonate.amount": + x.Amount = value.Message().Interface().(*v1beta1.Coin) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardDonate.amount": + if x.Amount == nil { + x.Amount = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) + case "cardchain.cardchain.MsgCardDonate.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardDonate is not mutable")) + case "cardchain.cardchain.MsgCardDonate.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardDonate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardDonate.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgCardDonate.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgCardDonate.amount": + 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.MsgCardDonate")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardDonate", 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_MsgCardDonate) 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_MsgCardDonate) 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_MsgCardDonate) 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_MsgCardDonate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardDonate) + 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.Amount != nil { + l = options.Size(x.Amount) + 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().(*MsgCardDonate) + 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.Amount != nil { + encoded, err := options.Marshal(x.Amount) + 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().(*MsgCardDonate) + 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: MsgCardDonate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardDonate: 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 Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Amount == nil { + x.Amount = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount); 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_MsgCardDonateResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardDonateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardDonateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCardDonateResponse)(nil) + +type fastReflection_MsgCardDonateResponse MsgCardDonateResponse + +func (x *MsgCardDonateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardDonateResponse)(x) +} + +func (x *MsgCardDonateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCardDonateResponse_messageType fastReflection_MsgCardDonateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardDonateResponse_messageType{} + +type fastReflection_MsgCardDonateResponse_messageType struct{} + +func (x fastReflection_MsgCardDonateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardDonateResponse)(nil) +} +func (x fastReflection_MsgCardDonateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardDonateResponse) +} +func (x fastReflection_MsgCardDonateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardDonateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardDonateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardDonateResponse +} + +// 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_MsgCardDonateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCardDonateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardDonateResponse) New() protoreflect.Message { + return new(fastReflection_MsgCardDonateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardDonateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCardDonateResponse)(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_MsgCardDonateResponse) 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_MsgCardDonateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) 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.MsgCardDonateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) 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.MsgCardDonateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) 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.MsgCardDonateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) 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.MsgCardDonateResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardDonateResponse", 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_MsgCardDonateResponse) 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_MsgCardDonateResponse) 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_MsgCardDonateResponse) 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_MsgCardDonateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardDonateResponse) + 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().(*MsgCardDonateResponse) + 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().(*MsgCardDonateResponse) + 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: MsgCardDonateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardDonateResponse: 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_MsgCardArtworkAdd protoreflect.MessageDescriptor + fd_MsgCardArtworkAdd_creator protoreflect.FieldDescriptor + fd_MsgCardArtworkAdd_cardId protoreflect.FieldDescriptor + fd_MsgCardArtworkAdd_image protoreflect.FieldDescriptor + fd_MsgCardArtworkAdd_fullArt protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardArtworkAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtworkAdd") + fd_MsgCardArtworkAdd_creator = md_MsgCardArtworkAdd.Fields().ByName("creator") + fd_MsgCardArtworkAdd_cardId = md_MsgCardArtworkAdd.Fields().ByName("cardId") + fd_MsgCardArtworkAdd_image = md_MsgCardArtworkAdd.Fields().ByName("image") + fd_MsgCardArtworkAdd_fullArt = md_MsgCardArtworkAdd.Fields().ByName("fullArt") +} + +var _ protoreflect.Message = (*fastReflection_MsgCardArtworkAdd)(nil) + +type fastReflection_MsgCardArtworkAdd MsgCardArtworkAdd + +func (x *MsgCardArtworkAdd) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardArtworkAdd)(x) +} + +func (x *MsgCardArtworkAdd) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCardArtworkAdd_messageType fastReflection_MsgCardArtworkAdd_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardArtworkAdd_messageType{} + +type fastReflection_MsgCardArtworkAdd_messageType struct{} + +func (x fastReflection_MsgCardArtworkAdd_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardArtworkAdd)(nil) +} +func (x fastReflection_MsgCardArtworkAdd_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardArtworkAdd) +} +func (x fastReflection_MsgCardArtworkAdd_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtworkAdd +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardArtworkAdd) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtworkAdd +} + +// 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_MsgCardArtworkAdd) Type() protoreflect.MessageType { + return _fastReflection_MsgCardArtworkAdd_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardArtworkAdd) New() protoreflect.Message { + return new(fastReflection_MsgCardArtworkAdd) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardArtworkAdd) Interface() protoreflect.ProtoMessage { + return (*MsgCardArtworkAdd)(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_MsgCardArtworkAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCardArtworkAdd_creator, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgCardArtworkAdd_cardId, value) { + return + } + } + if x.Image != "" { + value := protoreflect.ValueOfString(x.Image) + if !f(fd_MsgCardArtworkAdd_image, value) { + return + } + } + if x.FullArt != false { + value := protoreflect.ValueOfBool(x.FullArt) + if !f(fd_MsgCardArtworkAdd_fullArt, 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_MsgCardArtworkAdd) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtworkAdd.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgCardArtworkAdd.cardId": + return x.CardId != uint64(0) + case "cardchain.cardchain.MsgCardArtworkAdd.image": + return x.Image != "" + case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": + return x.FullArt != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtworkAdd.creator": + x.Creator = "" + case "cardchain.cardchain.MsgCardArtworkAdd.cardId": + x.CardId = uint64(0) + case "cardchain.cardchain.MsgCardArtworkAdd.image": + x.Image = "" + case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": + x.FullArt = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgCardArtworkAdd.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgCardArtworkAdd.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgCardArtworkAdd.image": + value := x.Image + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": + value := x.FullArt + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtworkAdd.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgCardArtworkAdd.cardId": + x.CardId = value.Uint() + case "cardchain.cardchain.MsgCardArtworkAdd.image": + x.Image = value.Interface().(string) + case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": + x.FullArt = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtworkAdd.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) + case "cardchain.cardchain.MsgCardArtworkAdd.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) + case "cardchain.cardchain.MsgCardArtworkAdd.image": + panic(fmt.Errorf("field image of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) + case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": + panic(fmt.Errorf("field fullArt of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtworkAdd.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgCardArtworkAdd.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgCardArtworkAdd.image": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtworkAdd", 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_MsgCardArtworkAdd) 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_MsgCardArtworkAdd) 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_MsgCardArtworkAdd) 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_MsgCardArtworkAdd) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardArtworkAdd) + 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)) + } + l = len(x.Image) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.FullArt { + 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().(*MsgCardArtworkAdd) + 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.FullArt { + i-- + if x.FullArt { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + 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.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().(*MsgCardArtworkAdd) + 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: MsgCardArtworkAdd: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtworkAdd: 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 Image", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.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 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FullArt", 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.FullArt = 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_MsgCardArtworkAddResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardArtworkAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtworkAddResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCardArtworkAddResponse)(nil) + +type fastReflection_MsgCardArtworkAddResponse MsgCardArtworkAddResponse + +func (x *MsgCardArtworkAddResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardArtworkAddResponse)(x) +} + +func (x *MsgCardArtworkAddResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCardArtworkAddResponse_messageType fastReflection_MsgCardArtworkAddResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardArtworkAddResponse_messageType{} + +type fastReflection_MsgCardArtworkAddResponse_messageType struct{} + +func (x fastReflection_MsgCardArtworkAddResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardArtworkAddResponse)(nil) +} +func (x fastReflection_MsgCardArtworkAddResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardArtworkAddResponse) +} +func (x fastReflection_MsgCardArtworkAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtworkAddResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardArtworkAddResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtworkAddResponse +} + +// 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_MsgCardArtworkAddResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCardArtworkAddResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardArtworkAddResponse) New() protoreflect.Message { + return new(fastReflection_MsgCardArtworkAddResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardArtworkAddResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCardArtworkAddResponse)(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_MsgCardArtworkAddResponse) 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_MsgCardArtworkAddResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) 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.MsgCardArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) 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.MsgCardArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) 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.MsgCardArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) 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.MsgCardArtworkAddResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtworkAddResponse", 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_MsgCardArtworkAddResponse) 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_MsgCardArtworkAddResponse) 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_MsgCardArtworkAddResponse) 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_MsgCardArtworkAddResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardArtworkAddResponse) + 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().(*MsgCardArtworkAddResponse) + 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().(*MsgCardArtworkAddResponse) + 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: MsgCardArtworkAddResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtworkAddResponse: 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_MsgCardArtistChange protoreflect.MessageDescriptor + fd_MsgCardArtistChange_creator protoreflect.FieldDescriptor + fd_MsgCardArtistChange_cardId protoreflect.FieldDescriptor + fd_MsgCardArtistChange_artist protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardArtistChange = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtistChange") + fd_MsgCardArtistChange_creator = md_MsgCardArtistChange.Fields().ByName("creator") + fd_MsgCardArtistChange_cardId = md_MsgCardArtistChange.Fields().ByName("cardId") + fd_MsgCardArtistChange_artist = md_MsgCardArtistChange.Fields().ByName("artist") +} + +var _ protoreflect.Message = (*fastReflection_MsgCardArtistChange)(nil) + +type fastReflection_MsgCardArtistChange MsgCardArtistChange + +func (x *MsgCardArtistChange) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardArtistChange)(x) +} + +func (x *MsgCardArtistChange) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCardArtistChange_messageType fastReflection_MsgCardArtistChange_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardArtistChange_messageType{} + +type fastReflection_MsgCardArtistChange_messageType struct{} + +func (x fastReflection_MsgCardArtistChange_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardArtistChange)(nil) +} +func (x fastReflection_MsgCardArtistChange_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardArtistChange) +} +func (x fastReflection_MsgCardArtistChange_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtistChange +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardArtistChange) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtistChange +} + +// 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_MsgCardArtistChange) Type() protoreflect.MessageType { + return _fastReflection_MsgCardArtistChange_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardArtistChange) New() protoreflect.Message { + return new(fastReflection_MsgCardArtistChange) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardArtistChange) Interface() protoreflect.ProtoMessage { + return (*MsgCardArtistChange)(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_MsgCardArtistChange) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCardArtistChange_creator, value) { + return + } + } + if x.CardId != uint64(0) { + value := protoreflect.ValueOfUint64(x.CardId) + if !f(fd_MsgCardArtistChange_cardId, value) { + return + } + } + if x.Artist != "" { + value := protoreflect.ValueOfString(x.Artist) + if !f(fd_MsgCardArtistChange_artist, 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_MsgCardArtistChange) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtistChange.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgCardArtistChange.cardId": + return x.CardId != uint64(0) + case "cardchain.cardchain.MsgCardArtistChange.artist": + return x.Artist != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtistChange.creator": + x.Creator = "" + case "cardchain.cardchain.MsgCardArtistChange.cardId": + x.CardId = uint64(0) + case "cardchain.cardchain.MsgCardArtistChange.artist": + x.Artist = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgCardArtistChange.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgCardArtistChange.cardId": + value := x.CardId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgCardArtistChange.artist": + value := x.Artist + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtistChange.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgCardArtistChange.cardId": + x.CardId = value.Uint() + case "cardchain.cardchain.MsgCardArtistChange.artist": + x.Artist = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtistChange.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardArtistChange is not mutable")) + case "cardchain.cardchain.MsgCardArtistChange.cardId": + panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardArtistChange is not mutable")) + case "cardchain.cardchain.MsgCardArtistChange.artist": + panic(fmt.Errorf("field artist of message cardchain.cardchain.MsgCardArtistChange is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCardArtistChange.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgCardArtistChange.cardId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgCardArtistChange.artist": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtistChange", 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_MsgCardArtistChange) 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_MsgCardArtistChange) 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_MsgCardArtistChange) 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_MsgCardArtistChange) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardArtistChange) + 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)) + } + l = len(x.Artist) + 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().(*MsgCardArtistChange) + 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.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 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().(*MsgCardArtistChange) + 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: MsgCardArtistChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtistChange: 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 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 + 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_MsgCardArtistChangeResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCardArtistChangeResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtistChangeResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCardArtistChangeResponse)(nil) + +type fastReflection_MsgCardArtistChangeResponse MsgCardArtistChangeResponse + +func (x *MsgCardArtistChangeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCardArtistChangeResponse)(x) +} + +func (x *MsgCardArtistChangeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCardArtistChangeResponse_messageType fastReflection_MsgCardArtistChangeResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCardArtistChangeResponse_messageType{} + +type fastReflection_MsgCardArtistChangeResponse_messageType struct{} + +func (x fastReflection_MsgCardArtistChangeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCardArtistChangeResponse)(nil) +} +func (x fastReflection_MsgCardArtistChangeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCardArtistChangeResponse) +} +func (x fastReflection_MsgCardArtistChangeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtistChangeResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCardArtistChangeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCardArtistChangeResponse +} + +// 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_MsgCardArtistChangeResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCardArtistChangeResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCardArtistChangeResponse) New() protoreflect.Message { + return new(fastReflection_MsgCardArtistChangeResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCardArtistChangeResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCardArtistChangeResponse)(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_MsgCardArtistChangeResponse) 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_MsgCardArtistChangeResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) 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.MsgCardArtistChangeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) 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.MsgCardArtistChangeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) 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.MsgCardArtistChangeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) 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.MsgCardArtistChangeResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtistChangeResponse", 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_MsgCardArtistChangeResponse) 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_MsgCardArtistChangeResponse) 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_MsgCardArtistChangeResponse) 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_MsgCardArtistChangeResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCardArtistChangeResponse) + 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().(*MsgCardArtistChangeResponse) + 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().(*MsgCardArtistChangeResponse) + 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: MsgCardArtistChangeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtistChangeResponse: 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_MsgCouncilRegister protoreflect.MessageDescriptor + fd_MsgCouncilRegister_creator protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCouncilRegister = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilRegister") + fd_MsgCouncilRegister_creator = md_MsgCouncilRegister.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_MsgCouncilRegister)(nil) + +type fastReflection_MsgCouncilRegister MsgCouncilRegister + +func (x *MsgCouncilRegister) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCouncilRegister)(x) +} + +func (x *MsgCouncilRegister) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCouncilRegister_messageType fastReflection_MsgCouncilRegister_messageType +var _ protoreflect.MessageType = fastReflection_MsgCouncilRegister_messageType{} + +type fastReflection_MsgCouncilRegister_messageType struct{} + +func (x fastReflection_MsgCouncilRegister_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCouncilRegister)(nil) +} +func (x fastReflection_MsgCouncilRegister_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCouncilRegister) +} +func (x fastReflection_MsgCouncilRegister_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilRegister +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCouncilRegister) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilRegister +} + +// 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_MsgCouncilRegister) Type() protoreflect.MessageType { + return _fastReflection_MsgCouncilRegister_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCouncilRegister) New() protoreflect.Message { + return new(fastReflection_MsgCouncilRegister) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCouncilRegister) Interface() protoreflect.ProtoMessage { + return (*MsgCouncilRegister)(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_MsgCouncilRegister) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCouncilRegister_creator, 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_MsgCouncilRegister) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilRegister.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilRegister.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgCouncilRegister.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilRegister.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilRegister.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilRegister is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilRegister.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilRegister", 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_MsgCouncilRegister) 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_MsgCouncilRegister) 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_MsgCouncilRegister) 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_MsgCouncilRegister) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCouncilRegister) + 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.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().(*MsgCouncilRegister) + 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.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().(*MsgCouncilRegister) + 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: MsgCouncilRegister: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilRegister: 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 + 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_MsgCouncilRegisterResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCouncilRegisterResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilRegisterResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCouncilRegisterResponse)(nil) + +type fastReflection_MsgCouncilRegisterResponse MsgCouncilRegisterResponse + +func (x *MsgCouncilRegisterResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCouncilRegisterResponse)(x) +} + +func (x *MsgCouncilRegisterResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCouncilRegisterResponse_messageType fastReflection_MsgCouncilRegisterResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCouncilRegisterResponse_messageType{} + +type fastReflection_MsgCouncilRegisterResponse_messageType struct{} + +func (x fastReflection_MsgCouncilRegisterResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCouncilRegisterResponse)(nil) +} +func (x fastReflection_MsgCouncilRegisterResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCouncilRegisterResponse) +} +func (x fastReflection_MsgCouncilRegisterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilRegisterResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCouncilRegisterResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilRegisterResponse +} + +// 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_MsgCouncilRegisterResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCouncilRegisterResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCouncilRegisterResponse) New() protoreflect.Message { + return new(fastReflection_MsgCouncilRegisterResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCouncilRegisterResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCouncilRegisterResponse)(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_MsgCouncilRegisterResponse) 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_MsgCouncilRegisterResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) 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.MsgCouncilRegisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) 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.MsgCouncilRegisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) 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.MsgCouncilRegisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) 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.MsgCouncilRegisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilRegisterResponse", 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_MsgCouncilRegisterResponse) 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_MsgCouncilRegisterResponse) 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_MsgCouncilRegisterResponse) 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_MsgCouncilRegisterResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCouncilRegisterResponse) + 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().(*MsgCouncilRegisterResponse) + 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().(*MsgCouncilRegisterResponse) + 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: MsgCouncilRegisterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilRegisterResponse: 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_MsgCouncilDeregister protoreflect.MessageDescriptor + fd_MsgCouncilDeregister_creator protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCouncilDeregister = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilDeregister") + fd_MsgCouncilDeregister_creator = md_MsgCouncilDeregister.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_MsgCouncilDeregister)(nil) + +type fastReflection_MsgCouncilDeregister MsgCouncilDeregister + +func (x *MsgCouncilDeregister) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCouncilDeregister)(x) +} + +func (x *MsgCouncilDeregister) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCouncilDeregister_messageType fastReflection_MsgCouncilDeregister_messageType +var _ protoreflect.MessageType = fastReflection_MsgCouncilDeregister_messageType{} + +type fastReflection_MsgCouncilDeregister_messageType struct{} + +func (x fastReflection_MsgCouncilDeregister_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCouncilDeregister)(nil) +} +func (x fastReflection_MsgCouncilDeregister_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCouncilDeregister) +} +func (x fastReflection_MsgCouncilDeregister_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilDeregister +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCouncilDeregister) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilDeregister +} + +// 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_MsgCouncilDeregister) Type() protoreflect.MessageType { + return _fastReflection_MsgCouncilDeregister_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCouncilDeregister) New() protoreflect.Message { + return new(fastReflection_MsgCouncilDeregister) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCouncilDeregister) Interface() protoreflect.ProtoMessage { + return (*MsgCouncilDeregister)(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_MsgCouncilDeregister) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCouncilDeregister_creator, 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_MsgCouncilDeregister) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilDeregister.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilDeregister.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgCouncilDeregister.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilDeregister.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilDeregister.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilDeregister is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgCouncilDeregister.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilDeregister", 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_MsgCouncilDeregister) 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_MsgCouncilDeregister) 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_MsgCouncilDeregister) 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_MsgCouncilDeregister) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCouncilDeregister) + 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.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().(*MsgCouncilDeregister) + 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.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().(*MsgCouncilDeregister) + 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: MsgCouncilDeregister: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilDeregister: 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 + 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_MsgCouncilDeregisterResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgCouncilDeregisterResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilDeregisterResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCouncilDeregisterResponse)(nil) + +type fastReflection_MsgCouncilDeregisterResponse MsgCouncilDeregisterResponse + +func (x *MsgCouncilDeregisterResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCouncilDeregisterResponse)(x) +} + +func (x *MsgCouncilDeregisterResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCouncilDeregisterResponse_messageType fastReflection_MsgCouncilDeregisterResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCouncilDeregisterResponse_messageType{} + +type fastReflection_MsgCouncilDeregisterResponse_messageType struct{} + +func (x fastReflection_MsgCouncilDeregisterResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCouncilDeregisterResponse)(nil) +} +func (x fastReflection_MsgCouncilDeregisterResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCouncilDeregisterResponse) +} +func (x fastReflection_MsgCouncilDeregisterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilDeregisterResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCouncilDeregisterResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCouncilDeregisterResponse +} + +// 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_MsgCouncilDeregisterResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCouncilDeregisterResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCouncilDeregisterResponse) New() protoreflect.Message { + return new(fastReflection_MsgCouncilDeregisterResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCouncilDeregisterResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCouncilDeregisterResponse)(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_MsgCouncilDeregisterResponse) 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_MsgCouncilDeregisterResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) 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.MsgCouncilDeregisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) 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.MsgCouncilDeregisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) 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.MsgCouncilDeregisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) 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.MsgCouncilDeregisterResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilDeregisterResponse", 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_MsgCouncilDeregisterResponse) 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_MsgCouncilDeregisterResponse) 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_MsgCouncilDeregisterResponse) 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_MsgCouncilDeregisterResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCouncilDeregisterResponse) + 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().(*MsgCouncilDeregisterResponse) + 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().(*MsgCouncilDeregisterResponse) + 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: MsgCouncilDeregisterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilDeregisterResponse: 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 = (*_MsgMatchReport_3_list)(nil) + +type _MsgMatchReport_3_list struct { + list *[]uint64 +} + +func (x *_MsgMatchReport_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgMatchReport_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_MsgMatchReport_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgMatchReport_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgMatchReport_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgMatchReport at list field PlayedCardsA as it is not of Message kind")) +} + +func (x *_MsgMatchReport_3_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgMatchReport_3_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_MsgMatchReport_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_MsgMatchReport_4_list)(nil) + +type _MsgMatchReport_4_list struct { + list *[]uint64 +} + +func (x *_MsgMatchReport_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgMatchReport_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_MsgMatchReport_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgMatchReport_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgMatchReport_4_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgMatchReport at list field PlayedCardsB as it is not of Message kind")) +} + +func (x *_MsgMatchReport_4_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgMatchReport_4_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_MsgMatchReport_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgMatchReport protoreflect.MessageDescriptor + fd_MsgMatchReport_creator protoreflect.FieldDescriptor + fd_MsgMatchReport_matchId protoreflect.FieldDescriptor + fd_MsgMatchReport_playedCardsA protoreflect.FieldDescriptor + fd_MsgMatchReport_playedCardsB protoreflect.FieldDescriptor + fd_MsgMatchReport_outcome protoreflect.FieldDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgMatchReport = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReport") + fd_MsgMatchReport_creator = md_MsgMatchReport.Fields().ByName("creator") + fd_MsgMatchReport_matchId = md_MsgMatchReport.Fields().ByName("matchId") + fd_MsgMatchReport_playedCardsA = md_MsgMatchReport.Fields().ByName("playedCardsA") + fd_MsgMatchReport_playedCardsB = md_MsgMatchReport.Fields().ByName("playedCardsB") + fd_MsgMatchReport_outcome = md_MsgMatchReport.Fields().ByName("outcome") +} + +var _ protoreflect.Message = (*fastReflection_MsgMatchReport)(nil) + +type fastReflection_MsgMatchReport MsgMatchReport + +func (x *MsgMatchReport) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMatchReport)(x) +} + +func (x *MsgMatchReport) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgMatchReport_messageType fastReflection_MsgMatchReport_messageType +var _ protoreflect.MessageType = fastReflection_MsgMatchReport_messageType{} + +type fastReflection_MsgMatchReport_messageType struct{} + +func (x fastReflection_MsgMatchReport_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMatchReport)(nil) +} +func (x fastReflection_MsgMatchReport_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMatchReport) +} +func (x fastReflection_MsgMatchReport_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReport +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgMatchReport) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReport +} + +// 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_MsgMatchReport) Type() protoreflect.MessageType { + return _fastReflection_MsgMatchReport_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgMatchReport) New() protoreflect.Message { + return new(fastReflection_MsgMatchReport) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgMatchReport) Interface() protoreflect.ProtoMessage { + return (*MsgMatchReport)(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_MsgMatchReport) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgMatchReport_creator, value) { + return + } + } + if x.MatchId != uint64(0) { + value := protoreflect.ValueOfUint64(x.MatchId) + if !f(fd_MsgMatchReport_matchId, value) { + return + } + } + if len(x.PlayedCardsA) != 0 { + value := protoreflect.ValueOfList(&_MsgMatchReport_3_list{list: &x.PlayedCardsA}) + if !f(fd_MsgMatchReport_playedCardsA, value) { + return + } + } + if len(x.PlayedCardsB) != 0 { + value := protoreflect.ValueOfList(&_MsgMatchReport_4_list{list: &x.PlayedCardsB}) + if !f(fd_MsgMatchReport_playedCardsB, value) { + return + } + } + if x.Outcome != int32(0) { + value := protoreflect.ValueOfInt32(x.Outcome) + if !f(fd_MsgMatchReport_outcome, 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_MsgMatchReport) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReport.creator": + return x.Creator != "" + case "cardchain.cardchain.MsgMatchReport.matchId": + return x.MatchId != uint64(0) + case "cardchain.cardchain.MsgMatchReport.playedCardsA": + return len(x.PlayedCardsA) != 0 + case "cardchain.cardchain.MsgMatchReport.playedCardsB": + return len(x.PlayedCardsB) != 0 + case "cardchain.cardchain.MsgMatchReport.outcome": + return x.Outcome != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReport.creator": + x.Creator = "" + case "cardchain.cardchain.MsgMatchReport.matchId": + x.MatchId = uint64(0) + case "cardchain.cardchain.MsgMatchReport.playedCardsA": + x.PlayedCardsA = nil + case "cardchain.cardchain.MsgMatchReport.playedCardsB": + x.PlayedCardsB = nil + case "cardchain.cardchain.MsgMatchReport.outcome": + x.Outcome = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "cardchain.cardchain.MsgMatchReport.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "cardchain.cardchain.MsgMatchReport.matchId": + value := x.MatchId + return protoreflect.ValueOfUint64(value) + case "cardchain.cardchain.MsgMatchReport.playedCardsA": + if len(x.PlayedCardsA) == 0 { + return protoreflect.ValueOfList(&_MsgMatchReport_3_list{}) + } + listValue := &_MsgMatchReport_3_list{list: &x.PlayedCardsA} + return protoreflect.ValueOfList(listValue) + case "cardchain.cardchain.MsgMatchReport.playedCardsB": + if len(x.PlayedCardsB) == 0 { + return protoreflect.ValueOfList(&_MsgMatchReport_4_list{}) + } + listValue := &_MsgMatchReport_4_list{list: &x.PlayedCardsB} + return protoreflect.ValueOfList(listValue) + case "cardchain.cardchain.MsgMatchReport.outcome": + value := x.Outcome + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReport.creator": + x.Creator = value.Interface().(string) + case "cardchain.cardchain.MsgMatchReport.matchId": + x.MatchId = value.Uint() + case "cardchain.cardchain.MsgMatchReport.playedCardsA": + lv := value.List() + clv := lv.(*_MsgMatchReport_3_list) + x.PlayedCardsA = *clv.list + case "cardchain.cardchain.MsgMatchReport.playedCardsB": + lv := value.List() + clv := lv.(*_MsgMatchReport_4_list) + x.PlayedCardsB = *clv.list + case "cardchain.cardchain.MsgMatchReport.outcome": + x.Outcome = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReport.playedCardsA": + if x.PlayedCardsA == nil { + x.PlayedCardsA = []uint64{} + } + value := &_MsgMatchReport_3_list{list: &x.PlayedCardsA} + return protoreflect.ValueOfList(value) + case "cardchain.cardchain.MsgMatchReport.playedCardsB": + if x.PlayedCardsB == nil { + x.PlayedCardsB = []uint64{} + } + value := &_MsgMatchReport_4_list{list: &x.PlayedCardsB} + return protoreflect.ValueOfList(value) + case "cardchain.cardchain.MsgMatchReport.creator": + panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgMatchReport is not mutable")) + case "cardchain.cardchain.MsgMatchReport.matchId": + panic(fmt.Errorf("field matchId of message cardchain.cardchain.MsgMatchReport is not mutable")) + case "cardchain.cardchain.MsgMatchReport.outcome": + panic(fmt.Errorf("field outcome of message cardchain.cardchain.MsgMatchReport is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "cardchain.cardchain.MsgMatchReport.creator": + return protoreflect.ValueOfString("") + case "cardchain.cardchain.MsgMatchReport.matchId": + return protoreflect.ValueOfUint64(uint64(0)) + case "cardchain.cardchain.MsgMatchReport.playedCardsA": + list := []uint64{} + return protoreflect.ValueOfList(&_MsgMatchReport_3_list{list: &list}) + case "cardchain.cardchain.MsgMatchReport.playedCardsB": + list := []uint64{} + return protoreflect.ValueOfList(&_MsgMatchReport_4_list{list: &list}) + case "cardchain.cardchain.MsgMatchReport.outcome": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReport", 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_MsgMatchReport) 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_MsgMatchReport) 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_MsgMatchReport) 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_MsgMatchReport) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgMatchReport) + 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.MatchId != 0 { + n += 1 + runtime.Sov(uint64(x.MatchId)) + } + if len(x.PlayedCardsA) > 0 { + l = 0 + for _, e := range x.PlayedCardsA { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if len(x.PlayedCardsB) > 0 { + l = 0 + for _, e := range x.PlayedCardsB { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if x.Outcome != 0 { + n += 1 + runtime.Sov(uint64(x.Outcome)) + } + 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().(*MsgMatchReport) + 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.Outcome != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) + i-- + dAtA[i] = 0x28 + } + if len(x.PlayedCardsB) > 0 { + var pksize2 int + for _, num := range x.PlayedCardsB { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range x.PlayedCardsB { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x22 + } + if len(x.PlayedCardsA) > 0 { + var pksize4 int + for _, num := range x.PlayedCardsA { + pksize4 += runtime.Sov(uint64(num)) + } + i -= pksize4 + j3 := i + for _, num := range x.PlayedCardsA { + for num >= 1<<7 { + dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA[j3] = uint8(num) + j3++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) + i-- + dAtA[i] = 0x1a + } + if x.MatchId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MatchId)) + 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().(*MsgMatchReport) + 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: MsgMatchReport: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReport: 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 MatchId", wireType) + } + x.MatchId = 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.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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PlayedCardsA = append(x.PlayedCardsA, v) + } else if wireType == 2 { + var packedLen 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.PlayedCardsA) == 0 { + x.PlayedCardsA = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PlayedCardsA = append(x.PlayedCardsA, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PlayedCardsB = append(x.PlayedCardsB, v) + } else if wireType == 2 { + var packedLen 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.PlayedCardsB) == 0 { + x.PlayedCardsB = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PlayedCardsB = append(x.PlayedCardsB, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayedCardsB", wireType) + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + } + x.Outcome = 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.Outcome |= int32(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_MsgMatchReportResponse protoreflect.MessageDescriptor +) + +func init() { + file_cardchain_cardchain_tx_proto_init() + md_MsgMatchReportResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReportResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgMatchReportResponse)(nil) + +type fastReflection_MsgMatchReportResponse MsgMatchReportResponse + +func (x *MsgMatchReportResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgMatchReportResponse)(x) +} + +func (x *MsgMatchReportResponse) slowProtoReflect() protoreflect.Message { + mi := &file_cardchain_cardchain_tx_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgMatchReportResponse_messageType fastReflection_MsgMatchReportResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgMatchReportResponse_messageType{} + +type fastReflection_MsgMatchReportResponse_messageType struct{} + +func (x fastReflection_MsgMatchReportResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgMatchReportResponse)(nil) +} +func (x fastReflection_MsgMatchReportResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgMatchReportResponse) +} +func (x fastReflection_MsgMatchReportResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReportResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgMatchReportResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgMatchReportResponse +} + +// 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_MsgMatchReportResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgMatchReportResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgMatchReportResponse) New() protoreflect.Message { + return new(fastReflection_MsgMatchReportResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgMatchReportResponse) Interface() protoreflect.ProtoMessage { + return (*MsgMatchReportResponse)(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_MsgMatchReportResponse) 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_MsgMatchReportResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) 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.MsgMatchReportResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) 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.MsgMatchReportResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) 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.MsgMatchReportResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) 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.MsgMatchReportResponse")) + } + panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReportResponse", 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_MsgMatchReportResponse) 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_MsgMatchReportResponse) 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_MsgMatchReportResponse) 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_MsgMatchReportResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgMatchReportResponse) + 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().(*MsgMatchReportResponse) + 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().(*MsgMatchReportResponse) + 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: MsgMatchReportResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReportResponse: 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) +) + +// 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 string `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() string { + if x != nil { + return x.Content + } + return "" +} + +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) + } +} -// Deprecated: Use MsgUserCreateResponse.ProtoReflect.Descriptor instead. -func (*MsgUserCreateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{3} +func (x *MsgCardVote) String() string { + return protoimpl.X.MessageStringOf(x) } -type MsgCardSchemeBuy struct { +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 - 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"` + AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` } -func (x *MsgCardSchemeBuy) Reset() { - *x = MsgCardSchemeBuy{} +func (x *MsgCardVoteResponse) Reset() { + *x = MsgCardVoteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[4] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSchemeBuy) String() string { +func (x *MsgCardVoteResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSchemeBuy) ProtoMessage() {} +func (*MsgCardVoteResponse) ProtoMessage() {} -// Deprecated: Use MsgCardSchemeBuy.ProtoReflect.Descriptor instead. -func (*MsgCardSchemeBuy) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{4} +// Deprecated: Use MsgCardVoteResponse.ProtoReflect.Descriptor instead. +func (*MsgCardVoteResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{9} } -func (x *MsgCardSchemeBuy) GetCreator() string { +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 *MsgCardSchemeBuy) GetBid() *v1beta1.Coin { +func (x *MsgCardTransfer) GetCardId() uint64 { if x != nil { - return x.Bid + return x.CardId } - return nil + return 0 } -type MsgCardSchemeBuyResponse struct { +func (x *MsgCardTransfer) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +type MsgCardTransferResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields +} - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` +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 *MsgCardSchemeBuyResponse) Reset() { - *x = MsgCardSchemeBuyResponse{} +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[5] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSchemeBuyResponse) String() string { +func (x *MsgCardDonate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSchemeBuyResponse) ProtoMessage() {} +func (*MsgCardDonate) ProtoMessage() {} -// Deprecated: Use MsgCardSchemeBuyResponse.ProtoReflect.Descriptor instead. -func (*MsgCardSchemeBuyResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{5} +// Deprecated: Use MsgCardDonate.ProtoReflect.Descriptor instead. +func (*MsgCardDonate) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{12} } -func (x *MsgCardSchemeBuyResponse) GetCardId() uint64 { +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 } -type MsgCardSaveContent struct { +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 +} - 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 string `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 *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 *MsgCardSaveContent) Reset() { - *x = MsgCardSaveContent{} +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 string `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[6] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSaveContent) String() string { +func (x *MsgCardArtworkAdd) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSaveContent) ProtoMessage() {} +func (*MsgCardArtworkAdd) ProtoMessage() {} -// Deprecated: Use MsgCardSaveContent.ProtoReflect.Descriptor instead. -func (*MsgCardSaveContent) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{6} +// Deprecated: Use MsgCardArtworkAdd.ProtoReflect.Descriptor instead. +func (*MsgCardArtworkAdd) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{14} } -func (x *MsgCardSaveContent) GetCreator() string { +func (x *MsgCardArtworkAdd) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardSaveContent) GetCardId() uint64 { +func (x *MsgCardArtworkAdd) GetCardId() uint64 { if x != nil { return x.CardId } return 0 } -func (x *MsgCardSaveContent) GetContent() string { +func (x *MsgCardArtworkAdd) GetImage() string { if x != nil { - return x.Content + return x.Image } return "" } -func (x *MsgCardSaveContent) GetNotes() string { +func (x *MsgCardArtworkAdd) GetFullArt() bool { if x != nil { - return x.Notes + 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 "" } -func (x *MsgCardSaveContent) GetArtist() string { +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.Artist + return x.Creator } return "" } -func (x *MsgCardSaveContent) GetBalanceAnchor() bool { - if x != nil { - return x.BalanceAnchor +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) } - return false } -type MsgCardSaveContentResponse struct { +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 - AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } -func (x *MsgCardSaveContentResponse) Reset() { - *x = MsgCardSaveContentResponse{} +func (x *MsgCouncilDeregister) Reset() { + *x = MsgCouncilDeregister{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[7] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardSaveContentResponse) String() string { +func (x *MsgCouncilDeregister) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardSaveContentResponse) ProtoMessage() {} +func (*MsgCouncilDeregister) ProtoMessage() {} -// Deprecated: Use MsgCardSaveContentResponse.ProtoReflect.Descriptor instead. -func (*MsgCardSaveContentResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{7} +// Deprecated: Use MsgCouncilDeregister.ProtoReflect.Descriptor instead. +func (*MsgCouncilDeregister) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{20} } -func (x *MsgCardSaveContentResponse) GetAirdropClaimed() bool { +func (x *MsgCouncilDeregister) GetCreator() string { if x != nil { - return x.AirdropClaimed + return x.Creator } - return false + return "" } -type MsgCardVote struct { +type MsgCouncilDeregisterResponse 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 *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 *MsgCardVote) Reset() { - *x = MsgCardVote{} +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 int32 `protobuf:"varint,5,opt,name=outcome,proto3" json:"outcome,omitempty"` +} + +func (x *MsgMatchReport) Reset() { + *x = MsgMatchReport{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[8] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardVote) String() string { +func (x *MsgMatchReport) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCardVote) ProtoMessage() {} +func (*MsgMatchReport) ProtoMessage() {} -// Deprecated: Use MsgCardVote.ProtoReflect.Descriptor instead. -func (*MsgCardVote) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{8} +// Deprecated: Use MsgMatchReport.ProtoReflect.Descriptor instead. +func (*MsgMatchReport) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{22} } -func (x *MsgCardVote) GetCreator() string { +func (x *MsgMatchReport) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCardVote) GetVote() *SingleVote { +func (x *MsgMatchReport) GetMatchId() uint64 { if x != nil { - return x.Vote + return x.MatchId + } + return 0 +} + +func (x *MsgMatchReport) GetPlayedCardsA() []uint64 { + if x != nil { + return x.PlayedCardsA } return nil } -type MsgCardVoteResponse struct { +func (x *MsgMatchReport) GetPlayedCardsB() []uint64 { + if x != nil { + return x.PlayedCardsB + } + return nil +} + +func (x *MsgMatchReport) GetOutcome() int32 { + if x != nil { + return x.Outcome + } + return 0 +} + +type MsgMatchReportResponse 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 *MsgMatchReportResponse) Reset() { + *x = MsgMatchReportResponse{} if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[9] + mi := &file_cardchain_cardchain_tx_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgCardVoteResponse) String() string { +func (x *MsgMatchReportResponse) 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 (*MsgMatchReportResponse) ProtoMessage() {} -func (x *MsgCardVoteResponse) GetAirdropClaimed() bool { - if x != nil { - return x.AirdropClaimed - } - return false +// Deprecated: Use MsgMatchReportResponse.ProtoReflect.Descriptor instead. +func (*MsgMatchReportResponse) Descriptor() ([]byte, []int) { + return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{23} } var File_cardchain_cardchain_tx_proto protoreflect.FileDescriptor @@ -5221,52 +12158,160 @@ var file_cardchain_cardchain_tx_proto_rawDesc = []byte{ 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, - 0x32, 0xfa, 0x03, 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, + 0x22, 0x6d, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 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, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x0d, 0x4d, + 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, 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, 0x37, + 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 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, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, + 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x83, + 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 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, 0x16, + 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, + 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x66, 0x75, 0x6c, 0x6c, 0x41, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x66, + 0x75, 0x6c, 0x6c, 0x41, 0x72, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 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, 0x22, 0x6d, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 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, 0x16, 0x0a, 0x06, 0x61, 0x72, + 0x74, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x22, 0x1d, 0x0a, 0x1b, 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, 0x22, + 0x3c, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 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, 0x3a, + 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, + 0x1a, 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, 0x22, 0x3e, 0x0a, 0x14, 0x4d, + 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 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, 0x3a, 0x0c, 0x82, + 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 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, 0x22, 0xb4, 0x01, 0x0a, 0x0e, + 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 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, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, + 0x73, 0x41, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64, + 0x43, 0x61, 0x72, 0x64, 0x73, 0x41, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64, + 0x43, 0x61, 0x72, 0x64, 0x73, 0x42, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0c, 0x70, 0x6c, + 0x61, 0x79, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x42, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x75, + 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 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, 0x1a, 0x2a, + 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, 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, 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, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, - 0x75, 0x79, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 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, - 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, + 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, 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, + 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, 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, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x1a, 0x28, 0x2e, 0x63, + 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, 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, 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, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 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, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, - 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, + 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, + 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, + 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, + 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -5281,41 +12326,70 @@ 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, 10) +var file_cardchain_cardchain_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 24) 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 - (*Params)(nil), // 10: cardchain.cardchain.Params - (*v1beta1.Coin)(nil), // 11: cosmos.base.v1beta1.Coin - (*SingleVote)(nil), // 12: cardchain.cardchain.SingleVote + (*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 } var file_cardchain_cardchain_tx_proto_depIdxs = []int32{ - 10, // 0: cardchain.cardchain.MsgUpdateParams.params:type_name -> cardchain.cardchain.Params - 11, // 1: cardchain.cardchain.MsgCardSchemeBuy.bid:type_name -> cosmos.base.v1beta1.Coin - 12, // 2: cardchain.cardchain.MsgCardVote.vote:type_name -> cardchain.cardchain.SingleVote - 0, // 3: cardchain.cardchain.Msg.UpdateParams:input_type -> cardchain.cardchain.MsgUpdateParams - 2, // 4: cardchain.cardchain.Msg.UserCreate:input_type -> cardchain.cardchain.MsgUserCreate - 4, // 5: cardchain.cardchain.Msg.CardSchemeBuy:input_type -> cardchain.cardchain.MsgCardSchemeBuy - 6, // 6: cardchain.cardchain.Msg.CardSaveContent:input_type -> cardchain.cardchain.MsgCardSaveContent - 8, // 7: cardchain.cardchain.Msg.CardVote:input_type -> cardchain.cardchain.MsgCardVote - 1, // 8: cardchain.cardchain.Msg.UpdateParams:output_type -> cardchain.cardchain.MsgUpdateParamsResponse - 3, // 9: cardchain.cardchain.Msg.UserCreate:output_type -> cardchain.cardchain.MsgUserCreateResponse - 5, // 10: cardchain.cardchain.Msg.CardSchemeBuy:output_type -> cardchain.cardchain.MsgCardSchemeBuyResponse - 7, // 11: cardchain.cardchain.Msg.CardSaveContent:output_type -> cardchain.cardchain.MsgCardSaveContentResponse - 9, // 12: cardchain.cardchain.Msg.CardVote:output_type -> cardchain.cardchain.MsgCardVoteResponse - 8, // [8:13] is the sub-list for method output_type - 3, // [3:8] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 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 + 0, // 4: cardchain.cardchain.Msg.UpdateParams:input_type -> cardchain.cardchain.MsgUpdateParams + 2, // 5: cardchain.cardchain.Msg.UserCreate:input_type -> cardchain.cardchain.MsgUserCreate + 4, // 6: cardchain.cardchain.Msg.CardSchemeBuy:input_type -> cardchain.cardchain.MsgCardSchemeBuy + 6, // 7: cardchain.cardchain.Msg.CardSaveContent:input_type -> cardchain.cardchain.MsgCardSaveContent + 8, // 8: cardchain.cardchain.Msg.CardVote:input_type -> cardchain.cardchain.MsgCardVote + 10, // 9: cardchain.cardchain.Msg.CardTransfer:input_type -> cardchain.cardchain.MsgCardTransfer + 12, // 10: cardchain.cardchain.Msg.CardDonate:input_type -> cardchain.cardchain.MsgCardDonate + 14, // 11: cardchain.cardchain.Msg.CardArtworkAdd:input_type -> cardchain.cardchain.MsgCardArtworkAdd + 16, // 12: cardchain.cardchain.Msg.CardArtistChange:input_type -> cardchain.cardchain.MsgCardArtistChange + 18, // 13: cardchain.cardchain.Msg.CouncilRegister:input_type -> cardchain.cardchain.MsgCouncilRegister + 20, // 14: cardchain.cardchain.Msg.CouncilDeregister:input_type -> cardchain.cardchain.MsgCouncilDeregister + 22, // 15: cardchain.cardchain.Msg.MatchReport:input_type -> cardchain.cardchain.MsgMatchReport + 1, // 16: cardchain.cardchain.Msg.UpdateParams:output_type -> cardchain.cardchain.MsgUpdateParamsResponse + 3, // 17: cardchain.cardchain.Msg.UserCreate:output_type -> cardchain.cardchain.MsgUserCreateResponse + 5, // 18: cardchain.cardchain.Msg.CardSchemeBuy:output_type -> cardchain.cardchain.MsgCardSchemeBuyResponse + 7, // 19: cardchain.cardchain.Msg.CardSaveContent:output_type -> cardchain.cardchain.MsgCardSaveContentResponse + 9, // 20: cardchain.cardchain.Msg.CardVote:output_type -> cardchain.cardchain.MsgCardVoteResponse + 11, // 21: cardchain.cardchain.Msg.CardTransfer:output_type -> cardchain.cardchain.MsgCardTransferResponse + 13, // 22: cardchain.cardchain.Msg.CardDonate:output_type -> cardchain.cardchain.MsgCardDonateResponse + 15, // 23: cardchain.cardchain.Msg.CardArtworkAdd:output_type -> cardchain.cardchain.MsgCardArtworkAddResponse + 17, // 24: cardchain.cardchain.Msg.CardArtistChange:output_type -> cardchain.cardchain.MsgCardArtistChangeResponse + 19, // 25: cardchain.cardchain.Msg.CouncilRegister:output_type -> cardchain.cardchain.MsgCouncilRegisterResponse + 21, // 26: cardchain.cardchain.Msg.CouncilDeregister:output_type -> cardchain.cardchain.MsgCouncilDeregisterResponse + 23, // 27: cardchain.cardchain.Msg.MatchReport:output_type -> cardchain.cardchain.MsgMatchReportResponse + 16, // [16:28] is the sub-list for method output_type + 4, // [4:16] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_cardchain_cardchain_tx_proto_init() } @@ -5446,6 +12520,174 @@ 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 { + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + 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: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -5453,7 +12695,7 @@ func file_cardchain_cardchain_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cardchain_cardchain_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 10, + NumMessages: 24, NumExtensions: 0, NumServices: 1, }, diff --git a/api/cardchain/cardchain/tx_grpc.pb.go b/api/cardchain/cardchain/tx_grpc.pb.go index 67c1691f..08262466 100644 --- a/api/cardchain/cardchain/tx_grpc.pb.go +++ b/api/cardchain/cardchain/tx_grpc.pb.go @@ -8,6 +8,7 @@ package cardchain import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -19,11 +20,18 @@ 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_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" ) // MsgClient is the client API for Msg service. @@ -37,6 +45,13 @@ type MsgClient interface { 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) } type msgClient struct { @@ -92,6 +107,69 @@ func (c *msgClient) CardVote(ctx context.Context, in *MsgCardVote, opts ...grpc. return out, nil } +func (c *msgClient) CardTransfer(ctx context.Context, in *MsgCardTransfer, opts ...grpc.CallOption) (*MsgCardTransferResponse, error) { + out := new(MsgCardTransferResponse) + err := c.cc.Invoke(ctx, Msg_CardTransfer_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CardDonate(ctx context.Context, in *MsgCardDonate, opts ...grpc.CallOption) (*MsgCardDonateResponse, error) { + out := new(MsgCardDonateResponse) + err := c.cc.Invoke(ctx, Msg_CardDonate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CardArtworkAdd(ctx context.Context, in *MsgCardArtworkAdd, opts ...grpc.CallOption) (*MsgCardArtworkAddResponse, error) { + out := new(MsgCardArtworkAddResponse) + err := c.cc.Invoke(ctx, Msg_CardArtworkAdd_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CardArtistChange(ctx context.Context, in *MsgCardArtistChange, opts ...grpc.CallOption) (*MsgCardArtistChangeResponse, error) { + out := new(MsgCardArtistChangeResponse) + err := c.cc.Invoke(ctx, Msg_CardArtistChange_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) { + out := new(MsgCouncilRegisterResponse) + err := c.cc.Invoke(ctx, Msg_CouncilRegister_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) { + out := new(MsgCouncilDeregisterResponse) + err := c.cc.Invoke(ctx, Msg_CouncilDeregister_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) { + out := new(MsgMatchReportResponse) + err := c.cc.Invoke(ctx, Msg_MatchReport_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 @@ -103,6 +181,13 @@ type MsgServer interface { 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) mustEmbedUnimplementedMsgServer() } @@ -125,6 +210,27 @@ func (UnimplementedMsgServer) CardSaveContent(context.Context, *MsgCardSaveConte func (UnimplementedMsgServer) CardVote(context.Context, *MsgCardVote) (*MsgCardVoteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CardVote not implemented") } +func (UnimplementedMsgServer) CardTransfer(context.Context, *MsgCardTransfer) (*MsgCardTransferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardTransfer not implemented") +} +func (UnimplementedMsgServer) CardDonate(context.Context, *MsgCardDonate) (*MsgCardDonateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardDonate not implemented") +} +func (UnimplementedMsgServer) CardArtworkAdd(context.Context, *MsgCardArtworkAdd) (*MsgCardArtworkAddResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardArtworkAdd not implemented") +} +func (UnimplementedMsgServer) CardArtistChange(context.Context, *MsgCardArtistChange) (*MsgCardArtistChangeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CardArtistChange not implemented") +} +func (UnimplementedMsgServer) CouncilRegister(context.Context, *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CouncilRegister not implemented") +} +func (UnimplementedMsgServer) CouncilDeregister(context.Context, *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CouncilDeregister not implemented") +} +func (UnimplementedMsgServer) MatchReport(context.Context, *MsgMatchReport) (*MsgMatchReportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MatchReport not implemented") +} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -228,6 +334,132 @@ func _Msg_CardVote_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +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: Msg_CardTransfer_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardTransfer(ctx, req.(*MsgCardTransfer)) + } + return interceptor(ctx, in, info, handler) +} + +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: Msg_CardDonate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CardDonate(ctx, req.(*MsgCardDonate)) + } + return interceptor(ctx, in, info, handler) +} + +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: Msg_CardArtworkAdd_FullMethodName, + } + 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: Msg_CardArtistChange_FullMethodName, + } + 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: Msg_CouncilRegister_FullMethodName, + } + 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: Msg_CouncilDeregister_FullMethodName, + } + 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: Msg_MatchReport_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MatchReport(ctx, req.(*MsgMatchReport)) + } + 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) @@ -255,6 +487,34 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ 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", diff --git a/api/cardchain/cardchain/voting.pulsar.go b/api/cardchain/cardchain/voting.pulsar.go index 2a02aa7e..bf614c4f 100644 --- a/api/cardchain/cardchain/voting.pulsar.go +++ b/api/cardchain/cardchain/voting.pulsar.go @@ -3,13 +3,14 @@ package cardchain import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + runtime "github.com/cosmos/cosmos-proto/runtime" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" ) var _ protoreflect.List = (*_VotingResults_6_list)(nil) diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 5fc0c7c5..454bf8c5 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/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/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/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.MsgCardSaveContent":{"type":"object","properties":{"artist":{"type":"string"},"balanceAnchor":{"type":"boolean"},"cardId":{"type":"string","format":"uint64"},"content":{"type":"string"},"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.MsgCardVote":{"type":"object","properties":{"creator":{"type":"string"},"vote":{"$ref":"#/definitions/cardchain.cardchain.SingleVote"}}},"cardchain.cardchain.MsgCardVoteResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"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.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/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"}}},"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"},"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":{"type":"integer","format":"int32"},"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.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 a6ddaa01..21ff1dda 100755 --- a/gen.sh +++ b/gen.sh @@ -3,12 +3,12 @@ #ignite scaffold message UserCreate newUser:string alias:string #ignite scaffold message CardSchemeBuy bid:coin --response cardId:uint #ignite scaffold message CardSaveContent cardId:uint content:string notes:string artist:string balanceAnchor:bool --response airdropClaimed:bool -ignite scaffold message CardVote vote:SingleVote --response airdropClaimed:bool -ignite scaffold message CardTransfer cardId:uint receiver:string -ignite scaffold message CardDonate cardId:uint amount:coin -ignite scaffold message CardArtworkAdd cardId:uint image:string fullArt:bool -ignite scaffold message CardArtistChange cardId:uint artist:string -ignite scaffold message CouncilRegister -ignite scaffold message CouncilDeregister +#ignite scaffold message CardVote vote:SingleVote --response airdropClaimed:bool +#ignite scaffold message CardTransfer cardId:uint receiver:string +#ignite scaffold message CardDonate cardId:uint amount:coin +#ignite scaffold message CardArtworkAdd cardId:uint image:string fullArt:bool +#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:Outcome + playedCardsB:uints outcome:int diff --git a/proto/cardchain/cardchain/tx.proto b/proto/cardchain/cardchain/tx.proto index 878db654..c2b7bbe5 100644 --- a/proto/cardchain/cardchain/tx.proto +++ b/proto/cardchain/cardchain/tx.proto @@ -15,29 +15,35 @@ option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; // Msg defines the Msg service. service Msg { option (cosmos.msg.v1.service) = true; - + // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. - rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); - rpc UserCreate(MsgUserCreate) returns (MsgUserCreateResponse); - rpc CardSchemeBuy(MsgCardSchemeBuy) returns (MsgCardSchemeBuyResponse); - rpc CardSaveContent(MsgCardSaveContent) returns (MsgCardSaveContentResponse); - rpc CardVote(MsgCardVote) returns (MsgCardVoteResponse); + rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ); + rpc UserCreate (MsgUserCreate ) returns (MsgUserCreateResponse ); + rpc CardSchemeBuy (MsgCardSchemeBuy ) returns (MsgCardSchemeBuyResponse ); + rpc CardSaveContent (MsgCardSaveContent ) returns (MsgCardSaveContentResponse ); + rpc CardVote (MsgCardVote ) returns (MsgCardVoteResponse ); + rpc CardTransfer (MsgCardTransfer ) returns (MsgCardTransferResponse ); + rpc CardDonate (MsgCardDonate ) returns (MsgCardDonateResponse ); + rpc CardArtworkAdd (MsgCardArtworkAdd ) returns (MsgCardArtworkAddResponse ); + rpc CardArtistChange (MsgCardArtistChange ) returns (MsgCardArtistChangeResponse ); + rpc CouncilRegister (MsgCouncilRegister ) returns (MsgCouncilRegisterResponse ); + rpc CouncilDeregister (MsgCouncilDeregister) returns (MsgCouncilDeregisterResponse); + rpc MatchReport (MsgMatchReport ) returns (MsgMatchReportResponse ); } // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "cardchain/x/cardchain/MsgUpdateParams"; - + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cardchain/x/cardchain/MsgUpdateParams"; + // authority is the address that controls the module (defaults to x/gov unless // overwritten). - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the module parameters to update. - + // NOTE: All parameters must be supplied. - Params params = 2 - [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgUpdateParamsResponse defines the response structure for executing a @@ -48,35 +54,104 @@ message MsgUserCreate { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string newUser = 2; - string alias = 3; + string alias = 3; } message MsgUserCreateResponse {} message MsgCardSchemeBuy { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - cosmos.base.v1beta1.Coin bid = 2 [ (gogoproto.nullable) = false ]; + string creator = 1; + cosmos.base.v1beta1.Coin bid = 2 [(gogoproto.nullable) = false]; } -message MsgCardSchemeBuyResponse { uint64 cardId = 1; } +message MsgCardSchemeBuyResponse { + uint64 cardId = 1; +} message MsgCardSaveContent { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 cardId = 2; - string content = 3; - string notes = 4; - string artist = 5; - bool balanceAnchor = 6; + string creator = 1; + uint64 cardId = 2; + string content = 3; + string notes = 4; + string artist = 5; + bool balanceAnchor = 6; } -message MsgCardSaveContentResponse { bool airdropClaimed = 1; } +message MsgCardSaveContentResponse { + bool airdropClaimed = 1; +} message MsgCardVote { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + SingleVote vote = 2; +} + +message MsgCardVoteResponse { + bool airdropClaimed = 1; +} + +message MsgCardTransfer { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 cardId = 2; + string receiver = 3; +} + +message MsgCardTransferResponse {} + +message MsgCardDonate { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 cardId = 2; + cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; +} + +message MsgCardDonateResponse {} + +message MsgCardArtworkAdd { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; - SingleVote vote = 2; + uint64 cardId = 2; + string image = 3; + bool fullArt = 4; } -message MsgCardVoteResponse { bool airdropClaimed = 1; } +message MsgCardArtworkAddResponse {} + +message MsgCardArtistChange { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 cardId = 2; + string artist = 3; +} + +message MsgCardArtistChangeResponse {} + +message MsgCouncilRegister { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; +} + +message MsgCouncilRegisterResponse {} + +message MsgCouncilDeregister { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; +} + +message MsgCouncilDeregisterResponse {} + +message MsgMatchReport { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1; + uint64 matchId = 2; + repeated uint64 playedCardsA = 3; + repeated uint64 playedCardsB = 4; + int32 outcome = 5; +} + +message MsgMatchReportResponse {} + diff --git a/x/cardchain/keeper/msg_server_card_artist_change.go b/x/cardchain/keeper/msg_server_card_artist_change.go new file mode 100644 index 00000000..cf1d54d0 --- /dev/null +++ b/x/cardchain/keeper/msg_server_card_artist_change.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) CardArtistChange(goCtx context.Context, msg *types.MsgCardArtistChange) (*types.MsgCardArtistChangeResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgCardArtistChangeResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_card_artwork_add.go b/x/cardchain/keeper/msg_server_card_artwork_add.go new file mode 100644 index 00000000..49697667 --- /dev/null +++ b/x/cardchain/keeper/msg_server_card_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) CardArtworkAdd(goCtx context.Context, msg *types.MsgCardArtworkAdd) (*types.MsgCardArtworkAddResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgCardArtworkAddResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_card_donate.go b/x/cardchain/keeper/msg_server_card_donate.go new file mode 100644 index 00000000..1395a6f0 --- /dev/null +++ b/x/cardchain/keeper/msg_server_card_donate.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) CardDonate(goCtx context.Context, msg *types.MsgCardDonate) (*types.MsgCardDonateResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgCardDonateResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_card_transfer.go b/x/cardchain/keeper/msg_server_card_transfer.go new file mode 100644 index 00000000..62232513 --- /dev/null +++ b/x/cardchain/keeper/msg_server_card_transfer.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) CardTransfer(goCtx context.Context, msg *types.MsgCardTransfer) (*types.MsgCardTransferResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgCardTransferResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_card_vote.go b/x/cardchain/keeper/msg_server_card_vote.go index 4c4e627a..16aabdfa 100644 --- a/x/cardchain/keeper/msg_server_card_vote.go +++ b/x/cardchain/keeper/msg_server_card_vote.go @@ -3,16 +3,15 @@ package keeper import ( "context" - "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" sdk "github.com/cosmos/cosmos-sdk/types" ) - -func (k msgServer) CardVote(goCtx context.Context, msg *types.MsgCardVote) (*types.MsgCardVoteResponse, error) { +func (k msgServer) CardVote(goCtx context.Context, msg *types.MsgCardVote) (*types.MsgCardVoteResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - // TODO: Handling the message - _ = ctx + // TODO: Handling the message + _ = ctx return &types.MsgCardVoteResponse{}, nil } diff --git a/x/cardchain/keeper/msg_server_council_deregister.go b/x/cardchain/keeper/msg_server_council_deregister.go new file mode 100644 index 00000000..f20738e4 --- /dev/null +++ b/x/cardchain/keeper/msg_server_council_deregister.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) CouncilDeregister(goCtx context.Context, msg *types.MsgCouncilDeregister) (*types.MsgCouncilDeregisterResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgCouncilDeregisterResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_council_register.go b/x/cardchain/keeper/msg_server_council_register.go new file mode 100644 index 00000000..d989b313 --- /dev/null +++ b/x/cardchain/keeper/msg_server_council_register.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) CouncilRegister(goCtx context.Context, msg *types.MsgCouncilRegister) (*types.MsgCouncilRegisterResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgCouncilRegisterResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_match_report.go b/x/cardchain/keeper/msg_server_match_report.go new file mode 100644 index 00000000..6ac1c7d9 --- /dev/null +++ b/x/cardchain/keeper/msg_server_match_report.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) MatchReport(goCtx context.Context, msg *types.MsgMatchReport) (*types.MsgMatchReportResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // TODO: Handling the message + _ = ctx + + return &types.MsgMatchReportResponse{}, nil +} diff --git a/x/cardchain/module/autocli.go b/x/cardchain/module/autocli.go index 7c3b32a5..708968cf 100644 --- a/x/cardchain/module/autocli.go +++ b/x/cardchain/module/autocli.go @@ -47,12 +47,54 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}, {ProtoField: "content"}, {ProtoField: "notes"}, {ProtoField: "artist"}, {ProtoField: "balanceAnchor"}}, }, { - RpcMethod: "CardVote", - Use: "card-vote [vote]", - Short: "Send a CardVote tx", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "vote"},}, - }, - // this line is used by ignite scaffolding # autocli/tx + RpcMethod: "CardVote", + Use: "card-vote [vote]", + Short: "Send a CardVote tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "vote"}}, + }, + { + RpcMethod: "CardTransfer", + Use: "card-transfer [card-id] [receiver]", + Short: "Send a CardTransfer tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}, {ProtoField: "receiver"}}, + }, + { + RpcMethod: "CardDonate", + Use: "card-donate [card-id] [amount]", + Short: "Send a CardDonate tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}, {ProtoField: "amount"}}, + }, + { + RpcMethod: "CardArtworkAdd", + Use: "card-artwork-add [card-id] [image] [full-art]", + Short: "Send a CardArtworkAdd tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}, {ProtoField: "image"}, {ProtoField: "fullArt"}}, + }, + { + RpcMethod: "CardArtistChange", + Use: "card-artist-change [card-id] [artist]", + Short: "Send a CardArtistChange tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}, {ProtoField: "artist"}}, + }, + { + RpcMethod: "CouncilRegister", + Use: "council-register", + Short: "Send a CouncilRegister tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{}, + }, + { + RpcMethod: "CouncilDeregister", + Use: "council-deregister", + Short: "Send a CouncilDeregister tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{}, + }, + { + RpcMethod: "MatchReport", + Use: "match-report [match-id] [played-cards-a] [played-cards-b] [outcome]", + Short: "Send a MatchReport tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "matchId"}, {ProtoField: "playedCardsA"}, {ProtoField: "playedCardsB"}, {ProtoField: "outcome"}}, + }, + // this line is used by ignite scaffolding # autocli/tx }, }, } diff --git a/x/cardchain/module/simulation.go b/x/cardchain/module/simulation.go index fbfd0b79..b5587031 100644 --- a/x/cardchain/module/simulation.go +++ b/x/cardchain/module/simulation.go @@ -39,6 +39,34 @@ const ( // TODO: Determine the simulation weight value defaultWeightMsgCardVote int = 100 + opWeightMsgCardTransfer = "op_weight_msg_card_transfer" + // TODO: Determine the simulation weight value + defaultWeightMsgCardTransfer int = 100 + + opWeightMsgCardDonate = "op_weight_msg_card_donate" + // TODO: Determine the simulation weight value + defaultWeightMsgCardDonate int = 100 + + opWeightMsgCardArtworkAdd = "op_weight_msg_card_artwork_add" + // TODO: Determine the simulation weight value + defaultWeightMsgCardArtworkAdd int = 100 + + opWeightMsgCardArtistChange = "op_weight_msg_card_artist_change" + // TODO: Determine the simulation weight value + defaultWeightMsgCardArtistChange int = 100 + + opWeightMsgCouncilRegister = "op_weight_msg_council_register" + // TODO: Determine the simulation weight value + defaultWeightMsgCouncilRegister int = 100 + + opWeightMsgCouncilDeregister = "op_weight_msg_council_deregister" + // TODO: Determine the simulation weight value + defaultWeightMsgCouncilDeregister int = 100 + + opWeightMsgMatchReport = "op_weight_msg_match_report" + // TODO: Determine the simulation weight value + defaultWeightMsgMatchReport int = 100 + // this line is used by starport scaffolding # simapp/module/const ) @@ -106,6 +134,83 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp cardchainsimulation.SimulateMsgCardVote(am.accountKeeper, am.bankKeeper, am.keeper), )) + var weightMsgCardTransfer int + simState.AppParams.GetOrGenerate(opWeightMsgCardTransfer, &weightMsgCardTransfer, nil, + func(_ *rand.Rand) { + weightMsgCardTransfer = defaultWeightMsgCardTransfer + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCardTransfer, + cardchainsimulation.SimulateMsgCardTransfer(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgCardDonate int + simState.AppParams.GetOrGenerate(opWeightMsgCardDonate, &weightMsgCardDonate, nil, + func(_ *rand.Rand) { + weightMsgCardDonate = defaultWeightMsgCardDonate + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCardDonate, + cardchainsimulation.SimulateMsgCardDonate(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgCardArtworkAdd int + simState.AppParams.GetOrGenerate(opWeightMsgCardArtworkAdd, &weightMsgCardArtworkAdd, nil, + func(_ *rand.Rand) { + weightMsgCardArtworkAdd = defaultWeightMsgCardArtworkAdd + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCardArtworkAdd, + cardchainsimulation.SimulateMsgCardArtworkAdd(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgCardArtistChange int + simState.AppParams.GetOrGenerate(opWeightMsgCardArtistChange, &weightMsgCardArtistChange, nil, + func(_ *rand.Rand) { + weightMsgCardArtistChange = defaultWeightMsgCardArtistChange + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCardArtistChange, + cardchainsimulation.SimulateMsgCardArtistChange(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgCouncilRegister int + simState.AppParams.GetOrGenerate(opWeightMsgCouncilRegister, &weightMsgCouncilRegister, nil, + func(_ *rand.Rand) { + weightMsgCouncilRegister = defaultWeightMsgCouncilRegister + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCouncilRegister, + cardchainsimulation.SimulateMsgCouncilRegister(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgCouncilDeregister int + simState.AppParams.GetOrGenerate(opWeightMsgCouncilDeregister, &weightMsgCouncilDeregister, nil, + func(_ *rand.Rand) { + weightMsgCouncilDeregister = defaultWeightMsgCouncilDeregister + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCouncilDeregister, + cardchainsimulation.SimulateMsgCouncilDeregister(am.accountKeeper, am.bankKeeper, am.keeper), + )) + + var weightMsgMatchReport int + simState.AppParams.GetOrGenerate(opWeightMsgMatchReport, &weightMsgMatchReport, nil, + func(_ *rand.Rand) { + weightMsgMatchReport = defaultWeightMsgMatchReport + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgMatchReport, + cardchainsimulation.SimulateMsgMatchReport(am.accountKeeper, am.bankKeeper, am.keeper), + )) + // this line is used by starport scaffolding # simapp/module/operation return operations @@ -139,13 +244,69 @@ func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.Wei }, ), simulation.NewWeightedProposalMsg( - opWeightMsgCardVote, - defaultWeightMsgCardVote, - func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { - cardchainsimulation.SimulateMsgCardVote(am.accountKeeper, am.bankKeeper, am.keeper) - return nil - }, -), -// this line is used by starport scaffolding # simapp/module/OpMsg + opWeightMsgCardVote, + defaultWeightMsgCardVote, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCardVote(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgCardTransfer, + defaultWeightMsgCardTransfer, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCardTransfer(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgCardDonate, + defaultWeightMsgCardDonate, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCardDonate(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgCardArtworkAdd, + defaultWeightMsgCardArtworkAdd, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCardArtworkAdd(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgCardArtistChange, + defaultWeightMsgCardArtistChange, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCardArtistChange(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgCouncilRegister, + defaultWeightMsgCouncilRegister, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCouncilRegister(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgCouncilDeregister, + defaultWeightMsgCouncilDeregister, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgCouncilDeregister(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + simulation.NewWeightedProposalMsg( + opWeightMsgMatchReport, + defaultWeightMsgMatchReport, + func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { + cardchainsimulation.SimulateMsgMatchReport(am.accountKeeper, am.bankKeeper, am.keeper) + return nil + }, + ), + // this line is used by starport scaffolding # simapp/module/OpMsg } } diff --git a/x/cardchain/simulation/card_artist_change.go b/x/cardchain/simulation/card_artist_change.go new file mode 100644 index 00000000..eacf77ad --- /dev/null +++ b/x/cardchain/simulation/card_artist_change.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 SimulateMsgCardArtistChange( + 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.MsgCardArtistChange{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CardArtistChange simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "CardArtistChange simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/card_artwork_add.go b/x/cardchain/simulation/card_artwork_add.go new file mode 100644 index 00000000..e9a6ca97 --- /dev/null +++ b/x/cardchain/simulation/card_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 SimulateMsgCardArtworkAdd( + 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.MsgCardArtworkAdd{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CardArtworkAdd simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "CardArtworkAdd simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/card_donate.go b/x/cardchain/simulation/card_donate.go new file mode 100644 index 00000000..550166cc --- /dev/null +++ b/x/cardchain/simulation/card_donate.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 SimulateMsgCardDonate( + 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.MsgCardDonate{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CardDonate simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "CardDonate simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/card_transfer.go b/x/cardchain/simulation/card_transfer.go new file mode 100644 index 00000000..401b1ded --- /dev/null +++ b/x/cardchain/simulation/card_transfer.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 SimulateMsgCardTransfer( + 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.MsgCardTransfer{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CardTransfer simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "CardTransfer simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/council_deregister.go b/x/cardchain/simulation/council_deregister.go new file mode 100644 index 00000000..c342fa8d --- /dev/null +++ b/x/cardchain/simulation/council_deregister.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 SimulateMsgCouncilDeregister( + 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.MsgCouncilDeregister{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CouncilDeregister simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "CouncilDeregister simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/council_register.go b/x/cardchain/simulation/council_register.go new file mode 100644 index 00000000..30d119c3 --- /dev/null +++ b/x/cardchain/simulation/council_register.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 SimulateMsgCouncilRegister( + 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.MsgCouncilRegister{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CouncilRegister simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "CouncilRegister simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/simulation/match_report.go b/x/cardchain/simulation/match_report.go new file mode 100644 index 00000000..3b8b7177 --- /dev/null +++ b/x/cardchain/simulation/match_report.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 SimulateMsgMatchReport( + 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.MsgMatchReport{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the MatchReport simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "MatchReport simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/types/codec.go b/x/cardchain/types/codec.go index 36280941..ab88a692 100644 --- a/x/cardchain/types/codec.go +++ b/x/cardchain/types/codec.go @@ -18,9 +18,30 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgCardSaveContent{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgCardVote{}, -) -// this line is used by starport scaffolding # 3 + &MsgCardVote{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCardTransfer{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCardDonate{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCardArtworkAdd{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCardArtistChange{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCouncilRegister{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCouncilDeregister{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgMatchReport{}, + ) + // this line is used by starport scaffolding # 3 registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdateParams{}, diff --git a/x/cardchain/types/genesis.pb.go b/x/cardchain/types/genesis.pb.go index 0ea89648..958b40b6 100644 --- a/x/cardchain/types/genesis.pb.go +++ b/x/cardchain/types/genesis.pb.go @@ -5,12 +5,13 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/cardchain/types/match.pb.go b/x/cardchain/types/match.pb.go new file mode 100644 index 00000000..660c57d2 --- /dev/null +++ b/x/cardchain/types/match.pb.go @@ -0,0 +1,1162 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: cardchain/cardchain/match.proto + +package types + +import ( + fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + + proto "github.com/cosmos/gogoproto/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Outcome int32 + +const ( + Outcome_AWon Outcome = 0 + Outcome_BWon Outcome = 1 + Outcome_Draw Outcome = 2 + Outcome_Aborted Outcome = 3 +) + +var Outcome_name = map[int32]string{ + 0: "AWon", + 1: "BWon", + 2: "Draw", + 3: "Aborted", +} + +var Outcome_value = map[string]int32{ + "AWon": 0, + "BWon": 1, + "Draw": 2, + "Aborted": 3, +} + +func (x Outcome) String() string { + return proto.EnumName(Outcome_name, int32(x)) +} + +func (Outcome) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f49b609716516c9f, []int{0} +} + +type Match struct { + Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"` + PlayerA *MatchPlayer `protobuf:"bytes,3,opt,name=playerA,proto3" json:"playerA,omitempty"` + PlayerB *MatchPlayer `protobuf:"bytes,4,opt,name=playerB,proto3" json:"playerB,omitempty"` + Outcome Outcome `protobuf:"varint,7,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` + CoinsDistributed bool `protobuf:"varint,10,opt,name=coinsDistributed,proto3" json:"coinsDistributed,omitempty"` + ServerConfirmed bool `protobuf:"varint,8,opt,name=serverConfirmed,proto3" json:"serverConfirmed,omitempty"` +} + +func (m *Match) Reset() { *m = Match{} } +func (m *Match) String() string { return proto.CompactTextString(m) } +func (*Match) ProtoMessage() {} +func (*Match) Descriptor() ([]byte, []int) { + return fileDescriptor_f49b609716516c9f, []int{0} +} +func (m *Match) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Match.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 *Match) XXX_Merge(src proto.Message) { + xxx_messageInfo_Match.Merge(m, src) +} +func (m *Match) XXX_Size() int { + return m.Size() +} +func (m *Match) XXX_DiscardUnknown() { + xxx_messageInfo_Match.DiscardUnknown(m) +} + +var xxx_messageInfo_Match proto.InternalMessageInfo + +func (m *Match) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *Match) GetReporter() string { + if m != nil { + return m.Reporter + } + return "" +} + +func (m *Match) GetPlayerA() *MatchPlayer { + if m != nil { + return m.PlayerA + } + return nil +} + +func (m *Match) GetPlayerB() *MatchPlayer { + if m != nil { + return m.PlayerB + } + return nil +} + +func (m *Match) GetOutcome() Outcome { + if m != nil { + return m.Outcome + } + return Outcome_AWon +} + +func (m *Match) GetCoinsDistributed() bool { + if m != nil { + return m.CoinsDistributed + } + return false +} + +func (m *Match) GetServerConfirmed() bool { + if m != nil { + return m.ServerConfirmed + } + return false +} + +type MatchPlayer struct { + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + PlayedCards []uint64 `protobuf:"varint,2,rep,packed,name=playedCards,proto3" json:"playedCards,omitempty"` + Confirmed bool `protobuf:"varint,3,opt,name=confirmed,proto3" json:"confirmed,omitempty"` + Outcome Outcome `protobuf:"varint,4,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` + Deck []uint64 `protobuf:"varint,5,rep,packed,name=deck,proto3" json:"deck,omitempty"` + VotedCards []*SingleVote `protobuf:"bytes,6,rep,name=votedCards,proto3" json:"votedCards,omitempty"` +} + +func (m *MatchPlayer) Reset() { *m = MatchPlayer{} } +func (m *MatchPlayer) String() string { return proto.CompactTextString(m) } +func (*MatchPlayer) ProtoMessage() {} +func (*MatchPlayer) Descriptor() ([]byte, []int) { + return fileDescriptor_f49b609716516c9f, []int{1} +} +func (m *MatchPlayer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MatchPlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MatchPlayer.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 *MatchPlayer) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchPlayer.Merge(m, src) +} +func (m *MatchPlayer) XXX_Size() int { + return m.Size() +} +func (m *MatchPlayer) XXX_DiscardUnknown() { + xxx_messageInfo_MatchPlayer.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchPlayer proto.InternalMessageInfo + +func (m *MatchPlayer) GetAddr() string { + if m != nil { + return m.Addr + } + return "" +} + +func (m *MatchPlayer) GetPlayedCards() []uint64 { + if m != nil { + return m.PlayedCards + } + return nil +} + +func (m *MatchPlayer) GetConfirmed() bool { + if m != nil { + return m.Confirmed + } + return false +} + +func (m *MatchPlayer) GetOutcome() Outcome { + if m != nil { + return m.Outcome + } + return Outcome_AWon +} + +func (m *MatchPlayer) GetDeck() []uint64 { + if m != nil { + return m.Deck + } + return nil +} + +func (m *MatchPlayer) GetVotedCards() []*SingleVote { + if m != nil { + return m.VotedCards + } + return nil +} + +func init() { + proto.RegisterEnum("cardchain.cardchain.Outcome", Outcome_name, Outcome_value) + proto.RegisterType((*Match)(nil), "cardchain.cardchain.Match") + proto.RegisterType((*MatchPlayer)(nil), "cardchain.cardchain.MatchPlayer") +} + +func init() { proto.RegisterFile("cardchain/cardchain/match.proto", fileDescriptor_f49b609716516c9f) } + +var fileDescriptor_f49b609716516c9f = []byte{ + // 429 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0x8b, 0x13, 0x31, + 0x1c, 0xc5, 0x9b, 0xce, 0xec, 0x4e, 0xfb, 0x1f, 0xd0, 0x12, 0x2f, 0x61, 0x59, 0x66, 0xc3, 0x9e, + 0xc2, 0x1e, 0x66, 0xa1, 0x8a, 0x88, 0x17, 0x69, 0xb7, 0xe0, 0x49, 0x94, 0x08, 0x0a, 0xde, 0xd2, + 0x24, 0xb6, 0xc1, 0xce, 0x64, 0xc8, 0xa4, 0xd5, 0xfd, 0x16, 0x7e, 0x2b, 0x3d, 0xee, 0xd1, 0xa3, + 0xb4, 0x77, 0x3f, 0x83, 0x4c, 0xd6, 0xb6, 0x83, 0xdb, 0x4b, 0x6f, 0xbf, 0x79, 0xfc, 0x5f, 0xde, + 0xcb, 0xe4, 0x0f, 0x17, 0x52, 0x38, 0x25, 0xe7, 0xc2, 0x94, 0xd7, 0x7b, 0x2a, 0x84, 0x97, 0xf3, + 0xbc, 0x72, 0xd6, 0x5b, 0xfc, 0x64, 0x27, 0xe7, 0x3b, 0x3a, 0xa3, 0x87, 0x5c, 0x2b, 0xeb, 0x4d, + 0x39, 0xbb, 0xb7, 0x5d, 0xfe, 0xe8, 0xc2, 0xc9, 0x9b, 0xe6, 0x18, 0x7c, 0x0e, 0x7d, 0x6f, 0x0a, + 0x5d, 0x7b, 0x51, 0x54, 0x04, 0x51, 0xc4, 0x62, 0xbe, 0x17, 0xf0, 0x19, 0xf4, 0x9c, 0xae, 0xac, + 0xf3, 0xda, 0x91, 0x2e, 0x45, 0xac, 0xcf, 0x77, 0xdf, 0xf8, 0x25, 0x24, 0xd5, 0x42, 0xdc, 0x6a, + 0x37, 0x22, 0x11, 0x45, 0x2c, 0x1d, 0xd2, 0xfc, 0x40, 0x99, 0x3c, 0xc4, 0xbc, 0x0b, 0x83, 0x7c, + 0x6b, 0xd8, 0x7b, 0xc7, 0x24, 0x3e, 0xce, 0x3b, 0xc6, 0xcf, 0x21, 0xb1, 0x4b, 0x2f, 0x6d, 0xa1, + 0x49, 0x42, 0x11, 0x7b, 0x34, 0x3c, 0x3f, 0xe8, 0x7d, 0x7b, 0x3f, 0xc3, 0xb7, 0xc3, 0xf8, 0x0a, + 0x06, 0xd2, 0x9a, 0xb2, 0x9e, 0x98, 0xda, 0x3b, 0x33, 0x5d, 0x7a, 0xad, 0x08, 0x50, 0xc4, 0x7a, + 0xfc, 0x81, 0x8e, 0x19, 0x3c, 0xae, 0xb5, 0x5b, 0x69, 0x77, 0x63, 0xcb, 0xcf, 0xc6, 0x15, 0x5a, + 0x91, 0x5e, 0x18, 0xfd, 0x5f, 0xbe, 0xfc, 0x83, 0x20, 0x6d, 0xd5, 0xc4, 0x18, 0x62, 0xa1, 0x94, + 0x0b, 0xbf, 0xb2, 0xcf, 0x03, 0x63, 0x0a, 0x69, 0x28, 0xaf, 0x6e, 0x84, 0x53, 0x35, 0xe9, 0xd2, + 0x88, 0xc5, 0xbc, 0x2d, 0x35, 0xaf, 0x20, 0x77, 0x49, 0x51, 0x48, 0xda, 0x0b, 0xed, 0x1b, 0xc7, + 0xc7, 0xdc, 0x18, 0x43, 0xac, 0xb4, 0xfc, 0x42, 0x4e, 0x42, 0x60, 0x60, 0xfc, 0x0a, 0x60, 0x65, + 0xfd, 0xb6, 0xca, 0x29, 0x8d, 0x58, 0x3a, 0xbc, 0x38, 0x78, 0xdc, 0x7b, 0x53, 0xce, 0x16, 0xfa, + 0x83, 0xf5, 0x9a, 0xb7, 0x2c, 0x57, 0xcf, 0x20, 0xf9, 0x17, 0x84, 0x7b, 0x10, 0x8f, 0x3e, 0xda, + 0x72, 0xd0, 0x69, 0x68, 0xdc, 0x10, 0x6a, 0x68, 0xe2, 0xc4, 0xd7, 0x41, 0x17, 0xa7, 0x90, 0x8c, + 0xa6, 0xcd, 0xaa, 0xa8, 0x41, 0x34, 0xe6, 0x3f, 0xd7, 0x19, 0xba, 0x5b, 0x67, 0xe8, 0xf7, 0x3a, + 0x43, 0xdf, 0x37, 0x59, 0xe7, 0x6e, 0x93, 0x75, 0x7e, 0x6d, 0xb2, 0xce, 0xa7, 0x17, 0x33, 0xe3, + 0xe7, 0xcb, 0x69, 0x2e, 0x6d, 0x71, 0x3d, 0xd1, 0x52, 0x97, 0xde, 0x89, 0x45, 0x13, 0xf5, 0x5a, + 0x14, 0xba, 0xb5, 0xbf, 0xdf, 0x5a, 0xec, 0x6f, 0x2b, 0x5d, 0x4f, 0x4f, 0xc3, 0x2e, 0x3f, 0xfd, + 0x1b, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x37, 0xf8, 0x73, 0x25, 0x03, 0x00, 0x00, +} + +func (m *Match) 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 *Match) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Match) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CoinsDistributed { + i-- + if m.CoinsDistributed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.ServerConfirmed { + i-- + if m.ServerConfirmed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.Outcome != 0 { + i = encodeVarintMatch(dAtA, i, uint64(m.Outcome)) + i-- + dAtA[i] = 0x38 + } + if m.PlayerB != nil { + { + size, err := m.PlayerB.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMatch(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.PlayerA != nil { + { + size, err := m.PlayerA.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMatch(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Reporter) > 0 { + i -= len(m.Reporter) + copy(dAtA[i:], m.Reporter) + i = encodeVarintMatch(dAtA, i, uint64(len(m.Reporter))) + i-- + dAtA[i] = 0x12 + } + if m.Timestamp != 0 { + i = encodeVarintMatch(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MatchPlayer) 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 *MatchPlayer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MatchPlayer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.VotedCards) > 0 { + for iNdEx := len(m.VotedCards) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VotedCards[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMatch(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Deck) > 0 { + dAtA4 := make([]byte, len(m.Deck)*10) + var j3 int + for _, num := range m.Deck { + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintMatch(dAtA, i, uint64(j3)) + i-- + dAtA[i] = 0x2a + } + if m.Outcome != 0 { + i = encodeVarintMatch(dAtA, i, uint64(m.Outcome)) + i-- + dAtA[i] = 0x20 + } + if m.Confirmed { + i-- + if m.Confirmed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.PlayedCards) > 0 { + dAtA6 := make([]byte, len(m.PlayedCards)*10) + var j5 int + for _, num := range m.PlayedCards { + 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 = encodeVarintMatch(dAtA, i, uint64(j5)) + i-- + dAtA[i] = 0x12 + } + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintMatch(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMatch(dAtA []byte, offset int, v uint64) int { + offset -= sovMatch(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Match) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Timestamp != 0 { + n += 1 + sovMatch(uint64(m.Timestamp)) + } + l = len(m.Reporter) + if l > 0 { + n += 1 + l + sovMatch(uint64(l)) + } + if m.PlayerA != nil { + l = m.PlayerA.Size() + n += 1 + l + sovMatch(uint64(l)) + } + if m.PlayerB != nil { + l = m.PlayerB.Size() + n += 1 + l + sovMatch(uint64(l)) + } + if m.Outcome != 0 { + n += 1 + sovMatch(uint64(m.Outcome)) + } + if m.ServerConfirmed { + n += 2 + } + if m.CoinsDistributed { + n += 2 + } + return n +} + +func (m *MatchPlayer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovMatch(uint64(l)) + } + if len(m.PlayedCards) > 0 { + l = 0 + for _, e := range m.PlayedCards { + l += sovMatch(uint64(e)) + } + n += 1 + sovMatch(uint64(l)) + l + } + if m.Confirmed { + n += 2 + } + if m.Outcome != 0 { + n += 1 + sovMatch(uint64(m.Outcome)) + } + if len(m.Deck) > 0 { + l = 0 + for _, e := range m.Deck { + l += sovMatch(uint64(e)) + } + n += 1 + sovMatch(uint64(l)) + l + } + if len(m.VotedCards) > 0 { + for _, e := range m.VotedCards { + l = e.Size() + n += 1 + l + sovMatch(uint64(l)) + } + } + return n +} + +func sovMatch(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMatch(x uint64) (n int) { + return sovMatch(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Match) 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 ErrIntOverflowMatch + } + 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: Match: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Match: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMatch + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMatch + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reporter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PlayerA", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMatch + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMatch + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PlayerA == nil { + m.PlayerA = &MatchPlayer{} + } + if err := m.PlayerA.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PlayerB", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMatch + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMatch + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PlayerB == nil { + m.PlayerB = &MatchPlayer{} + } + if err := m.PlayerB.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + 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 ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Outcome |= Outcome(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerConfirmed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServerConfirmed = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinsDistributed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CoinsDistributed = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipMatch(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMatch + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MatchPlayer) 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 ErrIntOverflowMatch + } + 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: MatchPlayer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MatchPlayer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMatch + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMatch + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PlayedCards = append(m.PlayedCards, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthMatch + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMatch + } + 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.PlayedCards) == 0 { + m.PlayedCards = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PlayedCards = append(m.PlayedCards, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field PlayedCards", wireType) + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Confirmed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Confirmed = bool(v != 0) + case 4: + 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 ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Outcome |= Outcome(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Deck = append(m.Deck, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthMatch + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMatch + } + 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.Deck) == 0 { + m.Deck = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Deck = append(m.Deck, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Deck", wireType) + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotedCards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMatch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMatch + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMatch + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotedCards = append(m.VotedCards, &SingleVote{}) + if err := m.VotedCards[len(m.VotedCards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMatch(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMatch + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMatch(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMatch + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMatch + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMatch + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMatch + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMatch + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMatch + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMatch = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMatch = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMatch = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/cardchain/types/message_card_artist_change.go b/x/cardchain/types/message_card_artist_change.go new file mode 100644 index 00000000..5df708d4 --- /dev/null +++ b/x/cardchain/types/message_card_artist_change.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 = &MsgCardArtistChange{} + +func NewMsgCardArtistChange(creator string, cardId uint64, artist string) *MsgCardArtistChange { + return &MsgCardArtistChange{ + Creator: creator, + CardId: cardId, + Artist: artist, + } +} + +func (msg *MsgCardArtistChange) 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_card_artist_change_test.go b/x/cardchain/types/message_card_artist_change_test.go new file mode 100644 index 00000000..4679a3cc --- /dev/null +++ b/x/cardchain/types/message_card_artist_change_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 TestMsgCardArtistChange_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCardArtistChange + err error + }{ + { + name: "invalid address", + msg: MsgCardArtistChange{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgCardArtistChange{ + 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_card_artwork_add.go b/x/cardchain/types/message_card_artwork_add.go new file mode 100644 index 00000000..018b7996 --- /dev/null +++ b/x/cardchain/types/message_card_artwork_add.go @@ -0,0 +1,26 @@ +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 = &MsgCardArtworkAdd{} + +func NewMsgCardArtworkAdd(creator string, cardId uint64, image string, fullArt bool) *MsgCardArtworkAdd { + return &MsgCardArtworkAdd{ + Creator: creator, + CardId: cardId, + Image: image, + FullArt: fullArt, + } +} + +func (msg *MsgCardArtworkAdd) 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_card_artwork_add_test.go b/x/cardchain/types/message_card_artwork_add_test.go new file mode 100644 index 00000000..c9bdff99 --- /dev/null +++ b/x/cardchain/types/message_card_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 TestMsgCardArtworkAdd_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCardArtworkAdd + err error + }{ + { + name: "invalid address", + msg: MsgCardArtworkAdd{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgCardArtworkAdd{ + 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_card_donate.go b/x/cardchain/types/message_card_donate.go new file mode 100644 index 00000000..eee048c4 --- /dev/null +++ b/x/cardchain/types/message_card_donate.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 = &MsgCardDonate{} + +func NewMsgCardDonate(creator string, cardId uint64, amount sdk.Coin) *MsgCardDonate { + return &MsgCardDonate{ + Creator: creator, + CardId: cardId, + Amount: amount, + } +} + +func (msg *MsgCardDonate) 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_card_donate_test.go b/x/cardchain/types/message_card_donate_test.go new file mode 100644 index 00000000..ee5b9ff3 --- /dev/null +++ b/x/cardchain/types/message_card_donate_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 TestMsgCardDonate_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCardDonate + err error + }{ + { + name: "invalid address", + msg: MsgCardDonate{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgCardDonate{ + 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_card_transfer.go b/x/cardchain/types/message_card_transfer.go new file mode 100644 index 00000000..e23d626f --- /dev/null +++ b/x/cardchain/types/message_card_transfer.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 = &MsgCardTransfer{} + +func NewMsgCardTransfer(creator string, cardId uint64, receiver string) *MsgCardTransfer { + return &MsgCardTransfer{ + Creator: creator, + CardId: cardId, + Receiver: receiver, + } +} + +func (msg *MsgCardTransfer) 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_card_transfer_test.go b/x/cardchain/types/message_card_transfer_test.go new file mode 100644 index 00000000..890dcd32 --- /dev/null +++ b/x/cardchain/types/message_card_transfer_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 TestMsgCardTransfer_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCardTransfer + err error + }{ + { + name: "invalid address", + msg: MsgCardTransfer{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgCardTransfer{ + 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_card_vote.go b/x/cardchain/types/message_card_vote.go index 15aea387..11662737 100644 --- a/x/cardchain/types/message_card_vote.go +++ b/x/cardchain/types/message_card_vote.go @@ -9,17 +9,16 @@ import ( var _ sdk.Msg = &MsgCardVote{} func NewMsgCardVote(creator string, vote *SingleVote) *MsgCardVote { - return &MsgCardVote{ + return &MsgCardVote{ Creator: creator, - Vote: vote, + Vote: vote, } } func (msg *MsgCardVote) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil + _, 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_card_vote_test.go b/x/cardchain/types/message_card_vote_test.go index 51172d18..01688375 100644 --- a/x/cardchain/types/message_card_vote_test.go +++ b/x/cardchain/types/message_card_vote_test.go @@ -3,9 +3,9 @@ package types import ( "testing" + "github.com/DecentralCardGame/cardchain/testutil/sample" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/DecentralCardGame/cardchain/testutil/sample" ) func TestMsgCardVote_ValidateBasic(t *testing.T) { diff --git a/x/cardchain/types/message_council_deregister.go b/x/cardchain/types/message_council_deregister.go new file mode 100644 index 00000000..ffd4b54b --- /dev/null +++ b/x/cardchain/types/message_council_deregister.go @@ -0,0 +1,23 @@ +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 = &MsgCouncilDeregister{} + +func NewMsgCouncilDeregister(creator string) *MsgCouncilDeregister { + return &MsgCouncilDeregister{ + Creator: creator, + } +} + +func (msg *MsgCouncilDeregister) 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_deregister_test.go b/x/cardchain/types/message_council_deregister_test.go new file mode 100644 index 00000000..d23cf4de --- /dev/null +++ b/x/cardchain/types/message_council_deregister_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 TestMsgCouncilDeregister_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCouncilDeregister + err error + }{ + { + name: "invalid address", + msg: MsgCouncilDeregister{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgCouncilDeregister{ + 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_register.go b/x/cardchain/types/message_council_register.go new file mode 100644 index 00000000..181b9937 --- /dev/null +++ b/x/cardchain/types/message_council_register.go @@ -0,0 +1,23 @@ +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 = &MsgCouncilRegister{} + +func NewMsgCouncilRegister(creator string) *MsgCouncilRegister { + return &MsgCouncilRegister{ + Creator: creator, + } +} + +func (msg *MsgCouncilRegister) 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_register_test.go b/x/cardchain/types/message_council_register_test.go new file mode 100644 index 00000000..fabc50f3 --- /dev/null +++ b/x/cardchain/types/message_council_register_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 TestMsgCouncilRegister_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCouncilRegister + err error + }{ + { + name: "invalid address", + msg: MsgCouncilRegister{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgCouncilRegister{ + 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_report.go b/x/cardchain/types/message_match_report.go new file mode 100644 index 00000000..ccc0d781 --- /dev/null +++ b/x/cardchain/types/message_match_report.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 = &MsgMatchReport{} + +func NewMsgMatchReport(creator string, matchId uint64, playedCardsA []uint64, playedCardsB []uint64, outcome int32) *MsgMatchReport { + return &MsgMatchReport{ + Creator: creator, + MatchId: matchId, + PlayedCardsA: playedCardsA, + PlayedCardsB: playedCardsB, + Outcome: outcome, + } +} + +func (msg *MsgMatchReport) 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_report_test.go b/x/cardchain/types/message_match_report_test.go new file mode 100644 index 00000000..ba105ae8 --- /dev/null +++ b/x/cardchain/types/message_match_report_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 TestMsgMatchReport_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgMatchReport + err error + }{ + { + name: "invalid address", + msg: MsgMatchReport{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgMatchReport{ + 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/params.pb.go b/x/cardchain/types/params.pb.go index 419d1ea0..231f0e7d 100644 --- a/x/cardchain/types/params.pb.go +++ b/x/cardchain/types/params.pb.go @@ -5,12 +5,13 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/cardchain/types/query.pb.go b/x/cardchain/types/query.pb.go index 6d858f55..99d2598e 100644 --- a/x/cardchain/types/query.pb.go +++ b/x/cardchain/types/query.pb.go @@ -6,6 +6,10 @@ package types import ( context "context" fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + _ "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" @@ -15,9 +19,6 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/cardchain/types/tx.pb.go b/x/cardchain/types/tx.pb.go index ca381b43..71f4b27a 100644 --- a/x/cardchain/types/tx.pb.go +++ b/x/cardchain/types/tx.pb.go @@ -6,6 +6,10 @@ package types import ( context "context" fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" @@ -16,9 +20,6 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -542,842 +543,3680 @@ func (m *MsgCardVoteResponse) GetAirdropClaimed() bool { return false } -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") +type MsgCardTransfer 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"` + Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` } -func init() { proto.RegisterFile("cardchain/cardchain/tx.proto", fileDescriptor_3b4a3aba0ac94bc8) } - -var fileDescriptor_3b4a3aba0ac94bc8 = []byte{ - // 718 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4f, 0x4f, 0x13, 0x41, - 0x14, 0xef, 0xd2, 0x52, 0xe9, 0x00, 0xa2, 0x0b, 0xca, 0xb2, 0x9a, 0xd2, 0x34, 0xa0, 0x4d, 0x23, - 0xbb, 0x29, 0x24, 0x86, 0x90, 0x68, 0x42, 0x4b, 0x62, 0x3c, 0x90, 0x98, 0x25, 0x72, 0x30, 0x26, - 0x66, 0x76, 0x77, 0xb2, 0x1d, 0xed, 0xce, 0x34, 0x33, 0x43, 0x85, 0x9b, 0xf1, 0xe8, 0xc9, 0x8f, - 0xe1, 0x91, 0x83, 0x9f, 0x40, 0x2f, 0x1c, 0x89, 0x27, 0x4f, 0xc6, 0xc0, 0x81, 0xef, 0xe0, 0xc9, - 0xcc, 0xee, 0xec, 0xb6, 0x5d, 0x4b, 0xc1, 0x4b, 0x3b, 0xef, 0xbd, 0xdf, 0xfb, 0xbd, 0xdf, 0x7b, - 0xf3, 0x67, 0xc1, 0x7d, 0x0f, 0x32, 0xdf, 0x6b, 0x43, 0x4c, 0xec, 0xfe, 0x4a, 0x1c, 0x5a, 0x5d, - 0x46, 0x05, 0xd5, 0xe7, 0x53, 0x9f, 0x95, 0xae, 0xcc, 0xdb, 0x30, 0xc4, 0x84, 0xda, 0xd1, 0x6f, - 0x8c, 0x33, 0x17, 0x3d, 0xca, 0x43, 0xca, 0xed, 0x90, 0x07, 0x76, 0xaf, 0x21, 0xff, 0x54, 0x60, - 0x29, 0x0e, 0xbc, 0x89, 0x2c, 0x3b, 0x36, 0x54, 0x68, 0x21, 0xa0, 0x01, 0x8d, 0xfd, 0x72, 0xa5, - 0xbc, 0x95, 0x51, 0x7a, 0xba, 0x90, 0xc1, 0x30, 0xc9, 0x2b, 0xab, 0x5a, 0x2e, 0xe4, 0xc8, 0xee, - 0x35, 0x5c, 0x24, 0x60, 0xc3, 0xf6, 0x28, 0x26, 0xe3, 0x18, 0x7a, 0x54, 0x60, 0xa2, 0x44, 0x55, - 0xbf, 0x6b, 0x60, 0x6e, 0x97, 0x07, 0x2f, 0xbb, 0x3e, 0x14, 0xe8, 0x45, 0xc4, 0xad, 0x3f, 0x06, - 0x25, 0x78, 0x20, 0xda, 0x94, 0x61, 0x71, 0x64, 0x68, 0x15, 0xad, 0x56, 0x6a, 0x1a, 0x3f, 0xbe, - 0xae, 0x2d, 0x28, 0xc9, 0xdb, 0xbe, 0xcf, 0x10, 0xe7, 0x7b, 0x82, 0x61, 0x12, 0x38, 0x7d, 0xa8, - 0xfe, 0x14, 0x14, 0x63, 0x75, 0xc6, 0x44, 0x45, 0xab, 0x4d, 0xaf, 0xdf, 0xb3, 0x46, 0x8c, 0xcc, - 0x8a, 0x8b, 0x34, 0x4b, 0x27, 0xbf, 0x96, 0x73, 0x5f, 0x2e, 0x8e, 0xeb, 0x9a, 0xa3, 0xb2, 0xb6, - 0x36, 0x3f, 0x5e, 0x1c, 0xd7, 0xfb, 0x7c, 0x9f, 0x2e, 0x8e, 0xeb, 0xab, 0x7d, 0xd9, 0x87, 0x03, - 0x2d, 0x64, 0x14, 0x57, 0x97, 0xc0, 0x62, 0xc6, 0xe5, 0x20, 0xde, 0xa5, 0x84, 0xa3, 0x6a, 0x00, - 0x66, 0x65, 0x88, 0x23, 0xd6, 0x62, 0x08, 0x0a, 0xa4, 0x1b, 0xe0, 0x86, 0x27, 0x57, 0x94, 0xc5, - 0xbd, 0x39, 0x89, 0x29, 0x23, 0x04, 0xbd, 0x97, 0xd0, 0xa8, 0x81, 0x92, 0x93, 0x98, 0xfa, 0x02, - 0x98, 0x84, 0x1d, 0x0c, 0xb9, 0x91, 0x8f, 0xfc, 0xb1, 0xb1, 0x35, 0x23, 0xf5, 0x26, 0xd9, 0xd5, - 0x45, 0x70, 0x67, 0xa8, 0x50, 0xaa, 0x20, 0x04, 0xb7, 0x76, 0x79, 0xd0, 0x82, 0xcc, 0xdf, 0xf3, - 0xda, 0x28, 0x44, 0xcd, 0x83, 0xa3, 0x31, 0x22, 0x1a, 0x20, 0xef, 0x62, 0x5f, 0x4d, 0x70, 0xc9, - 0x52, 0x33, 0x97, 0x1b, 0x6c, 0xa9, 0x0d, 0xb6, 0x5a, 0x14, 0x93, 0x66, 0x41, 0xce, 0xcf, 0x91, - 0xd8, 0x8c, 0x8e, 0x75, 0x60, 0x64, 0xcb, 0x25, 0x52, 0xf4, 0xbb, 0xa0, 0x28, 0x87, 0xf8, 0xdc, - 0x8f, 0xaa, 0x16, 0x1c, 0x65, 0x55, 0xbf, 0x69, 0x40, 0x4f, 0x92, 0x60, 0x0f, 0xb5, 0x28, 0x11, - 0x88, 0x88, 0x31, 0x2a, 0xfb, 0x44, 0x13, 0x83, 0x44, 0x51, 0x46, 0x9c, 0xac, 0x46, 0x95, 0x98, - 0x72, 0x84, 0x84, 0x0a, 0xc4, 0x8d, 0x42, 0x3c, 0xc2, 0xc8, 0x90, 0x3c, 0x90, 0x09, 0xcc, 0x85, - 0x31, 0x19, 0xb9, 0x95, 0xa5, 0xaf, 0x80, 0x59, 0x17, 0x76, 0x20, 0xf1, 0xd0, 0x36, 0xf1, 0xda, - 0x94, 0x19, 0xc5, 0x8a, 0x56, 0x9b, 0x72, 0x86, 0x9d, 0x99, 0xc6, 0x77, 0x80, 0xf9, 0x6f, 0x0f, - 0x69, 0xeb, 0x0f, 0xc0, 0x4d, 0x88, 0x99, 0xcf, 0x68, 0xb7, 0xd5, 0x81, 0x38, 0x44, 0xf1, 0x08, - 0xa6, 0x9c, 0x8c, 0xb7, 0xfa, 0x16, 0x4c, 0x2b, 0x96, 0x7d, 0x3a, 0xf6, 0xb4, 0x6c, 0x80, 0x42, - 0x8f, 0x0a, 0xa4, 0x76, 0x6a, 0x79, 0xe4, 0x59, 0xdf, 0xc3, 0x24, 0xe8, 0x20, 0x49, 0xe4, 0x44, - 0xe0, 0x8c, 0xe2, 0x27, 0x60, 0x7e, 0xa0, 0xd6, 0xff, 0x4a, 0x5d, 0xff, 0x93, 0x07, 0xf9, 0x5d, - 0x1e, 0xe8, 0x2e, 0x98, 0x19, 0xba, 0xbf, 0x2b, 0x23, 0xb5, 0x64, 0x2e, 0x88, 0xf9, 0xe8, 0x3a, - 0xa8, 0x54, 0xd3, 0x6b, 0x00, 0x06, 0xee, 0x50, 0xf5, 0xd2, 0xdc, 0x14, 0x63, 0xd6, 0xaf, 0xc6, - 0xa4, 0xec, 0x08, 0xcc, 0x0e, 0xdf, 0x8f, 0xd5, 0xcb, 0x92, 0x87, 0x60, 0xe6, 0xda, 0xb5, 0x60, - 0x69, 0x99, 0x77, 0x60, 0x2e, 0x7b, 0xc4, 0x1f, 0x8e, 0x65, 0xe8, 0x03, 0x4d, 0xfb, 0x9a, 0xc0, - 0xb4, 0xd8, 0x3e, 0x98, 0x4a, 0x4f, 0x51, 0x65, 0x5c, 0xb2, 0x44, 0x98, 0xb5, 0xab, 0x10, 0x09, - 0xaf, 0x39, 0xf9, 0x41, 0x3e, 0x9a, 0x4d, 0xe7, 0xe4, 0xac, 0xac, 0x9d, 0x9e, 0x95, 0xb5, 0xdf, - 0x67, 0x65, 0xed, 0xf3, 0x79, 0x39, 0x77, 0x7a, 0x5e, 0xce, 0xfd, 0x3c, 0x2f, 0xe7, 0x5e, 0x6d, - 0x06, 0x58, 0xb4, 0x0f, 0x5c, 0xcb, 0xa3, 0xa1, 0xbd, 0x83, 0x3c, 0x44, 0x04, 0x83, 0x1d, 0x49, - 0xf3, 0x0c, 0x86, 0xc8, 0x1e, 0xfd, 0xa0, 0x8a, 0xa3, 0x2e, 0xe2, 0x6e, 0x31, 0xfa, 0x26, 0x6c, - 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x32, 0x8c, 0x77, 0xb7, 0x09, 0x07, 0x00, 0x00, +func (m *MsgCardTransfer) Reset() { *m = MsgCardTransfer{} } +func (m *MsgCardTransfer) String() string { return proto.CompactTextString(m) } +func (*MsgCardTransfer) ProtoMessage() {} +func (*MsgCardTransfer) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{10} +} +func (m *MsgCardTransfer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCardTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardTransfer.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 *MsgCardTransfer) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardTransfer.Merge(m, src) +} +func (m *MsgCardTransfer) XXX_Size() int { + return m.Size() +} +func (m *MsgCardTransfer) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardTransfer.DiscardUnknown(m) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +var xxx_messageInfo_MsgCardTransfer proto.InternalMessageInfo -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +func (m *MsgCardTransfer) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { - // 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) +func (m *MsgCardTransfer) GetCardId() uint64 { + if m != nil { + return m.CardId + } + return 0 } -type msgClient struct { - cc grpc1.ClientConn +func (m *MsgCardTransfer) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} +type MsgCardTransferResponse 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 *MsgCardTransferResponse) Reset() { *m = MsgCardTransferResponse{} } +func (m *MsgCardTransferResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCardTransferResponse) ProtoMessage() {} +func (*MsgCardTransferResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{11} +} +func (m *MsgCardTransferResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCardTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardTransferResponse.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 *MsgCardTransferResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardTransferResponse.Merge(m, src) +} +func (m *MsgCardTransferResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCardTransferResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardTransferResponse.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_MsgCardTransferResponse proto.InternalMessageInfo + +type MsgCardDonate 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"` + Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` } -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 *MsgCardDonate) Reset() { *m = MsgCardDonate{} } +func (m *MsgCardDonate) String() string { return proto.CompactTextString(m) } +func (*MsgCardDonate) ProtoMessage() {} +func (*MsgCardDonate) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{12} +} +func (m *MsgCardDonate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCardDonate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardDonate.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 *MsgCardDonate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardDonate.Merge(m, src) +} +func (m *MsgCardDonate) XXX_Size() int { + return m.Size() +} +func (m *MsgCardDonate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardDonate.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_MsgCardDonate proto.InternalMessageInfo + +func (m *MsgCardDonate) 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 *MsgCardDonate) GetCardId() uint64 { + if m != nil { + return m.CardId } - return out, nil + return 0 } -// 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) +func (m *MsgCardDonate) GetAmount() types.Coin { + if m != nil { + return m.Amount + } + return types.Coin{} } -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { +type MsgCardDonateResponse struct { } -func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +func (m *MsgCardDonateResponse) Reset() { *m = MsgCardDonateResponse{} } +func (m *MsgCardDonateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCardDonateResponse) ProtoMessage() {} +func (*MsgCardDonateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{13} } -func (*UnimplementedMsgServer) UserCreate(ctx context.Context, req *MsgUserCreate) (*MsgUserCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserCreate not implemented") +func (m *MsgCardDonateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedMsgServer) CardSchemeBuy(ctx context.Context, req *MsgCardSchemeBuy) (*MsgCardSchemeBuyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardSchemeBuy not implemented") +func (m *MsgCardDonateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardDonateResponse.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) CardSaveContent(ctx context.Context, req *MsgCardSaveContent) (*MsgCardSaveContentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardSaveContent not implemented") +func (m *MsgCardDonateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardDonateResponse.Merge(m, src) } -func (*UnimplementedMsgServer) CardVote(ctx context.Context, req *MsgCardVote) (*MsgCardVoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardVote not implemented") +func (m *MsgCardDonateResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCardDonateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardDonateResponse.DiscardUnknown(m) } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) +var xxx_messageInfo_MsgCardDonateResponse proto.InternalMessageInfo + +type MsgCardArtworkAdd 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"` + Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` + FullArt bool `protobuf:"varint,4,opt,name=fullArt,proto3" json:"fullArt,omitempty"` } -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)) +func (m *MsgCardArtworkAdd) Reset() { *m = MsgCardArtworkAdd{} } +func (m *MsgCardArtworkAdd) String() string { return proto.CompactTextString(m) } +func (*MsgCardArtworkAdd) ProtoMessage() {} +func (*MsgCardArtworkAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{14} +} +func (m *MsgCardArtworkAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCardArtworkAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardArtworkAdd.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 *MsgCardArtworkAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardArtworkAdd.Merge(m, src) +} +func (m *MsgCardArtworkAdd) XXX_Size() int { + return m.Size() +} +func (m *MsgCardArtworkAdd) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardArtworkAdd.DiscardUnknown(m) } -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)) +var xxx_messageInfo_MsgCardArtworkAdd proto.InternalMessageInfo + +func (m *MsgCardArtworkAdd) GetCreator() string { + if m != nil { + return m.Creator } - return interceptor(ctx, in, info, handler) + return "" } -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", +func (m *MsgCardArtworkAdd) GetCardId() uint64 { + if m != nil { + return m.CardId } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardSchemeBuy(ctx, req.(*MsgCardSchemeBuy)) + return 0 +} + +func (m *MsgCardArtworkAdd) GetImage() string { + if m != nil { + return m.Image } - return interceptor(ctx, in, info, handler) + return "" } -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 +func (m *MsgCardArtworkAdd) GetFullArt() bool { + if m != nil { + return m.FullArt } - 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) + return false } -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)) - } - return interceptor(ctx, in, info, handler) +type MsgCardArtworkAddResponse struct { } -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, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cardchain/cardchain/tx.proto", +func (m *MsgCardArtworkAddResponse) Reset() { *m = MsgCardArtworkAddResponse{} } +func (m *MsgCardArtworkAddResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCardArtworkAddResponse) ProtoMessage() {} +func (*MsgCardArtworkAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{15} } - -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 *MsgCardArtworkAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCardArtworkAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardArtworkAddResponse.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 *MsgCardArtworkAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardArtworkAddResponse.Merge(m, src) +} +func (m *MsgCardArtworkAddResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCardArtworkAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardArtworkAddResponse.DiscardUnknown(m) } -func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgCardArtworkAddResponse proto.InternalMessageInfo + +type MsgCardArtistChange 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"` + Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,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 *MsgCardArtistChange) Reset() { *m = MsgCardArtistChange{} } +func (m *MsgCardArtistChange) String() string { return proto.CompactTextString(m) } +func (*MsgCardArtistChange) ProtoMessage() {} +func (*MsgCardArtistChange) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{16} +} +func (m *MsgCardArtistChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCardArtistChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardArtistChange.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 *MsgCardArtistChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardArtistChange.Merge(m, src) +} +func (m *MsgCardArtistChange) XXX_Size() int { + return m.Size() +} +func (m *MsgCardArtistChange) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardArtistChange.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCardArtistChange proto.InternalMessageInfo + +func (m *MsgCardArtistChange) 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 *MsgCardArtistChange) GetCardId() uint64 { + if m != nil { + return m.CardId } - return dAtA[:n], nil + return 0 } -func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgCardArtistChange) GetArtist() string { + if m != nil { + return m.Artist + } + return "" } -func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +type MsgCardArtistChangeResponse 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 *MsgCardArtistChangeResponse) Reset() { *m = MsgCardArtistChangeResponse{} } +func (m *MsgCardArtistChangeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCardArtistChangeResponse) ProtoMessage() {} +func (*MsgCardArtistChangeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{17} +} +func (m *MsgCardArtistChangeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCardArtistChangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCardArtistChangeResponse.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) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCardArtistChangeResponse.Merge(m, src) +} +func (m *MsgCardArtistChangeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCardArtistChangeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCardArtistChangeResponse.DiscardUnknown(m) } -func (m *MsgUserCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgCardArtistChangeResponse proto.InternalMessageInfo + +type MsgCouncilRegister struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,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 *MsgCouncilRegister) Reset() { *m = MsgCouncilRegister{} } +func (m *MsgCouncilRegister) String() string { return proto.CompactTextString(m) } +func (*MsgCouncilRegister) ProtoMessage() {} +func (*MsgCouncilRegister) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{18} +} +func (m *MsgCouncilRegister) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCouncilRegister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCouncilRegister.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 *MsgCouncilRegister) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCouncilRegister.Merge(m, src) +} +func (m *MsgCouncilRegister) XXX_Size() int { + return m.Size() +} +func (m *MsgCouncilRegister) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCouncilRegister.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_MsgCouncilRegister proto.InternalMessageInfo + +func (m *MsgCouncilRegister) 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]) +type MsgCouncilRegisterResponse struct { } -func (m *MsgUserCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (m *MsgCouncilRegisterResponse) Reset() { *m = MsgCouncilRegisterResponse{} } +func (m *MsgCouncilRegisterResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCouncilRegisterResponse) ProtoMessage() {} +func (*MsgCouncilRegisterResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{19} } - -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 *MsgCouncilRegisterResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCouncilRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCouncilRegisterResponse.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 *MsgCardSchemeBuy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgCouncilRegisterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCouncilRegisterResponse.Merge(m, src) +} +func (m *MsgCouncilRegisterResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCouncilRegisterResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCouncilRegisterResponse.DiscardUnknown(m) } -func (m *MsgCardSchemeBuy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Bid.MarshalToSizedBuffer(dAtA[:i]) +var xxx_messageInfo_MsgCouncilRegisterResponse proto.InternalMessageInfo + +type MsgCouncilDeregister struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *MsgCouncilDeregister) Reset() { *m = MsgCouncilDeregister{} } +func (m *MsgCouncilDeregister) String() string { return proto.CompactTextString(m) } +func (*MsgCouncilDeregister) ProtoMessage() {} +func (*MsgCouncilDeregister) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{20} +} +func (m *MsgCouncilDeregister) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCouncilDeregister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCouncilDeregister.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 *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 *MsgCouncilDeregister) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCouncilDeregister.Merge(m, src) } - -func (m *MsgCardSchemeBuyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgCouncilDeregister) XXX_Size() int { + return m.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 *MsgCouncilDeregister) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCouncilDeregister.DiscardUnknown(m) } -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 +var xxx_messageInfo_MsgCouncilDeregister proto.InternalMessageInfo + +func (m *MsgCouncilDeregister) GetCreator() string { + if m != nil { + return m.Creator } - return dAtA[:n], nil + return "" } -func (m *MsgCardSaveContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type MsgCouncilDeregisterResponse struct { } -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 *MsgCouncilDeregisterResponse) Reset() { *m = MsgCouncilDeregisterResponse{} } +func (m *MsgCouncilDeregisterResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCouncilDeregisterResponse) ProtoMessage() {} +func (*MsgCouncilDeregisterResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{21} +} +func (m *MsgCouncilDeregisterResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCouncilDeregisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCouncilDeregisterResponse.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 - } - 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 *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 *MsgCouncilDeregisterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCouncilDeregisterResponse.Merge(m, src) +} +func (m *MsgCouncilDeregisterResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCouncilDeregisterResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCouncilDeregisterResponse.DiscardUnknown(m) } -func (m *MsgCardSaveContentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var xxx_messageInfo_MsgCouncilDeregisterResponse proto.InternalMessageInfo + +type MsgMatchReport struct { + 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 int32 `protobuf:"varint,5,opt,name=outcome,proto3" json:"outcome,omitempty"` } -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 +func (m *MsgMatchReport) Reset() { *m = MsgMatchReport{} } +func (m *MsgMatchReport) String() string { return proto.CompactTextString(m) } +func (*MsgMatchReport) ProtoMessage() {} +func (*MsgMatchReport) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{22} +} +func (m *MsgMatchReport) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMatchReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMatchReport.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 *MsgMatchReport) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMatchReport.Merge(m, src) +} +func (m *MsgMatchReport) XXX_Size() int { + return m.Size() +} +func (m *MsgMatchReport) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMatchReport.DiscardUnknown(m) } -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 +var xxx_messageInfo_MsgMatchReport proto.InternalMessageInfo + +func (m *MsgMatchReport) GetCreator() string { + if m != nil { + return m.Creator } - return dAtA[:n], nil + return "" } -func (m *MsgCardVote) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgMatchReport) GetMatchId() uint64 { + if m != nil { + return m.MatchId + } + return 0 } -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 +func (m *MsgMatchReport) GetPlayedCardsA() []uint64 { + if m != nil { + return m.PlayedCardsA } - 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 nil +} + +func (m *MsgMatchReport) GetPlayedCardsB() []uint64 { + if m != nil { + return m.PlayedCardsB } - return len(dAtA) - i, nil + return 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 +func (m *MsgMatchReport) GetOutcome() int32 { + if m != nil { + return m.Outcome } - return dAtA[:n], nil + return 0 } -func (m *MsgCardVoteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type MsgMatchReportResponse struct { } -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 *MsgMatchReportResponse) Reset() { *m = MsgMatchReportResponse{} } +func (m *MsgMatchReportResponse) String() string { return proto.CompactTextString(m) } +func (*MsgMatchReportResponse) ProtoMessage() {} +func (*MsgMatchReportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{23} +} +func (m *MsgMatchReportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMatchReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMatchReportResponse.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 *MsgMatchReportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMatchReportResponse.Merge(m, src) +} +func (m *MsgMatchReportResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgMatchReportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMatchReportResponse.DiscardUnknown(m) } -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 +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") } -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 init() { proto.RegisterFile("cardchain/cardchain/tx.proto", fileDescriptor_3b4a3aba0ac94bc8) } + +var fileDescriptor_3b4a3aba0ac94bc8 = []byte{ + // 1091 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xcf, 0xd6, 0x4e, 0xbe, 0xc9, 0xcb, 0x8f, 0x36, 0x9b, 0x7c, 0x9b, 0xcd, 0x26, 0xb8, 0x96, + 0x49, 0x8b, 0x09, 0xd4, 0x26, 0xa9, 0x04, 0x55, 0x05, 0x95, 0x6c, 0x47, 0x42, 0x1c, 0x22, 0xa1, + 0x0d, 0xf4, 0x80, 0x90, 0xaa, 0xf1, 0xee, 0x74, 0xbd, 0xd4, 0x3b, 0x63, 0x66, 0xc6, 0x6e, 0x73, + 0x43, 0x70, 0x41, 0x9c, 0xf8, 0x33, 0x38, 0xe6, 0xd0, 0xbf, 0x00, 0x2e, 0x3d, 0x56, 0x5c, 0xe0, + 0x84, 0x50, 0x72, 0xc8, 0xbf, 0x81, 0x66, 0x7f, 0xcc, 0x7a, 0xd7, 0xeb, 0x8d, 0x9b, 0x4b, 0xbb, + 0x6f, 0xe6, 0xf3, 0x3e, 0xef, 0x33, 0xef, 0xbd, 0x79, 0x13, 0xc3, 0xae, 0x8d, 0x98, 0x63, 0xf7, + 0x90, 0x47, 0x9a, 0xc9, 0x97, 0x78, 0xd9, 0x18, 0x30, 0x2a, 0xa8, 0xbe, 0xa1, 0xd6, 0x1a, 0xea, + 0xcb, 0x5c, 0x47, 0xbe, 0x47, 0x68, 0x33, 0xf8, 0x37, 0xc4, 0x99, 0x5b, 0x36, 0xe5, 0x3e, 0xe5, + 0x4d, 0x9f, 0xbb, 0xcd, 0xd1, 0x81, 0xfc, 0x2f, 0xda, 0xd8, 0x0e, 0x37, 0x9e, 0x06, 0x56, 0x33, + 0x34, 0xa2, 0xad, 0x4d, 0x97, 0xba, 0x34, 0x5c, 0x97, 0x5f, 0xd1, 0x6a, 0x35, 0x4f, 0xcf, 0x00, + 0x31, 0xe4, 0xc7, 0x7e, 0x95, 0x28, 0x56, 0x17, 0x71, 0xdc, 0x1c, 0x1d, 0x74, 0xb1, 0x40, 0x07, + 0x4d, 0x9b, 0x7a, 0xa4, 0x88, 0x61, 0x44, 0x85, 0x47, 0x22, 0x51, 0xb5, 0x3f, 0x34, 0xb8, 0x79, + 0xcc, 0xdd, 0xaf, 0x07, 0x0e, 0x12, 0xf8, 0xcb, 0x80, 0x5b, 0xff, 0x18, 0x96, 0xd0, 0x50, 0xf4, + 0x28, 0xf3, 0xc4, 0xa9, 0xa1, 0x55, 0xb5, 0xfa, 0x52, 0xdb, 0xf8, 0xf3, 0xd5, 0xfd, 0xcd, 0x48, + 0x72, 0xcb, 0x71, 0x18, 0xe6, 0xfc, 0x44, 0x30, 0x8f, 0xb8, 0x56, 0x02, 0xd5, 0x1f, 0xc3, 0x42, + 0xa8, 0xce, 0xb8, 0x51, 0xd5, 0xea, 0xcb, 0x87, 0x3b, 0x8d, 0x9c, 0x94, 0x35, 0xc2, 0x20, 0xed, + 0xa5, 0xd7, 0xff, 0xdc, 0x99, 0xfb, 0xed, 0xf2, 0x6c, 0x5f, 0xb3, 0x22, 0xaf, 0x47, 0x0f, 0x7f, + 0xbc, 0x3c, 0xdb, 0x4f, 0xf8, 0x7e, 0xb9, 0x3c, 0xdb, 0xbf, 0x9b, 0xc8, 0x7e, 0x39, 0x76, 0x84, + 0x8c, 0xe2, 0xda, 0x36, 0x6c, 0x65, 0x96, 0x2c, 0xcc, 0x07, 0x94, 0x70, 0x5c, 0x73, 0x61, 0x55, + 0x6e, 0x71, 0xcc, 0x3a, 0x0c, 0x23, 0x81, 0x75, 0x03, 0xfe, 0x67, 0xcb, 0x2f, 0xca, 0xc2, 0xb3, + 0x59, 0xb1, 0x29, 0x77, 0x08, 0x7e, 0x21, 0xa1, 0xc1, 0x01, 0x96, 0xac, 0xd8, 0xd4, 0x37, 0x61, + 0x1e, 0xf5, 0x3d, 0xc4, 0x8d, 0x52, 0xb0, 0x1e, 0x1a, 0x8f, 0x56, 0xa4, 0xde, 0xd8, 0xbb, 0xb6, + 0x05, 0xff, 0x4f, 0x05, 0x52, 0x0a, 0x7c, 0xb8, 0x75, 0xcc, 0xdd, 0x0e, 0x62, 0xce, 0x89, 0xdd, + 0xc3, 0x3e, 0x6e, 0x0f, 0x4f, 0x0b, 0x44, 0x1c, 0x40, 0xa9, 0xeb, 0x39, 0x51, 0x06, 0xb7, 0x1b, + 0x51, 0xce, 0x65, 0x81, 0x1b, 0x51, 0x81, 0x1b, 0x1d, 0xea, 0x91, 0x76, 0x59, 0xe6, 0xcf, 0x92, + 0xd8, 0x8c, 0x8e, 0x43, 0x30, 0xb2, 0xe1, 0x62, 0x29, 0xfa, 0x6d, 0x58, 0x90, 0x49, 0xfc, 0xc2, + 0x09, 0xa2, 0x96, 0xad, 0xc8, 0xaa, 0xfd, 0xae, 0x81, 0x1e, 0x3b, 0xa1, 0x11, 0xee, 0x50, 0x22, + 0x30, 0x11, 0x05, 0x2a, 0x13, 0xa2, 0x1b, 0xe3, 0x44, 0x81, 0x47, 0xe8, 0x1c, 0xa5, 0x2a, 0x36, + 0x65, 0x0a, 0x09, 0x15, 0x98, 0x1b, 0xe5, 0x30, 0x85, 0x81, 0x21, 0x79, 0x10, 0x13, 0x1e, 0x17, + 0xc6, 0x7c, 0xb0, 0x1c, 0x59, 0xfa, 0x1e, 0xac, 0x76, 0x51, 0x1f, 0x11, 0x1b, 0xb7, 0x88, 0xdd, + 0xa3, 0xcc, 0x58, 0xa8, 0x6a, 0xf5, 0x45, 0x2b, 0xbd, 0x98, 0x39, 0xf8, 0x11, 0x98, 0x93, 0x67, + 0x50, 0x47, 0xbf, 0x07, 0x6b, 0xc8, 0x63, 0x0e, 0xa3, 0x83, 0x4e, 0x1f, 0x79, 0x3e, 0x0e, 0x53, + 0xb0, 0x68, 0x65, 0x56, 0x6b, 0xdf, 0xc1, 0x72, 0xc4, 0xf2, 0x84, 0x16, 0x76, 0xcb, 0x03, 0x28, + 0x8f, 0xa8, 0xc0, 0x51, 0xa5, 0xee, 0xe4, 0xf6, 0xfa, 0x89, 0x47, 0xdc, 0x3e, 0x96, 0x44, 0x56, + 0x00, 0xce, 0x28, 0xfe, 0x0c, 0x36, 0xc6, 0x62, 0xbd, 0xb5, 0x54, 0x3f, 0xb8, 0xba, 0xd2, 0xfd, + 0x2b, 0x86, 0x08, 0x7f, 0x86, 0xd9, 0x35, 0x2a, 0x66, 0xc2, 0x22, 0xc3, 0x36, 0xf6, 0x46, 0x98, + 0x45, 0x25, 0x53, 0x76, 0x46, 0x6d, 0x78, 0xc9, 0xc6, 0xc3, 0xa9, 0x16, 0xff, 0x59, 0x0b, 0x6e, + 0x99, 0xdc, 0x3b, 0xa2, 0xa4, 0xf8, 0x96, 0x4d, 0x13, 0xf2, 0x09, 0x2c, 0x20, 0x9f, 0x0e, 0xa3, + 0xce, 0x99, 0xa1, 0xf7, 0x23, 0x78, 0xee, 0x35, 0x4c, 0x94, 0x28, 0x8d, 0x3f, 0x69, 0xb0, 0x1e, + 0xed, 0xb4, 0x98, 0x78, 0x41, 0xd9, 0xf3, 0x96, 0xe3, 0x5c, 0x43, 0xe7, 0x26, 0xcc, 0x7b, 0x3e, + 0x72, 0x71, 0x3c, 0x0b, 0x02, 0x43, 0xf2, 0x3c, 0x1b, 0xf6, 0xfb, 0x2d, 0x26, 0x82, 0x06, 0x5f, + 0xb4, 0x62, 0x33, 0x23, 0x6f, 0x07, 0xb6, 0x27, 0x44, 0x8c, 0x4d, 0x8a, 0x8d, 0x64, 0xd3, 0xe3, + 0xa2, 0xd3, 0x43, 0xc4, 0xbd, 0x4e, 0x2e, 0x93, 0x6b, 0x55, 0x1a, 0xbf, 0x56, 0x19, 0x2d, 0xef, + 0xc0, 0x4e, 0x4e, 0x38, 0xa5, 0xe6, 0xd3, 0x70, 0x26, 0xd0, 0x21, 0xb1, 0xbd, 0xbe, 0x85, 0x5d, + 0x8f, 0x8b, 0xa2, 0x0e, 0xcb, 0x90, 0xef, 0x86, 0xb7, 0x31, 0xed, 0xad, 0xb8, 0x1f, 0xc3, 0x66, + 0xb2, 0x7b, 0x84, 0xd9, 0xdb, 0xb2, 0x57, 0x60, 0x37, 0xcf, 0x5f, 0xf1, 0xbf, 0xd2, 0x60, 0xed, + 0x98, 0xbb, 0xc7, 0x48, 0xd8, 0x3d, 0x0b, 0x0f, 0x28, 0x13, 0xc5, 0x73, 0xdf, 0x97, 0x40, 0x95, + 0xc6, 0xd8, 0xd4, 0x6b, 0xb0, 0x32, 0xe8, 0xa3, 0x53, 0xec, 0xc8, 0x24, 0xf1, 0x96, 0x51, 0xaa, + 0x96, 0xea, 0x65, 0x2b, 0xb5, 0x96, 0xc1, 0xb4, 0x8d, 0xf2, 0x04, 0xa6, 0x2d, 0x23, 0xd0, 0xa1, + 0xb0, 0xa9, 0x8f, 0x83, 0x39, 0x37, 0x6f, 0xc5, 0x66, 0xe6, 0x58, 0x06, 0xdc, 0x4e, 0xab, 0x8e, + 0x0f, 0x74, 0xf8, 0xd7, 0x12, 0x94, 0x8e, 0xb9, 0xab, 0x77, 0x61, 0x25, 0xf5, 0x56, 0xef, 0xe5, + 0xce, 0x9d, 0xcc, 0x63, 0x68, 0x7e, 0x38, 0x0b, 0x4a, 0xcd, 0x9f, 0x6f, 0x01, 0xc6, 0xde, 0xcb, + 0xda, 0x54, 0x5f, 0x85, 0x31, 0xf7, 0xaf, 0xc6, 0x28, 0x76, 0x0c, 0xab, 0xe9, 0xb7, 0xf0, 0xee, + 0x34, 0xe7, 0x14, 0xcc, 0xbc, 0x3f, 0x13, 0x4c, 0x85, 0x79, 0x0e, 0x37, 0xb3, 0xcf, 0xd9, 0x7b, + 0x85, 0x0c, 0x09, 0xd0, 0x6c, 0xce, 0x08, 0x54, 0xc1, 0x9e, 0xc0, 0xa2, 0x7a, 0x31, 0xaa, 0x45, + 0xce, 0x12, 0x61, 0xd6, 0xaf, 0x42, 0x28, 0xde, 0x2e, 0xac, 0xa4, 0xc6, 0xfb, 0x5e, 0x91, 0x67, + 0x8c, 0x9a, 0x5e, 0xed, 0xbc, 0xd9, 0x2d, 0xab, 0x3d, 0x36, 0xb7, 0x6b, 0x45, 0xbe, 0x21, 0x66, + 0x7a, 0xb5, 0x27, 0xa7, 0xae, 0xde, 0x83, 0xb5, 0xcc, 0xc4, 0xbd, 0x57, 0xe4, 0x9d, 0xe0, 0xcc, + 0xc6, 0x6c, 0x38, 0x15, 0x89, 0xc0, 0xad, 0x89, 0xc9, 0x59, 0xbf, 0x82, 0x43, 0x21, 0xcd, 0x8f, + 0x66, 0x45, 0xa6, 0x1a, 0x2c, 0x33, 0x1b, 0xa7, 0x37, 0x58, 0x1a, 0x58, 0xd0, 0x60, 0xf9, 0xf3, + 0x52, 0xff, 0x1e, 0xd6, 0x27, 0x87, 0xe5, 0xfb, 0x57, 0xb0, 0x24, 0x50, 0xf3, 0x60, 0x66, 0xa8, + 0x0a, 0xf9, 0x14, 0x96, 0xc7, 0xc7, 0xe7, 0xbb, 0xd3, 0x18, 0xc6, 0x40, 0xe6, 0x07, 0x33, 0x80, + 0xe2, 0x00, 0xe6, 0xfc, 0x0f, 0xf2, 0xaf, 0xff, 0xb6, 0xf5, 0xfa, 0xbc, 0xa2, 0xbd, 0x39, 0xaf, + 0x68, 0xff, 0x9e, 0x57, 0xb4, 0x5f, 0x2f, 0x2a, 0x73, 0x6f, 0x2e, 0x2a, 0x73, 0x7f, 0x5f, 0x54, + 0xe6, 0xbe, 0x79, 0xe8, 0x7a, 0xa2, 0x37, 0xec, 0x36, 0x6c, 0xea, 0x37, 0x8f, 0xb0, 0x8d, 0x89, + 0x60, 0xa8, 0x2f, 0xeb, 0xf1, 0x39, 0xf2, 0x71, 0x33, 0xff, 0x97, 0x81, 0x38, 0x1d, 0x60, 0xde, + 0x5d, 0x08, 0x7e, 0xdc, 0x3c, 0xf8, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xce, 0xf3, 0x90, 0x9b, 0xd2, + 0x0d, 0x00, 0x00, } -func (m *MsgUpdateParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +// 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) } -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 +type msgClient struct { + cc grpc1.ClientConn } -func (m *MsgUserCreateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} } -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) 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 } - 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) 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 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)) +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 } - if m.CardId != 0 { - n += 1 + sovTx(uint64(m.CardId)) + return out, nil +} + +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 } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + return out, nil +} + +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 } - l = len(m.Notes) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + return out, 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 } - l = len(m.Artist) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + return out, nil +} + +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 } - if m.BalanceAnchor { - n += 2 + return out, nil +} + +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 n + return out, nil } -func (m *MsgCardSaveContentResponse) 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 - if m.AirdropClaimed { - n += 2 + return out, nil +} + +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 *MsgCardVote) 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 - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + return out, nil +} + +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 } - if m.Vote != nil { - l = m.Vote.Size() - n += 1 + l + sovTx(uint64(l)) + return out, nil +} + +// 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) +} + +// 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 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 + } + 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)) + } + return interceptor(ctx, in, info, handler) +} + +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)) + } + return interceptor(ctx, in, info, handler) +} + +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)) + } + 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 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) +} + +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)) + } + return interceptor(ctx, in, info, handler) +} + +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 _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 _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) +} + +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", +} + +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 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 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 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.Content = string(dAtA[iNdEx:postIndex]) + 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 + } } - return n -} -func (m *MsgCardVoteResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AirdropClaimed { - n += 2 + if iNdEx > l { + return io.ErrUnexpectedEOF } - 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)))) + return nil } -func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { +func (m *MsgCardDonate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1400,15 +4239,15 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCardDonate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + 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 Authority", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1436,11 +4275,30 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Authority = string(dAtA[iNdEx:postIndex]) + 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 Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1467,7 +4325,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1492,7 +4350,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCardDonateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1515,10 +4373,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: MsgCardDonateResponse: 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: MsgCardDonateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1542,7 +4400,7 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { +func (m *MsgCardArtworkAdd) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1565,10 +4423,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: MsgCardArtworkAdd: 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: MsgCardArtworkAdd: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1604,10 +4462,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 CardId", wireType) } - var stringLen uint64 + m.CardId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1617,27 +4475,14 @@ 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.NewUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1665,8 +4510,28 @@ func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Alias = string(dAtA[iNdEx:postIndex]) + m.Image = 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:]) @@ -1688,7 +4553,7 @@ func (m *MsgUserCreate) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUserCreateResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCardArtworkAddResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1711,10 +4576,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: MsgCardArtworkAddResponse: 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: MsgCardArtworkAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1738,7 +4603,7 @@ func (m *MsgUserCreateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSchemeBuy) Unmarshal(dAtA []byte) error { +func (m *MsgCardArtistChange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1761,10 +4626,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: MsgCardArtistChange: 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: MsgCardArtistChange: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1800,10 +4665,29 @@ func (m *MsgCardSchemeBuy) 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 Bid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Artist", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1813,25 +4697,74 @@ func (m *MsgCardSchemeBuy) 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.Bid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Artist = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex + 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:]) @@ -1853,7 +4786,7 @@ func (m *MsgCardSchemeBuy) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSchemeBuyResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCouncilRegister) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1876,17 +4809,17 @@ 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: MsgCouncilRegister: 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: MsgCouncilRegister: 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) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } - m.CardId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1896,11 +4829,74 @@ func (m *MsgCardSchemeBuyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CardId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.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:]) @@ -1922,7 +4918,7 @@ func (m *MsgCardSchemeBuyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { +func (m *MsgCouncilDeregister) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1945,10 +4941,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: MsgCouncilDeregister: 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: MsgCouncilDeregister: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1983,141 +4979,6 @@ func (m *MsgCardSaveContent) 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 Content", 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.Content = string(dAtA[iNdEx:postIndex]) - 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:]) @@ -2139,7 +5000,7 @@ func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardSaveContentResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCouncilDeregisterResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2162,32 +5023,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: MsgCouncilDeregisterResponse: 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: MsgCouncilDeregisterResponse: 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:]) @@ -2209,7 +5050,7 @@ func (m *MsgCardSaveContentResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardVote) Unmarshal(dAtA []byte) error { +func (m *MsgMatchReport) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2232,10 +5073,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: MsgMatchReport: 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: MsgMatchReport: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2271,10 +5112,10 @@ func (m *MsgCardVote) 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 Vote", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType) } - var msglen int + m.MatchId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -2284,28 +5125,182 @@ func (m *MsgCardVote) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.MatchId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx + 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) } - if postIndex > l { - return io.ErrUnexpectedEOF + 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) } - if m.Vote == nil { - m.Vote = &SingleVote{} + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) } - if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + 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 |= int32(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -2327,7 +5322,7 @@ func (m *MsgCardVote) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCardVoteResponse) Unmarshal(dAtA []byte) error { +func (m *MsgMatchReportResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2350,32 +5345,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: MsgMatchReportResponse: 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: MsgMatchReportResponse: 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:]) diff --git a/x/cardchain/types/voting.pb.go b/x/cardchain/types/voting.pb.go index 6911a3d0..45e01b16 100644 --- a/x/cardchain/types/voting.pb.go +++ b/x/cardchain/types/voting.pb.go @@ -5,10 +5,11 @@ package types import ( fmt "fmt" - proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" + + proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used.