diff --git a/Dockerfile.mainnet b/Dockerfile.mainnet index 3f5c885..13edec7 100644 --- a/Dockerfile.mainnet +++ b/Dockerfile.mainnet @@ -1,5 +1,5 @@ -ARG build_image=golang:1.21.8-bullseye -FROM $build_image as kava-rosetta-build +ARG build_image=golang:1.22.9-bullseye +FROM $build_image AS kava-rosetta-build RUN apt-get update \ && apt-get install -y git make gcc \ @@ -25,6 +25,8 @@ ARG kava_v0_23_0_upgrade_version=v0.23.1 ARG kava_v0_24_0_upgrade_version=v0.24.0 ARG kava_v0_25_0_upgrade_version=v0.25.0 ARG kava_v0_26_0_upgrade_version=v0.26.0 +ARG kava_v0_27_0_upgrade_version=v0.27.0 + ENV KAVA_GENESIS_VERSION=$kava_genesis_version ENV KAVA_V0_18_0_UPGRADE_VERSION=$kava_v0_18_0_upgrade_version ENV KAVA_V0_19_0_UPGRADE_VERSION=$kava_v0_19_0_upgrade_version @@ -33,6 +35,7 @@ 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 ENV KAVA_V0_26_0_UPGRADE_VERSION=$kava_v0_26_0_upgrade_version +ENV KAVA_V0_27_0_UPGRADE_VERSION=$kava_v0_27_0_upgrade_version RUN git clone https://github.com/kava-labs/kava \ && cd kava \ @@ -83,7 +86,13 @@ RUN cd kava \ && mkdir -p /app/cosmovisor/upgrades/v0.26.0/bin \ && mv /go/bin/kava /app/cosmovisor/upgrades/v0.26.0/bin -ARG kava_rosetta_version=v8.0.0 +RUN cd kava \ + && git checkout $KAVA_V0_27_0_UPGRADE_VERSION \ + && make install \ + && mkdir -p /app/cosmovisor/upgrades/v0.27.0/bin \ + && mv /go/bin/kava /app/cosmovisor/upgrades/v0.27.0/bin + +ARG kava_rosetta_version=v9.0.0 ENV KAVA_ROSETTA_VERSION=$kava_rosetta_version RUN git clone https://github.com/Kava-Labs/rosetta-kava.git \ diff --git a/Dockerfile.mainnet.dev b/Dockerfile.mainnet.dev index 41ef200..68d9f8b 100644 --- a/Dockerfile.mainnet.dev +++ b/Dockerfile.mainnet.dev @@ -1,5 +1,5 @@ -ARG build_image=golang:1.21.8-bullseye -FROM $build_image as kava-rosetta-build +ARG build_image=golang:1.22.9-bullseye +FROM $build_image AS kava-rosetta-build RUN apt-get update \ && apt-get install -y git make gcc \ @@ -25,6 +25,7 @@ ARG kava_v0_23_0_upgrade_version=v0.23.1 ARG kava_v0_24_0_upgrade_version=v0.24.0 ARG kava_v0_25_0_upgrade_version=v0.25.0 ARG kava_v0_26_0_upgrade_version=v0.26.0 +ARG kava_v0_27_0_upgrade_version=v0.27.0 ENV KAVA_GENESIS_VERSION=$kava_genesis_version ENV KAVA_V0_18_0_UPGRADE_VERSION=$kava_v0_18_0_upgrade_version @@ -34,6 +35,7 @@ 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 ENV KAVA_V0_26_0_UPGRADE_VERSION=$kava_v0_26_0_upgrade_version +ENV KAVA_V0_27_0_UPGRADE_VERSION=$kava_v0_27_0_upgrade_version RUN git clone https://github.com/kava-labs/kava \ && cd kava \ @@ -84,6 +86,12 @@ RUN cd kava \ && mkdir -p /app/cosmovisor/upgrades/v0.26.0/bin \ && mv /go/bin/kava /app/cosmovisor/upgrades/v0.26.0/bin +RUN cd kava \ + && git checkout $KAVA_V0_27_0_UPGRADE_VERSION \ + && make install \ + && mkdir -p /app/cosmovisor/upgrades/v0.27.0/bin \ + && mv /go/bin/kava /app/cosmovisor/upgrades/v0.27.0/bin + COPY . rosetta-kava RUN cd rosetta-kava \ diff --git a/go.mod b/go.mod index 163c22b..75d00de 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.10 github.com/fatih/color v1.14.1 github.com/google/go-cmp v0.6.0 - github.com/kava-labs/kava v0.27.0-alpha.0 + github.com/kava-labs/kava v0.27.0 github.com/spf13/cobra v1.8.1 github.com/stretchr/testify v1.9.0 github.com/tendermint/go-amino v0.16.0 diff --git a/go.sum b/go.sum index fbfa97a..36a42f3 100644 --- a/go.sum +++ b/go.sum @@ -909,8 +909,8 @@ github.com/kava-labs/ethermint v0.21.0-kava-v27.0 h1:TzFhLQULsyQUA+b620FMGvZHTNr github.com/kava-labs/ethermint v0.21.0-kava-v27.0/go.mod h1:zGcUyJhdcoO0VfxAQwiXpGjBAV8w+Hig1yaH2l7KB5k= github.com/kava-labs/iavl v1.2.0-kava.2 h1:RfEqQ9u7fvhzXOfYxxqEnVNCTb3pYJiT7X86N6cgI0M= github.com/kava-labs/iavl v1.2.0-kava.2/go.mod h1:nNoeUFw64lfPvcj3yZ7W7BvmlTxu9ANGsJcUiPSOAdw= -github.com/kava-labs/kava v0.27.0-alpha.0 h1:fuvah03CulRlQmc+Zo3ZrnJ4Nin/hiqikdI7LkBo5bU= -github.com/kava-labs/kava v0.27.0-alpha.0/go.mod h1:0ASqz/hGc8EkbVfwfnaXlOGBV8/bo8+OTWP8WW+suG8= +github.com/kava-labs/kava v0.27.0 h1:QhGTjeHhaeM8AYeaze9/RXXBvMffukfZYzoKbgS4Tl8= +github.com/kava-labs/kava v0.27.0/go.mod h1:0ASqz/hGc8EkbVfwfnaXlOGBV8/bo8+OTWP8WW+suG8= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=