Skip to content

Commit 7a3f03f

Browse files
authored
Kava 13 Testnet (#65)
* update go 1.20.3 * upgrade packages and point to latest master (will be changed to tag) with cosmos v46 * use new sdkmath package instead of alias through sdk types * update to use alpha tag w/ newer ethermint replace to be compatible
1 parent 3cce126 commit 7a3f03f

23 files changed

+954
-424
lines changed

Dockerfile.mainnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG build_image=golang:1.18.10-bullseye
1+
ARG build_image=golang:1.20.3-bullseye
22
FROM $build_image as kava-rosetta-build
33

44
RUN apt-get update \

Dockerfile.mainnet.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG build_image=golang:1.18.10-bullseye
1+
ARG build_image=golang:1.20.3-bullseye
22
FROM $build_image as kava-rosetta-build
33

44
RUN apt-get update \

Dockerfile.testnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG build_image=golang:1.18.10-bullseye
1+
ARG build_image=golang:1.20.3-bullseye
22
FROM $build_image as kava-rosetta-build
33

44
RUN apt-get update \

Dockerfile.testnet.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG build_image=golang:1.18.10-bullseye
1+
ARG build_image=golang:1.20.3-bullseye
22
FROM $build_image as kava-rosetta-build
33

44
RUN apt-get update \

go.mod

Lines changed: 115 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,87 @@
11
module github.com/kava-labs/rosetta-kava
22

3-
go 1.18
3+
go 1.20
44

55
require (
6-
github.com/btcsuite/btcd v0.22.1
7-
github.com/coinbase/rosetta-sdk-go v0.7.2
8-
github.com/cosmos/cosmos-sdk v0.45.10
6+
cosmossdk.io/math v1.0.0-beta.6.0.20230216172121-959ce49135e4
7+
github.com/btcsuite/btcd/btcec/v2 v2.3.2
8+
github.com/coinbase/rosetta-sdk-go v0.7.9
9+
github.com/cosmos/cosmos-sdk v0.46.11
910
github.com/fatih/color v1.13.0
10-
github.com/kava-labs/kava v0.21.0
11-
github.com/spf13/cobra v1.6.0
12-
github.com/stretchr/testify v1.8.0
11+
github.com/kava-labs/kava v0.22.0-alpha.0
12+
github.com/spf13/cobra v1.6.1
13+
github.com/stretchr/testify v1.8.2
1314
github.com/tendermint/go-amino v0.16.0
14-
github.com/tendermint/tendermint v0.34.24
15+
github.com/tendermint/tendermint v0.34.27
1516
)
1617

1718
require (
18-
filippo.io/edwards25519 v1.0.0-beta.2 // indirect
19-
github.com/99designs/keyring v1.1.6 // indirect
19+
cloud.google.com/go v0.107.0 // indirect
20+
cloud.google.com/go/compute v1.15.1 // indirect
21+
cloud.google.com/go/compute/metadata v0.2.3 // indirect
22+
cloud.google.com/go/iam v0.8.0 // indirect
23+
cloud.google.com/go/storage v1.27.0 // indirect
24+
cosmossdk.io/errors v1.0.0-beta.7 // indirect
25+
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
26+
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
27+
github.com/99designs/keyring v1.2.1 // indirect
2028
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
2129
github.com/StackExchange/wmi v1.2.1 // indirect
2230
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
23-
github.com/armon/go-metrics v0.4.0 // indirect
31+
github.com/armon/go-metrics v0.4.1 // indirect
32+
github.com/aws/aws-sdk-go v1.44.122 // indirect
2433
github.com/beorn7/perks v1.0.1 // indirect
34+
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
2535
github.com/bgentry/speakeasy v0.1.0 // indirect
36+
github.com/btcsuite/btcd v0.23.4 // indirect
37+
github.com/btcsuite/btcd/btcutil v1.1.3 // indirect
2638
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
27-
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect
2839
github.com/cespare/xxhash v1.1.0 // indirect
29-
github.com/cespare/xxhash/v2 v2.1.2 // indirect
30-
github.com/confio/ics23/go v0.7.0 // indirect
31-
github.com/cosmos/btcutil v1.0.4 // indirect
32-
github.com/cosmos/cosmos-proto v1.0.0-alpha6 // indirect
40+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
41+
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
42+
github.com/cometbft/cometbft-db v0.7.0 // indirect
43+
github.com/confio/ics23/go v0.9.0 // indirect
44+
github.com/cosmos/btcutil v1.0.5 // indirect
45+
github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect
3346
github.com/cosmos/go-bip39 v1.0.0 // indirect
34-
github.com/cosmos/iavl v0.19.4 // indirect
35-
github.com/cosmos/ibc-go/v3 v3.4.0 // indirect
36-
github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
37-
github.com/cosmos/ledger-go v0.9.2 // indirect
38-
github.com/danieljoos/wincred v1.0.2 // indirect
47+
github.com/cosmos/gogoproto v1.4.6 // indirect
48+
github.com/cosmos/iavl v0.19.5 // indirect
49+
github.com/cosmos/ibc-go/v6 v6.1.0 // indirect
50+
github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
51+
github.com/danieljoos/wincred v1.1.2 // indirect
3952
github.com/davecgh/go-spew v1.1.1 // indirect
4053
github.com/deckarep/golang-set v1.8.0 // indirect
54+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
55+
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
4156
github.com/dgraph-io/badger/v3 v3.2103.2 // indirect
4257
github.com/dgraph-io/ristretto v0.1.0 // indirect
58+
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
4359
github.com/dustin/go-humanize v1.0.0 // indirect
44-
github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b // indirect
60+
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
4561
github.com/edsrzf/mmap-go v1.0.0 // indirect
46-
github.com/ethereum/go-ethereum v1.10.16 // indirect
62+
github.com/ethereum/go-ethereum v1.10.26 // indirect
63+
github.com/evmos/ethermint v0.21.0 // indirect
4764
github.com/felixge/httpsnoop v1.0.1 // indirect
48-
github.com/fsnotify/fsnotify v1.5.4 // indirect
65+
github.com/fsnotify/fsnotify v1.6.0 // indirect
4966
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
5067
github.com/go-kit/kit v0.12.0 // indirect
5168
github.com/go-kit/log v0.2.1 // indirect
5269
github.com/go-logfmt/logfmt v0.5.1 // indirect
53-
github.com/go-ole/go-ole v1.2.5 // indirect
54-
github.com/go-stack/stack v1.8.0 // indirect
70+
github.com/go-ole/go-ole v1.2.6 // indirect
71+
github.com/go-stack/stack v1.8.1 // indirect
5572
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
5673
github.com/gogo/gateway v1.1.0 // indirect
5774
github.com/gogo/protobuf v1.3.3 // indirect
58-
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
75+
github.com/golang/glog v1.0.0 // indirect
5976
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
60-
github.com/golang/protobuf v1.5.2 // indirect
77+
github.com/golang/protobuf v1.5.3 // indirect
6178
github.com/golang/snappy v0.0.4 // indirect
62-
github.com/google/btree v1.0.1 // indirect
79+
github.com/google/btree v1.1.2 // indirect
6380
github.com/google/flatbuffers v1.12.1 // indirect
81+
github.com/google/go-cmp v0.5.9 // indirect
6482
github.com/google/uuid v1.3.0 // indirect
83+
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
84+
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
6585
github.com/gorilla/handlers v1.5.1 // indirect
6686
github.com/gorilla/mux v1.8.0 // indirect
6787
github.com/gorilla/websocket v1.5.0 // indirect
@@ -70,74 +90,88 @@ require (
7090
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
7191
github.com/gtank/merlin v0.1.1 // indirect
7292
github.com/gtank/ristretto255 v0.1.2 // indirect
93+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
94+
github.com/hashicorp/go-getter v1.7.1 // indirect
7395
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
96+
github.com/hashicorp/go-safetemp v1.0.0 // indirect
97+
github.com/hashicorp/go-version v1.6.0 // indirect
7498
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
7599
github.com/hashicorp/hcl v1.0.0 // indirect
76-
github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87 // indirect
100+
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect
77101
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
78-
github.com/holiman/uint256 v1.2.0 // indirect
79-
github.com/huin/goupnp v1.0.2 // indirect
102+
github.com/holiman/uint256 v1.2.1 // indirect
103+
github.com/huin/goupnp v1.0.3 // indirect
80104
github.com/inconshreveable/mousetrap v1.0.1 // indirect
81105
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
106+
github.com/jmespath/go-jmespath v0.4.0 // indirect
82107
github.com/jmhodges/levigo v1.0.0 // indirect
83-
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect
84-
github.com/klauspost/compress v1.15.11 // indirect
108+
github.com/json-iterator/go v1.1.12 // indirect
109+
github.com/klauspost/compress v1.15.15 // indirect
85110
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
86-
github.com/linxGnu/grocksdb v1.7.1 // indirect
87-
github.com/magiconair/properties v1.8.6 // indirect
111+
github.com/linxGnu/grocksdb v1.7.14 // indirect
112+
github.com/magiconair/properties v1.8.7 // indirect
113+
github.com/manifoldco/promptui v0.9.0 // indirect
88114
github.com/mattn/go-colorable v0.1.13 // indirect
89-
github.com/mattn/go-isatty v0.0.16 // indirect
115+
github.com/mattn/go-isatty v0.0.17 // indirect
90116
github.com/mattn/go-runewidth v0.0.9 // indirect
91-
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
117+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
92118
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect
119+
github.com/mitchellh/go-homedir v1.1.0 // indirect
120+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
93121
github.com/mitchellh/mapstructure v1.5.0 // indirect
122+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
123+
github.com/modern-go/reflect2 v1.0.2 // indirect
94124
github.com/mtibben/percent v0.2.1 // indirect
95125
github.com/olekukonko/tablewriter v0.0.5 // indirect
96-
github.com/pelletier/go-toml v1.9.5 // indirect
97-
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
126+
github.com/onsi/ginkgo v1.16.5 // indirect
127+
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
98128
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
99129
github.com/pkg/errors v0.9.1 // indirect
100130
github.com/pmezard/go-difflib v1.0.0 // indirect
101-
github.com/prometheus/client_golang v1.12.2 // indirect
102-
github.com/prometheus/client_model v0.2.0 // indirect
103-
github.com/prometheus/common v0.34.0 // indirect
104-
github.com/prometheus/procfs v0.8.0 // indirect
131+
github.com/prometheus/client_golang v1.14.0 // indirect
132+
github.com/prometheus/client_model v0.3.0 // indirect
133+
github.com/prometheus/common v0.40.0 // indirect
134+
github.com/prometheus/procfs v0.9.0 // indirect
105135
github.com/prometheus/tsdb v0.7.1 // indirect
106136
github.com/rakyll/statik v0.1.7 // indirect
107137
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
108138
github.com/regen-network/cosmos-proto v0.3.1 // indirect
109139
github.com/rjeczalik/notify v0.9.1 // indirect
110140
github.com/sasha-s/go-deadlock v0.3.1 // indirect
111141
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
112-
github.com/spf13/afero v1.8.2 // indirect
142+
github.com/spf13/afero v1.9.3 // indirect
113143
github.com/spf13/cast v1.5.0 // indirect
114144
github.com/spf13/jwalterweatherman v1.1.0 // indirect
115145
github.com/spf13/pflag v1.0.5 // indirect
116-
github.com/spf13/viper v1.13.0 // indirect
117-
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969 // indirect
118-
github.com/stretchr/objx v0.4.0 // indirect
119-
github.com/subosito/gotenv v1.4.1 // indirect
120-
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
121-
github.com/tendermint/btcd v0.1.1 // indirect
122-
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect
146+
github.com/spf13/viper v1.15.0 // indirect
147+
github.com/status-im/keycard-go v0.2.0 // indirect
148+
github.com/stretchr/objx v0.5.0 // indirect
149+
github.com/subosito/gotenv v1.4.2 // indirect
150+
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
123151
github.com/tendermint/tm-db v0.6.7 // indirect
124-
github.com/tharsis/ethermint v0.14.0 // indirect
125-
github.com/tklauser/go-sysconf v0.3.7 // indirect
126-
github.com/tklauser/numcpus v0.2.3 // indirect
152+
github.com/tidwall/btree v1.5.0 // indirect
153+
github.com/tklauser/go-sysconf v0.3.10 // indirect
154+
github.com/tklauser/numcpus v0.4.0 // indirect
127155
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
128-
github.com/zondax/hid v0.9.0 // indirect
129-
go.etcd.io/bbolt v1.3.6 // indirect
130-
go.opencensus.io v0.23.0 // indirect
131-
golang.org/x/crypto v0.1.0 // indirect
132-
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
133-
golang.org/x/net v0.1.0 // indirect
134-
golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0 // indirect
135-
golang.org/x/sys v0.1.0 // indirect
136-
golang.org/x/term v0.1.0 // indirect
137-
golang.org/x/text v0.4.0 // indirect
138-
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a // indirect
139-
google.golang.org/grpc v1.50.1 // indirect
140-
google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8 // indirect
156+
github.com/ulikunitz/xz v0.5.10 // indirect
157+
github.com/zondax/hid v0.9.1 // indirect
158+
github.com/zondax/ledger-go v0.14.1 // indirect
159+
go.etcd.io/bbolt v1.3.7 // indirect
160+
go.opencensus.io v0.24.0 // indirect
161+
golang.org/x/crypto v0.6.0 // indirect
162+
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb // indirect
163+
golang.org/x/net v0.8.0 // indirect
164+
golang.org/x/oauth2 v0.4.0 // indirect
165+
golang.org/x/sync v0.1.0 // indirect
166+
golang.org/x/sys v0.6.0 // indirect
167+
golang.org/x/term v0.6.0 // indirect
168+
golang.org/x/text v0.8.0 // indirect
169+
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
170+
google.golang.org/api v0.107.0 // indirect
171+
google.golang.org/appengine v1.6.7 // indirect
172+
google.golang.org/genproto v0.0.0-20230202175211-008b39050e57 // indirect
173+
google.golang.org/grpc v1.53.0 // indirect
174+
google.golang.org/protobuf v1.28.2-0.20230208135220-49eaa78c6c9c // indirect
141175
gopkg.in/ini.v1 v1.67.0 // indirect
142176
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
143177
gopkg.in/yaml.v2 v2.4.0 // indirect
@@ -147,19 +181,23 @@ require (
147181

148182
replace (
149183
// Use the cosmos keyring code
150-
github.com/99designs/keyring => github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76
151-
// Required replace for dragonberry security patch
152-
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
184+
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
185+
// Use rocksdb 7.9.2
186+
github.com/cometbft/cometbft-db => github.com/kava-labs/cometbft-db v0.7.0-rocksdb-v7.9.2-kava.1
153187
// Use cosmos-sdk fork with backported fix for unsafe-reset-all, staking transfer events, and custom tally handler support
154-
github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.45.9-kava.4
188+
github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.46.11-kava.1
189+
// See https://github.com/cosmos/cosmos-sdk/pull/13093
190+
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
191+
// Use ethermint fork that respects min-gas-price with NoBaseFee true and london enabled, and includes eip712 support
192+
github.com/evmos/ethermint => github.com/kava-labs/ethermint v0.21.0-kava-v22-2
155193
// See https://github.com/cosmos/cosmos-sdk/pull/10401, https://github.com/cosmos/cosmos-sdk/commit/0592ba6158cd0bf49d894be1cef4faeec59e8320
156194
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
157195
// Use the cosmos modified protobufs
158196
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
159-
// Use rocksdb 7.1.2
197+
// Downgraded to avoid bugs in following commits which causes "version does not exist" errors
198+
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
199+
// Use cometbft fork of tendermint
200+
github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.27
201+
// Indirect dependencies still use tendermint/tm-db
160202
github.com/tendermint/tm-db => github.com/kava-labs/tm-db v0.6.7-kava.1
161-
// Use ethermint fork that respects min-gas-price with NoBaseFee true and london enabled, and includes eip712 support
162-
github.com/tharsis/ethermint => github.com/kava-labs/ethermint v0.14.0-kava-v19.3
163-
// Make sure that we use grpc compatible with cosmos
164-
google.golang.org/grpc => google.golang.org/grpc v1.33.2
165203
)

0 commit comments

Comments
 (0)