-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathtx.go
36 lines (30 loc) · 846 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
package cli
import (
"fmt"
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
"github.com/zeta-chain/zetacore/x/fungible/types"
)
// 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(
CmdDeploySystemContracts(),
CmdDeployFungibleCoinZRC4(),
CmdRemoveForeignCoin(),
CmdUpdateZRC20LiquidityCap(),
CmdUpdateContractBytecode(),
CmdUpdateSystemContract(),
CmdPauseZRC20(),
CmdUnpauseZRC20(),
CmdUpdateZRC20WithdrawFee(),
CmdUpdateGatewayContract(),
)
return cmd
}