mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
hyperlane v3.5 cli works
This commit is contained in:
parent
ae562bcb31
commit
135d31202d
3 changed files with 20 additions and 9 deletions
|
|
@ -4,11 +4,10 @@ RUN apk update && apk add --no-cache git yarn expect
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
# Hyperlane 3.3 release w/ https://github.com/hyperlane-xyz/hyperlane-monorepo/pull/3063 cherry-picked in.
|
# Hyperlane 3.5 release w/ current primev changes in main
|
||||||
# See https://github.com/hyperlane-xyz/hyperlane-monorepo/compare/%40hyperlane-xyz/sdk%403.3.0...primevprotocol:hyperlane-monorepo:v3.3
|
|
||||||
RUN git clone https://github.com/primevprotocol/hyperlane-monorepo.git
|
RUN git clone https://github.com/primevprotocol/hyperlane-monorepo.git
|
||||||
WORKDIR /hyperlane-monorepo
|
WORKDIR /hyperlane-monorepo
|
||||||
RUN git checkout b1c4064272af7f3382391e9f7c4ce67ac1b84976
|
RUN git checkout 4f73750291e9afa249ffa4d2fe34227cc9f275a8
|
||||||
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ sleep 10
|
||||||
if test -f /hyperlane-monorepo/artifacts/done; then
|
if test -f /hyperlane-monorepo/artifacts/done; then
|
||||||
echo "Deploy artifacts already exist. Skipping deployment."
|
echo "Deploy artifacts already exist. Skipping deployment."
|
||||||
else
|
else
|
||||||
|
echo "Deploying core contracts"
|
||||||
# Define the expect script inline
|
# Define the expect script inline
|
||||||
/usr/bin/expect <<EOF
|
/usr/bin/expect <<EOF
|
||||||
set timeout -1
|
set timeout -1
|
||||||
|
|
@ -42,13 +42,24 @@ fi
|
||||||
if test -f artifacts/done-warp-route; then
|
if test -f artifacts/done-warp-route; then
|
||||||
echo "Warp route already deployed. Skipping."
|
echo "Warp route already deployed. Skipping."
|
||||||
else
|
else
|
||||||
echo "Deploying warp route."
|
echo "Deploying warp route"
|
||||||
hyperlane deploy warp \
|
# Define the expect script inline
|
||||||
|
/usr/bin/expect <<EOF
|
||||||
|
set timeout -1
|
||||||
|
spawn hyperlane deploy warp \
|
||||||
--yes \
|
--yes \
|
||||||
--key $CONTRACT_DEPLOYER_PRIVATE_KEY \
|
--key $CONTRACT_DEPLOYER_PRIVATE_KEY \
|
||||||
--chains /chain-config.yml \
|
--chains /chain-config.yml \
|
||||||
--config /warp-tokens.yml \
|
--config /warp-tokens.yml \
|
||||||
--core /hyperlane-monorepo/artifacts/core-deployment.json
|
--core /hyperlane-monorepo/artifacts/core-deployment.json
|
||||||
|
expect {
|
||||||
|
"*low balance on*" {
|
||||||
|
send -- "Y\r"
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
|
eof
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
# Standardize artifact names
|
# Standardize artifact names
|
||||||
for file in /hyperlane-monorepo/artifacts/warp-deployment-*.json; do
|
for file in /hyperlane-monorepo/artifacts/warp-deployment-*.json; do
|
||||||
|
|
@ -58,6 +69,7 @@ else
|
||||||
mv "$file" "/hyperlane-monorepo/artifacts/warp-ui-token-config.json"
|
mv "$file" "/hyperlane-monorepo/artifacts/warp-ui-token-config.json"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Signal done
|
||||||
touch artifacts/done-warp-route
|
touch artifacts/done-warp-route
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ ADDRESS=0xa43b806D2f09AE94dfa38bc00d6F75426D274540
|
||||||
PRIVATE_KEY=0x8b21e3bc5c26d3327109d341d121fbfb7cb79c95fba5eb2f8c064f87332df7dd
|
PRIVATE_KEY=0x8b21e3bc5c26d3327109d341d121fbfb7cb79c95fba5eb2f8c064f87332df7dd
|
||||||
|
|
||||||
# make print-warp-deploy prints these contract addrs
|
# make print-warp-deploy prints these contract addrs
|
||||||
SEPOLIA_ROUTER=0xA4707f60e0914850605d3a31470fBBe296F660d7
|
SEPOLIA_ROUTER=0x11dE1a80570f36E57b3F15dAb008DFEAA4F1bf05
|
||||||
SIDECHAIN_ROUTER=0xc9C155970C37e0343E88f0E239Bf28428943C1Fb
|
SIDECHAIN_ROUTER=0xf46a69166dB5C2a7ff97D50Fc46B5fb663CeD4c3
|
||||||
|
|
||||||
# Store initial sidechain ERC20 balance
|
# Store initial sidechain ERC20 balance
|
||||||
SIDECHAIN_ERC20_BALANCE=$(cast call $SIDECHAIN_ROUTER "balanceOf(address)" $ADDRESS)
|
SIDECHAIN_ERC20_BALANCE=$(cast call $SIDECHAIN_ROUTER "balanceOf(address)" $ADDRESS)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue