mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
27 lines
571 B
Go
27 lines
571 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
|
|
"github.com/sonr-io/sonr/x/dwn/types"
|
|
)
|
|
|
|
// NewTxCmd returns the root transaction command for the DWN module
|
|
func NewTxCmd() *cobra.Command {
|
|
txCmd := &cobra.Command{
|
|
Use: types.ModuleName,
|
|
Short: "Transaction commands for " + types.ModuleName,
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
txCmd.AddCommand(
|
|
GetWalletTxCommands(),
|
|
)
|
|
|
|
return txCmd
|
|
}
|