mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-28 09:15:24 +00:00
29 lines
696 B
Go
29 lines
696 B
Go
|
package cli
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
|
||
|
"github.com/cosmos/cosmos-sdk/client"
|
||
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||
|
"github.com/cosmos/cosmos-sdk/codec"
|
||
|
|
||
|
"github.com/kava-labs/kava/x/swap/types"
|
||
|
)
|
||
|
|
||
|
// GetTxCmd returns the transaction commands for this module
|
||
|
func GetTxCmd(cdc *codec.Codec) *cobra.Command {
|
||
|
swapTxCmd := &cobra.Command{
|
||
|
Use: types.ModuleName,
|
||
|
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
|
||
|
DisableFlagParsing: true,
|
||
|
SuggestionsMinimumDistance: 2,
|
||
|
RunE: client.ValidateCmd,
|
||
|
}
|
||
|
|
||
|
swapTxCmd.AddCommand(flags.PostCommands()...)
|
||
|
|
||
|
return swapTxCmd
|
||
|
}
|