-
Notifications
You must be signed in to change notification settings - Fork 44
/
tx.go
38 lines (32 loc) · 970 Bytes
/
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
package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
"github.com/desmos-labs/desmos/v7/x/profiles/types"
)
// DONTCOVER
// Tests will use single commands and not the global tx one
// NewTxCmd returns a new command allowing to perform profiles transactions
func NewTxCmd() *cobra.Command {
profileTxCmd := &cobra.Command{
Use: types.ModuleName,
Short: "Profiles transaction subcommands",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
profileTxCmd.AddCommand(
GetCmdSaveProfile(),
GetCmdDeleteProfile(),
GetCmdRequestDTagTransfer(),
GetCmdAcceptDTagTransfer(),
GetCmdRefuseDTagTransfer(),
GetCmdCancelDTagTransfer(),
GetCmdLinkChainAccount(),
GetCmdUnlinkChainAccount(),
GetCmdSetDefaultExternalAddress(),
GetCmdLinkApplication(),
GetCmdUnlinkApplication(),
)
return profileTxCmd
}