Skip to content

Commit

Permalink
updade sdk and p2p (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Dec 29, 2023
1 parent 4c8cfce commit 6c03763
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
cess "github.com/CESSProject/cess-go-sdk"
sconfig "github.com/CESSProject/cess-go-sdk/config"
"github.com/CESSProject/cess-go-sdk/core/pattern"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
p2pgo "github.com/CESSProject/p2p-go"
"github.com/CESSProject/p2p-go/config"
"github.com/CESSProject/p2p-go/core"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.20

require (
github.com/AstaFrode/go-libp2p v0.26.4-0.20231113143058-912296254d44
github.com/CESSProject/cess-go-sdk v0.4.11
github.com/CESSProject/cess-go-sdk v0.4.16
github.com/CESSProject/go-keyring v0.0.0-20220614131247-ee3a8da30fde
github.com/CESSProject/p2p-go v0.2.8
github.com/CESSProject/p2p-go v0.2.10
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
github.com/cbergoon/merkletree v0.2.0
github.com/centrifuge/go-substrate-rpc-client/v4 v4.1.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ github.com/AstaFrode/go-peertaskqueue v0.8.2-0.20231108073729-990e433425a4/go.mo
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/CESSProject/cess-go-sdk v0.4.11 h1:LP9zwF4G5dl8s8nnNshuxF/zo5wOMyujLSR4x2WF7lQ=
github.com/CESSProject/cess-go-sdk v0.4.11/go.mod h1:0fPeRJ57+WooVOEMwynC4gYjWunXYMYN/+jAMvmCqAk=
github.com/CESSProject/cess-go-sdk v0.4.16 h1:ulUkcLuPkdys/v6ydR38xHG959QMrwllvvI/pfIbOto=
github.com/CESSProject/cess-go-sdk v0.4.16/go.mod h1:0fPeRJ57+WooVOEMwynC4gYjWunXYMYN/+jAMvmCqAk=
github.com/CESSProject/go-keyring v0.0.0-20220614131247-ee3a8da30fde h1:5MDRjjtg6PEhqyVjupwaapN96cOZiddOGAYwKQeaTu0=
github.com/CESSProject/go-keyring v0.0.0-20220614131247-ee3a8da30fde/go.mod h1:RUXBd3ROP98MYepEEa0Y0l/T0vQlIKqFJxI/ocdnRLM=
github.com/CESSProject/p2p-go v0.2.8 h1:gmskWAxkkZlLh+pjBtcdP1iIJZZmup8mXDSPj8Co3i8=
github.com/CESSProject/p2p-go v0.2.8/go.mod h1:SMwJt5Zpk98k+d2J5gsN+0Forr7MbqOYWbHLd3mBLrI=
github.com/CESSProject/p2p-go v0.2.10 h1:BWx0NaucjmINMfSAc4RgvJzTDHdsDwxty+unF2bLtE4=
github.com/CESSProject/p2p-go v0.2.10/go.mod h1:SMwJt5Zpk98k+d2J5gsN+0Forr7MbqOYWbHLd3mBLrI=
github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRrLeDnvGIM=
github.com/ChainSafe/go-schnorrkel v1.0.0/go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z7vcchBSbMBEhCw4=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8=
Expand Down
2 changes: 1 addition & 1 deletion node/authHandle.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"

"github.com/CESSProject/DeOSS/configs"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/CESSProject/go-keyring"
jwt "github.com/dgrijalva/jwt-go"
"github.com/gin-gonic/gin"
Expand Down
2 changes: 1 addition & 1 deletion node/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"strings"

"github.com/CESSProject/DeOSS/configs"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/CESSProject/go-keyring"
jwt "github.com/dgrijalva/jwt-go"
"github.com/mr-tron/base58"
Expand Down
2 changes: 1 addition & 1 deletion node/delHandle.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"path/filepath"

"github.com/CESSProject/cess-go-sdk/core/pattern"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion node/getHandle.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/CESSProject/cess-go-sdk/core/crypte"
"github.com/CESSProject/cess-go-sdk/core/erasure"
"github.com/CESSProject/cess-go-sdk/core/pattern"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/gin-gonic/gin"
"github.com/mr-tron/base58"
)
Expand Down
2 changes: 1 addition & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/CESSProject/DeOSS/pkg/utils"
"github.com/CESSProject/cess-go-sdk/core/pattern"
"github.com/CESSProject/cess-go-sdk/core/sdk"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/CESSProject/p2p-go/core"
"github.com/CESSProject/p2p-go/out"
"github.com/gin-contrib/cors"
Expand Down
2 changes: 1 addition & 1 deletion node/postRestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"

"github.com/CESSProject/cess-go-sdk/core/pattern"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion node/putHandle.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/CESSProject/DeOSS/pkg/utils"
"github.com/CESSProject/cess-go-sdk/core/pattern"
"github.com/CESSProject/cess-go-sdk/core/process"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion node/syncFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/CESSProject/DeOSS/pkg/db"
"github.com/CESSProject/DeOSS/pkg/utils"
"github.com/CESSProject/cess-go-sdk/core/pattern"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/CESSProject/p2p-go/core"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
Expand Down
2 changes: 1 addition & 1 deletion node/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/CESSProject/DeOSS/pkg/utils"
"github.com/CESSProject/cess-go-sdk/core/pattern"
"github.com/CESSProject/cess-go-sdk/core/process"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/mr-tron/base58"
"github.com/pkg/errors"
)
Expand Down
5 changes: 2 additions & 3 deletions pkg/confile/confile.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import (

"github.com/CESSProject/DeOSS/configs"
"github.com/CESSProject/cess-go-sdk/core/pattern"
"github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/core/utils"
sutils "github.com/CESSProject/cess-go-sdk/utils"
"github.com/centrifuge/go-substrate-rpc-client/v4/signature"
"github.com/pkg/errors"
"github.com/spf13/viper"
Expand Down Expand Up @@ -134,7 +133,7 @@ func (c *confile) Parse(fpath string) error {

var accounts = make(map[string]struct{}, 0)
for _, v := range c.Accounts {
err = sutils.VerityAddress(v, utils.CessPrefix)
err = sutils.VerityAddress(v, sutils.CessPrefix)
if err != nil {
continue
}
Expand Down

0 comments on commit 6c03763

Please sign in to comment.