Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: babylonlabs-io/babylon
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b1f4dbbd372c465772b45256cac7a9f7c0c1399a
Choose a base ref
..
head repository: babylonlabs-io/babylon
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4e67d4604b9c0ae94c570228d335ca046e7072ee
Choose a head ref
Showing with 798 additions and 2 deletions.
  1. +2 −2 contrib/images/Makefile
  2. +8 −0 contrib/images/e2e-initialization/init.Dockerfile
  3. +788 −0 x/btcstaking/types/validate_parsed_message_test.go
4 changes: 2 additions & 2 deletions contrib/images/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RELAYER_TAG := $(shell grep '^ENV RELAYER_TAG' cosmos-relayer/Dockerfile | cut -f3 -d\ )
BABYLON_FULL_PATH := $(shell git rev-parse --show-toplevel)
BABYLON_VERSION_BEFORE_UPGRADE ?= v0.9.1
BABYLON_VERSION_BEFORE_UPGRADE ?= v0.9.3

all: babylond cosmos-relayer

@@ -27,7 +27,7 @@ e2e-init-chain-rmi:

e2e-init-chain:
@DOCKER_BUILDKIT=1 docker build -t babylonlabs-io/babylond-e2e-init-chain --build-arg E2E_SCRIPT_NAME=chain --platform=linux/x86_64 \
-f e2e-initialization/init.Dockerfile ${BABYLON_FULL_PATH}
-f e2e-initialization/init.Dockerfile --build-arg VERSION="${BABYLON_VERSION_BEFORE_UPGRADE}" ${BABYLON_FULL_PATH}

e2e-init-chain-rmi:
docker rmi babylonlabs-io/babylond-e2e-init-chain 2>/dev/null; true
8 changes: 8 additions & 0 deletions contrib/images/e2e-initialization/init.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
FROM golang:1.21 as build-env

ARG E2E_SCRIPT_NAME
# Version to build. Default is empty
ARG VERSION

# Copy All
WORKDIR /go/src/github.com/babylonlabs-io/babylon
COPY ./ /go/src/github.com/babylonlabs-io/babylon/

# Handle if version is set
RUN if [ -n "${VERSION}" ]; then \
git fetch origin tag ${VERSION} --no-tags; \
git checkout -f ${VERSION}; \
fi

RUN LEDGER_ENABLED=false LINK_STATICALLY=false E2E_SCRIPT_NAME=${E2E_SCRIPT_NAME} make e2e-build-script

FROM debian:bookworm-slim AS wasm-link
Loading