• Georgios Konstantopoulos's avatar
    feat: hardhat-deploy (#418) · 3e2700d1
    Georgios Konstantopoulos authored
    * chore(hardhat-ovm): yarn lint:fix
    
    * install hardhat-deploy
    
    * refactor: move predeploys to own file
    
    * feat: enable hardhat-deploy on hardhat config
    
    * feat(contracts): add deployment steps
    
    * feat(ops): copy over any additional build files
    
    * ops: make scripts wait for more retries
    
    hardhat-deploy is slower and requires re-compiling
    3e2700d1
geth.sh 692 Bytes
#!/bin/bash
RETRIES=${RETRIES:-40}
# get the addrs from the URL provided
ADDRESSES=$(curl --retry-connrefused --retry $RETRIES --retry-delay 5 $URL)

function envSet() {
    VAR=$1
    export $VAR=$(echo $ADDRESSES | jq -r ".$2")
}

# set all the necessary env vars
envSet ETH1_ADDRESS_RESOLVER_ADDRESS  AddressManager
envSet ETH1_L1_CROSS_DOMAIN_MESSENGER_ADDRESS Proxy__OVM_L1CrossDomainMessenger
envSet ROLLUP_ADDRESS_MANAGER_OWNER_ADDRESS Deployer

# set the address to the proxy gateway if possible
envSet ETH1_L1_ETH_GATEWAY_ADDRESS Proxy__OVM_L1ETHGateway
if [ $ETH1_L1_ETH_GATEWAY_ADDRESS == null ]; then
    envSet ETH1_L1_ETH_GATEWAY_ADDRESS OVM_L1ETHGateway
fi

geth --verbosity=6