Skip to content

Commit b14140b

Browse files
committed
Update the version to support the Sonic network
1 parent c5149a8 commit b14140b

180 files changed

Lines changed: 7124 additions & 58822 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GO_BASE := $(shell pwd)
1313
GO_BIN := $(CURDIR)/build
1414

1515
# compile time variables will be injected into the app
16-
APP_VERSION := 1.1.2-rc.6
16+
APP_VERSION := 4.0.0
1717
BUILD_DATE := $(shell date)
1818
BUILD_COMPILER := $(shell go version)
1919
BUILD_COMMIT := $(shell git show --format="%H" --no-patch)

cmd/apiserver/app.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,13 @@ func (app *apiServer) setupHandlers(mux *http.ServeMux) {
117117
"Service timeout.",
118118
)
119119

120-
mux.Handle("/api", h)
121-
mux.Handle("/graphql", h)
122-
123120
// setup gas price estimator REST API resolver
124121
mux.Handle("/json/gas", handlers.GasPrice(app.log))
125122
mux.Handle("/html/validators/down", handlers.ValidatorsDownHandler(app.log))
126123

127-
// handle GraphiQL interface
128-
mux.Handle("/graphi", handlers.GraphiHandler(app.cfg.Server.DomainAddress, app.log))
129-
130124
// default root is the GraphQL
125+
mux.Handle("/graphql", h)
126+
mux.Handle("/api", h)
131127
mux.Handle("/", h)
132128
}
133129

go.mod

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,77 @@
11
module fantom-api-graphql
22

3-
go 1.22
3+
go 1.22.0
4+
5+
toolchain go1.23.3
46

57
require (
68
github.com/allegro/bigcache v1.2.1
7-
github.com/ethereum/go-ethereum v1.13.15
9+
github.com/ethereum/go-ethereum v1.14.12
810
github.com/graph-gophers/graphql-go v1.5.0
911
github.com/graph-gophers/graphql-transport-ws v0.0.2
10-
github.com/klauspost/compress v1.17.10
12+
github.com/klauspost/compress v1.17.11
1113
github.com/mitchellh/mapstructure v1.5.0
1214
github.com/onsi/gomega v1.34.2
1315
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
14-
github.com/oschwald/geoip2-golang v1.11.0
1516
github.com/rs/cors v1.11.1
1617
github.com/spf13/viper v1.19.0
1718
github.com/status-im/keycard-go v0.3.2
1819
go.mongodb.org/mongo-driver v1.17.1
1920
go.uber.org/atomic v1.11.0
20-
golang.org/x/sync v0.8.0
21+
golang.org/x/sync v0.9.0
2122
)
2223

2324
require (
2425
github.com/DataDog/zstd v1.5.2 // indirect
2526
github.com/Microsoft/go-winio v0.6.2 // indirect
26-
github.com/bits-and-blooms/bitset v1.13.0 // indirect
27-
github.com/btcsuite/btcd/btcec/v2 v2.3.3 // indirect
27+
github.com/bits-and-blooms/bitset v1.17.0 // indirect
2828
github.com/cespare/cp v1.1.1 // indirect
29-
github.com/cockroachdb/errors v1.9.1 // indirect
30-
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
31-
github.com/cockroachdb/redact v1.1.3 // indirect
32-
github.com/consensys/bavard v0.1.13 // indirect
33-
github.com/consensys/gnark-crypto v0.12.1 // indirect
34-
github.com/crate-crypto/go-kzg-4844 v1.0.0 // indirect
29+
github.com/consensys/bavard v0.1.22 // indirect
30+
github.com/consensys/gnark-crypto v0.14.0 // indirect
31+
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
32+
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
3533
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
3634
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
37-
github.com/ethereum/c-kzg-4844 v1.0.1 // indirect
38-
github.com/fsnotify/fsnotify v1.7.0 // indirect
39-
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect
40-
github.com/getsentry/sentry-go v0.18.0 // indirect
35+
github.com/ethereum/c-kzg-4844 v1.0.3 // indirect
36+
github.com/ethereum/go-verkle v0.2.2 // indirect
37+
github.com/fsnotify/fsnotify v1.8.0 // indirect
4138
github.com/go-ole/go-ole v1.3.0 // indirect
4239
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
4340
github.com/google/go-cmp v0.6.0 // indirect
4441
github.com/google/uuid v1.6.0 // indirect
4542
github.com/gorilla/websocket v1.5.3 // indirect
4643
github.com/hashicorp/hcl v1.0.0 // indirect
47-
github.com/holiman/uint256 v1.2.4 // indirect
48-
github.com/huin/goupnp v1.3.0 // indirect
49-
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
44+
github.com/holiman/uint256 v1.3.1 // indirect
5045
github.com/magiconair/properties v1.8.7 // indirect
5146
github.com/mmcloughlin/addchain v0.4.0 // indirect
5247
github.com/montanaflynn/stats v0.7.1 // indirect
53-
github.com/oschwald/maxminddb-golang v1.13.0 // indirect
54-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
48+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
5549
github.com/prometheus/client_golang v1.14.0 // indirect
5650
github.com/prometheus/common v0.39.0 // indirect
5751
github.com/prometheus/procfs v0.9.0 // indirect
58-
github.com/sagikazarmark/locafero v0.4.0 // indirect
52+
github.com/sagikazarmark/locafero v0.6.0 // indirect
5953
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
6054
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
6155
github.com/sourcegraph/conc v0.3.0 // indirect
6256
github.com/spf13/afero v1.11.0 // indirect
63-
github.com/spf13/cast v1.6.0 // indirect
57+
github.com/spf13/cast v1.7.0 // indirect
6458
github.com/spf13/pflag v1.0.5 // indirect
6559
github.com/subosito/gotenv v1.6.0 // indirect
66-
github.com/supranational/blst v0.3.11 // indirect
60+
github.com/supranational/blst v0.3.13 // indirect
6761
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
68-
github.com/tklauser/go-sysconf v0.3.13 // indirect
69-
github.com/tklauser/numcpus v0.7.0 // indirect
62+
github.com/tklauser/go-sysconf v0.3.14 // indirect
63+
github.com/tklauser/numcpus v0.9.0 // indirect
7064
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
7165
github.com/xdg-go/scram v1.1.2 // indirect
7266
github.com/xdg-go/stringprep v1.0.4 // indirect
7367
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
7468
github.com/yusufpapurcu/wmi v1.2.4 // indirect
7569
go.uber.org/multierr v1.11.0 // indirect
76-
golang.org/x/crypto v0.26.0 // indirect
77-
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
70+
golang.org/x/crypto v0.29.0 // indirect
71+
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect
7872
golang.org/x/net v0.28.0 // indirect
79-
golang.org/x/sys v0.24.0 // indirect
80-
golang.org/x/text v0.17.0 // indirect
73+
golang.org/x/sys v0.27.0 // indirect
74+
golang.org/x/text v0.20.0 // indirect
8175
gopkg.in/ini.v1 v1.67.0 // indirect
8276
gopkg.in/yaml.v3 v3.0.1 // indirect
8377
rsc.io/tmplfunc v0.0.3 // indirect

0 commit comments

Comments
 (0)