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:
@@ -1,7 +1,7 @@
|
||||
/** @type import('hardhat/config').HardhatUserConfig */
|
||||
require("@tenderly/hardhat-tenderly");
|
||||
require("@nomiclabs/hardhat-ethers");
|
||||
require("@nomicfoundation/hardhat-foundry");
|
||||
// require("@tenderly/hardhat-tenderly");
|
||||
|
||||
module.exports = {
|
||||
solidity: {
|
||||
|
||||
1711
foundry/package-lock.json
generated
1711
foundry/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -2,11 +2,12 @@
|
||||
"name": "hardhat-project",
|
||||
"devDependencies": {
|
||||
"@nomiclabs/hardhat-ethers": "^2.2.3",
|
||||
"@tenderly/hardhat-tenderly": "^2.5.2",
|
||||
"dotenv": "^16.4.7",
|
||||
"hardhat": "^2.22.18"
|
||||
"hardhat": "^2.22.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nomicfoundation/hardhat-foundry": "^1.1.3",
|
||||
"@tenderly/hardhat-tenderly": "^2.3.0"
|
||||
"ethers": "^5.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user