This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[issue-172] Version pinned devnet allocations (#175)
- Loading branch information
Ethen
authored
Nov 6, 2023
1 parent
11e5f45
commit 8c1d724
Showing
10 changed files
with
34 additions
and
688 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
## Download and enter the OP monorepo | ||
echo "Downloading Optimism monorepo..." | ||
git clone https://github.com/ethereum-optimism/optimism.git | ||
cd optimism | ||
git checkout develop | ||
#!/bin/bash | ||
|
||
VERSION=$(cat go.mod | grep ethereum-optimism/optimism | awk '{print $2}' | sed 's/\/v//g') | ||
VERSION=$(echo ${VERSION} | sed 's/v//g') | ||
|
||
REPO_NAME=optimism-$(echo ${VERSION} | sed 's/v//g') | ||
|
||
echo "Downloading ${REPO_NAME} ..." | ||
git clone --branch v${VERSION} https://github.com/ethereum-optimism/optimism.git ${REPO_NAME} | ||
cd ${REPO_NAME} | ||
|
||
## Generate devnet allocations and persist them all into .devnet folder | ||
echo "Initializing monorepo..." | ||
make install-geth | ||
git submodule update --init --recursive | ||
make devnet-allocs | ||
mv .devnet ../.devnet | ||
make install-geth && | ||
git submodule update --init --recursive && | ||
make devnet-allocs && | ||
cp -R .devnet ../. && | ||
mv packages/contracts-bedrock/deploy-config/devnetL1.json ../.devnet/devnetL1.json | ||
|
||
## Clean up | ||
echo "Cleaning up..." | ||
cd ../ | ||
rm -rf optimism | ||
STATUS=$? | ||
|
||
## Force cleanup of monorepo | ||
echo "${STATUS} Cleaning up ${REPO_NAME} repo ..." | ||
cd ../ && | ||
rm -rf ${REPO_NAME} | ||
|
||
if [ $? -eq 0 ] ; then | ||
echo "Successfully cleaned up ${REPO_NAME} repo" | ||
exit ${STATUS} | ||
else | ||
echo "Failed to clean up ${REPO_NAME} repo" | ||
exit ${STATUS} | ||
fi |