Skip to content

Commit c4dffd2

Browse files
committed
update chain, rmb client and fix lint
1 parent 2460733 commit c4dffd2

File tree

33 files changed

+192
-172
lines changed

33 files changed

+192
-172
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ jobs:
66
name: Running Daemon Tests
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Set up Go 1.23
10-
uses: actions/setup-go@v1
9+
- name: Set up Go 1.25
10+
uses: actions/setup-go@v6
1111
with:
12-
go-version: 1.23
12+
go-version: 1.25
1313
id: go
1414

15+
- name: Checkout code into the Go module directory
16+
uses: actions/checkout@v6
17+
1518
- name: Prepare dependencies
1619
run: |
1720
sudo apt-get update
1821
sudo apt-get install -y libjansson-dev libhiredis-dev
1922
20-
- name: Checkout code into the Go module directory
21-
uses: actions/checkout@v1
22-
2323
- name: Get dependencies
2424
run: |
2525
cd pkg

.golangci.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1+
version: "2"
12
linters:
23
enable:
3-
- errcheck
4-
- gofmt
5-
- govet
6-
- ineffassign
7-
- unconvert
8-
- staticcheck
94
- gocyclo
10-
enable-all: false
11-
linters-settings:
12-
gocyclo:
13-
# Minimal code complexity to report.
14-
# Default: 30 (but we recommend 10-20)
15-
min-complexity: 100
16-
run:
17-
timeout: 20m
5+
- unconvert
6+
settings:
7+
gocyclo:
8+
min-complexity: 100
9+
exclusions:
10+
generated: lax
11+
presets:
12+
- comments
13+
- common-false-positives
14+
- legacy
15+
- std-error-handling
16+
paths:
17+
- third_party$
18+
- builtin$
19+
- examples$
20+
formatters:
21+
enable:
22+
- gofmt
23+
exclusions:
24+
generated: lax
25+
paths:
26+
- third_party$
27+
- builtin$
28+
- examples$

client/node_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ func ExampleClient() {
1515

1616
node := NewNodeClient(10, client)
1717

18-
node.Counters(context.Background())
18+
_, err = node.Counters(context.Background())
19+
if err != nil {
20+
panic(err)
21+
}
1922
fmt.Println("ok")
2023
//Output: ok
2124
}

