2022-08-25 16:51:14 -07:00
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
|
|
// "github.com/cosmos/cosmos-sdk/client/flags"
|
2022-09-06 15:18:09 -07:00
|
|
|
"colinear/x/colinearcore/types"
|
2022-08-25 16:51:14 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
|
|
|
|
listSeparator = ","
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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,
|
|
|
|
}
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
cmd.AddCommand(CmdNewAuction())
|
2022-08-28 10:57:06 -07:00
|
|
|
cmd.AddCommand(CmdNewBid())
|
2022-09-07 13:25:57 -07:00
|
|
|
cmd.AddCommand(CmdLockFunds())
|
2022-09-08 14:49:56 -07:00
|
|
|
cmd.AddCommand(CmdUnlockFunds())
|
2022-09-08 16:29:08 -07:00
|
|
|
cmd.AddCommand(CmdUnlockAllFunds())
|
2022-09-14 14:36:30 -07:00
|
|
|
cmd.AddCommand(CmdClaimFunds())
|
2022-08-25 16:51:14 -07:00
|
|
|
// this line is used by starport scaffolding # 1
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|