-
Notifications
You must be signed in to change notification settings - Fork 11
/
tx.go
38 lines (33 loc) · 1.07 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
package cli
import (
"fmt"
"github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/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(CmdUpdateMasterMinter())
cmd.AddCommand(CmdUpdatePauser())
cmd.AddCommand(CmdUpdateBlacklister())
cmd.AddCommand(CmdUpdateOwner())
cmd.AddCommand(CmdAcceptOwner())
cmd.AddCommand(CmdConfigureMinter())
cmd.AddCommand(CmdRemoveMinter())
cmd.AddCommand(CmdMint())
cmd.AddCommand(CmdBurn())
cmd.AddCommand(CmdBlacklist())
cmd.AddCommand(CmdUnblacklist())
cmd.AddCommand(CmdPause())
cmd.AddCommand(CmdUnpause())
cmd.AddCommand(CmdConfigureMinterController())
cmd.AddCommand(CmdRemoveMinterController())
return cmd
}