Skip to content

Commit

Permalink
Merge pull request #5 from nation3/feat/deploy_helper
Browse files Browse the repository at this point in the history
deploy helper
  • Loading branch information
TTNguyenDev authored Feb 26, 2024
2 parents e89a83a + 4d11672 commit c46794c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/dev-deploy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { wallet, dec, save } from "./helpers";
import { ethers, BigNumber, Contract } from "ethers";
import { formatUnits } from "@ethersproject/units"
import { network } from "hardhat";

import { exec } from "child_process";

Expand Down Expand Up @@ -229,7 +230,11 @@ const main = async () => {

console.log(`Deployment manifest saved to ${manifestFile}`)

console.log("Contract verification...")
if (network.name == "hardhat") {
return
}
console.log('Waiting for 30 seconds before verifying...');
await sleep(30_000);

await verifyNationContract("0x23Ca3002706b71a440860E3cf8ff64679A00C9d7", "src/tokens/NATION.sol:NATION", [])
await verifyLpToken("0x6417755C00d5c17DeC196Df00a6F151E448B1471", "src/test/utils/mocks/MockERC20.sol:MockERC20")
Expand All @@ -239,6 +244,12 @@ const main = async () => {
await verifyPassportIssuer("0xdad32e13E73ce4155a181cA0D350Fee0f2596940", "src/passport/PassportIssuer.sol:PassportIssuer")
}

function sleep(ms: number) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}


main().catch((error) => {
console.error(error);
Expand Down

0 comments on commit c46794c

Please sign in to comment.