From 3389bc91eb356bd62b7e7ca3586355fc2b445c82 Mon Sep 17 00:00:00 2001 From: chliddle Date: Wed, 28 Aug 2024 15:02:21 +0100 Subject: [PATCH] Update axelar config --- chains.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/chains.yaml b/chains.yaml index f47ad80e..2d7ebeaa 100644 --- a/chains.yaml +++ b/chains.yaml @@ -212,19 +212,27 @@ github-organization: axelarnetwork github-repo: axelar-core dockerfile: cosmos - build-env: - - BUILD_TAGS=muslc binaries: - bin/axelard - pre-build: | - apk add unzip bash jq - wget https://github.com/axelarnetwork/axelar-cgp-solidity/releases/download/v2.1.0/Bytecode-v2.1.0.zip - unzip Bytecode-v2.1.0.zip -d contract-artifacts/gateway - bash scripts/populate-bytecode.sh build-target: | set -eux + apk add --update nodejs npm jq py3-pip + CONTRACT_VERSION=$(cat contract-version.json | jq -r '.gateway') + git clone -b ${CONTRACT_VERSION} --single-branch https://github.com/axelarnetwork/axelar-cgp-solidity.git + cd axelar-cgp-solidity + # The npm commands will complain about nodejs versions but will proceed. + # See issue: https://github.com/strangelove-ventures/heighliner/issues/92 + npm ci + npm run build + # prettier + alpine + certain versions of the flatten-contracts scripts fail during prettier write, which is not fully necessary since hardhat flatten still outputs artifacts + sed -i '/prettier/d' scripts/flatten-contracts.sh + npm run flatten + mkdir -p ../contract-artifacts/gateway + mv artifacts/* ../contract-artifacts/ + cd .. VERSION=$(echo $(git describe --tags) | sed 's/^v//') COMMIT=$(git log -1 --format='%H') + BUILD_TAGS=muslc LDFLAGS="$LDFLAGS -X github.com/cosmos/cosmos-sdk/version.Name=axelar \ -X github.com/cosmos/cosmos-sdk/version.AppName=axelard \ -X github.com/cosmos/cosmos-sdk/version.Version=$VERSION \