Skip to content

Commit

Permalink
update sdk, version, Dockerfile (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Jan 17, 2025
1 parent 0047c17 commit 562235c
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 81 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine3.18 AS builder
FROM golang:1.22-alpine3.18 AS builder

ARG go_proxy
ARG TARGETARCH
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/stat.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"math/big"
"os"

"github.com/AstaFrode/go-substrate-rpc-client/v4/types"
cess "github.com/CESSProject/cess-go-sdk"
"github.com/CESSProject/cess-go-sdk/chain"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/CESSProject/cess-miner/configs"
out "github.com/CESSProject/cess-miner/pkg/fout"
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions configs/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ const (
// Name is the name of the program
Name = "miner"
// version
Version = "v0.7.18 premainnet"
Version = "v0.8.0"
// Description is the description of the program
Description = "Storage miner implementation in CESS networks"
// NameSpace is the cached namespace
NameSpaces = Name
)

// Chain version
var ChainVersionStr = [3]string{"0", "7", "8"}
var ChainVersionInt = [3]int{0, 7, 8}
var ChainVersionStr = [3]string{"0", "7", "9"}
var ChainVersionInt = [3]int{0, 7, 9}

var cp *x509.CertPool

Expand Down
40 changes: 18 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/CESSProject/cess-miner

go 1.21
go 1.22

toolchain go1.21.12
toolchain go1.22.10

require (
github.com/CESSProject/cess-go-sdk v0.6.4-0.20241212035336-417e552e9bca
github.com/AstaFrode/go-substrate-rpc-client/v4 v4.2.4
github.com/CESSProject/cess-go-sdk v0.7.0
github.com/CESSProject/cess_pois v0.6.0
github.com/centrifuge/go-substrate-rpc-client/v4 v4.2.1
github.com/gin-contrib/cors v1.7.1
github.com/gin-gonic/gin v1.9.1
github.com/google/uuid v1.6.0
Expand All @@ -19,7 +19,7 @@ require (
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a
go.uber.org/zap v1.27.0
google.golang.org/grpc v1.65.0
Expand All @@ -29,8 +29,6 @@ require (
require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 // indirect
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect
github.com/bytedance/sonic v1.11.3 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
Expand All @@ -41,22 +39,22 @@ require (
github.com/decred/base58 v1.0.4 // indirect
github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/ethereum/go-ethereum v1.10.20 // indirect
github.com/ethereum/go-ethereum v1.14.12 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-ping/ping v1.1.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-ping/ping v1.2.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.19.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/gtank/merlin v0.1.1 // indirect
github.com/gtank/ristretto255 v0.1.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/holiman/uint256 v1.3.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/ipfs/go-cid v0.4.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
Expand Down Expand Up @@ -84,35 +82,33 @@ require (
github.com/pixelbender/go-traceroute v0.0.0-20190414152342-e631ab553a80 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rs/cors v1.8.2 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/samber/lo v1.39.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/vedhavyas/go-subkey/v2 v2.0.0 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/arch v0.7.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/term v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
Expand Down
Loading

0 comments on commit 562235c

Please sign in to comment.