Skip to content

Commit 76c16d0

Browse files
authored
Support lotus 1.30 (#133)
* Support lotus 1.30 * Update parser * Upgrade filecoin-ffi * fix makefile * linting issues
1 parent 98a7a4f commit 76c16d0

11 files changed

Lines changed: 202 additions & 138 deletions

File tree

.golangci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
# Generated by @zondax/cli
3+
#
4+
run:
5+
skip-dirs:
6+
- tests/mocks
7+
- extern
8+
- pkg/mod
9+
skip-files:
10+
- ".*_test\\.go$"
11+
- "tools/trace_retriever.go"
12+
- "services/construction.go"
13+
- "main.go"
14+
15+
linters:
16+
enable:
17+
- gofmt
18+
- gosec
19+
- goconst
20+
- gocritic
21+
- staticcheck
22+
- gosimple
23+
- goconst
24+
- bodyclose
25+
- unconvert
26+
- unparam
27+
- unused
28+
- durationcheck
29+
- makezero
30+
- reassign
31+
32+
issues:
33+
exclude-rules:
34+
- path: _test\.go
35+
linters:
36+
- gosec
37+
- path: tests/.*
38+
linters:
39+
- typecheck
40+
- path: tools/.*
41+
linters:
42+
- typecheck
43+
- path: services/.*
44+
linters:
45+
- typecheck
46+
- path: main.go
47+
linters:
48+
- typecheck
49+
- path: pkg/mod/.*
50+
linters:
51+
- typecheck

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PACKAGE := github.com/zondax/filecoin-indexing-rosetta-proxy/tools
22
REVISION := $(shell git rev-parse --short HEAD)
3-
ROSETTASDKVER := $(shell go list -m all | grep github.com/coinbase/rosetta-sdk-go | awk '{print $$2}')
3+
ROSETTASDKVER := $(shell go list -m github.com/coinbase/rosetta-sdk-go | cut -d' ' -f2)
44
LOTUSVER := $(shell go list -m all | grep github.com/filecoin-project/lotus | awk '{print $$2}')
55
RETRYNUM := 10
66
ROSETTAPORT_CI := 8081

go.mod

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
module github.com/zondax/filecoin-indexing-rosetta-proxy
22

3-
go 1.22
3+
go 1.22.0
44

5-
toolchain go1.22.1
5+
toolchain go1.23.0
66

77
require (
88
github.com/Zondax/zindexer v1.5.3
9-
github.com/coinbase/rosetta-sdk-go v0.7.10
10-
github.com/filecoin-project/go-address v1.1.0
9+
github.com/coinbase/rosetta-sdk-go v0.8.5
10+
github.com/coinbase/rosetta-sdk-go/types v1.0.0
11+
github.com/filecoin-project/go-address v1.2.0
1112
github.com/filecoin-project/go-bitfield v0.2.4
12-
github.com/filecoin-project/go-f3 v0.0.7
13-
github.com/filecoin-project/go-jsonrpc v0.5.0
14-
github.com/filecoin-project/go-state-types v0.14.0
15-
github.com/filecoin-project/lotus v1.28.1
13+
github.com/filecoin-project/go-f3 v0.7.2
14+
github.com/filecoin-project/go-jsonrpc v0.7.0
15+
github.com/filecoin-project/go-state-types v0.15.0
16+
github.com/filecoin-project/lotus v1.30.0
1617
github.com/google/uuid v1.6.0
1718
github.com/ipfs/go-block-format v0.2.0
1819
github.com/ipfs/go-cid v0.4.1
1920
github.com/ipfs/go-log v1.0.5
20-
github.com/libp2p/go-libp2p v0.35.4
21+
github.com/libp2p/go-libp2p v0.35.5
2122
github.com/spf13/viper v1.19.0
2223
github.com/stretchr/testify v1.9.0
23-
github.com/zondax/fil-parser v1.2701.2
24-
github.com/zondax/rosetta-filecoin-lib v1.2801.0
25-
github.com/zondax/rosetta-filecoin-proxy v1.2801.0
24+
github.com/zondax/fil-parser v1.3000.0
25+
github.com/zondax/rosetta-filecoin-lib v1.3000.0
26+
github.com/zondax/rosetta-filecoin-proxy v1.3000.0
2627
)
2728

2829
replace github.com/filecoin-project/filecoin-ffi => ./extern/filecoin-ffi
@@ -40,8 +41,8 @@ require (
4041
github.com/benbjohnson/clock v1.3.5 // indirect
4142
github.com/beorn7/perks v1.0.1 // indirect
4243
github.com/buger/jsonparser v1.1.1 // indirect
43-
github.com/bytedance/sonic v1.11.9 // indirect
44-
github.com/bytedance/sonic/loader v0.1.1 // indirect
44+
github.com/bytedance/sonic v1.12.3 // indirect
45+
github.com/bytedance/sonic/loader v0.2.0 // indirect
4546
github.com/cespare/xxhash/v2 v2.3.0 // indirect
4647
github.com/cloudwego/base64x v0.1.4 // indirect
4748
github.com/cloudwego/iasm v0.2.0 // indirect
@@ -52,11 +53,12 @@ require (
5253
github.com/dustin/go-humanize v1.0.1 // indirect
5354
github.com/filecoin-project/go-amt-ipld/v2 v2.1.1-0.20201006184820-924ee87a1349 // indirect
5455
github.com/filecoin-project/go-amt-ipld/v3 v3.1.0 // indirect
55-
github.com/filecoin-project/go-amt-ipld/v4 v4.3.0 // indirect
56-
github.com/filecoin-project/go-crypto v0.0.1 // indirect
56+
github.com/filecoin-project/go-amt-ipld/v4 v4.4.0 // indirect
57+
github.com/filecoin-project/go-clock v0.1.0 // indirect
58+
github.com/filecoin-project/go-crypto v0.1.0 // indirect
5759
github.com/filecoin-project/go-hamt-ipld v0.1.5 // indirect
5860
github.com/filecoin-project/go-hamt-ipld/v2 v2.0.0 // indirect
59-
github.com/filecoin-project/go-hamt-ipld/v3 v3.1.0 // indirect
61+
github.com/filecoin-project/go-hamt-ipld/v3 v3.4.0 // indirect
6062
github.com/filecoin-project/specs-actors/v2 v2.3.6 // indirect
6163
github.com/filecoin-project/specs-actors/v3 v3.1.2 // indirect
6264
github.com/filecoin-project/specs-actors/v4 v4.0.2 // indirect
@@ -72,7 +74,7 @@ require (
7274
github.com/go-ole/go-ole v1.2.5 // indirect
7375
github.com/go-redis/redis/v8 v8.11.5 // indirect
7476
github.com/go-redsync/redsync/v4 v4.11.0 // indirect
75-
github.com/go-resty/resty/v2 v2.13.1 // indirect
77+
github.com/go-resty/resty/v2 v2.16.0 // indirect
7678
github.com/gogo/protobuf v1.3.2 // indirect
7779
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
7880
github.com/golang/mock v1.6.0 // indirect
@@ -93,7 +95,7 @@ require (
9395
github.com/ipfs/go-ipfs-ds-help v1.1.1 // indirect
9496
github.com/ipfs/go-ipfs-exchange-interface v0.2.1 // indirect
9597
github.com/ipfs/go-ipfs-util v0.0.3 // indirect
96-
github.com/ipfs/go-ipld-cbor v0.1.0 // indirect
98+
github.com/ipfs/go-ipld-cbor v0.2.0 // indirect
9799
github.com/ipfs/go-ipld-format v0.6.0 // indirect
98100
github.com/ipfs/go-ipld-legacy v0.2.1 // indirect
99101
github.com/ipfs/go-log/v2 v2.5.1 // indirect
@@ -103,16 +105,15 @@ require (
103105
github.com/ipld/go-car v0.6.2 // indirect
104106
github.com/ipld/go-codec-dagpb v1.6.0 // indirect
105107
github.com/ipld/go-ipld-prime v0.21.0 // indirect
106-
github.com/ipsn/go-secp256k1 v0.0.0-20180726113642-9d62b9f0bc52 // indirect
107108
github.com/jbenet/goprocess v0.1.4 // indirect
108109
github.com/jessevdk/go-flags v1.4.0 // indirect
109110
github.com/jinzhu/inflection v1.0.0 // indirect
110111
github.com/jinzhu/now v1.1.5 // indirect
111112
github.com/jmespath/go-jmespath v0.4.0 // indirect
112113
github.com/json-iterator/go v1.1.12 // indirect
113114
github.com/karrick/godirwalk v1.15.3 // indirect
114-
github.com/klauspost/compress v1.17.9 // indirect
115-
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
115+
github.com/klauspost/compress v1.17.11 // indirect
116+
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
116117
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
117118
github.com/libp2p/go-flow-metrics v0.1.0 // indirect
118119
github.com/libp2p/go-libp2p-pubsub v0.11.0 // indirect
@@ -132,8 +133,8 @@ require (
132133
github.com/mr-tron/base58 v1.2.0 // indirect
133134
github.com/multiformats/go-base32 v0.1.0 // indirect
134135
github.com/multiformats/go-base36 v0.2.0 // indirect
135-
github.com/multiformats/go-multiaddr v0.12.4 // indirect
136-
github.com/multiformats/go-multiaddr-dns v0.3.1 // indirect
136+
github.com/multiformats/go-multiaddr v0.13.0 // indirect
137+
github.com/multiformats/go-multiaddr-dns v0.4.0 // indirect
137138
github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect
138139
github.com/multiformats/go-multibase v0.2.0 // indirect
139140
github.com/multiformats/go-multicodec v0.9.0 // indirect
@@ -176,10 +177,12 @@ require (
176177
github.com/valyala/bytebufferpool v1.0.0 // indirect
177178
github.com/valyala/fasttemplate v1.2.1 // indirect
178179
github.com/whyrusleeping/bencher v0.0.0-20190829221104-bb6607aa8bba // indirect
179-
github.com/whyrusleeping/cbor-gen v0.1.2 // indirect
180+
github.com/whyrusleeping/cbor-gen v0.2.0 // indirect
180181
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
181182
github.com/zondax/golem v0.14.1 // indirect
182183
github.com/zondax/znats v0.1.1 // indirect
184+
gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b // indirect
185+
gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 // indirect
183186
go.opencensus.io v0.24.0 // indirect
184187
go.opentelemetry.io/otel v1.28.0 // indirect
185188
go.opentelemetry.io/otel/metric v1.28.0 // indirect
@@ -188,18 +191,18 @@ require (
188191
go.uber.org/multierr v1.11.0 // indirect
189192
go.uber.org/zap v1.27.0 // indirect
190193
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
191-
golang.org/x/crypto v0.24.0 // indirect
192-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
193-
golang.org/x/mod v0.18.0 // indirect
194-
golang.org/x/net v0.26.0 // indirect
195-
golang.org/x/sync v0.7.0 // indirect
196-
golang.org/x/sys v0.21.0 // indirect
197-
golang.org/x/text v0.16.0 // indirect
198-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
199-
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
194+
golang.org/x/crypto v0.28.0 // indirect
195+
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e // indirect
196+
golang.org/x/mod v0.21.0 // indirect
197+
golang.org/x/net v0.29.0 // indirect
198+
golang.org/x/sync v0.8.0 // indirect
199+
golang.org/x/sys v0.26.0 // indirect
200+
golang.org/x/text v0.19.0 // indirect
201+
golang.org/x/tools v0.24.0 // indirect
202+
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
200203
google.golang.org/protobuf v1.34.2 // indirect
201204
gopkg.in/ini.v1 v1.67.0 // indirect
202205
gopkg.in/yaml.v3 v3.0.1 // indirect
203-
gorm.io/gorm v1.25.10 // indirect
206+
gorm.io/gorm v1.25.12 // indirect
204207
lukechampine.com/blake3 v1.3.0 // indirect
205208
)

0 commit comments

Comments
 (0)