feat: Verify router contract on tenderly

Fix package.json

--- don't change below this line ---
ENG-4101 Took 34 minutes
This commit is contained in:
Diana Carvalho
2025-02-24 14:49:25 +00:00
parent cbea0bdab3
commit 77ba9498a7
4 changed files with 1525 additions and 219 deletions

View File

@@ -21,22 +21,16 @@ async function main() {
await router.deployed();
console.log(`TychoRouter deployed to: ${router.address}`);
// Verify contract on Etherscan/tenderly
console.log("Waiting a bit before verifying...");
// Wait for a few more confirmations before verifying
await new Promise(resolve => setTimeout(resolve, 10000));
// TODO: this doesn't work aarrggghh when I install and add hardhat-tenderly everything dies. I think it's a version mismatch with ethers
// try {
// console.log("Verifying contract on Tenderly...");
// await hre.tenderly.verify({
// name: "TychoRouter",
// address: router.address,
// });
// console.log("Contract verified successfully on Tenderly");
// } catch (error) {
// console.error("Error during contract verification:", error);
// }
try {
console.log("Verifying contract on Tenderly...");
await hre.tenderly.verify({
name: "TychoRouter",
address: router.address,
});
console.log("Contract verified successfully on Tenderly");
} catch (error) {
console.error("Error during contract verification:", error);
}
}
// Execute deployment