#!/bin/bash # TODO: Make sure contracts are not deployed on L2 set -e if [ -n "$CERC_SCRIPT_DEBUG" ]; then set -x fi 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 yarn contracts:deploy-optimism