go.mod

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/blang/semver v3.5.1+incompatible
1212
github.com/cenkalti/backoff v2.2.1+incompatible
1313
github.com/cenkalti/backoff/v3 v3.2.2
14-
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12
14+
github.com/centrifuge/go-substrate-rpc-client/v4 v4.2.1
1515
github.com/containerd/cgroups v1.1.0
1616
github.com/containerd/containerd v1.7.30
1717
github.com/containerd/containerd/api v1.8.0
@@ -20,7 +20,7 @@ require (
2020
github.com/containernetworking/plugins v1.2.0
2121
github.com/dave/jennifer v1.3.0
2222
github.com/deckarep/golang-set v1.8.0
23-
github.com/decred/base58 v1.0.5
23+
github.com/decred/base58 v1.0.6
2424
github.com/diskfs/go-diskfs v1.2.0
2525
github.com/g0rbe/go-chattr v0.0.0-20190906133247-aa435a6a0a37
2626
github.com/garyburd/redigo v1.6.2
@@ -46,8 +46,8 @@ require (
4646
github.com/showwin/speedtest-go v1.7.10
4747
github.com/stretchr/testify v1.11.1
4848
github.com/threefoldtech/0-fs v1.3.1-0.20240424140157-b488dfedcc56
49-
github.com/threefoldtech/tfchain/clients/tfchain-client-go v0.0.0-20250929084418-b950278ead30
50-
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.5
49+
github.com/threefoldtech/tfchain/clients/tfchain-client-go v0.0.0-20260302124210-526158ffbc00
50+
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.6
5151
github.com/threefoldtech/zbus v1.0.1
5252
github.com/tyler-smith/go-bip39 v1.1.0
5353
github.com/vishvananda/netlink v1.2.1-beta.2
@@ -56,24 +56,26 @@ require (
5656
github.com/yggdrasil-network/yggdrasil-go v0.4.0
5757
go.etcd.io/bbolt v1.3.10
5858
go.uber.org/mock v0.5.2
59-
golang.org/x/crypto v0.45.0
60-
golang.org/x/sys v0.38.0
59+
golang.org/x/crypto v0.49.0
60+
golang.org/x/sys v0.42.0
6161
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200609130330-bd2cb7843e1b
6262
gopkg.in/yaml.v2 v2.4.0
6363
gotest.tools v2.2.0+incompatible
6464
)
6565

6666
require (
67+
filippo.io/edwards25519 v1.2.0 // indirect
6768
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
6869
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20230306123547-8075edf89bb0 // indirect
70+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
6971
github.com/containerd/errdefs v0.3.0 // indirect
7072
github.com/containerd/log v0.1.0 // indirect
7173
github.com/containerd/platforms v0.2.1 // indirect
7274
github.com/cyphar/filepath-securejoin v0.5.1 // indirect
7375
github.com/distribution/reference v0.6.0 // indirect
7476
github.com/felixge/httpsnoop v1.0.3 // indirect
7577
github.com/frankban/quicktest v1.14.3 // indirect
76-
github.com/go-logr/logr v1.4.2 // indirect
78+
github.com/go-logr/logr v1.4.3 // indirect
7779
github.com/go-logr/stdr v1.2.2 // indirect
7880
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
7981
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
@@ -85,14 +87,15 @@ require (
8587
github.com/pion/dtls/v2 v2.2.7 // indirect
8688
github.com/pion/logging v0.2.2 // indirect
8789
github.com/pion/transport/v2 v2.2.1 // indirect
90+
github.com/vedhavyas/go-subkey/v2 v2.0.0 // indirect
8891
github.com/yuin/gopher-lua v1.1.1 // indirect
89-
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
92+
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
9093
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect
91-
go.opentelemetry.io/otel v1.34.0 // indirect
92-
go.opentelemetry.io/otel/metric v1.34.0 // indirect
93-
go.opentelemetry.io/otel/trace v1.34.0 // indirect
94+
go.opentelemetry.io/otel v1.39.0 // indirect
95+
go.opentelemetry.io/otel/metric v1.39.0 // indirect
96+
go.opentelemetry.io/otel/trace v1.39.0 // indirect
9497
google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect
95-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287 // indirect
98+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b // indirect
9699
)
97100

98101
require (
@@ -104,32 +107,31 @@ require (
104107
github.com/coreos/go-iptables v0.6.0 // indirect
105108
github.com/cosmos/go-bip39 v1.0.0 // indirect
106109
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
107-
github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect
110+
github.com/decred/dcrd/crypto/blake256 v1.1.0 // indirect
108111
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
109112
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
110113
github.com/dustin/go-humanize v1.0.1 // indirect
111-
github.com/ethereum/go-ethereum v1.11.6 // indirect
112-
github.com/go-ole/go-ole v1.2.6 // indirect
113-
github.com/go-stack/stack v1.8.1 // indirect
114-
github.com/goccy/go-json v0.9.7 // indirect
114+
github.com/ethereum/go-ethereum v1.17.1 // indirect
115+
github.com/go-ole/go-ole v1.3.0 // indirect
116+
github.com/goccy/go-json v0.10.4 // indirect
115117
github.com/gofrs/flock v0.12.1 // indirect
116118
github.com/gogo/protobuf v1.3.2 // indirect
117119
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
118120
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
119121
github.com/golang/protobuf v1.5.4 // indirect
120-
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
122+
github.com/golang/snappy v1.0.0 // indirect
121123
github.com/google/go-cmp v0.7.0 // indirect
122124
github.com/gorilla/websocket v1.5.3 // indirect
123-
github.com/gtank/ristretto255 v0.1.2 // indirect
125+
github.com/gtank/ristretto255 v0.2.0 // indirect
124126
github.com/hanwen/go-fuse/v2 v2.3.0 // indirect
125127
github.com/hashicorp/errwrap v1.1.0 // indirect
126128
github.com/hashicorp/go-multierror v1.1.1
127129
github.com/hashicorp/go-retryablehttp v0.7.7
128130
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
129-
github.com/holiman/uint256 v1.2.3 // indirect
131+
github.com/holiman/uint256 v1.3.2 // indirect
130132
github.com/jarcoal/httpmock v1.3.1
131133
github.com/josharian/native v0.0.0-20200817173448-b6b71def0850 // indirect
132-
github.com/klauspost/compress v1.16.7 // indirect
134+
github.com/klauspost/compress v1.17.8 // indirect
133135
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
134136
github.com/lestrrat-go/blackmagic v1.0.0 // indirect
135137
github.com/lestrrat-go/httpcc v1.0.1 // indirect
@@ -160,7 +162,7 @@ require (
160162
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
161163
github.com/rivo/uniseg v0.4.7 // indirect
162164
github.com/robfig/cron/v3 v3.0.1 // indirect
163-
github.com/rs/cors v1.10.1 // indirect
165+
github.com/rs/cors v1.11.1 // indirect
164166
github.com/safchain/ethtool v0.2.0 // indirect
165167
github.com/sirupsen/logrus v1.9.3 // indirect
166168
github.com/stretchr/objx v0.5.2 // indirect
@@ -174,14 +176,14 @@ require (
174176
github.com/yusufpapurcu/wmi v1.2.4 // indirect
175177
go.opencensus.io v0.24.0 // indirect
176178
go.uber.org/atomic v1.9.0 // indirect
177-
golang.org/x/net v0.47.0 // indirect
178-
golang.org/x/sync v0.18.0 // indirect
179-
golang.org/x/text v0.31.0 // indirect
179+
golang.org/x/net v0.51.0 // indirect
180+
golang.org/x/sync v0.20.0 // indirect
181+
golang.org/x/text v0.35.0 // indirect
180182
golang.zx2c4.com/wireguard v0.0.20200320 // indirect
181183
gonum.org/v1/gonum v0.16.0 // indirect
182184
google.golang.org/appengine v1.6.7 // indirect
183-
google.golang.org/grpc v1.70.0 // indirect
184-
google.golang.org/protobuf v1.36.6 // indirect
185+
google.golang.org/grpc v1.77.0 // indirect
186+
google.golang.org/protobuf v1.36.11 // indirect
185187
gopkg.in/djherbis/times.v1 v1.2.0 // indirect
186188
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
187189
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)