Skip to content

Commit ed35ee3

Browse files
authored
update sdk and pois (#309)
1 parent 562235c commit ed35ee3

File tree

7 files changed

+34
-34
lines changed

7 files changed

+34
-34
lines changed

cmd/console/claim.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ func claimCmdFunc(cmd *cobra.Command, args []string) {
6161
os.Exit(1)
6262
}
6363

64-
txhash, _, err := cli.ReceiveReward()
64+
blockhash, err := cli.ReceiveReward()
6565
if err != nil {
6666
out.Err(err.Error())
67-
if txhash == "" {
67+
if blockhash == "" {
6868
out.Err(err.Error())
6969
os.Exit(1)
7070
}
71-
out.Warn(txhash)
71+
out.Warn(blockhash)
7272
os.Exit(0)
7373
}
7474

75-
out.Ok(txhash)
75+
out.Ok(blockhash)
7676
os.Exit(0)
7777
}

cmd/console/exit.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ func exitCmdFunc(cmd *cobra.Command, args []string) {
5959
os.Exit(1)
6060
}
6161

62-
txhash, err := cli.MinerExitPrep()
62+
blockhash, err := cli.MinerExitPrep()
6363
if err != nil {
64-
if txhash == "" {
64+
if blockhash == "" {
6565
out.Err(err.Error())
6666
os.Exit(1)
6767
}
68-
out.Warn(txhash)
68+
out.Warn(blockhash)
6969
os.Exit(0)
7070
}
7171

72-
out.Ok(txhash)
72+
out.Ok(blockhash)
7373
os.Exit(0)
7474
}

cmd/console/increase.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ func incstakingCmdFunc(cmd *cobra.Command, args []string) {
102102
os.Exit(1)
103103
}
104104
addStaking := os.Args[3] + chain.TokenPrecision_CESS
105-
txhash, err := cli.IncreaseCollateral(cli.GetSignatureAccPulickey(), addStaking)
105+
blockhash, err := cli.IncreaseCollateral(cli.GetSignatureAccPulickey(), addStaking)
106106
if err != nil {
107-
if txhash == "" {
107+
if blockhash == "" {
108108
out.Err(err.Error())
109109
os.Exit(1)
110110
}
111-
out.Warn(txhash)
111+
out.Warn(blockhash)
112112
os.Exit(0)
113113
}
114114

115-
out.Ok(txhash)
115+
out.Ok(blockhash)
116116
os.Exit(0)
117117
}
118118

@@ -198,16 +198,16 @@ func incspaceCmdFunc(cmd *cobra.Command, args []string) {
198198
}
199199
}
200200

201-
txhash, err := cli.IncreaseDeclarationSpace(uint32(space))
201+
blockhash, err := cli.IncreaseDeclarationSpace(uint32(space))
202202
if err != nil {
203-
if txhash == "" {
203+
if blockhash == "" {
204204
out.Err(err.Error())
205205
os.Exit(1)
206206
}
207-
out.Warn(txhash)
207+
out.Warn(blockhash)
208208
os.Exit(0)
209209
}
210210

211-
out.Ok(txhash)
211+
out.Ok(blockhash)
212212
os.Exit(0)
213213
}

cmd/console/update.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ func updearningsCmdFunc(cmd *cobra.Command, args []string) {
9393
os.Exit(1)
9494
}
9595

96-
txhash, err := cli.UpdateBeneficiary(os.Args[3])
96+
blockhash, err := cli.UpdateBeneficiary(os.Args[3])
9797
if err != nil {
98-
if txhash == "" {
98+
if blockhash == "" {
9999
out.Err(err.Error())
100100
os.Exit(1)
101101
}
102-
out.Warn(txhash)
102+
out.Warn(blockhash)
103103
os.Exit(0)
104104
}
105105

106-
out.Ok(txhash)
106+
out.Ok(blockhash)
107107
os.Exit(0)
108108
}
109109

@@ -143,16 +143,16 @@ func updendpointCmdFunc(cmd *cobra.Command, args []string) {
143143
os.Exit(1)
144144
}
145145

146-
txhash, err := cli.UpdateSminerEndpoint([]byte(os.Args[3]))
146+
blockhash, err := cli.UpdateSminerEndpoint([]byte(os.Args[3]))
147147
if err != nil {
148-
if txhash == "" {
148+
if blockhash == "" {
149149
out.Err(err.Error())
150150
os.Exit(1)
151151
}
152-
out.Warn(txhash)
152+
out.Warn(blockhash)
153153
os.Exit(0)
154154
}
155155

156-
out.Ok(txhash)
156+
out.Ok(blockhash)
157157
os.Exit(0)
158158
}

cmd/console/withdraw.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ func withdrawCmdFunc(cmd *cobra.Command, args []string) {
6161
os.Exit(1)
6262
}
6363

64-
txhash, err := cli.MinerWithdraw()
64+
blockhash, err := cli.MinerWithdraw()
6565
if err != nil {
66-
if txhash == "" {
66+
if blockhash == "" {
6767
out.Err(err.Error())
6868
os.Exit(1)
6969
}
70-
out.Warn(txhash)
70+
out.Warn(blockhash)
7171
os.Exit(0)
7272
}
7373

74-
out.Ok(txhash)
74+
out.Ok(blockhash)
7575
os.Exit(0)
7676
}

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ toolchain go1.22.10
66

77
require (
88
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
1111
github.com/gin-contrib/cors v1.7.1
1212
github.com/gin-gonic/gin v1.9.1
1313
github.com/google/uuid v1.6.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4 h1:Inr2ivit8eKF5uWM+ed3P+
22
github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4/go.mod h1:qbIMzJc2bc/LP0Nzrw6187sgn7fCXkFYfJwPgfRcBSk=
33
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
44
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=
99
github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRrLeDnvGIM=
1010
github.com/ChainSafe/go-schnorrkel v1.0.0/go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z7vcchBSbMBEhCw4=
1111
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=

0 commit comments

Comments
 (0)