Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Aug 1, 2023
1 parent 30a011b commit 8e3b7a0
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 593 deletions.
1 change: 1 addition & 0 deletions types/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (bm BasicManager) RegisterInterfaces(registry codectypes.InterfaceRegistry)
for _, m := range bm {
m.RegisterInterfaces(registry)
}

}

// DefaultGenesis provides default genesis information for all modules
Expand Down
214 changes: 0 additions & 214 deletions x/verification/client/cli/query.go

This file was deleted.

18 changes: 4 additions & 14 deletions x/verification/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cli
import (
"github.com/spf13/cobra"

"encoding/base64"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
Expand All @@ -14,7 +13,7 @@ import (
func NewTxCmd() *cobra.Command {
txCmd := &cobra.Command{
Use: types.ModuleName,
Short: "Bank transaction subcommands",
Short: "Verification transaction subcommands",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand All @@ -28,8 +27,8 @@ func NewTxCmd() *cobra.Command {
// NewSendTxCmd returns a CLI command handler for creating a MsgSend transaction.
func NewSendTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "verification [from_key_or_address] [to_address] [amount]",
Short: `Send funds from one account to another. Note, the'--from' flag is
Use: "send [from_key_or_address] [to_address] [amount]",
Short: `send verification message from account with arbitrery data. Note, the'--from' flag is
ignored as it is implied from [from_key_or_address].`,
Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) error {
Expand All @@ -39,18 +38,9 @@ ignored as it is implied from [from_key_or_address].`,
return err
}

decoded_data, err := base64.StdEncoding.DecodeString(args[1])
if err != nil {
return err
}

msg := &types.MsgSignData{
FromAddress: clientCtx.GetFromAddress().String(),
Data: decoded_data,
}

if err := msg.ValidateBasic(); err != nil {
return err
Data: []byte("abc"),
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
Expand Down
118 changes: 0 additions & 118 deletions x/verification/client/rest/query.go

This file was deleted.

Loading

0 comments on commit 8e3b7a0

Please sign in to comment.