Skip to content

Commit

Permalink
rename deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Feb 13, 2023
1 parent 49c008f commit 455b2ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ async function main() {
const admin = deployParameters.admin || deployer.address;
const trustedAggregator = deployParameters.trustedAggregator || deployer.address;
const timelockAddress = deployParameters.timelockAddress || deployer.address;
const zkEVMOwner = deployParameters.zkEVMOwner || deployer.address;

/*
*Deployment MATIC
Expand Down Expand Up @@ -316,7 +317,9 @@ async function main() {
if (!deployParameters.forceBatchAllowed) {
await (await polygonZkEVMContract.setForcedBatchesAllowed(1)).wait();
}

if (zkEVMOwner !== deployer.address) {
await (await polygonZkEVMContract.transferOwnership(zkEVMOwner)).wait();
}
/*
*Deployment Time lock
*/
Expand Down
1 change: 1 addition & 0 deletions deployment/deploy_parameters.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"trustedAggregator":"0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D",
"minDelayTimelock": 3600,
"timelockAddress": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D",
"zkEVMOwner": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D",
"pendingStateTimeout": 604799,
"trustedAggregatorTimeout": 604799,
"forkID": 1,
Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/deploy-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sleep 5
node docker/scripts/fund-accounts.js
cp docker/scripts/deploy_parameters_docker.json deployment/deploy_parameters.json
cp docker/scripts/genesis_docker.json deployment/genesis.json
npx hardhat run deployment/deployContracts.js --network localhost
npx hardhat run deployment/deployTestnet.js --network localhost
mkdir docker/deploymentOutput
mv deployment/deploy_output.json docker/deploymentOutput
docker-compose -f docker/docker-compose.geth.yml down
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"saveDeployment:goerli": "mkdir -p deployments/goerli_$(date +%s) && cp -r deployment/deploy_*.json deployments/goerli_$(date +%s) && cp .openzeppelin/goerli.json deployments/goerli_$(date +%s) && cp deployment/genesis.json deployments/goerli_$(date +%s)",
"test": "npx hardhat test test/contracts/**.test.js",
"docgen": "npx solidity-docgen --solc-module solc-0.8 -t ./docs/templates -e ./contracts/verifiers,./contracts/mocks",
"deploy:ZkEVM:hardhat": "rm -f .openzeppelin/unknown-31337.json && node deployment/createGenesis.js && npx hardhat run deployment/deployContracts.js --network hardhat",
"deploy:ZkEVM:goerli": "node deployment/createGenesis.js && npx hardhat run deployment/deployContracts.js --network goerli && npm run saveDeployment:goerli",
"deploy:ZkEVM:hardhat": "rm -f .openzeppelin/unknown-31337.json && node deployment/createGenesis.js && npx hardhat run deployment/deployTestnet.js --network hardhat",
"deploy:ZkEVM:goerli": "node deployment/createGenesis.js && npx hardhat run deployment/deployTestnet.js --network goerli && npm run saveDeployment:goerli",
"upgrade:timelock:goerli": "npx hardhat run upgrade/timeLockUpgrade.js --network goerli",
"verify:ZkEVM:goerli": "npx hardhat run deployment/verifyContracts.js --network goerli",
"lint": "npx eslint ./test && npx eslint ./docker/scripts && npx eslint ./deployment && npx eslint ./src",
Expand Down

0 comments on commit 455b2ba

Please sign in to comment.