Skip to content

Commit

Permalink
Add support for v0.25.0-alpha.0 public testnet upgrade (#67)
Browse files Browse the repository at this point in the history
* bump kava to v0.25.0-alpha.0

* Add v0.25.0-alpha.0 to testnet Dockerfiles

* Bump rosetta version in Dockerfile v7.0.0-beta.1
  • Loading branch information
drklee3 authored Nov 3, 2023
1 parent ed866ce commit 13f3c07
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 63 deletions.
11 changes: 10 additions & 1 deletion Dockerfile.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ ARG kava_v0_21_0_upgrade_version=v0.21.0-alpha.1
ARG kava_v0_22_0_upgrade_version=v0.22.0-alpha.1
ARG kava_v0_23_0_upgrade_version=v0.23.0-alpha.0
ARG kava_v0_24_0_upgrade_version=v0.24.0-alpha.0
ARG kava_v0_25_0_upgrade_version=v0.25.0-alpha.0

ENV KAVA_GENESIS_VERSION=$kava_genesis_version
ENV KAVA_V0_19_0_UPGRADE_VERSION=$kava_v0_19_0_upgrade_version
ENV KAVA_V0_19_1_UPGRADE_VERSION=$kava_v0_19_1_upgrade_version
Expand All @@ -41,6 +43,7 @@ ENV KAVA_V0_21_0_UPGRADE_VERSION=$kava_v0_21_0_upgrade_version
ENV KAVA_V0_22_0_UPGRADE_VERSION=$kava_v0_22_0_upgrade_version
ENV KAVA_V0_23_0_UPGRADE_VERSION=$kava_v0_23_0_upgrade_version
ENV KAVA_V0_24_0_UPGRADE_VERSION=$kava_v0_24_0_upgrade_version
ENV KAVA_V0_25_0_UPGRADE_VERSION=$kava_v0_25_0_upgrade_version

RUN git clone https://github.com/kava-labs/kava \
&& cd kava \
Expand Down Expand Up @@ -115,7 +118,13 @@ RUN cd kava \
&& mkdir -p /app/cosmovisor/upgrades/v0.24.0-alpha.0/bin \
&& mv /go/bin/kava /app/cosmovisor/upgrades/v0.24.0-alpha.0/bin

ARG kava_rosetta_version=v6.0.0-beta.1
RUN cd kava \
&& git checkout $KAVA_V0_25_0_UPGRADE_VERSION \
&& make install \
&& mkdir -p /app/cosmovisor/upgrades/v0.25.0-alpha.0/bin \
&& mv /go/bin/kava /app/cosmovisor/upgrades/v0.25.0-alpha.0/bin

ARG kava_rosetta_version=v7.0.0-beta.1
ENV KAVA_ROSETTA_VERSION=$kava_rosetta_version

RUN git clone https://github.com/Kava-Labs/rosetta-kava.git \
Expand Down
11 changes: 10 additions & 1 deletion Dockerfile.testnet.dev
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ ARG kava_v0_21_0_upgrade_version=v0.21.0-alpha.1
ARG kava_v0_22_0_upgrade_version=v0.22.0-alpha.1
ARG kava_v0_23_0_upgrade_version=v0.23.0-alpha.0
ARG kava_v0_24_0_upgrade_version=v0.24.0-alpha.0
ARG kava_v0_25_0_upgrade_version=v0.25.0-alpha.0

ENV KAVA_GENESIS_VERSION=$kava_genesis_version
ENV KAVA_V0_19_0_UPGRADE_VERSION=$kava_v0_19_0_upgrade_version
ENV KAVA_V0_19_1_UPGRADE_VERSION=$kava_v0_19_1_upgrade_version
Expand All @@ -41,6 +43,7 @@ ENV KAVA_V0_21_0_UPGRADE_VERSION=$kava_v0_21_0_upgrade_version
ENV KAVA_V0_22_0_UPGRADE_VERSION=$kava_v0_22_0_upgrade_version
ENV KAVA_V0_23_0_UPGRADE_VERSION=$kava_v0_23_0_upgrade_version
ENV KAVA_V0_24_0_UPGRADE_VERSION=$kava_v0_24_0_upgrade_version
ENV KAVA_V0_25_0_UPGRADE_VERSION=$kava_v0_25_0_upgrade_version

RUN git clone https://github.com/kava-labs/kava \
&& cd kava \
Expand Down Expand Up @@ -115,10 +118,16 @@ RUN cd kava \
&& mkdir -p /app/cosmovisor/upgrades/v0.24.0-alpha.0/bin \
&& mv /go/bin/kava /app/cosmovisor/upgrades/v0.24.0-alpha.0/bin

RUN cd kava \
&& git checkout $KAVA_V0_25_0_UPGRADE_VERSION \
&& make install \
&& mkdir -p /app/cosmovisor/upgrades/v0.25.0-alpha.0/bin \
&& mv /go/bin/kava /app/cosmovisor/upgrades/v0.25.0-alpha.0/bin

COPY . rosetta-kava

RUN cd rosetta-kava \
&& make install
&& make install

FROM ubuntu:22.04

Expand Down
40 changes: 20 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ require (
github.com/coinbase/rosetta-sdk-go v0.7.9
github.com/cosmos/cosmos-sdk v0.46.11
github.com/fatih/color v1.13.0
github.com/kava-labs/kava v0.24.0
github.com/kava-labs/kava v0.25.0-alpha.0
github.com/spf13/cobra v1.6.1
github.com/stretchr/testify v1.8.2
github.com/stretchr/testify v1.8.3
github.com/tendermint/go-amino v0.16.0
github.com/tendermint/tendermint v0.34.27
)

require (
cloud.google.com/go v0.107.0 // indirect
cloud.google.com/go/compute v1.15.1 // indirect
cloud.google.com/go v0.110.0 // indirect
cloud.google.com/go/compute v1.19.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v0.8.0 // indirect
cloud.google.com/go/storage v1.27.0 // indirect
cloud.google.com/go/iam v0.13.0 // indirect
cloud.google.com/go/storage v1.28.1 // indirect
cosmossdk.io/errors v1.0.0-beta.7 // indirect
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
Expand Down Expand Up @@ -72,16 +72,16 @@ require (
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/gateway v1.1.0 // indirect
github.com/gogo/protobuf v1.3.3 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/glog v1.1.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/flatbuffers v1.12.1 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.7.1 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
Expand All @@ -108,7 +108,7 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.15.15 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/linxGnu/grocksdb v1.7.15 // indirect
github.com/linxGnu/grocksdb v1.8.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/manifoldco/promptui v0.9.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand Down Expand Up @@ -158,20 +158,20 @@ require (
github.com/zondax/ledger-go v0.14.1 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/oauth2 v0.4.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.7.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.107.0 // indirect
google.golang.org/api v0.114.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230202175211-008b39050e57 // indirect
google.golang.org/grpc v1.53.0 // indirect
google.golang.org/protobuf v1.28.2-0.20230208135220-49eaa78c6c9c // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/grpc v1.56.3 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
Loading

0 comments on commit 13f3c07

Please sign in to comment.