Commit 5644a63a authored by vicotor's avatar vicotor

update forge deploy

parent 1264c941
......@@ -40,8 +40,8 @@ services:
networks:
- exchain
volumes:
- "./layer2/deployments:/app/deployments"
- "./layer2/contracts-bedrock:/app/contracts"
- "./deployer:/app/contracts/deployments"
- "./.git:/app/contracts/.git"
- ".envrc:/app/.envrc"
entrypoint: /app/contracts/deploy.sh
......@@ -53,9 +53,10 @@ services:
networks:
- exchain
volumes:
- "./layer2/deployments:/root/deployments"
- "./deployer:/root/deployments"
- "./layer2/alloc.json:/root/alloc.json"
- ".envrc:/root/.envrc"
entrypoint: opnode genesis l2 --deploy-config /root/deployments/config.json --l1-deployments /root/deployments/artifact.json --l2-allocs /root/deployments/alloc.json --outfile.l2 /root/deployments/genesis.json --outfile.rollup ./root/deployments/rollup.json --l1-rpc=http://172.80.1.2:8545
entrypoint: opnode genesis l2 --deploy-config /root/deployments/config.json --l1-deployments /root/deployments/artifact.json --l2-allocs /root/alloc.json --outfile.l2 /root/deployments/genesis.json --outfile.rollup ./root/deployments/rollup.json --l1-rpc=http://172.80.1.2:8545
depends_on:
- forge-deploy
......
{}
\ No newline at end of file
#!/bin/bash
target=/app/deployments
basedir=/app/contracts
tmptarget=$basedir/deployments
target=$basedir/deployments
source /app/.envrc
rm -rf $tmptarget
cp -r $target $basedir/
rm -rf $target/*
ls $basedir/scripts/getting-started
cd $basedir && ./scripts/getting-started/config.sh
cd $basedir && \
DEPLOYMENT_OUTFILE=$tmptarget/artifact.json \
DEPLOY_CONFIG_PATH=$tmptarget/config.json \
DEPLOYMENT_OUTFILE=$target/artifact.json \
DEPLOY_CONFIG_PATH=$target/config.json \
forge script scripts/deploy/Deploy.s.sol:Deploy \
--non-interactive \
--broadcast --private-key $PRIVATE_KEY \
--rpc-url $L1_RPC_URL
cp $tmptarget/* $target/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment