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