2024-07-17 09:29:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# TODO: Make sure contracts are not deployed on L2
|
|
|
|
set -e
|
|
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
2024-07-18 04:52:37 +00:00
|
|
|
echo "Environment variables..."
|
|
|
|
echo "CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}"
|
|
|
|
echo "CERC_GETH_URL: ${CERC_GETH_URL}"
|
|
|
|
echo "CERC_OPTIMISM_URL: ${CERC_OPTIMISM_URL}"
|
|
|
|
echo "CERC_GETH_CHAIN_ID: ${CERC_GETH_CHAIN_ID}"
|
|
|
|
echo "CERC_OPTIMISM_CHAIN_ID: ${CERC_OPTIMISM_CHAIN_ID}"
|
|
|
|
echo "CERC_GETH_DEPLOYER_PK: ${CERC_GETH_DEPLOYER_PK}"
|
|
|
|
echo "CERC_OPTIMISM_DEPLOYER_PK: ${CERC_OPTIMISM_DEPLOYER_PK}"
|
|
|
|
echo "CERC_DISABLE_DETERMINISTIC_DEPLOYMENT: true"
|
|
|
|
|
|
|
|
export GETH_URL=$CERC_GETH_URL
|
|
|
|
export GETH_CHAIN_ID=$CERC_GETH_CHAIN_ID
|
|
|
|
export OPTIMISM_CHAIN_ID=$CERC_OPTIMISM_CHAIN_ID
|
|
|
|
export OPTIMISM_URL=$CERC_OPTIMISM_URL
|
|
|
|
export GETH_DEPLOYER_PK=$CERC_GETH_DEPLOYER_PK
|
|
|
|
export OPTIMISM_DEPLOYER_PK=$GETH_DEPLOYER_PK
|
|
|
|
export DISABLE_DETERMINISTIC_DEPLOYMENT=true
|
|
|
|
|
|
|
|
yarn contracts:deploy-geth
|
2024-07-18 11:48:24 +00:00
|
|
|
yarn contracts:deploy-optimism
|