Skip to content

Commit

Permalink
Update axelar config
Browse files Browse the repository at this point in the history
  • Loading branch information
chliddle committed Aug 28, 2024
1 parent b843d57 commit 3389bc9
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3389bc9

Please sign in to comment.