feat: Verify contracts on etherscan

--- don't change below this line ---
ENG-4260 Took 31 minutes
This commit is contained in:
Diana Carvalho
2025-02-27 15:52:32 +00:00
parent 87e7394b0a
commit 79045e2689
6 changed files with 46 additions and 7 deletions

View File

@@ -25,15 +25,29 @@ async function main() {
await deployedExecutor.deployed();
console.log(`${exchange} deployed to: ${deployedExecutor.address}`);
// Verify on Tenderly
try {
await hre.tenderly.verify({
name: exchange,
address: deployedExecutor.address,
address: address,
});
console.log("Contract verified successfully on Tenderly");
} catch (error) {
console.error("Error during contract verification:", error);
}
console.log("Waiting for 1 minute before verifying the contract...");
await new Promise(resolve => setTimeout(resolve, 60000));
// Verify on Etherscan
try {
await hre.run("verify:verify", {
address: address,
constructorArguments: args,
});
console.log(`${exchange} verified successfully on Etherscan!`);
} catch (error) {
console.error(`Error during Etherscan verification:`, error);
}
}
}