You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/cli/admin.go
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ import (
8
8
"github.com/canopy-network/canopy/cmd/rpc"
9
9
"github.com/canopy-network/canopy/lib"
10
10
"github.com/canopy-network/canopy/lib/crypto"
11
+
"github.com/ethereum/go-ethereum/common"
11
12
"github.com/spf13/cobra"
12
13
"golang.org/x/term"
13
14
)
@@ -20,6 +21,7 @@ var adminCmd = &cobra.Command{
20
21
var (
21
22
pwdstring
22
23
nickstring
24
+
datastring
23
25
feeuint64
24
26
delegatebool
25
27
earlyWithdrawalbool
@@ -35,6 +37,7 @@ func init() {
35
37
txEditStakeCmd.PersistentFlags().BoolVar(&delegate, "delegate", false, "delegate tokens to committee(s) only without actual validator operation")
36
38
txStakeCmd.PersistentFlags().BoolVar(&earlyWithdrawal, "early-withdrawal", false, "immediately withdrawal any rewards (with penalty) directly to output address instead of auto-compounding directly to stake")
37
39
txEditStakeCmd.PersistentFlags().BoolVar(&earlyWithdrawal, "early-withdrawal", false, "immediately withdrawal any rewards (with penalty) directly to output address instead of auto-compounding directly to stake")
40
+
txCreateOrderCmd.PersistentFlags().StringVar(&data, "data", "", "data for create order")
0 commit comments