File tree Expand file tree Collapse file tree 7 files changed +34
-34
lines changed Expand file tree Collapse file tree 7 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -61,17 +61,17 @@ func claimCmdFunc(cmd *cobra.Command, args []string) {
61
61
os .Exit (1 )
62
62
}
63
63
64
- txhash , _ , err := cli .ReceiveReward ()
64
+ blockhash , err := cli .ReceiveReward ()
65
65
if err != nil {
66
66
out .Err (err .Error ())
67
- if txhash == "" {
67
+ if blockhash == "" {
68
68
out .Err (err .Error ())
69
69
os .Exit (1 )
70
70
}
71
- out .Warn (txhash )
71
+ out .Warn (blockhash )
72
72
os .Exit (0 )
73
73
}
74
74
75
- out .Ok (txhash )
75
+ out .Ok (blockhash )
76
76
os .Exit (0 )
77
77
}
Original file line number Diff line number Diff line change @@ -59,16 +59,16 @@ func exitCmdFunc(cmd *cobra.Command, args []string) {
59
59
os .Exit (1 )
60
60
}
61
61
62
- txhash , err := cli .MinerExitPrep ()
62
+ blockhash , err := cli .MinerExitPrep ()
63
63
if err != nil {
64
- if txhash == "" {
64
+ if blockhash == "" {
65
65
out .Err (err .Error ())
66
66
os .Exit (1 )
67
67
}
68
- out .Warn (txhash )
68
+ out .Warn (blockhash )
69
69
os .Exit (0 )
70
70
}
71
71
72
- out .Ok (txhash )
72
+ out .Ok (blockhash )
73
73
os .Exit (0 )
74
74
}
Original file line number Diff line number Diff line change @@ -102,17 +102,17 @@ func incstakingCmdFunc(cmd *cobra.Command, args []string) {
102
102
os .Exit (1 )
103
103
}
104
104
addStaking := os .Args [3 ] + chain .TokenPrecision_CESS
105
- txhash , err := cli .IncreaseCollateral (cli .GetSignatureAccPulickey (), addStaking )
105
+ blockhash , err := cli .IncreaseCollateral (cli .GetSignatureAccPulickey (), addStaking )
106
106
if err != nil {
107
- if txhash == "" {
107
+ if blockhash == "" {
108
108
out .Err (err .Error ())
109
109
os .Exit (1 )
110
110
}
111
- out .Warn (txhash )
111
+ out .Warn (blockhash )
112
112
os .Exit (0 )
113
113
}
114
114
115
- out .Ok (txhash )
115
+ out .Ok (blockhash )
116
116
os .Exit (0 )
117
117
}
118
118
@@ -198,16 +198,16 @@ func incspaceCmdFunc(cmd *cobra.Command, args []string) {
198
198
}
199
199
}
200
200
201
- txhash , err := cli .IncreaseDeclarationSpace (uint32 (space ))
201
+ blockhash , err := cli .IncreaseDeclarationSpace (uint32 (space ))
202
202
if err != nil {
203
- if txhash == "" {
203
+ if blockhash == "" {
204
204
out .Err (err .Error ())
205
205
os .Exit (1 )
206
206
}
207
- out .Warn (txhash )
207
+ out .Warn (blockhash )
208
208
os .Exit (0 )
209
209
}
210
210
211
- out .Ok (txhash )
211
+ out .Ok (blockhash )
212
212
os .Exit (0 )
213
213
}
Original file line number Diff line number Diff line change @@ -93,17 +93,17 @@ func updearningsCmdFunc(cmd *cobra.Command, args []string) {
93
93
os .Exit (1 )
94
94
}
95
95
96
- txhash , err := cli .UpdateBeneficiary (os .Args [3 ])
96
+ blockhash , err := cli .UpdateBeneficiary (os .Args [3 ])
97
97
if err != nil {
98
- if txhash == "" {
98
+ if blockhash == "" {
99
99
out .Err (err .Error ())
100
100
os .Exit (1 )
101
101
}
102
- out .Warn (txhash )
102
+ out .Warn (blockhash )
103
103
os .Exit (0 )
104
104
}
105
105
106
- out .Ok (txhash )
106
+ out .Ok (blockhash )
107
107
os .Exit (0 )
108
108
}
109
109
@@ -143,16 +143,16 @@ func updendpointCmdFunc(cmd *cobra.Command, args []string) {
143
143
os .Exit (1 )
144
144
}
145
145
146
- txhash , err := cli .UpdateSminerEndpoint ([]byte (os .Args [3 ]))
146
+ blockhash , err := cli .UpdateSminerEndpoint ([]byte (os .Args [3 ]))
147
147
if err != nil {
148
- if txhash == "" {
148
+ if blockhash == "" {
149
149
out .Err (err .Error ())
150
150
os .Exit (1 )
151
151
}
152
- out .Warn (txhash )
152
+ out .Warn (blockhash )
153
153
os .Exit (0 )
154
154
}
155
155
156
- out .Ok (txhash )
156
+ out .Ok (blockhash )
157
157
os .Exit (0 )
158
158
}
Original file line number Diff line number Diff line change @@ -61,16 +61,16 @@ func withdrawCmdFunc(cmd *cobra.Command, args []string) {
61
61
os .Exit (1 )
62
62
}
63
63
64
- txhash , err := cli .MinerWithdraw ()
64
+ blockhash , err := cli .MinerWithdraw ()
65
65
if err != nil {
66
- if txhash == "" {
66
+ if blockhash == "" {
67
67
out .Err (err .Error ())
68
68
os .Exit (1 )
69
69
}
70
- out .Warn (txhash )
70
+ out .Warn (blockhash )
71
71
os .Exit (0 )
72
72
}
73
73
74
- out .Ok (txhash )
74
+ out .Ok (blockhash )
75
75
os .Exit (0 )
76
76
}
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ toolchain go1.22.10
6
6
7
7
require (
8
8
github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4
9
- github.com/CESSProject/cess-go-sdk v0.7.0
10
- github.com/CESSProject/cess_pois v0.6.0
9
+ github.com/CESSProject/cess-go-sdk v0.7.1-0.20250122034116-9eb28f101114
10
+ github.com/CESSProject/cess_pois v0.6.1-0.20250121033243-b6cc55aef221
11
11
github.com/gin-contrib/cors v1.7.1
12
12
github.com/gin-gonic/gin v1.9.1
13
13
github.com/google/uuid v1.6.0
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4 h1:Inr2ivit8eKF5uWM+ed3P+
2
2
github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4 /go.mod h1:qbIMzJc2bc/LP0Nzrw6187sgn7fCXkFYfJwPgfRcBSk =
3
3
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ =
4
4
github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
5
- github.com/CESSProject/cess-go-sdk v0.7.0 h1:7h7oQiiujRITPz9wlWnc2aVQ2MwHqyrnlndxSe5aM1s =
6
- github.com/CESSProject/cess-go-sdk v0.7.0 /go.mod h1:1YUZTDA0kpuYBkaisXozEw0ueN4yLA+v1xGXxm/yNEo =
7
- github.com/CESSProject/cess_pois v0.6.0 h1:OVy4B2N5MVbFryaQvdjXf9MnIVuoN1hZviKd+yCOF3I =
8
- github.com/CESSProject/cess_pois v0.6.0 /go.mod h1:rztEZjjG+MbKzVgh5WtQcZc/7ZDkBvDNABc7Em8BKPc =
5
+ github.com/CESSProject/cess-go-sdk v0.7.1-0.20250122034116-9eb28f101114 h1:5NIxgHXLFFilHSInJqShgMwQe6wUmu95bpNjQrIffX8 =
6
+ github.com/CESSProject/cess-go-sdk v0.7.1-0.20250122034116-9eb28f101114 /go.mod h1:1YUZTDA0kpuYBkaisXozEw0ueN4yLA+v1xGXxm/yNEo =
7
+ github.com/CESSProject/cess_pois v0.6.1-0.20250121033243-b6cc55aef221 h1:IL73uYiYU7OHFiQ4EJUwaimzo/5ONs7/qwP5856mO1M =
8
+ github.com/CESSProject/cess_pois v0.6.1-0.20250121033243-b6cc55aef221 /go.mod h1:rztEZjjG+MbKzVgh5WtQcZc/7ZDkBvDNABc7Em8BKPc =
9
9
github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRrLeDnvGIM =
10
10
github.com/ChainSafe/go-schnorrkel v1.0.0 /go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z7vcchBSbMBEhCw4 =
11
11
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY =
You can’t perform that action at this time.
0 commit comments