Skip to content

Commit

Permalink
Axelar v0.35 wasm requirements update (#223)
Browse files Browse the repository at this point in the history
* Fix missing axelar build flags for v0.35.0 testnet upgrade

* Update solidity contract version to dynamic value

* Remove prettier format from axelar flatten contracts since its causing issues on alpine build
  • Loading branch information
pharr117 authored Mar 6, 2024
1 parent 6b8b918 commit fd3fc0f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,15 @@
build-target: |
set -eux
apk add --update nodejs npm jq py3-pip
git clone -b v4.3.0 --single-branch https://github.com/axelarnetwork/axelar-cgp-solidity.git
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/
Expand All @@ -201,7 +204,12 @@
-X github.com/cosmos/cosmos-sdk/version.AppName=axelard \
-X github.com/cosmos/cosmos-sdk/version.Version=$VERSION \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$BUILD_TAGS" \
-X github.com/cosmos/cosmos-sdk/version.Commit=$COMMIT"
-X github.com/cosmos/cosmos-sdk/version.Commit=$COMMIT \
-X github.com/CosmWasm/wasmd/x/wasm/types/MaxWasmSize=3145728 \
-X github.com/axelarnetwork/axelar-core/x/axelarnet/exported.NativeAsset=uaxl \
-X github.com/axelarnetwork/axelar-core/app.WasmEnabled=true \
-X github.com/axelarnetwork/axelar-core/app.IBCWasmHooksEnabled=false \
-X github.com/axelarnetwork/axelar-core/app.WasmCapabilities="iterator,staking,stargate,cosmwasm_1_3""
go build -o ./bin/axelard -mod=readonly -tags "$BUILD_TAGS" -ldflags "$LDFLAGS" ./cmd/axelard
platforms:
- linux/amd64
Expand Down

0 comments on commit fd3fc0f

Please sign in to comment.