V2 Release

This commit is contained in:
PedroCailleret
2023-01-26 21:40:17 -03:00
parent 0d612572c6
commit 6fe1e794d0
45 changed files with 3195 additions and 2866 deletions

View File

@@ -5,6 +5,8 @@ import { ethers, network } from "hardhat";
import { Deploys } from "../test/utils/fixtures";
import hre from "hardhat";
let deploysJson: Deploys;
const main = async () => {
@@ -40,18 +42,30 @@ const main = async () => {
deploysJson.p2pix = p2pix.address;
console.log("🚀 P2PIX Deployed:", p2pix.address);
await p2pix.deployTransaction.wait(6);
fs.writeFileSync(
`./deploys/${network.name}.json`,
JSON.stringify(deploysJson, undefined, 2),
);
/* UNCOMMENT WHEN DEPLOYING TO MAINNET */
/* UNCOMMENT WHEN DEPLOYING TO MAINNET/PUBLIC TESTNETS */
//verify
// await hre.run("verify:verify", {
// address: p2pix.address,
// constructorArguments: [2, deploysJson.signers],
// });
await hre.run("verify:verify", {
address: p2pix.address,
constructorArguments:
[
10,
deploysJson.signers,
reputation.address,
[deploysJson.token],
[true],
],
});
await hre.run("verify:verify", {
address: reputation.address,
constructorArguments: [],
});
};
main()
@@ -59,4 +73,4 @@ main()
.catch(error => {
console.log(error);
process.exit(1);
});
});