diff --git a/proto/OmniFlix/onft/v1beta1/tx.proto b/proto/OmniFlix/onft/v1beta1/tx.proto index 81f13ab4..81e4b3c8 100644 --- a/proto/OmniFlix/onft/v1beta1/tx.proto +++ b/proto/OmniFlix/onft/v1beta1/tx.proto @@ -21,6 +21,8 @@ service Msg { rpc TransferDenom(MsgTransferDenom) returns (MsgTransferDenomResponse); + rpc PurgeDenom(MsgPurgeDenom) returns (MsgPurgeDenomResponse); + rpc MintONFT(MsgMintONFT) returns (MsgMintONFTResponse); rpc TransferONFT(MsgTransferONFT) returns (MsgTransferONFTResponse); @@ -84,6 +86,17 @@ message MsgUpdateDenom { message MsgUpdateDenomResponse {} +message MsgPurgeDenom { + option (cosmos.msg.v1.signer) = "sender"; + option (amino.name) = "OmniFlix/onft/MsgPurgeDenom"; + option (gogoproto.equal) = false; + + string id = 1; + string sender = 2; +} + +message MsgPurgeDenomResponse {} + message MsgTransferDenom { option (cosmos.msg.v1.signer) = "sender"; option (amino.name) = "OmniFlix/onft/MsgTransferDenom"; diff --git a/x/onft/client/cli/tx.go b/x/onft/client/cli/tx.go index c1aee606..d2618855 100644 --- a/x/onft/client/cli/tx.go +++ b/x/onft/client/cli/tx.go @@ -27,6 +27,7 @@ func NewTxCmd() *cobra.Command { GetCmdCreateDenom(), GetCmdUpdateDenom(), GetCmdTransferDenom(), + GetCmdPurgeDenom(), GetCmdMintONFT(), GetCmdTransferONFT(), GetCmdBurnONFT(), @@ -470,6 +471,38 @@ $ %s tx onft burn [denom-id] [onft-id] --from= --chain-id= - return cmd } +func GetCmdPurgeDenom() *cobra.Command { + cmd := &cobra.Command{ + Use: "purge-denom [recipient] [denom-id]", + Long: strings.TrimSpace( + fmt.Sprintf(`Purge an empty denom . +Example: +$ %s tx onft purge-denom [denom-id] --from= --chain-id= --fees=`, + version.AppName, + ), + ), + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgPurgeDenom( + args[0], + clientCtx.GetFromAddress().String(), + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + flags.AddTxFlagsToCmd(cmd) + + return cmd +} + func parseSplitShares(splitSharesStr string) ([]*types.WeightedAddress, error) { splitSharesStr = strings.TrimSpace(splitSharesStr) splitsStrList := strings.Split(splitSharesStr, ",") diff --git a/x/onft/keeper/denom.go b/x/onft/keeper/denom.go index edfcf4ff..de1ce5be 100644 --- a/x/onft/keeper/denom.go +++ b/x/onft/keeper/denom.go @@ -232,3 +232,41 @@ func (k Keeper) GetDenomInfo(ctx sdk.Context, denomID string) (*types.Denom, err RoyaltyReceivers: denomMetadata.RoyaltyReceivers, }, nil } + +// PurgeDenom deletes the denom if no nfts in it +func (k Keeper) PurgeDenom( + ctx sdk.Context, + denomID string, + sender sdk.AccAddress, +) error { + denom, err := k.GetDenomInfo(ctx, denomID) + if err != nil { + return err + } + + // authorize + if sender.String() != denom.Creator { + return errorsmod.Wrapf( + sdkerrors.ErrUnauthorized, + "%s is not allowed to purge denom %s", sender, + denomID, + ) + } + if k.nk.GetTotalSupply(ctx, denomID) != 0 { + return errorsmod.Wrapf( + types.ErrNotAllowed, + "can not purge denom (%s) with nfts available in it", + denomID, + ) + } + // delete the denom + k.DeleteDenomFromStore(ctx, denomID) + + k.emitPurgeONFTDenomEvent(ctx, denomID) + return nil +} + +func (k Keeper) DeleteDenomFromStore(ctx sdk.Context, denomId string) { + store := ctx.KVStore(k.storeKey) + store.Delete(classStoreKey(denomId)) +} diff --git a/x/onft/keeper/events.go b/x/onft/keeper/events.go index e61b602f..bccb6711 100644 --- a/x/onft/keeper/events.go +++ b/x/onft/keeper/events.go @@ -42,6 +42,15 @@ func (k Keeper) emitTransferONFTDenomEvent(ctx sdk.Context, denomId, symbol, sen ) } +func (k Keeper) emitPurgeONFTDenomEvent(ctx sdk.Context, denomId string) { + ctx.EventManager().EmitEvent( + sdk.NewEvent( + onfttypes.EventTypePurgeONFTDenom, + sdk.NewAttribute(onfttypes.AttributeKeyDenomID, denomId), + ), + ) +} + func (k Keeper) emitMintONFTEvent(ctx sdk.Context, nftId, denomId, uri, owner string) { ctx.EventManager().EmitEvent( sdk.NewEvent( diff --git a/x/onft/keeper/keys.go b/x/onft/keeper/keys.go new file mode 100644 index 00000000..4733614e --- /dev/null +++ b/x/onft/keeper/keys.go @@ -0,0 +1,12 @@ +package keeper + +import ( + nftkeeper "github.com/cosmos/cosmos-sdk/x/nft/keeper" +) + +func classStoreKey(classID string) []byte { + key := make([]byte, len(nftkeeper.ClassKey)+len(classID)) + copy(key, nftkeeper.ClassKey) + copy(key[len(nftkeeper.ClassKey):], classID) + return key +} diff --git a/x/onft/keeper/msg_server.go b/x/onft/keeper/msg_server.go index dfd4d6f8..1326bb2d 100644 --- a/x/onft/keeper/msg_server.go +++ b/x/onft/keeper/msg_server.go @@ -214,3 +214,19 @@ func (m msgServer) BurnONFT(goCtx context.Context, return &types.MsgBurnONFTResponse{}, nil } + +func (m msgServer) PurgeDenom(goCtx context.Context, + msg *types.MsgPurgeDenom, +) (*types.MsgPurgeDenomResponse, error) { + sender, err := sdk.AccAddressFromBech32(msg.Sender) + if err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := m.Keeper.PurgeDenom(ctx, msg.Id, sender); err != nil { + return nil, err + } + + return &types.MsgPurgeDenomResponse{}, nil +} diff --git a/x/onft/types/errors.go b/x/onft/types/errors.go index e4f33609..bd6f411f 100644 --- a/x/onft/types/errors.go +++ b/x/onft/types/errors.go @@ -32,4 +32,5 @@ var ( ErrInvalidONFTMetadata = errorsmod.Register(ModuleName, 25, "invalid nft data") ErrDenomIdExists = errorsmod.Register(ModuleName, 26, "denom exists") ErrInvalidRoyaltyReceivers = errorsmod.Register(ModuleName, 27, "invalid royalty receivers") + ErrNotAllowed = errorsmod.Register(ModuleName, 28, "not allowed ") ) diff --git a/x/onft/types/events.go b/x/onft/types/events.go index 773785e1..d79d5b62 100644 --- a/x/onft/types/events.go +++ b/x/onft/types/events.go @@ -4,6 +4,7 @@ const ( EventTypeCreateONFTDenom = "create_onft_denom" EventTypeUpdateONFTDenom = "update_onft_denom" EventTypeTransferONFTDenom = "transfer_onft_denom" + EventTypePurgeONFTDenom = "purge_onft_denom" EventTypeMintONFT = "mint_onft" EventTypeTransferONFT = "transfer_onft" diff --git a/x/onft/types/msgs.go b/x/onft/types/msgs.go index 32a931e7..2c0e18f9 100644 --- a/x/onft/types/msgs.go +++ b/x/onft/types/msgs.go @@ -207,6 +207,37 @@ func (msg MsgTransferDenom) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{from} } +func NewMsgPurgeDenom(id, sender string) *MsgPurgeDenom { + return &MsgPurgeDenom{ + Id: id, + Sender: sender, + } +} + +func (msg MsgPurgeDenom) Route() string { return RouterKey } + +func (msg MsgPurgeDenom) Type() string { return TypeMsgTransferDenom } + +func (msg MsgPurgeDenom) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Sender); err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid sender address; %s", err) + } + return nil +} + +func (msg MsgPurgeDenom) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(&msg) + return sdk.MustSortJSON(bz) +} + +func (msg MsgPurgeDenom) GetSigners() []sdk.AccAddress { + from, err := sdk.AccAddressFromBech32(msg.Sender) + if err != nil { + panic(err) + } + return []sdk.AccAddress{from} +} + func NewMsgMintONFT( denomId, sender, recipient string, metadata Metadata, data string, transferable, extensible, nsfw bool, royaltyShare sdk.Dec, diff --git a/x/onft/types/tx.pb.go b/x/onft/types/tx.pb.go index 3d00e699..d4fcab1e 100644 --- a/x/onft/types/tx.pb.go +++ b/x/onft/types/tx.pb.go @@ -195,6 +195,80 @@ func (m *MsgUpdateDenomResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateDenomResponse proto.InternalMessageInfo +type MsgPurgeDenom struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` +} + +func (m *MsgPurgeDenom) Reset() { *m = MsgPurgeDenom{} } +func (m *MsgPurgeDenom) String() string { return proto.CompactTextString(m) } +func (*MsgPurgeDenom) ProtoMessage() {} +func (*MsgPurgeDenom) Descriptor() ([]byte, []int) { + return fileDescriptor_adb8c7aefdb74d05, []int{4} +} +func (m *MsgPurgeDenom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgPurgeDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgPurgeDenom.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 *MsgPurgeDenom) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgPurgeDenom.Merge(m, src) +} +func (m *MsgPurgeDenom) XXX_Size() int { + return m.Size() +} +func (m *MsgPurgeDenom) XXX_DiscardUnknown() { + xxx_messageInfo_MsgPurgeDenom.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgPurgeDenom proto.InternalMessageInfo + +type MsgPurgeDenomResponse struct { +} + +func (m *MsgPurgeDenomResponse) Reset() { *m = MsgPurgeDenomResponse{} } +func (m *MsgPurgeDenomResponse) String() string { return proto.CompactTextString(m) } +func (*MsgPurgeDenomResponse) ProtoMessage() {} +func (*MsgPurgeDenomResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_adb8c7aefdb74d05, []int{5} +} +func (m *MsgPurgeDenomResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgPurgeDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgPurgeDenomResponse.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 *MsgPurgeDenomResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgPurgeDenomResponse.Merge(m, src) +} +func (m *MsgPurgeDenomResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgPurgeDenomResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgPurgeDenomResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgPurgeDenomResponse proto.InternalMessageInfo + type MsgTransferDenom struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` @@ -205,7 +279,7 @@ func (m *MsgTransferDenom) Reset() { *m = MsgTransferDenom{} } func (m *MsgTransferDenom) String() string { return proto.CompactTextString(m) } func (*MsgTransferDenom) ProtoMessage() {} func (*MsgTransferDenom) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{4} + return fileDescriptor_adb8c7aefdb74d05, []int{6} } func (m *MsgTransferDenom) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -241,7 +315,7 @@ func (m *MsgTransferDenomResponse) Reset() { *m = MsgTransferDenomRespon func (m *MsgTransferDenomResponse) String() string { return proto.CompactTextString(m) } func (*MsgTransferDenomResponse) ProtoMessage() {} func (*MsgTransferDenomResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{5} + return fileDescriptor_adb8c7aefdb74d05, []int{7} } func (m *MsgTransferDenomResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -287,7 +361,7 @@ func (m *MsgMintONFT) Reset() { *m = MsgMintONFT{} } func (m *MsgMintONFT) String() string { return proto.CompactTextString(m) } func (*MsgMintONFT) ProtoMessage() {} func (*MsgMintONFT) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{6} + return fileDescriptor_adb8c7aefdb74d05, []int{8} } func (m *MsgMintONFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -323,7 +397,7 @@ func (m *MsgMintONFTResponse) Reset() { *m = MsgMintONFTResponse{} } func (m *MsgMintONFTResponse) String() string { return proto.CompactTextString(m) } func (*MsgMintONFTResponse) ProtoMessage() {} func (*MsgMintONFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{7} + return fileDescriptor_adb8c7aefdb74d05, []int{9} } func (m *MsgMintONFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -363,7 +437,7 @@ func (m *MsgTransferONFT) Reset() { *m = MsgTransferONFT{} } func (m *MsgTransferONFT) String() string { return proto.CompactTextString(m) } func (*MsgTransferONFT) ProtoMessage() {} func (*MsgTransferONFT) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{8} + return fileDescriptor_adb8c7aefdb74d05, []int{10} } func (m *MsgTransferONFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -399,7 +473,7 @@ func (m *MsgTransferONFTResponse) Reset() { *m = MsgTransferONFTResponse func (m *MsgTransferONFTResponse) String() string { return proto.CompactTextString(m) } func (*MsgTransferONFTResponse) ProtoMessage() {} func (*MsgTransferONFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{9} + return fileDescriptor_adb8c7aefdb74d05, []int{11} } func (m *MsgTransferONFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -438,7 +512,7 @@ func (m *MsgBurnONFT) Reset() { *m = MsgBurnONFT{} } func (m *MsgBurnONFT) String() string { return proto.CompactTextString(m) } func (*MsgBurnONFT) ProtoMessage() {} func (*MsgBurnONFT) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{10} + return fileDescriptor_adb8c7aefdb74d05, []int{12} } func (m *MsgBurnONFT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -474,7 +548,7 @@ func (m *MsgBurnONFTResponse) Reset() { *m = MsgBurnONFTResponse{} } func (m *MsgBurnONFTResponse) String() string { return proto.CompactTextString(m) } func (*MsgBurnONFTResponse) ProtoMessage() {} func (*MsgBurnONFTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{11} + return fileDescriptor_adb8c7aefdb74d05, []int{13} } func (m *MsgBurnONFTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -519,7 +593,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{12} + return fileDescriptor_adb8c7aefdb74d05, []int{14} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -559,7 +633,7 @@ func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_adb8c7aefdb74d05, []int{13} + return fileDescriptor_adb8c7aefdb74d05, []int{15} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -593,6 +667,8 @@ func init() { proto.RegisterType((*MsgCreateDenomResponse)(nil), "OmniFlix.onft.v1beta1.MsgCreateDenomResponse") proto.RegisterType((*MsgUpdateDenom)(nil), "OmniFlix.onft.v1beta1.MsgUpdateDenom") proto.RegisterType((*MsgUpdateDenomResponse)(nil), "OmniFlix.onft.v1beta1.MsgUpdateDenomResponse") + proto.RegisterType((*MsgPurgeDenom)(nil), "OmniFlix.onft.v1beta1.MsgPurgeDenom") + proto.RegisterType((*MsgPurgeDenomResponse)(nil), "OmniFlix.onft.v1beta1.MsgPurgeDenomResponse") proto.RegisterType((*MsgTransferDenom)(nil), "OmniFlix.onft.v1beta1.MsgTransferDenom") proto.RegisterType((*MsgTransferDenomResponse)(nil), "OmniFlix.onft.v1beta1.MsgTransferDenomResponse") proto.RegisterType((*MsgMintONFT)(nil), "OmniFlix.onft.v1beta1.MsgMintONFT") @@ -608,77 +684,80 @@ func init() { func init() { proto.RegisterFile("OmniFlix/onft/v1beta1/tx.proto", fileDescriptor_adb8c7aefdb74d05) } var fileDescriptor_adb8c7aefdb74d05 = []byte{ - // 1113 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x3f, 0x6f, 0xdb, 0x46, - 0x14, 0x17, 0x25, 0x59, 0x96, 0x4e, 0x8e, 0xe3, 0xd0, 0x4e, 0x42, 0x0b, 0x0e, 0x69, 0x10, 0xad, - 0x63, 0x18, 0x30, 0x59, 0xab, 0x40, 0x07, 0x77, 0x8a, 0x92, 0x1a, 0xcd, 0xa0, 0x26, 0x60, 0x62, - 0x14, 0xc8, 0x22, 0x50, 0xe4, 0x89, 0x3a, 0x44, 0x24, 0xd5, 0x3b, 0xca, 0xb1, 0xb6, 0xa2, 0xe8, - 0x54, 0x74, 0xe8, 0x50, 0x74, 0xee, 0xdc, 0xc9, 0x43, 0xa7, 0x7e, 0x02, 0x77, 0x29, 0x82, 0x4c, - 0x45, 0x06, 0xb5, 0xb5, 0x07, 0x77, 0xf6, 0x27, 0x28, 0x78, 0x77, 0xa4, 0x48, 0x59, 0x94, 0x05, - 0xb4, 0x05, 0xb2, 0x48, 0xf7, 0xde, 0xfd, 0xee, 0xde, 0xfb, 0xbd, 0x7f, 0x3c, 0x20, 0x3f, 0x71, - 0x3d, 0x74, 0xd0, 0x43, 0xc7, 0xba, 0xef, 0x75, 0x02, 0xfd, 0x68, 0xaf, 0x0d, 0x03, 0x73, 0x4f, - 0x0f, 0x8e, 0xb5, 0x3e, 0xf6, 0x03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 0x4d, 0x40, 0x55, 0x03, 0x70, 0xe9, 0x10, - 0x23, 0xea, 0x94, 0xd5, 0x85, 0xae, 0x29, 0x95, 0xb8, 0x53, 0x54, 0xa2, 0x7a, 0xe8, 0xd9, 0x10, - 0x4b, 0x8b, 0x5c, 0x4f, 0x25, 0xf1, 0x6b, 0x01, 0x2c, 0x59, 0x21, 0x49, 0xe4, 0x7b, 0xad, 0x0e, - 0x84, 0x52, 0x79, 0x53, 0xd8, 0xae, 0xd6, 0xd7, 0x35, 0x9e, 0x89, 0x30, 0xae, 0x51, 0x5e, 0xb5, - 0x87, 0x3e, 0xf2, 0x1a, 0x07, 0xa7, 0x23, 0x25, 0x77, 0x39, 0x52, 0x56, 0x99, 0x27, 0xc9, 0xc3, - 0xea, 0x4f, 0x7f, 0x28, 0xf7, 0x1d, 0x14, 0x74, 0x07, 0x6d, 0xcd, 0xf2, 0x5d, 0x9e, 0x4d, 0xfe, - 0xb7, 0x4b, 0xec, 0x97, 0x7a, 0x30, 0xec, 0x43, 0x42, 0xef, 0x31, 0xaa, 0xd1, 0xc9, 0x03, 0x08, - 0xc5, 0x15, 0x50, 0x08, 0x59, 0x57, 0xa8, 0x6f, 0xe1, 0x52, 0x5c, 0x07, 0xe5, 0x01, 0x46, 0xad, - 0xae, 0x49, 0xba, 0x12, 0xa0, 0xea, 0xc5, 0x01, 0x46, 0x9f, 0x9a, 0xa4, 0x1b, 0x06, 0xd8, 0x36, - 0x03, 0x53, 0xaa, 0xb2, 0x00, 0x87, 0x6b, 0xf1, 0x0b, 0x70, 0x0b, 0xfb, 0x43, 0xb3, 0x17, 0x0c, - 0x5b, 0x18, 0x5a, 0x10, 0x1d, 0x41, 0x4c, 0xa4, 0xa5, 0xcd, 0xc2, 0x76, 0xb5, 0xbe, 0xa5, 0x4d, - 0xad, 0x52, 0xed, 0x73, 0x88, 0x9c, 0x6e, 0x00, 0xed, 0x07, 0xb6, 0x8d, 0x21, 0x21, 0x8d, 0x8d, - 0xcb, 0x91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0xe6, 0xe9, 0x5f, 0x72, 0xee, 0xf4, 0x4c, 0x16, 0x5e, 0x9f, 0xc9, 0xc2, - 0x9f, 0x67, 0xb2, 0xf0, 0xdd, 0xb9, 0x9c, 0x7b, 0x7d, 0x2e, 0xe7, 0x7e, 0x3f, 0x97, 0x73, 0x2f, - 0xf4, 0xc4, 0xb4, 0x1f, 0xb7, 0xb6, 0xeb, 0xa1, 0x4e, 0x0f, 0x1d, 0x77, 0x07, 0x6d, 0xfd, 0xa8, - 0xae, 0xf3, 0x5e, 0xa7, 0xa3, 0xbf, 0x5d, 0xa2, 0x8f, 0xfa, 0x0f, 0xff, 0x09, 0x00, 0x00, 0xff, - 0xff, 0x49, 0x21, 0x33, 0x8d, 0xd0, 0x0c, 0x00, 0x00, + // 1161 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0x8f, 0x93, 0x34, 0x4d, 0x26, 0x6d, 0xb7, 0xeb, 0xb6, 0x5b, 0x37, 0x74, 0xed, 0xca, 0x5a, + 0xba, 0x55, 0x45, 0x63, 0x1a, 0x24, 0x0e, 0xe5, 0xb4, 0xd9, 0xa5, 0x62, 0x0f, 0x61, 0x2b, 0xef, + 0x56, 0x48, 0x7b, 0x09, 0x4e, 0x3c, 0x71, 0x46, 0x1b, 0xdb, 0x61, 0xc6, 0xe9, 0x36, 0x37, 0x84, + 0x38, 0x21, 0x0e, 0x1c, 0x10, 0x67, 0xce, 0x70, 0xe9, 0x81, 0x13, 0x9f, 0xa0, 0x27, 0xb4, 0xda, + 0x13, 0xda, 0x43, 0x80, 0xf6, 0x50, 0xce, 0xfd, 0x04, 0xc8, 0x33, 0x63, 0xc7, 0x6e, 0xed, 0x34, + 0x08, 0x90, 0xb8, 0x34, 0xf3, 0xde, 0xfc, 0x66, 0xde, 0xfb, 0xbd, 0x7f, 0xe3, 0x02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xde, 0x99, + 0x06, 0x15, 0x5a, 0x78, 0x0e, 0x8a, 0xe1, 0xf0, 0x56, 0xd3, 0x4f, 0x06, 0x98, 0xca, 0xf6, 0xcd, + 0x98, 0xf0, 0xee, 0x0e, 0x98, 0x8b, 0x0d, 0x8c, 0xcd, 0x9b, 0xe9, 0x53, 0x1b, 0xd5, 0xe9, 0x70, + 0x51, 0x0e, 0x61, 0x03, 0x4f, 0xe0, 0x10, 0x60, 0x26, 0x71, 0xb8, 0xda, 0x72, 0x3e, 0x87, 0x58, + 0xbb, 0x6d, 0xde, 0x54, 0x2b, 0x0c, 0x37, 0x89, 0x43, 0x52, 0x9b, 0x54, 0x66, 0x3e, 0xbf, 0x38, + 0xd9, 0x16, 0xea, 0x8d, 0xd3, 0x3f, 0xe4, 0xcc, 0xe9, 0x99, 0x2c, 0xbc, 0x3a, 0x93, 0x85, 0xdf, + 0xcf, 0x64, 0xe1, 0x9b, 0x73, 0x39, 0xf3, 0xea, 0x5c, 0xce, 0xfc, 0x7a, 0x2e, 0x67, 0x9e, 0x6b, + 0x91, 0xf7, 0x64, 0x3c, 0x3c, 0x6c, 0x07, 0x75, 0x7a, 0xe8, 0xb8, 0x3b, 0x68, 0x69, 0x47, 0x35, + 0x8d, 0x4f, 0x13, 0xfa, 0xb8, 0xb4, 0x0a, 0xf4, 0x3f, 0x97, 0xf7, 0xfe, 0x0a, 0x00, 0x00, 0xff, + 0xff, 0x2a, 0x33, 0x6e, 0xbd, 0xb5, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -696,6 +775,7 @@ type MsgClient interface { CreateDenom(ctx context.Context, in *MsgCreateDenom, opts ...grpc.CallOption) (*MsgCreateDenomResponse, error) UpdateDenom(ctx context.Context, in *MsgUpdateDenom, opts ...grpc.CallOption) (*MsgUpdateDenomResponse, error) TransferDenom(ctx context.Context, in *MsgTransferDenom, opts ...grpc.CallOption) (*MsgTransferDenomResponse, error) + PurgeDenom(ctx context.Context, in *MsgPurgeDenom, opts ...grpc.CallOption) (*MsgPurgeDenomResponse, error) MintONFT(ctx context.Context, in *MsgMintONFT, opts ...grpc.CallOption) (*MsgMintONFTResponse, error) TransferONFT(ctx context.Context, in *MsgTransferONFT, opts ...grpc.CallOption) (*MsgTransferONFTResponse, error) BurnONFT(ctx context.Context, in *MsgBurnONFT, opts ...grpc.CallOption) (*MsgBurnONFTResponse, error) @@ -741,6 +821,15 @@ func (c *msgClient) TransferDenom(ctx context.Context, in *MsgTransferDenom, opt return out, nil } +func (c *msgClient) PurgeDenom(ctx context.Context, in *MsgPurgeDenom, opts ...grpc.CallOption) (*MsgPurgeDenomResponse, error) { + out := new(MsgPurgeDenomResponse) + err := c.cc.Invoke(ctx, "/OmniFlix.onft.v1beta1.Msg/PurgeDenom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) MintONFT(ctx context.Context, in *MsgMintONFT, opts ...grpc.CallOption) (*MsgMintONFTResponse, error) { out := new(MsgMintONFTResponse) err := c.cc.Invoke(ctx, "/OmniFlix.onft.v1beta1.Msg/MintONFT", in, out, opts...) @@ -782,6 +871,7 @@ type MsgServer interface { CreateDenom(context.Context, *MsgCreateDenom) (*MsgCreateDenomResponse, error) UpdateDenom(context.Context, *MsgUpdateDenom) (*MsgUpdateDenomResponse, error) TransferDenom(context.Context, *MsgTransferDenom) (*MsgTransferDenomResponse, error) + PurgeDenom(context.Context, *MsgPurgeDenom) (*MsgPurgeDenomResponse, error) MintONFT(context.Context, *MsgMintONFT) (*MsgMintONFTResponse, error) TransferONFT(context.Context, *MsgTransferONFT) (*MsgTransferONFTResponse, error) BurnONFT(context.Context, *MsgBurnONFT) (*MsgBurnONFTResponse, error) @@ -805,6 +895,9 @@ func (*UnimplementedMsgServer) UpdateDenom(ctx context.Context, req *MsgUpdateDe func (*UnimplementedMsgServer) TransferDenom(ctx context.Context, req *MsgTransferDenom) (*MsgTransferDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TransferDenom not implemented") } +func (*UnimplementedMsgServer) PurgeDenom(ctx context.Context, req *MsgPurgeDenom) (*MsgPurgeDenomResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeDenom not implemented") +} func (*UnimplementedMsgServer) MintONFT(ctx context.Context, req *MsgMintONFT) (*MsgMintONFTResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method MintONFT not implemented") } @@ -876,6 +969,24 @@ func _Msg_TransferDenom_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +func _Msg_PurgeDenom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgPurgeDenom) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).PurgeDenom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/OmniFlix.onft.v1beta1.Msg/PurgeDenom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).PurgeDenom(ctx, req.(*MsgPurgeDenom)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_MintONFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgMintONFT) if err := dec(in); err != nil { @@ -964,6 +1075,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "TransferDenom", Handler: _Msg_TransferDenom_Handler, }, + { + MethodName: "PurgeDenom", + Handler: _Msg_PurgeDenom_Handler, + }, { MethodName: "MintONFT", Handler: _Msg_MintONFT_Handler, @@ -1220,6 +1335,66 @@ func (m *MsgUpdateDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *MsgPurgeDenom) 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 *MsgPurgeDenom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgPurgeDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintTx(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgPurgeDenomResponse) 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 *MsgPurgeDenomResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgPurgeDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *MsgTransferDenom) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1743,6 +1918,32 @@ func (m *MsgUpdateDenomResponse) Size() (n int) { return n } +func (m *MsgPurgeDenom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgPurgeDenomResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *MsgTransferDenom) Size() (n int) { if m == nil { return 0 @@ -2699,6 +2900,170 @@ func (m *MsgUpdateDenomResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgPurgeDenom) 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: MsgPurgeDenom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgPurgeDenom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = 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 *MsgPurgeDenomResponse) 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: MsgPurgeDenomResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgPurgeDenomResponse: 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 *MsgTransferDenom) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0