forked from tendermint/spn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tx.go
45 lines (37 loc) · 1.18 KB
/
tx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package cli
import (
"fmt"
"time"
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/tendermint/spn/x/launch/types"
)
var (
DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())
)
const (
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
)
// 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,
}
// this line is used by starport scaffolding # 1
cmd.AddCommand(CmdSettleRequest())
cmd.AddCommand(CmdRequestAddValidator())
cmd.AddCommand(CmdCreateChain())
cmd.AddCommand(CmdEditChain())
cmd.AddCommand(CmdRevertLaunch())
cmd.AddCommand(CmdTriggerLaunch())
cmd.AddCommand(CmdRequestAddAccount())
cmd.AddCommand(CmdRequestRemoveAccount())
cmd.AddCommand(CmdRequestRemoveValidator())
cmd.AddCommand(CmdRequestAddVestedAccount())
return cmd
}