From a552d74f66e34668ed5baf6ba7f0ef7b3a664585 Mon Sep 17 00:00:00 2001 From: lxgr-linux Date: Fri, 29 Sep 2023 00:51:02 +0200 Subject: [PATCH] Added MsgSetCollectionName and improved error handling --- docs/static/openapi.yml | 2 + package-lock.json | 3 - proto/cardchain/cardchain/tx.proto | 29 +- x/cardchain/client/cli/tx.go | 1 + .../client/cli/tx_set_collection_name.go | 48 ++ x/cardchain/keeper/collection.go | 20 +- ...sg_server_add_contributor_to_collection.go | 10 +- .../keeper/msg_server_set_card_rarity.go | 2 +- .../msg_server_set_collection_artist.go | 11 +- .../keeper/msg_server_set_collection_name.go | 24 + .../msg_server_set_collection_story_writer.go | 11 +- .../keeper/msg_server_set_user_website.go | 2 +- x/cardchain/module_simulation.go | 15 + x/cardchain/simulation/set_collection_name.go | 29 + x/cardchain/types/codec.go | 4 + x/cardchain/types/errors.go | 1 + .../types/message_set_collection_name.go | 47 ++ .../types/message_set_collection_name_test.go | 40 + x/cardchain/types/tx.pb.go | 726 ++++++++++++++---- 19 files changed, 830 insertions(+), 195 deletions(-) delete mode 100644 package-lock.json create mode 100644 x/cardchain/client/cli/tx_set_collection_name.go create mode 100644 x/cardchain/keeper/msg_server_set_collection_name.go create mode 100644 x/cardchain/simulation/set_collection_name.go create mode 100644 x/cardchain/types/message_set_collection_name.go create mode 100644 x/cardchain/types/message_set_collection_name_test.go diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 20fe92d5..770698f6 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -68774,6 +68774,8 @@ definitions: type: object DecentralCardGame.cardchain.cardchain.MsgSetCollectionArtistResponse: type: object + DecentralCardGame.cardchain.cardchain.MsgSetCollectionNameResponse: + type: object DecentralCardGame.cardchain.cardchain.MsgSetCollectionStoryWriterResponse: type: object DecentralCardGame.cardchain.cardchain.MsgSetProfileCardResponse: diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 48e341a0..00000000 --- a/package-lock.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "lockfileVersion": 1 -} diff --git a/proto/cardchain/cardchain/tx.proto b/proto/cardchain/cardchain/tx.proto index a50f58a1..11f83f24 100644 --- a/proto/cardchain/cardchain/tx.proto +++ b/proto/cardchain/cardchain/tx.proto @@ -54,10 +54,11 @@ service Msg { rpc SetCollectionArtist (MsgSetCollectionArtist ) returns (MsgSetCollectionArtistResponse ); rpc SetUserWebsite (MsgSetUserWebsite ) returns (MsgSetUserWebsiteResponse ); rpc SetUserBiography (MsgSetUserBiography ) returns (MsgSetUserBiographyResponse ); - + // this line is used by starport scaffolding # proto/tx/rpc - rpc MultiVoteCard (MsgMultiVoteCard) returns (MsgMultiVoteCardResponse); - rpc MsgOpenMatch (MsgMsgOpenMatch ) returns (MsgMsgOpenMatchResponse ); + rpc MultiVoteCard (MsgMultiVoteCard ) returns (MsgMultiVoteCardResponse ); + rpc MsgOpenMatch (MsgMsgOpenMatch ) returns (MsgMsgOpenMatchResponse ); + rpc SetCollectionName (MsgSetCollectionName) returns (MsgSetCollectionNameResponse); } message MsgCreateuser { string creator = 1; @@ -74,7 +75,7 @@ message MsgBuyCardScheme { cosmos.base.v1beta1.Coin bid = 2 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin"]; /* - string bid = 2; + string bid = 2; */} message MsgBuyCardSchemeResponse { @@ -335,9 +336,9 @@ message MsgRewokeCouncilRegistration { message MsgRewokeCouncilRegistrationResponse {} message MsgConfirmMatch { - string creator = 1; - uint64 matchId = 2; - Outcome outcome = 3; + string creator = 1; + uint64 matchId = 2; + Outcome outcome = 3; repeated SingleVote votedCards = 4; } @@ -406,9 +407,9 @@ message MsgMultiVoteCard { message MsgMultiVoteCardResponse {} message MsgMsgOpenMatch { - string creator = 1; - string playerA = 2; - string playerB = 3; + string creator = 1; + string playerA = 2; + string playerB = 3; repeated uint64 playerADeck = 4; repeated uint64 playerBDeck = 5; } @@ -417,3 +418,11 @@ message MsgMsgOpenMatchResponse { uint64 matchId = 1; } +message MsgSetCollectionName { + string creator = 1; + uint64 collectionId = 2; + string name = 3; +} + +message MsgSetCollectionNameResponse {} + diff --git a/x/cardchain/client/cli/tx.go b/x/cardchain/client/cli/tx.go index 7e9ec4c3..8c6ae1da 100644 --- a/x/cardchain/client/cli/tx.go +++ b/x/cardchain/client/cli/tx.go @@ -71,6 +71,7 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdSetUserBiography()) cmd.AddCommand(CmdMultiVoteCard()) cmd.AddCommand(CmdMsgOpenMatch()) + cmd.AddCommand(CmdSetCollectionName()) // this line is used by starport scaffolding # 1 return cmd diff --git a/x/cardchain/client/cli/tx_set_collection_name.go b/x/cardchain/client/cli/tx_set_collection_name.go new file mode 100644 index 00000000..741068a1 --- /dev/null +++ b/x/cardchain/client/cli/tx_set_collection_name.go @@ -0,0 +1,48 @@ +package cli + +import ( + "strconv" + + "github.com/DecentralCardGame/Cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + "github.com/spf13/cast" + "github.com/spf13/cobra" +) + +var _ = strconv.Itoa(0) + +func CmdSetCollectionName() *cobra.Command { + cmd := &cobra.Command{ + Use: "set-collection-name [collection-id] [name]", + Short: "Broadcast message SetCollectionName", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argCollectionId, err := cast.ToUint64E(args[0]) + if err != nil { + return err + } + argName := args[1] + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgSetCollectionName( + clientCtx.GetFromAddress().String(), + argCollectionId, + argName, + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/cardchain/keeper/collection.go b/x/cardchain/keeper/collection.go index 51b404d5..d6d84361 100644 --- a/x/cardchain/keeper/collection.go +++ b/x/cardchain/keeper/collection.go @@ -1,7 +1,8 @@ package keeper import ( - "errors" + "fmt" + "github.com/cosmos/cosmos-sdk/types/errors" sdkerrors "cosmossdk.io/errors" "github.com/DecentralCardGame/Cardchain/x/cardchain/types" @@ -104,5 +105,20 @@ func GetCardRarity(card *keywords.Card) (*cardobject.Rarity, error) { } else if card.Headquarter != nil { return card.Headquarter.Rarity, nil } - return nil, errors.New("no card-attributes") + return nil, fmt.Errorf("no card-attributes") +} + +func checkCollectionEditable(collection *types.Collection, user string) error { + if len(collection.Contributors) == 0 { + return sdkerrors.Wrap(types.ErrUninitializedType, "Collection not initialized") + } + + if user != collection.Contributors[0] { + return sdkerrors.Wrap(errors.ErrUnauthorized, "Invalid creator") + } + + if collection.Status != types.CStatus_design { + return types.ErrCollectionNotInDesign + } + return nil } diff --git a/x/cardchain/keeper/msg_server_add_contributor_to_collection.go b/x/cardchain/keeper/msg_server_add_contributor_to_collection.go index 2d881398..b728995d 100644 --- a/x/cardchain/keeper/msg_server_add_contributor_to_collection.go +++ b/x/cardchain/keeper/msg_server_add_contributor_to_collection.go @@ -14,18 +14,16 @@ func (k msgServer) AddContributorToCollection(goCtx context.Context, msg *types. ctx := sdk.UnwrapSDKContext(goCtx) collection := k.Collections.Get(ctx, msg.CollectionId) - if msg.Creator != collection.Contributors[0] { - return nil, sdkerrors.Wrap(errors.ErrUnauthorized, "Invalid creator") - } - if collection.Status != types.CStatus_design { - return nil, types.ErrCollectionNotInDesign + err := checkCollectionEditable(collection, msg.Creator) + if err != nil { + return nil, err } if slices.Contains(collection.Contributors, msg.User) { return nil, sdkerrors.Wrap(types.ErrContributor, "Contributor allready Contributor: "+msg.User) } - err := k.CollectCollectionConributionFee(ctx, msg.Creator) + err = k.CollectCollectionConributionFee(ctx, msg.Creator) if err != nil { return nil, sdkerrors.Wrap(errors.ErrInsufficientFunds, err.Error()) } diff --git a/x/cardchain/keeper/msg_server_set_card_rarity.go b/x/cardchain/keeper/msg_server_set_card_rarity.go index 473f953f..b7ca9db5 100644 --- a/x/cardchain/keeper/msg_server_set_card_rarity.go +++ b/x/cardchain/keeper/msg_server_set_card_rarity.go @@ -34,7 +34,7 @@ func (k msgServer) SetCardRarity(goCtx context.Context, msg *types.MsgSetCardRar if err != nil { return nil, sdkerrors.Wrap(types.ErrCardobject, err.Error()) } - + if cardobj.Action != nil { cardobj.Action.Rarity = &rarity } else if cardobj.Place != nil { diff --git a/x/cardchain/keeper/msg_server_set_collection_artist.go b/x/cardchain/keeper/msg_server_set_collection_artist.go index d26fc995..a43c9517 100644 --- a/x/cardchain/keeper/msg_server_set_collection_artist.go +++ b/x/cardchain/keeper/msg_server_set_collection_artist.go @@ -3,22 +3,17 @@ package keeper import ( "context" - sdkerrors "cosmossdk.io/errors" "github.com/DecentralCardGame/Cardchain/x/cardchain/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" ) func (k msgServer) SetCollectionArtist(goCtx context.Context, msg *types.MsgSetCollectionArtist) (*types.MsgSetCollectionArtistResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) collection := k.Collections.Get(ctx, msg.CollectionId) - if msg.Creator != collection.Contributors[0] { - return nil, sdkerrors.Wrap(errors.ErrUnauthorized, "Invalid creator") - } - - if collection.Status != types.CStatus_design { - return nil, types.ErrCollectionNotInDesign + err := checkCollectionEditable(collection, msg.Creator) + if err != nil { + return nil, err } collection.Artist = msg.Artist diff --git a/x/cardchain/keeper/msg_server_set_collection_name.go b/x/cardchain/keeper/msg_server_set_collection_name.go new file mode 100644 index 00000000..52ab6976 --- /dev/null +++ b/x/cardchain/keeper/msg_server_set_collection_name.go @@ -0,0 +1,24 @@ +package keeper + +import ( + "context" + + "github.com/DecentralCardGame/Cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) SetCollectionName(goCtx context.Context, msg *types.MsgSetCollectionName) (*types.MsgSetCollectionNameResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + collection := k.Collections.Get(ctx, msg.CollectionId) + err := checkCollectionEditable(collection, msg.Creator) + if err != nil { + return nil, err + } + + collection.Name = msg.Name + + k.Collections.Set(ctx, msg.CollectionId, collection) + + return &types.MsgSetCollectionNameResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_set_collection_story_writer.go b/x/cardchain/keeper/msg_server_set_collection_story_writer.go index 6f2edc24..70b3eda7 100644 --- a/x/cardchain/keeper/msg_server_set_collection_story_writer.go +++ b/x/cardchain/keeper/msg_server_set_collection_story_writer.go @@ -3,22 +3,17 @@ package keeper import ( "context" - sdkerrors "cosmossdk.io/errors" "github.com/DecentralCardGame/Cardchain/x/cardchain/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" ) func (k msgServer) SetCollectionStoryWriter(goCtx context.Context, msg *types.MsgSetCollectionStoryWriter) (*types.MsgSetCollectionStoryWriterResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) collection := k.Collections.Get(ctx, msg.CollectionId) - if msg.Creator != collection.Contributors[0] { - return nil, sdkerrors.Wrap(errors.ErrUnauthorized, "Invalid creator") - } - - if collection.Status != types.CStatus_design { - return nil, types.ErrCollectionNotInDesign + err := checkCollectionEditable(collection, msg.Creator) + if err != nil { + return nil, err } collection.StoryWriter = msg.StoryWriter diff --git a/x/cardchain/keeper/msg_server_set_user_website.go b/x/cardchain/keeper/msg_server_set_user_website.go index 3b5f1c32..e12ca40e 100644 --- a/x/cardchain/keeper/msg_server_set_user_website.go +++ b/x/cardchain/keeper/msg_server_set_user_website.go @@ -3,9 +3,9 @@ package keeper import ( "context" + sdkerrors "cosmossdk.io/errors" "github.com/DecentralCardGame/Cardchain/x/cardchain/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "cosmossdk.io/errors" ) func (k msgServer) SetUserWebsite(goCtx context.Context, msg *types.MsgSetUserWebsite) (*types.MsgSetUserWebsiteResponse, error) { diff --git a/x/cardchain/module_simulation.go b/x/cardchain/module_simulation.go index 6d1222c6..48a79b3c 100644 --- a/x/cardchain/module_simulation.go +++ b/x/cardchain/module_simulation.go @@ -192,6 +192,10 @@ const ( // TODO: Determine the simulation weight value defaultWeightMsgMsgOpenMatch int = 100 + opWeightMsgSetCollectionName = "op_weight_msg_set_collection_name" + // TODO: Determine the simulation weight value + defaultWeightMsgSetCollectionName int = 100 + // this line is used by starport scaffolding # simapp/module/const ) @@ -687,6 +691,17 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp cardchainsimulation.SimulateMsgMsgOpenMatch(am.accountKeeper, am.bankKeeper, am.keeper), )) + var weightMsgSetCollectionName int + simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgSetCollectionName, &weightMsgSetCollectionName, nil, + func(_ *rand.Rand) { + weightMsgSetCollectionName = defaultWeightMsgSetCollectionName + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgSetCollectionName, + cardchainsimulation.SimulateMsgSetCollectionName(am.accountKeeper, am.bankKeeper, am.keeper), + )) + // this line is used by starport scaffolding # simapp/module/operation return operations diff --git a/x/cardchain/simulation/set_collection_name.go b/x/cardchain/simulation/set_collection_name.go new file mode 100644 index 00000000..3997222e --- /dev/null +++ b/x/cardchain/simulation/set_collection_name.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 SimulateMsgSetCollectionName( + 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.MsgSetCollectionName{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the SetCollectionName simulation + + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "SetCollectionName simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/types/codec.go b/x/cardchain/types/codec.go index e156875d..c1d3cd12 100644 --- a/x/cardchain/types/codec.go +++ b/x/cardchain/types/codec.go @@ -54,6 +54,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgSetUserBiography{}, "cardchain/SetUserBiography", nil) cdc.RegisterConcrete(&MsgMultiVoteCard{}, "cardchain/MultiVoteCard", nil) cdc.RegisterConcrete(&MsgMsgOpenMatch{}, "cardchain/MsgOpenMatch", nil) + cdc.RegisterConcrete(&MsgSetCollectionName{}, "cardchain/SetCollectionName", nil) // this line is used by starport scaffolding # 2 } @@ -193,6 +194,9 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgMsgOpenMatch{}, ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgSetCollectionName{}, + ) // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/cardchain/types/errors.go b/x/cardchain/types/errors.go index 5a7cab41..081c536d 100644 --- a/x/cardchain/types/errors.go +++ b/x/cardchain/types/errors.go @@ -31,4 +31,5 @@ var ( ErrStringLength = sdkerrors.Register(ModuleName, 21, "String literal too long") ErrUserAlreadyExists = sdkerrors.Register(ModuleName, 22, "User already exists") ErrWaitingForPlayers = sdkerrors.Register(ModuleName, 23, "Waiting for players") + ErrUninitializedType = sdkerrors.Register(ModuleName, 24, "Type not yet initialized") ) diff --git a/x/cardchain/types/message_set_collection_name.go b/x/cardchain/types/message_set_collection_name.go new file mode 100644 index 00000000..42a7fd4b --- /dev/null +++ b/x/cardchain/types/message_set_collection_name.go @@ -0,0 +1,47 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const TypeMsgSetCollectionName = "set_collection_name" + +var _ sdk.Msg = &MsgSetCollectionName{} + +func NewMsgSetCollectionName(creator string, collectionId uint64, name string) *MsgSetCollectionName { + return &MsgSetCollectionName{ + Creator: creator, + CollectionId: collectionId, + Name: name, + } +} + +func (msg *MsgSetCollectionName) Route() string { + return RouterKey +} + +func (msg *MsgSetCollectionName) Type() string { + return TypeMsgSetCollectionName +} + +func (msg *MsgSetCollectionName) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgSetCollectionName) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgSetCollectionName) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + return nil +} diff --git a/x/cardchain/types/message_set_collection_name_test.go b/x/cardchain/types/message_set_collection_name_test.go new file mode 100644 index 00000000..9e125cd2 --- /dev/null +++ b/x/cardchain/types/message_set_collection_name_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 TestMsgSetCollectionName_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgSetCollectionName + err error + }{ + { + name: "invalid address", + msg: MsgSetCollectionName{ + Creator: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid address", + msg: MsgSetCollectionName{ + Creator: sample.AccAddress(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/cardchain/types/tx.pb.go b/x/cardchain/types/tx.pb.go index b3edc621..23d7368b 100644 --- a/x/cardchain/types/tx.pb.go +++ b/x/cardchain/types/tx.pb.go @@ -4084,6 +4084,102 @@ func (m *MsgMsgOpenMatchResponse) GetMatchId() uint64 { return 0 } +type MsgSetCollectionName struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CollectionId uint64 `protobuf:"varint,2,opt,name=collectionId,proto3" json:"collectionId,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *MsgSetCollectionName) Reset() { *m = MsgSetCollectionName{} } +func (m *MsgSetCollectionName) String() string { return proto.CompactTextString(m) } +func (*MsgSetCollectionName) ProtoMessage() {} +func (*MsgSetCollectionName) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{84} +} +func (m *MsgSetCollectionName) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCollectionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCollectionName.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 *MsgSetCollectionName) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCollectionName.Merge(m, src) +} +func (m *MsgSetCollectionName) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCollectionName) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCollectionName.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCollectionName proto.InternalMessageInfo + +func (m *MsgSetCollectionName) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetCollectionName) GetCollectionId() uint64 { + if m != nil { + return m.CollectionId + } + return 0 +} + +func (m *MsgSetCollectionName) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type MsgSetCollectionNameResponse struct { +} + +func (m *MsgSetCollectionNameResponse) Reset() { *m = MsgSetCollectionNameResponse{} } +func (m *MsgSetCollectionNameResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetCollectionNameResponse) ProtoMessage() {} +func (*MsgSetCollectionNameResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{85} +} +func (m *MsgSetCollectionNameResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCollectionNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCollectionNameResponse.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 *MsgSetCollectionNameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCollectionNameResponse.Merge(m, src) +} +func (m *MsgSetCollectionNameResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCollectionNameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCollectionNameResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCollectionNameResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgCreateuser)(nil), "DecentralCardGame.cardchain.cardchain.MsgCreateuser") proto.RegisterType((*MsgCreateuserResponse)(nil), "DecentralCardGame.cardchain.cardchain.MsgCreateuserResponse") @@ -4169,167 +4265,172 @@ func init() { proto.RegisterType((*MsgMultiVoteCardResponse)(nil), "DecentralCardGame.cardchain.cardchain.MsgMultiVoteCardResponse") proto.RegisterType((*MsgMsgOpenMatch)(nil), "DecentralCardGame.cardchain.cardchain.MsgMsgOpenMatch") proto.RegisterType((*MsgMsgOpenMatchResponse)(nil), "DecentralCardGame.cardchain.cardchain.MsgMsgOpenMatchResponse") + proto.RegisterType((*MsgSetCollectionName)(nil), "DecentralCardGame.cardchain.cardchain.MsgSetCollectionName") + proto.RegisterType((*MsgSetCollectionNameResponse)(nil), "DecentralCardGame.cardchain.cardchain.MsgSetCollectionNameResponse") } func init() { proto.RegisterFile("cardchain/cardchain/tx.proto", fileDescriptor_3b4a3aba0ac94bc8) } var fileDescriptor_3b4a3aba0ac94bc8 = []byte{ - // 2477 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5b, 0xdf, 0x8b, 0x1b, 0xc7, - 0x1d, 0xbf, 0xb5, 0x74, 0xfe, 0xf1, 0x3d, 0xfb, 0x92, 0x6e, 0x2e, 0xb6, 0xbc, 0xb6, 0xef, 0xce, - 0x1b, 0xdb, 0x31, 0xa5, 0x95, 0xb8, 0x4b, 0x9b, 0xd8, 0xa6, 0x17, 0x47, 0xd2, 0x9d, 0xcf, 0xae, - 0xab, 0xda, 0xd1, 0x9d, 0x13, 0xda, 0x14, 0xca, 0x6a, 0x35, 0xa7, 0x5b, 0x4e, 0xda, 0x51, 0x67, - 0x57, 0x77, 0xb9, 0x40, 0x21, 0xd0, 0x52, 0x1a, 0x08, 0x6d, 0x09, 0x7d, 0x28, 0x14, 0x4a, 0x42, - 0x0b, 0x85, 0x40, 0xa1, 0xd0, 0x42, 0x1f, 0xfb, 0x9a, 0xc7, 0x3c, 0x95, 0xd0, 0x87, 0xb4, 0xd8, - 0x2f, 0xfd, 0x33, 0xca, 0xce, 0xce, 0xce, 0xce, 0xac, 0x76, 0x25, 0xcd, 0x4a, 0x79, 0xb2, 0x66, - 0x76, 0x3e, 0xdf, 0xef, 0x67, 0x7e, 0x7e, 0xbf, 0x33, 0x1f, 0x1f, 0x5c, 0xb6, 0x2d, 0xd2, 0xb6, - 0xf7, 0x2d, 0xc7, 0xad, 0xc4, 0xbf, 0xfc, 0x77, 0xcb, 0x7d, 0x82, 0x7d, 0xac, 0x5f, 0xdf, 0x44, - 0x36, 0x72, 0x7d, 0x62, 0x75, 0xeb, 0x16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xe7, 0xf2, 0x1e, 0x9c, 0xe6, 0x8b, 0x6f, 0x7d, 0x72, - 0x63, 0x11, 0xc6, 0xb8, 0xa3, 0x8e, 0xe1, 0xbe, 0x7f, 0xad, 0xc1, 0x73, 0x49, 0x01, 0xe3, 0xf6, - 0xe4, 0xf6, 0x12, 0x50, 0xa3, 0x9a, 0x1b, 0xca, 0x19, 0xfd, 0x42, 0x83, 0xb3, 0x92, 0xac, 0xf0, - 0xea, 0xe4, 0x36, 0x45, 0x9c, 0xf1, 0x7a, 0x3e, 0x9c, 0x44, 0x44, 0x92, 0x18, 0x14, 0x88, 0x88, - 0x38, 0x15, 0x22, 0x69, 0x22, 0x02, 0xdd, 0x2e, 0x82, 0x84, 0xa0, 0xb0, 0x5d, 0x62, 0x94, 0xca, - 0x76, 0x19, 0xd6, 0x0e, 0xf4, 0x3f, 0x6b, 0x70, 0x21, 0x4b, 0x38, 0x50, 0x99, 0xf3, 0x74, 0x13, - 0xc6, 0x83, 0xa9, 0x4d, 0x48, 0xb3, 0x26, 0xc9, 0x06, 0x0a, 0xb3, 0x26, 0xe2, 0x54, 0x66, 0x2d, - 0x4d, 0x49, 0xd0, 0x7f, 0xa7, 0x81, 0x9e, 0xa2, 0x23, 0x28, 0xcc, 0xc3, 0x30, 0xda, 0xd8, 0x9c, - 0x06, 0xcd, 0xa9, 0xfd, 0x4c, 0x83, 0x05, 0x51, 0x8d, 0xf8, 0xb6, 0x8a, 0x55, 0x0e, 0x33, 0x36, - 0x72, 0xc1, 0x38, 0x8b, 0xbf, 0x69, 0x70, 0x69, 0x94, 0x0c, 0xb0, 0xa5, 0xba, 0x28, 0x52, 0xcd, - 0x18, 0x8d, 0x99, 0x98, 0xe1, 0xac, 0x7f, 0xaf, 0xc1, 0x0b, 0x69, 0xcf, 0xff, 0x0a, 0x83, 0x91, - 0x02, 0x37, 0xb6, 0xa6, 0x82, 0x73, 0x76, 0x1f, 0x69, 0xf0, 0xfc, 0x90, 0x52, 0x70, 0x47, 0x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xe6, 0x1f, 0x34, 0x58, 0x4a, 0x95, 0x30, 0x5e, 0x57, 0x72, - 0x31, 0x84, 0x37, 0xee, 0x4d, 0x87, 0x97, 0xe2, 0x87, 0x2c, 0x68, 0x28, 0xc4, 0x0f, 0x09, 0xa8, - 0x12, 0x3f, 0x52, 0x05, 0x0c, 0xca, 0x45, 0x96, 0x2f, 0x5e, 0x53, 0x4f, 0x2d, 0xc2, 0x24, 0xf8, - 0x6e, 0x4e, 0x20, 0xe7, 0xf2, 0x89, 0x06, 0x2f, 0xa6, 0xeb, 0x1c, 0x2a, 0xa6, 0xd3, 0x0c, 0x18, - 0xdb, 0x53, 0x1a, 0x90, 0x38, 0xa6, 0xcb, 0x1a, 0x77, 0x55, 0x36, 0x58, 0x8a, 0x01, 0x15, 0x8e, - 0x23, 0xf5, 0x09, 0xfd, 0x43, 0x0d, 0x16, 0x13, 0xea, 0xc4, 0x2d, 0x15, 0xdb, 0x22, 0xd2, 0x78, - 0x23, 0x2f, 0x92, 0xd3, 0xf9, 0x8b, 0x06, 0x17, 0xb3, 0x25, 0x8c, 0xba, 0x8a, 0xfd, 0x0c, 0x23, - 0xc6, 0xc3, 0x19, 0x18, 0x91, 0xaf, 0xaa, 0xa2, 0x1e, 0xa2, 0x72, 0x55, 0x15, 0x70, 0x4a, 0x57, - 0xd5, 0x14, 0x6d, 0x82, 0xce, 0x63, 0x42, 0x99, 0xb8, 0xa5, 0xb4, 0xdf, 0x05, 0xa4, 0xca, 0x3c, - 0xa6, 0xcb, 0x18, 0x34, 0x20, 0x25, 0x45, 0x0c, 0x85, 0x80, 0x94, 0x80, 0xaa, 0x04, 0xa4, 0x2c, - 0x91, 0x23, 0xb8, 0xc1, 0xa4, 0x09, 0x19, 0x1b, 0xea, 0x4f, 0x4c, 0x22, 0xb3, 0xad, 0xa9, 0xe0, - 0x72, 0xe2, 0x95, 0x25, 0x67, 0xd4, 0xd4, 0x0e, 0xee, 0x34, 0x1b, 0x4a, 0x89, 0xd7, 0x18, 0x5d, - 0x83, 0x0e, 0x65, 0x9a, 0xaa, 0xb1, 0x91, 0xd3, 0x07, 0x7b, 0xad, 0xd9, 0x9a, 0x0a, 0x9e, 0xdc, - 0x09, 0xa2, 0xc2, 0xa1, 0xb6, 0x13, 0x04, 0xa4, 0xe2, 0x4e, 0x48, 0x11, 0x43, 0xe8, 0x75, 0x7e, - 0x48, 0x0a, 0xb9, 0xa3, 0x6c, 0x96, 0x63, 0x8d, 0x5a, 0x7e, 0xac, 0x14, 0xc9, 0x65, 0xc5, 0x44, - 0x21, 0x92, 0x4b, 0x40, 0x95, 0x48, 0x9e, 0x2a, 0x96, 0xd0, 0x23, 0x54, 0x52, 0x4a, 0x14, 0x8e, - 0x50, 0x11, 0xa7, 0x72, 0x84, 0xa6, 0x89, 0x1e, 0xb5, 0xe6, 0x67, 0x4f, 0x97, 0xb5, 0xcf, 0x9f, - 0x2e, 0x6b, 0xff, 0x7d, 0xba, 0xac, 0xfd, 0xe6, 0xd9, 0xf2, 0xdc, 0xe7, 0xcf, 0x96, 0xe7, 0xbe, - 0x78, 0xb6, 0x3c, 0xf7, 0xc3, 0x5b, 0xc2, 0x7f, 0x4f, 0x1a, 0xf2, 0x51, 0xa9, 0xf3, 0x3f, 0x2b, - 0x79, 0x57, 0xfc, 0x0b, 0x98, 0xe3, 0x3e, 0xf2, 0x5a, 0x27, 0xe9, 0x5f, 0x90, 0xbc, 0xf2, 0xff, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x1a, 0x54, 0xf7, 0x25, 0x33, 0x00, 0x00, + // 2523 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5b, 0xed, 0x8b, 0x1b, 0xc7, + 0x19, 0xbf, 0xb5, 0x74, 0x7e, 0x79, 0xfc, 0x92, 0x64, 0x73, 0xb1, 0xe5, 0xb5, 0xad, 0x3b, 0x6f, + 0x6c, 0xc7, 0x94,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x71, 0xba, 0x63, 0x1f, 0x13, 0xaf, 0xb2, 0xbc, 0x56, 0xba, 0x7c, 0xa4, 0x23, 0xd5, 0x99, 0xe7, + 0xe0, 0x4c, 0x0a, 0x45, 0xde, 0x05, 0x37, 0x1c, 0xb4, 0x1e, 0x5d, 0x81, 0x0f, 0x71, 0xae, 0x4e, + 0x50, 0xb7, 0x51, 0x3b, 0xbe, 0x19, 0xa4, 0x3a, 0xe1, 0x60, 0x2a, 0x49, 0x49, 0x03, 0x1b, 0xd4, + 0x49, 0x7f, 0x9c, 0xd1, 0x23, 0xba, 0xcd, 0x6f, 0x39, 0xae, 0x35, 0x70, 0xde, 0x43, 0x8b, 0x22, + 0xc4, 0x8e, 0x82, 0x49, 0xb3, 0xdc, 0xef, 0x03, 0x9e, 0x98, 0x2d, 0xca, 0x65, 0x93, 0x27, 0x55, + 0x13, 0xde, 0x72, 0xc7, 0x72, 0x8f, 0x4e, 0x5f, 0x07, 0x0d, 0x71, 0x98, 0x13, 0xdc, 0x22, 0x78, + 0xf8, 0xa5, 0x4f, 0xd2, 0x45, 0x78, 0x71, 0x8a, 0x53, 0x3e, 0x62, 0xbb, 0x34, 0x5c, 0xb0, 0x66, + 0xf1, 0x9a, 0x5b, 0x28, 0x45, 0x1d, 0xca, 0x41, 0xfe, 0xcc, 0xb6, 0x06, 0xfd, 0x6d, 0x7e, 0x15, + 0xbe, 0x32, 0xdb, 0xaf, 0x10, 0xe7, 0xcf, 0xb1, 0x15, 0x17, 0x37, 0x5d, 0xe0, 0x42, 0x4f, 0x23, + 0xf8, 0x12, 0x5c, 0x9c, 0xea, 0x52, 0x08, 0xa5, 0x67, 0x84, 0x80, 0x1b, 0x7d, 0xce, 0x71, 0xda, + 0xe6, 0x59, 0x7e, 0xe1, 0x2c, 0x66, 0x19, 0xe7, 0x1c, 0x3e, 0x08, 0x53, 0xe5, 0xf0, 0x84, 0xd8, + 0x42, 0x83, 0xc1, 0xfd, 0xed, 0xed, 0xa9, 0x67, 0xa6, 0x0e, 0xe5, 0x60, 0x9d, 0x30, 0x9f, 0xf4, + 0xb7, 0xbe, 0x09, 0xcb, 0x23, 0xe2, 0xd8, 0xa8, 0x68, 0xbe, 0x16, 0xa2, 0xcd, 0xb3, 0x34, 0x0d, + 0x4a, 0x50, 0xe1, 0x4c, 0xef, 0x00, 0xc4, 0x97, 0x94, 0x29, 0x04, 0x83, 0x83, 0x33, 0x02, 0xf3, + 0xb1, 0x11, 0xab, 0xcc, 0x15, 0xda, 0x65, 0x66, 0x49, 0x38, 0x01, 0x74, 0xbe, 0xae, 0xf2, 0x0c, + 0xc4, 0x6c, 0x3f, 0x61, 0x7f, 0x12, 0x16, 0xb9, 0x3f, 0x0c, 0xa7, 0xa5, 0x74, 0x70, 0x81, 0xab, + 0x32, 0x35, 0x33, 0x35, 0x5f, 0x84, 0xf3, 0x99, 0x0e, 0x39, 0xab, 0x21, 0xcd, 0xc0, 0x1a, 0xbd, + 0xde, 0x56, 0x10, 0x69, 0x16, 0xcb, 0x89, 0x06, 0xaf, 0xe8, 0xa6, 0x4c, 0x0b, 0xe6, 0x79, 0x58, + 0xcd, 0x70, 0xc7, 0x19, 0xbd, 0x1f, 0xde, 0x99, 0xb7, 0x90, 0x4f, 0xa7, 0xcb, 0x22, 0x8e, 0xbf, + 0x5f, 0x20, 0x27, 0x4e, 0x72, 0x2c, 0xa5, 0x9f, 0x88, 0x84, 0xda, 0x67, 0xe1, 0x96, 0x95, 0x4c, + 0x83, 0x1e, 0xe5, 0x12, 0x03, 0x4e, 0x6f, 0x83, 0xb2, 0x8b, 0x22, 0xec, 0x8c, 0x94, 0x34, 0x8b, + 0x1d, 0xf3, 0x20, 0x59, 0xe1, 0x1e, 0x7e, 0xae, 0x85, 0x1f, 0xf1, 0x90, 0x6e, 0x65, 0xe9, 0xe3, + 0xac, 0xe4, 0x26, 0x6c, 0x15, 0x27, 0x37, 0x0c, 0x75, 0x16, 0x8e, 0xb0, 0x07, 0x17, 0x3e, 0x12, + 0x71,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x71, 0xc6, 0x6b, 0xc5, 0x70, 0x12, 0x11, 0x49, 0xec, 0x50, 0x20, 0x22, 0xe2, 0x54, 0x88, 0xa4, + 0xc9, 0x19, 0x74, 0xbb, 0x08, 0x62, 0x86, 0xc2, 0x76, 0x89, 0x51, 0x2a, 0xdb, 0x65, 0x52, 0xc5, + 0xd0, 0xff, 0xa8, 0xc1, 0xa9, 0x2c, 0x09, 0x43, 0x65, 0xce, 0xd3, 0x4d, 0x18, 0x77, 0xe7, 0x36, + 0x21, 0xcd, 0x9a, 0x24, 0x60, 0x28, 0xcc, 0x9a, 0x88, 0x53, 0x99, 0xb5, 0x34, 0x4d, 0x43, 0xff, + 0x8d, 0x06, 0x7a, 0x8a, 0xa2, 0xa1, 0x30, 0x0f, 0x93, 0x68, 0x63, 0x63, 0x1e, 0x34, 0xa7, 0xf6, + 0x63, 0x0d, 0x8e, 0x8a, 0xba, 0xc8, 0x37, 0x54, 0xac, 0x72, 0x98, 0x71, 0xa3, 0x10, 0x8c, 0xb3, + 0xf8, 0x8b, 0x06, 0x67, 0xa6, 0x09, 0x12, 0x9b, 0xaa, 0x8b, 0x22, 0xd5, 0x8c, 0xd1, 0x5e, 0x88, + 0x19, 0xce, 0xfa, 0xb7, 0x1a, 0x3c, 0x9f, 0x26, 0x44, 0x28, 0x0c, 0x46, 0x0a, 0xdc, 0xd8, 0x9c, + 0x0b, 0xce, 0xd9, 0x7d, 0xa4, 0xc1, 0xb3, 0x13, 0x9a, 0xc5, 0x75, 0xd5, 0x48, 0x19, 0x63, 0x8d, + 0x66, 0x71, 0xac, 0x3c, 0x64, 0x29, 0x32, 0xc4, 0x0d, 0xa5, 0x23, 0x29, 0x09, 0x57, 0x1a, 0xb2, + 0x6c, 0x51, 0x82, 0xee, 0xd3, 0x14, 0x49, 0x42, 0x61, 0x9f, 0x4e, 0xa2, 0x55, 0xf6, 0x69, 0xb6, + 0x6e, 0xc1, 0x93, 0x94, 0x98, 0x95, 0x62, 0x92, 0x12, 0x13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b, 0x45, 0x72, 0x59, 0xbb, 0x51, 0x88, 0xe4, 0x12, + 0x50, 0x25, 0x92, 0xa7, 0xca, 0x36, 0xf4, 0x08, 0x95, 0x34, 0x1b, 0x85, 0x23, 0x54, 0xc4, 0xa9, + 0x1c, 0xa1, 0xa9, 0xf2, 0xcb, 0xaf, 0x35, 0x78, 0x6e, 0x52, 0x62, 0xf9, 0x66, 0xc1, 0x55, 0x19, + 0x80, 0x8d, 0xd6, 0x1c, 0xe0, 0x88, 0x57, 0xb3, 0xf3, 0xd9, 0x93, 0xaa, 0xf6, 0xf9, 0x93, 0xaa, + 0xf6, 0x9f, 0x27, 0x55, 0xed, 0x97, 0x4f, 0xab, 0x4b, 0x9f, 0x3f, 0xad, 0x2e, 0xfd, 0xf3, 0x69, + 0x75, 0xe9, 0x7b, 0x57, 0x85, 0xff, 0xc0, 0x35, 0xe1, 0xa8, 0xde, 0xe2, 0x7f, 0x78, 0xf3, 0xae, + 0xf8, 0x37, 0x42, 0xfb, 0x23, 0xe4, 0x75, 0x0f, 0xd2, 0xbf, 0xb1, 0x79, 0xf9, 0xff, 0x01, 0x00, + 0x00, 0xff, 0xff, 0xfb, 0x45, 0x83, 0x4a, 0x47, 0x34, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4387,6 +4488,7 @@ type MsgClient interface { // this line is used by starport scaffolding # proto/tx/rpc MultiVoteCard(ctx context.Context, in *MsgMultiVoteCard, opts ...grpc.CallOption) (*MsgMultiVoteCardResponse, error) MsgOpenMatch(ctx context.Context, in *MsgMsgOpenMatch, opts ...grpc.CallOption) (*MsgMsgOpenMatchResponse, error) + SetCollectionName(ctx context.Context, in *MsgSetCollectionName, opts ...grpc.CallOption) (*MsgSetCollectionNameResponse, error) } type msgClient struct { @@ -4775,6 +4877,15 @@ func (c *msgClient) MsgOpenMatch(ctx context.Context, in *MsgMsgOpenMatch, opts return out, nil } +func (c *msgClient) SetCollectionName(ctx context.Context, in *MsgSetCollectionName, opts ...grpc.CallOption) (*MsgSetCollectionNameResponse, error) { + out := new(MsgSetCollectionNameResponse) + err := c.cc.Invoke(ctx, "/DecentralCardGame.cardchain.cardchain.Msg/SetCollectionName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { Createuser(context.Context, *MsgCreateuser) (*MsgCreateuserResponse, error) @@ -4820,6 +4931,7 @@ type MsgServer interface { // this line is used by starport scaffolding # proto/tx/rpc MultiVoteCard(context.Context, *MsgMultiVoteCard) (*MsgMultiVoteCardResponse, error) MsgOpenMatch(context.Context, *MsgMsgOpenMatch) (*MsgMsgOpenMatchResponse, error) + SetCollectionName(context.Context, *MsgSetCollectionName) (*MsgSetCollectionNameResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -4952,6 +5064,9 @@ func (*UnimplementedMsgServer) MultiVoteCard(ctx context.Context, req *MsgMultiV func (*UnimplementedMsgServer) MsgOpenMatch(ctx context.Context, req *MsgMsgOpenMatch) (*MsgMsgOpenMatchResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method MsgOpenMatch not implemented") } +func (*UnimplementedMsgServer) SetCollectionName(ctx context.Context, req *MsgSetCollectionName) (*MsgSetCollectionNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCollectionName not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -5713,6 +5828,24 @@ func _Msg_MsgOpenMatch_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Msg_SetCollectionName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCollectionName) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCollectionName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/DecentralCardGame.cardchain.cardchain.Msg/SetCollectionName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCollectionName(ctx, req.(*MsgSetCollectionName)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "DecentralCardGame.cardchain.cardchain.Msg", HandlerType: (*MsgServer)(nil), @@ -5885,6 +6018,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "MsgOpenMatch", Handler: _Msg_MsgOpenMatch_Handler, }, + { + MethodName: "SetCollectionName", + Handler: _Msg_SetCollectionName_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "cardchain/cardchain/tx.proto", @@ -8754,6 +8891,71 @@ func (m *MsgMsgOpenMatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *MsgSetCollectionName) 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 *MsgSetCollectionName) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCollectionName) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if m.CollectionId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.CollectionId)) + 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 *MsgSetCollectionNameResponse) 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 *MsgSetCollectionNameResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCollectionNameResponse) 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 @@ -10015,6 +10217,35 @@ func (m *MsgMsgOpenMatchResponse) Size() (n int) { return n } +func (m *MsgSetCollectionName) 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.CollectionId != 0 { + n += 1 + sovTx(uint64(m.CollectionId)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetCollectionNameResponse) 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 } @@ -18068,6 +18299,189 @@ func (m *MsgMsgOpenMatchResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgSetCollectionName) 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: MsgSetCollectionName: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCollectionName: 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 CollectionId", wireType) + } + m.CollectionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CollectionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *MsgSetCollectionNameResponse) 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: MsgSetCollectionNameResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCollectionNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0