Skip to content

Commit 6c05f97

Browse files
committed
Upgrade to v0.1.47
1 parent bb89e27 commit 6c05f97

File tree

23 files changed

+540
-295
lines changed

23 files changed

+540
-295
lines changed

server/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DOCKER_ORG ?= avaplatform
1111
DOCKER_IMAGE ?= ${DOCKER_ORG}/${PROJECT}
1212
DOCKER_LABEL ?= latest
1313
DOCKER_TAG ?= ${DOCKER_IMAGE}:${DOCKER_LABEL}
14-
AVALANCHE_VERSION ?= v1.7.18
14+
AVALANCHE_VERSION ?= v1.11.9
1515

1616
build:
1717
go build -o ./rosetta-server ./cmd/server

server/client/info_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ import (
1313
type InfoClient interface {
1414
GetBlockchainID(context.Context, string, ...rpc.Option) (ids.ID, error)
1515
IsBootstrapped(context.Context, string, ...rpc.Option) (bool, error)
16-
Peers(context.Context, ...rpc.Option) ([]info.Peer, error)
16+
Peers(context.Context, []ids.NodeID, ...rpc.Option) ([]info.Peer, error)
1717
}

server/client/mock_client.go

Lines changed: 34 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/client/pchainclient.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ package client
33
import (
44
"context"
55
"strings"
6+
"time"
67

78
"github.com/ava-labs/avalanchego/api"
89
"github.com/ava-labs/avalanchego/api/info"
910
"github.com/ava-labs/avalanchego/ids"
1011
"github.com/ava-labs/avalanchego/indexer"
1112
"github.com/ava-labs/avalanchego/utils/rpc"
1213
"github.com/ava-labs/avalanchego/vms/avm"
14+
"github.com/ava-labs/avalanchego/vms/components/gas"
1315
"github.com/ava-labs/avalanchego/vms/platformvm"
1416
"github.com/ava-labs/avalanchego/vms/platformvm/signer"
1517

@@ -61,6 +63,7 @@ type PChainClient interface {
6163
IssueTx(ctx context.Context, tx []byte, options ...rpc.Option) (ids.ID, error)
6264
GetStake(ctx context.Context, addrs []ids.ShortID, validatorsOnly bool, options ...rpc.Option) (map[ids.ID]uint64, [][]byte, error)
6365
GetCurrentValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, options ...rpc.Option) ([]platformvm.ClientPermissionlessValidator, error)
66+
GetFeeState(ctx context.Context, options ...rpc.Option) (gas.State, gas.Price, time.Time, error)
6467

6568
// avm.Client methods
6669
GetAssetDescription(ctx context.Context, assetID string, options ...rpc.Option) (*avm.GetAssetDescriptionReply, error)

server/cmd/server/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ func main() {
139139
}
140140

141141
pChainBackend, err := pchain.NewBackend(
142-
cfg.Mode,
143142
pChainClient,
144143
pIndexerParser,
145144
avaxAssetID,

server/constants/network.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
package constants
22

33
const (
4+
// MainnetChainID = 43114
5+
// MainnetAssetID = "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
6+
// MainnetNetwork = constants.MainnetName
7+
8+
// FujiChainID = 43113
9+
// FujiAssetID = "U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK"
10+
// FujiNetwork = constants.FujiName
11+
412
MainnetNetwork = "flare"
513
TestnetNetwork = "fuji" // Using fuji for backwards compatibility with tests
614
LocalNetwork = "localflare"

server/go.mod

Lines changed: 47 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,104 @@
11
module github.com/ava-labs/avalanche-rosetta
22

3-
go 1.21
3+
go 1.22.10
44

55
require (
6-
github.com/ava-labs/avalanchego v1.11.2
7-
github.com/ava-labs/coreth v0.13.1-rc.5
6+
github.com/ava-labs/avalanchego v1.12.0
7+
github.com/ava-labs/coreth v0.13.9-rc.1
88
github.com/coinbase/rosetta-sdk-go v0.6.5
9-
github.com/ethereum/go-ethereum v1.12.0
10-
github.com/stretchr/testify v1.8.4
9+
github.com/ethereum/go-ethereum v1.13.14
10+
github.com/stretchr/testify v1.9.0
1111
go.uber.org/mock v0.4.0
12-
golang.org/x/crypto v0.18.0
13-
golang.org/x/sync v0.6.0
12+
golang.org/x/crypto v0.26.0
13+
golang.org/x/sync v0.8.0
1414
)
1515

1616
require (
1717
github.com/DataDog/zstd v1.5.2 // indirect
1818
github.com/NYTimes/gziphandler v1.1.1 // indirect
19-
github.com/VictoriaMetrics/fastcache v1.10.0 // indirect
19+
github.com/VictoriaMetrics/fastcache v1.12.1 // indirect
2020
github.com/beorn7/perks v1.0.1 // indirect
21+
github.com/bits-and-blooms/bitset v1.10.0 // indirect
2122
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
2223
github.com/btcsuite/btcd/btcutil v1.1.3 // indirect
2324
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
2425
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
25-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
26+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2627
github.com/cockroachdb/errors v1.9.1 // indirect
2728
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
28-
github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 // indirect
29+
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593 // indirect
2930
github.com/cockroachdb/redact v1.1.3 // indirect
31+
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
32+
github.com/consensys/bavard v0.1.13 // indirect
33+
github.com/consensys/gnark-crypto v0.12.1 // indirect
3034
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
35+
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233 // indirect
36+
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
3137
github.com/davecgh/go-spew v1.1.1 // indirect
3238
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
3339
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
3440
github.com/dlclark/regexp2 v1.7.0 // indirect
35-
github.com/dop251/goja v0.0.0-20230605162241-28ee0ee714f3 // indirect
41+
github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127 // indirect
42+
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
3643
github.com/fatih/color v1.13.0 // indirect
37-
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 // indirect
3844
github.com/fsnotify/fsnotify v1.6.0 // indirect
3945
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect
46+
github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46 // indirect
4047
github.com/getsentry/sentry-go v0.18.0 // indirect
4148
github.com/go-logr/logr v1.4.1 // indirect
4249
github.com/go-logr/stdr v1.2.2 // indirect
43-
github.com/go-ole/go-ole v1.2.6 // indirect
50+
github.com/go-ole/go-ole v1.3.0 // indirect
4451
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
45-
github.com/go-stack/stack v1.8.1 // indirect
4652
github.com/gogo/protobuf v1.3.2 // indirect
47-
github.com/golang/protobuf v1.5.3 // indirect
53+
github.com/golang/protobuf v1.5.4 // indirect
4854
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
4955
github.com/google/btree v1.1.2 // indirect
5056
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
5157
github.com/google/renameio/v2 v2.0.0 // indirect
5258
github.com/google/uuid v1.6.0 // indirect
5359
github.com/gorilla/mux v1.8.0 // indirect
5460
github.com/gorilla/rpc v1.2.0 // indirect
55-
github.com/gorilla/websocket v1.4.2 // indirect
61+
github.com/gorilla/websocket v1.5.0 // indirect
5662
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
5763
github.com/hashicorp/go-bexpr v0.1.10 // indirect
5864
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
65+
github.com/holiman/billy v0.0.0-20240216141850-2abb0c79d3c4 // indirect
5966
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
60-
github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c // indirect
67+
github.com/holiman/uint256 v1.2.4 // indirect
6168
github.com/klauspost/compress v1.15.15 // indirect
6269
github.com/kr/pretty v0.3.1 // indirect
6370
github.com/kr/text v0.2.0 // indirect
6471
github.com/mattn/go-colorable v0.1.13 // indirect
65-
github.com/mattn/go-isatty v0.0.16 // indirect
66-
github.com/mattn/go-runewidth v0.0.9 // indirect
72+
github.com/mattn/go-isatty v0.0.17 // indirect
73+
github.com/mattn/go-runewidth v0.0.13 // indirect
6774
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
6875
github.com/mitchellh/mapstructure v1.5.0 // indirect
6976
github.com/mitchellh/pointerstructure v1.2.0 // indirect
77+
github.com/mmcloughlin/addchain v0.4.0 // indirect
7078
github.com/mr-tron/base58 v1.2.0 // indirect
7179
github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d // indirect
7280
github.com/olekukonko/tablewriter v0.0.5 // indirect
7381
github.com/pires/go-proxyproto v0.6.2 // indirect
7482
github.com/pkg/errors v0.9.1 // indirect
7583
github.com/pmezard/go-difflib v1.0.0 // indirect
76-
github.com/prometheus/client_golang v1.14.0 // indirect
84+
github.com/prometheus/client_golang v1.16.0 // indirect
7785
github.com/prometheus/client_model v0.3.0 // indirect
78-
github.com/prometheus/common v0.39.0 // indirect
79-
github.com/prometheus/procfs v0.9.0 // indirect
80-
github.com/rogpeppe/go-internal v1.10.0 // indirect
86+
github.com/prometheus/common v0.42.0 // indirect
87+
github.com/prometheus/procfs v0.10.1 // indirect
88+
github.com/rivo/uniseg v0.2.0 // indirect
89+
github.com/rogpeppe/go-internal v1.12.0 // indirect
8190
github.com/rs/cors v1.7.0 // indirect
8291
github.com/russross/blackfriday/v2 v2.1.0 // indirect
8392
github.com/segmentio/fasthash v1.0.3 // indirect
8493
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
8594
github.com/spf13/cast v1.5.0 // indirect
8695
github.com/status-im/keycard-go v0.2.0 // indirect
87-
github.com/supranational/blst v0.3.11 // indirect
96+
github.com/supranational/blst v0.3.13 // indirect
8897
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
89-
github.com/tklauser/go-sysconf v0.3.5 // indirect
90-
github.com/tklauser/numcpus v0.2.2 // indirect
98+
github.com/tklauser/go-sysconf v0.3.12 // indirect
99+
github.com/tklauser/numcpus v0.6.1 // indirect
91100
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
92-
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa // indirect
101+
github.com/urfave/cli/v2 v2.25.7 // indirect
93102
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
94103
github.com/yusufpapurcu/wmi v1.2.2 // indirect
95104
go.opentelemetry.io/otel v1.22.0 // indirect
@@ -100,19 +109,20 @@ require (
100109
go.opentelemetry.io/otel/sdk v1.22.0 // indirect
101110
go.opentelemetry.io/otel/trace v1.22.0 // indirect
102111
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
103-
go.uber.org/multierr v1.10.0 // indirect
112+
go.uber.org/multierr v1.11.0 // indirect
104113
go.uber.org/zap v1.26.0 // indirect
105114
golang.org/x/exp v0.0.0-20231127185646-65229373498e // indirect
106-
golang.org/x/net v0.20.0 // indirect
107-
golang.org/x/sys v0.16.0 // indirect
108-
golang.org/x/term v0.16.0 // indirect
109-
golang.org/x/text v0.14.0 // indirect
110-
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
115+
golang.org/x/net v0.28.0 // indirect
116+
golang.org/x/sys v0.24.0 // indirect
117+
golang.org/x/term v0.23.0 // indirect
118+
golang.org/x/text v0.17.0 // indirect
119+
golang.org/x/time v0.3.0 // indirect
111120
gonum.org/v1/gonum v0.11.0 // indirect
112-
google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect
113-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
114-
google.golang.org/grpc v1.62.0 // indirect
115-
google.golang.org/protobuf v1.32.0 // indirect
121+
google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect
122+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed // indirect
123+
google.golang.org/grpc v1.66.0 // indirect
124+
google.golang.org/protobuf v1.34.2 // indirect
116125
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
117126
gopkg.in/yaml.v3 v3.0.1 // indirect
127+
rsc.io/tmplfunc v0.0.3 // indirect
118128
)

0 commit comments

Comments
 (0)