mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
23 lines
555 B
Go
23 lines
555 B
Go
|
package cli
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/0glabs/0g-chain/x/das/v1/types"
|
||
|
"github.com/cosmos/cosmos-sdk/client"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// GetTxCmd returns the transaction commands for this module
|
||
|
func GetTxCmd() *cobra.Command {
|
||
|
cmd := &cobra.Command{
|
||
|
Use: types.ModuleName,
|
||
|
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
|
||
|
DisableFlagParsing: true,
|
||
|
SuggestionsMinimumDistance: 2,
|
||
|
RunE: client.ValidateCmd,
|
||
|
}
|
||
|
cmd.AddCommand()
|
||
|
return cmd
|
||
|
}
|