MCPcopy Create free account
hub / github.com/Sifchain/sifnode / GetTxCmd

Function GetTxCmd

x/margin/client/cli/tx.go:19–37  ·  view source on GitHub ↗

GetTxCmd returns the transaction commands for this module

()

Source from the content-addressed store, hash-verified

17
18// GetTxCmd returns the transaction commands for this module
19func GetTxCmd() *cobra.Command {
20 cmd := &cobra.Command{
21 Use: types.ModuleName,
22 Short: "Margin transactions sub-commands",
23 }
24 cmd.AddCommand(
25 GetOpenCmd(),
26 GetCloseCmd(),
27 GetForceCloseCmd(),
28 GetUpdateParamsCmd(),
29 GetUpdatePoolsCmd(),
30 GetUpdateRowanCollateralCmd(),
31 GetDewhitelistCmd(),
32 GetWhitelistCmd(),
33 GetAdminCloseCmd(),
34 GetAdminCloseAllCmd(),
35 )
36 return cmd
37}
38
39func GetOpenCmd() *cobra.Command {
40 cmd := &cobra.Command{

Callers 1

GetTxCmdMethod · 0.92

Calls 10

GetOpenCmdFunction · 0.85
GetCloseCmdFunction · 0.85
GetForceCloseCmdFunction · 0.85
GetUpdateParamsCmdFunction · 0.85
GetUpdatePoolsCmdFunction · 0.85
GetDewhitelistCmdFunction · 0.85
GetWhitelistCmdFunction · 0.85
GetAdminCloseCmdFunction · 0.85
GetAdminCloseAllCmdFunction · 0.85

Tested by

no test coverage detected