Skip to content

Commit

Permalink
update sdk (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Aug 5, 2024
1 parent 0fe3d02 commit 61655a7
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cmd/console/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func Command_Claim_Runfunc(cmd *cobra.Command, args []string) {
}
defer cli.Close()

err = cli.InitExtrinsicsName()
err = cli.InitExtrinsicsNameForMiner()
if err != nil {
out.Err("The rpc address does not match the software version, please check the rpc address.")
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/exit.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func Command_Exit_Runfunc(cmd *cobra.Command, args []string) {
}
defer cli.Close()

err = cli.InitExtrinsicsName()
err = cli.InitExtrinsicsNameForMiner()
if err != nil {
out.Err("The rpc address does not match the software version, please check the rpc address.")
os.Exit(1)
Expand Down
4 changes: 2 additions & 2 deletions cmd/console/increase.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func increaseStakingCmd_Runfunc(cmd *cobra.Command, args []string) {
}
defer cli.Close()

err = cli.InitExtrinsicsName()
err = cli.InitExtrinsicsNameForMiner()
if err != nil {
out.Err("The rpc address does not match the software version, please check the rpc address.")
os.Exit(1)
Expand Down Expand Up @@ -152,7 +152,7 @@ func increaseSpaceCmd_Runfunc(cmd *cobra.Command, args []string) {
}
defer cli.Close()

err = cli.InitExtrinsicsName()
err = cli.InitExtrinsicsNameForMiner()
if err != nil {
out.Err("The rpc address does not match the software version, please check the rpc address.")
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func runCmd(cmd *cobra.Command, args []string) {
}
defer cli.Close()

err = cli.InitExtrinsicsName()
err = cli.InitExtrinsicsNameForMiner()
if err != nil {
out.Err("The rpc address does not match the software version, please check the rpc address.")
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func updateEarningsAccount(cmd *cobra.Command) {
}
defer cli.Close()

err = cli.InitExtrinsicsName()
err = cli.InitExtrinsicsNameForMiner()
if err != nil {
out.Err("The rpc address does not match the software version, please check the rpc address.")
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/withdraw.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Command_Withdraw_Runfunc(cmd *cobra.Command, args []string) {
}
defer cli.Close()

err = cli.InitExtrinsicsName()
err = cli.InitExtrinsicsNameForMiner()
if err != nil {
out.Err("The rpc address does not match the software version, please check the rpc address.")
os.Exit(1)
Expand Down
12 changes: 5 additions & 7 deletions configs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,24 @@ package configs
import "time"

const (
//
TokenTCESS = 1000000000000000000
// the time to wait for the event, in seconds
TimeToWaitEvent = time.Duration(time.Second * 30)
// Default config file
// default config file
DefaultConfigFile = "conf.yaml"
//
DefaultWorkspace = "/"
//
DefaultServicePort = 4001
//
DefaultRpcAddr = "wss://testnet-rpc.cess.cloud/ws/"

DefaultRpcAddr = "wss://testnet-rpc.cess.network/ws/"
//
DefaultBootNodeAddr = "_dnsaddr.boot-miner-testnet.cess.cloud"
DefaultBootNodeAddr = "_dnsaddr.boot-miner-testnet.cess.network"
//
DefaultDeossAddr = "https://deoss-pub-gateway.cess.cloud/"

DefaultDeossAddr = "https://deoss-pub-gateway.cess.network/"
//
MinTagFileSize = 600000

//
FileMode = 0755
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
toolchain go1.21.12

require (
github.com/CESSProject/cess-go-sdk v0.6.1
github.com/CESSProject/cess-go-sdk v0.6.2-0.20240805070224-ca5be6963b49
github.com/CESSProject/cess_pois v0.5.15
github.com/CESSProject/p2p-go v0.4.0
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D
git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/CESSProject/cess-go-sdk v0.6.1 h1:ZjrpoSjBbLv+Eqpsq03qEQkehL3hG/AQuVPEk7cUah0=
github.com/CESSProject/cess-go-sdk v0.6.1/go.mod h1:L5IDeS2ydsdgtdybzhWk9fIdBsDkU2XrQyo5mrWHkdQ=
github.com/CESSProject/cess-go-sdk v0.6.2-0.20240805070224-ca5be6963b49 h1:6a58IgBudMSK0YsRvdxDsNgAPqyowfrrgKCXfQ5IP6I=
github.com/CESSProject/cess-go-sdk v0.6.2-0.20240805070224-ca5be6963b49/go.mod h1:L5IDeS2ydsdgtdybzhWk9fIdBsDkU2XrQyo5mrWHkdQ=
github.com/CESSProject/cess_pois v0.5.15 h1:oQH8xEtxVzB+SeI+gNS6iSeFgjb/xDAsmgyuoF3al28=
github.com/CESSProject/cess_pois v0.5.15/go.mod h1:rztEZjjG+MbKzVgh5WtQcZc/7ZDkBvDNABc7Em8BKPc=
github.com/CESSProject/p2p-go v0.4.0 h1:Eh8SJ6aFoLLsl0rr9+bmgs82fi/nHHa8xWF58IcsnLo=
Expand Down
8 changes: 5 additions & 3 deletions pkg/confile/confile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ import (
const DefaultProfile = "conf.yaml"
const TempleteProfile = `# The rpc endpoint of the chain node
Rpc:
- "wss://testnet-rpc.cess.cloud/ws/"
# testnet
- "wss://testnet-rpc.cess.network/ws/"
# Bootstrap Nodes
Boot:
- "_dnsaddr.boot-miner-testnet.cess.cloud"
# testnet
- "_dnsaddr.boot-miner-testnet.cess.network"
# Signature account mnemonic
Mnemonic: ""
# Staking account
Expand All @@ -36,7 +38,7 @@ StakingAcc: ""
# earnings account
EarningsAcc: ""
# Service workspace
Workspace: /
Workspace: ""
# P2P communication port
Port: 4001
# Maximum space used, the unit is GiB
Expand Down

0 comments on commit 61655a7

Please sign in to comment.