-
Notifications
You must be signed in to change notification settings - Fork 4
/
cmd.go
64 lines (57 loc) · 1.52 KB
/
cmd.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package cli
import (
"fmt"
"github.com/Carina-labs/nova/x/gal/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
)
// GetTxCmd creates and returns the gal tx command
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(
txDepositCmd(),
txDelegateCmd(),
txWithdrawCmd(),
txUndelegateRequestCmd(),
txUndelegateCmd(),
txClaimSnAssetCmd(),
txIcaWithdrawCmd(),
)
return cmd
}
// GetQueryCmd creates and returns the gal query command
func GetQueryCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: "Querying commands for the gal module",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
cmd.AddCommand(
queryParams(),
queryEstimatesnAsset(),
queryClaimableAmount(),
queryDepositAmount(),
queryPendingWithdrawals(),
queryActiveWithdrawal(),
queryDepositRecords(),
queryDelegateRecords(),
queryUndelegateRecords(),
queryWithdrawRecords(),
queryDelegateVersion(),
queryUndelegateVersion(),
queryWithdrawVersion(),
queryCurrentDelegateVersion(),
queryCurrentUndelegateVersion(),
queryCurrentWithdrawVersion(),
queryTotalSnAssetSupply(),
)
return cmd
}