Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZlotin committed Oct 28, 2024
1 parent 3fcc14e commit f0e5430
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions deploy.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ trap chain EXIT

chains=(eth arb bnb matic ftm op linea blast base zkevm manta sei)

echo $chains | tr ' ' '\n' | parallel "\
echo \"πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”— {} πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€\";\
chain {};\
forge script Deploy --broadcast \$([[ -n \$ETHERSCAN_API_KEY ]] && echo '--verify --retries 100')" | \
tee >( \
grep ': address ' | sed 's/: address / /' | while read c a; do; [[ $a != $(jq -r ".$c" $config) ]] && echo "❌ address mismatch: $c $a"; done; \
echo $chains | tr ' ' '\n' | parallel --keep-order "
echo \"\nπŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”—πŸ”— {} πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€\n\";
chain {};
forge script Deploy --broadcast --verify --resume \
\$([[ -n \$VERIFIER ]] && echo --verifier \$VERIFIER)" |
tee >(
grep ': address ' | sed 's/: address / /' | while read c a; do;
[[ $a != $(jq -r ".$c" $config) ]] && echo "❌ address mismatch: $c $a";
done;
)


2 changes: 1 addition & 1 deletion script/input/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"admin": "0x000066320a467dE62B1548f46465abBB82662331",
"executor": "0x0b4201791F0f4AeB5c9b28099fF254229418Eec5",
"executor": "0xD60EA669f0b8f1C094F02cEc5ba5ae1Ec321F4E0",
"reactor": "0xc19E284C8f5ccef721a761d0CA18dc8E9a612aFd",
"reactor2": "0x41EECa1CAccD83757c84ad6531B935F4600AA094",
"reactorPartial": "0x733aB5c10ad6D5183a135C733C135F9aBD4Ef0EA",
Expand Down

0 comments on commit f0e5430

Please sign in to comment.