Skip to content

Commit

Permalink
[Common] fix verify script
Browse files Browse the repository at this point in the history
  • Loading branch information
IliaAzhel committed Mar 4, 2024
1 parent 3de2626 commit 9586fda
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/core/scripts/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ async function main() {
const deployDataPath = path.resolve(__dirname, '../../../deploys.json');
let deploysData = JSON.parse(fs.readFileSync(deployDataPath, 'utf8'));

const [deployer] = await hre.ethers.getSigners();

await hre.run('verify:verify', {
address: deploysData.factory,
constructorArguments: [deploysData.poolDeployer],
Expand All @@ -18,12 +20,14 @@ async function main() {

await hre.run('verify:verify', {
address: deploysData.vault,
constructorArguments: [deploysData.factory, deploysData.poolDeployer],
constructorArguments: [deploysData.factory, deployer.address],
});

await hre.run('verify:verify', {
contract: "contracts/AlgebraVaultFactoryStub.sol:AlgebraVaultFactoryStub",
address: deploysData.vaultFactory,
constructorArguments: [deploysData.vault],

});
}

Expand Down
2 changes: 1 addition & 1 deletion src/farming/scripts/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main() {
address: deploysData.fc,
constructorArguments: [
deploysData.eternal,
deploysData.poolDeployer
deploysData.nonfungiblePositionManager
],
});

Expand Down
1 change: 1 addition & 0 deletions src/periphery/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async function main() {

await QuoterV2.waitForDeployment();

deploysData.quoterV2 = QuoterV2.target;
console.log('QuoterV2 deployed to:', QuoterV2.target);

// arg1 factory address
Expand Down
9 changes: 9 additions & 0 deletions src/periphery/scripts/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ async function main() {
deploysData.poolDeployer
],
});

await hre.run("verify:verify", {
address: deploysData.quoterV2,
constructorArguments: [
deploysData.factory,
deploysData.wrapped,
deploysData.poolDeployer
],
});

await hre.run("verify:verify", {
address: deploysData.swapRouter,
Expand Down

0 comments on commit 9586fda

Please sign in to comment.