Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding holesky testnet support #263

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ const config: HardhatUserConfig = {
count: 20,
},
},
holesky: {
url: process.env.HOLESKY_PROVIDER
? process.env.HOLESKY_PROVIDER
: `https://holesky.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
localhost: {
url: "http://127.0.0.1:8545",
accounts: {
Expand Down Expand Up @@ -254,6 +265,7 @@ const config: HardhatUserConfig = {
polygonZKEVMMainnet: `${process.env.ETHERSCAN_ZKEVM_API_KEY}`,
goerli: `${process.env.ETHERSCAN_API_KEY}`,
sepolia: `${process.env.ETHERSCAN_API_KEY}`,
holesky: `${process.env.ETHERSCAN_API_KEY}`,
mainnet: `${process.env.ETHERSCAN_API_KEY}`,
zkevmDevnet: `${process.env.ETHERSCAN_API_KEY}`,
},
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@
"upgradev2L2:timelock:polygonZKEVMMainnet": "npx hardhat run upgrade/upgradeToV2/upgradeL2ToV2.ts --network polygonZKEVMMainnet",
"upgradev2:timelock:mainnet": "npx hardhat run upgrade/upgradeToV2/upgradeToV2.ts --network mainnet && npm run saveUpgradeV2:mainnet",
"verify:upgradeV2:mainnet": "npx hardhat run upgrade/upgradeToV2/verifyContracts.ts --network mainnet",
"saveUpgradeV2:mainnet": "mkdir -p upgrade/upgradeToV2/mainnet_$(date +%s) && cp -r upgrade/upgradeToV2/upgrade_*.json upgrade/upgradeToV2/mainnet_$(date +%s) && cp -r upgrade/upgradeToV2/deploy_*.json upgrade/upgradeToV2/mainnet_$(date +%s) && cp .openzeppelin/mainnet.json upgrade/upgradeToV2/mainnet_$(date +%s)"
"saveUpgradeV2:mainnet": "mkdir -p upgrade/upgradeToV2/mainnet_$(date +%s) && cp -r upgrade/upgradeToV2/upgrade_*.json upgrade/upgradeToV2/mainnet_$(date +%s) && cp -r upgrade/upgradeToV2/deploy_*.json upgrade/upgradeToV2/mainnet_$(date +%s) && cp .openzeppelin/mainnet.json upgrade/upgradeToV2/mainnet_$(date +%s)",
"prepare:testnet:ZkEVM:holesky": "npx hardhat run deployment/testnet/prepareTestnet.ts --network holesky",
"deploy:v2:holesky": "npx hardhat compile && npx ts-node deployment/v2/1_createGenesis.ts && npx hardhat run deployment/v2/2_deployPolygonZKEVMDeployer.ts --network holesky && npx hardhat run deployment/v2/3_deployContracts.ts --network holesky && npx hardhat run deployment/v2/4_createRollup.ts --network holesky && npm run saveDeployment:holesky",
"deploy:testnet:v2:holesky": "npx hardhat compile && rm -f deployment/v2/deploy_ongoing.json && npm run prepare:testnet:ZkEVM:holesky && npm run deploy:v2:holesky",
"verify:v2:holesky": "npx hardhat run deployment/v2/verifyContracts.js --network holesky",
"saveDeployment:holesky": "mkdir -p deployments/holesky_$(date +%s) && cp -r deployment/v2/deploy_*.json deployments/holesky_$(date +%s) && cp .openzeppelin/holesky.json deployments/holesky_$(date +%s) && cp deployment/v2/genesis.json deployments/holesky_$(date +%s) && cp deployment/v2/create_rollup_output.json deployments/holesky_$(date +%s)",
"testnetPol:upgradeV2:holesky": "npx hardhat run upgrade/upgradeToV2/testnet/deployTestnetPol.ts --network holesky",
"upgradev2:timelock:holesky": "npx hardhat run upgrade/upgradeToV2/upgradeToV2.ts --network holesky && npm run saveUpgradeV2:holesky",
"verify:upgradeV2:holesky": "npx hardhat run upgrade/upgradeToV2/verifyContracts.ts --network holesky",
"saveUpgradeV2:holesky": "mkdir -p upgrade/upgradeToV2/holesky_$(date +%s) && cp -r upgrade/upgradeToV2/upgrade_*.json upgrade/upgradeToV2/holesky_$(date +%s) && cp -r upgrade/upgradeToV2/deploy_*.json upgrade/upgradeToV2/holesky_$(date +%s) && cp .openzeppelin/holesky.json upgrade/upgradeToV2/holesky_$(date +%s)"
}
}