Skip to content

Commit bf79e91

Browse files
committed
replace private key with mnemonic and remove tf chain totally
1 parent 5a06239 commit bf79e91

File tree

25 files changed

+113
-131
lines changed

25 files changed

+113
-131
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
matrix:
2929
dir:
3030
- node-registrar
31+
- rmb-sdk-go

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
matrix:
3131
dir:
3232
- node-registrar
33+
- rmb-sdk-go

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
DIRS := "node-registrar"
2-
3-
mainnet-release:
4-
cd grid-client && go get github.com/threefoldtech/tfchain/clients/tfchain-client-go@5d6a2dd
5-
go work sync
6-
make tidy
1+
DIRS := "node-registrar" "rmb-sdk-go"
72

83
release-rmb:
94
@echo "Release RMB..."

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This repo contains the go clients for Threefold grid.
88
## Packages
99

1010
- [node-registrar](./node-registrar/README.md)
11+
- [rmb-sdk-go](./rmb-sdk-go/README.md)
1112

1213
## Release
1314

go.work

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
go 1.21.0
22

3-
use ./node-registrar
3+
use (
4+
./node-registrar
5+
./rmb-sdk-go
6+
)

rmb-sdk-go/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Go Documentation](https://godocs.io/github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go?status.svg)](https://godocs.io/github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go)
1+
[![Go Documentation](https://godocs.io/github.com/threefoldtech/tfgridv4-sdk-go/rmb-sdk-go?status.svg)](https://godocs.io/github.com/threefoldtech/tfgridv4-sdk-go/rmb-sdk-go)
22

33
# Introduction
44

rmb-sdk-go/examples/client/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"time"
88

9-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go"
9+
"github.com/threefoldtech/tfgridv4-sdk-go/rmb-sdk-go"
1010
)
1111

1212
func app() error {

rmb-sdk-go/examples/rpc_client/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"log"
77
"time"
88

9-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go/peer"
9+
"github.com/threefoldtech/tfgridv4-sdk-go/rmb-sdk-go/peer"
1010
)
1111

1212
type version struct {

rmb-sdk-go/examples/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"os"
88

9-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go"
9+
"github.com/threefoldtech/tfgridv4-sdk-go/rmb-sdk-go"
1010
)
1111

1212
func app() error {

rmb-sdk-go/go.mod

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go
1+
module github.com/threefoldtech/tfgridv4-sdk-go/rmb-sdk-go
22

33
go 1.21
44

@@ -15,38 +15,28 @@ require (
1515
github.com/pkg/errors v0.9.1
1616
github.com/rs/zerolog v1.33.0
1717
github.com/stretchr/testify v1.10.0
18-
github.com/threefoldtech/tfchain/clients/tfchain-client-go v0.0.0-20241007205731-5e76664a3cc4
18+
github.com/vedhavyas/go-subkey/v2 v2.0.0
1919
gonum.org/v1/gonum v0.15.0
2020
google.golang.org/protobuf v1.34.1
2121
)
2222

2323
require (
24-
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
25-
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12 // indirect
2624
github.com/cosmos/go-bip39 v1.0.0 // indirect
2725
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
28-
github.com/deckarep/golang-set v1.8.0 // indirect
2926
github.com/decred/base58 v1.0.5 // indirect
3027
github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect
3128
github.com/ethereum/go-ethereum v1.11.6 // indirect
32-
github.com/go-stack/stack v1.8.1 // indirect
3329
github.com/gtank/ristretto255 v0.1.2 // indirect
3430
github.com/hashicorp/errwrap v1.1.0 // indirect
3531
github.com/holiman/uint256 v1.2.3 // indirect
36-
github.com/jbenet/go-base58 v0.0.0-20150317085156-6237cf65f3a6 // indirect
32+
github.com/kr/pretty v0.3.1 // indirect
3733
github.com/mattn/go-colorable v0.1.13 // indirect
3834
github.com/mattn/go-isatty v0.0.20 // indirect
3935
github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b // indirect
40-
github.com/pierrec/xxHash v0.1.5 // indirect
4136
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
4237
github.com/rogpeppe/go-internal v1.11.0 // indirect
43-
github.com/rs/cors v1.10.1 // indirect
44-
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
45-
github.com/tklauser/go-sysconf v0.3.11 // indirect
46-
github.com/vedhavyas/go-subkey v1.0.3 // indirect
47-
github.com/yusufpapurcu/wmi v1.2.2 // indirect
4838
golang.org/x/crypto v0.28.0 // indirect
4939
golang.org/x/sys v0.26.0 // indirect
50-
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
40+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
5141
gopkg.in/yaml.v3 v3.0.1 // indirect
5242
)

0 commit comments

Comments
 (0)