diff --git a/deploy/deploy-zksync.ts b/deploy/deploy-zksync.ts index 9809f5e..c69ae9e 100644 --- a/deploy/deploy-zksync.ts +++ b/deploy/deploy-zksync.ts @@ -2,6 +2,7 @@ import { HardhatRuntimeEnvironment } from "hardhat/types"; import { Wallet } from "zksync2-js"; import { Deployer } from "@matterlabs/hardhat-zksync-deploy"; +import { delay } from "../scripts/deploy"; export default async function main(hre: HardhatRuntimeEnvironment) { // Get the private key from the configured network @@ -22,10 +23,19 @@ export default async function main(hre: HardhatRuntimeEnvironment) { const wallet = new Wallet(PRIVATE_KEY); const deployer = new Deployer(hre, wallet); + const constructorArgs = ["Hello, Hardhat!"]; const artifact = await deployer.loadArtifact("Greeter"); - const contract = await deployer.deploy(artifact, ["Hello, Hardhat!"]); + const contract = await deployer.deploy(artifact, constructorArgs); await contract.waitForDeployment(); + const contractAddress = await contract.getAddress(); - console.log("Greeter deployed to:", await contract.getAddress()); + console.log("Greeter deployed to:", contractAddress); + + await delay(30000); // Wait for 30 seconds before verifying the contract + + await hre.run("verify:verify", { + address: contractAddress, + constructorArguments: constructorArgs, + }); } diff --git a/hardhat.config.ts b/hardhat.config.ts index c3de6df..642eb84 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -11,6 +11,7 @@ import "xdeployer"; import "@matterlabs/hardhat-zksync-solc"; import "@matterlabs/hardhat-zksync-deploy"; import "@matterlabs/hardhat-zksync-verify"; +import "@matterlabs/hardhat-zksync-zksync2js"; import "@truffle/dashboard-hardhat-plugin"; import "hardhat-gas-reporter"; import "hardhat-abi-exporter"; @@ -653,6 +654,10 @@ const config: HardhatUserConfig = { spacing: 2, pretty: true, }, + sourcify: { + // Enable Sourcify verification by default + enabled: true, + }, etherscan: { // Add your own API key by getting an account at etherscan (https://etherscan.io), snowtrace (https://snowtrace.io) etc. // This is used for verification purposes when you want to `npx hardhat verify` your contract using Hardhat diff --git a/package.json b/package.json index f0397fb..af0de58 100644 --- a/package.json +++ b/package.json @@ -120,23 +120,24 @@ }, "devDependencies": { "@matterlabs/hardhat-zksync-deploy": "^1.0.0", - "@matterlabs/hardhat-zksync-solc": "^1.0.0", - "@matterlabs/hardhat-zksync-verify": "^1.0.0", + "@matterlabs/hardhat-zksync-solc": "^1.0.1", + "@matterlabs/hardhat-zksync-verify": "^1.1.0", + "@matterlabs/hardhat-zksync-zksync2js": "0.0.1-beta.2", "@nomicfoundation/hardhat-chai-matchers": "^2.0.2", "@nomicfoundation/hardhat-ethers": "^3.0.5", "@nomicfoundation/hardhat-foundry": "^1.1.1", "@nomicfoundation/hardhat-ledger": "^1.0.1", "@nomicfoundation/hardhat-network-helpers": "^1.0.9", - "@nomicfoundation/hardhat-toolbox": "^3.0.0", - "@nomicfoundation/hardhat-verify": "^1.1.1", + "@nomicfoundation/hardhat-toolbox": "^4.0.0", + "@nomicfoundation/hardhat-verify": "^2.0.1", "@openzeppelin/contracts": "^5.0.0", "@tenderly/hardhat-tenderly": "^2.0.1", "@truffle/dashboard-hardhat-plugin": "^0.2.15", - "@typechain/ethers-v6": "^0.4.3", - "@typechain/hardhat": "^8.0.3", - "@types/chai": "^4.3.10", - "@types/mocha": "^10.0.4", - "@types/node": "^20.9.2", + "@typechain/ethers-v6": "^0.5.1", + "@typechain/hardhat": "^9.1.0", + "@types/chai": "^4.3.11", + "@types/mocha": "^10.0.6", + "@types/node": "^20.9.4", "@typescript-eslint/eslint-plugin": "^6.12.0", "@typescript-eslint/parser": "^6.12.0", "chai": "^4.3.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ea2ff76..dc6c416 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,11 +9,14 @@ devDependencies: specifier: ^1.0.0 version: 1.0.0(ethers@6.8.1)(hardhat@2.19.1)(zksync2-js@0.2.2) "@matterlabs/hardhat-zksync-solc": - specifier: ^1.0.0 - version: 1.0.0(hardhat@2.19.1) + specifier: ^1.0.1 + version: 1.0.1(hardhat@2.19.1) "@matterlabs/hardhat-zksync-verify": - specifier: ^1.0.0 - version: 1.0.0(@nomicfoundation/hardhat-verify@1.1.1)(hardhat@2.19.1) + specifier: ^1.1.0 + version: 1.1.0(@nomicfoundation/hardhat-verify@2.0.1)(hardhat@2.19.1) + "@matterlabs/hardhat-zksync-zksync2js": + specifier: 0.0.1-beta.2 + version: 0.0.1-beta.2(ethers@6.8.1)(zksync2-js@0.2.2) "@nomicfoundation/hardhat-chai-matchers": specifier: ^2.0.2 version: 2.0.2(@nomicfoundation/hardhat-ethers@3.0.5)(chai@4.3.10)(ethers@6.8.1)(hardhat@2.19.1) @@ -30,35 +33,35 @@ devDependencies: specifier: ^1.0.9 version: 1.0.9(hardhat@2.19.1) "@nomicfoundation/hardhat-toolbox": - specifier: ^3.0.0 - version: 3.0.0(@nomicfoundation/hardhat-chai-matchers@2.0.2)(@nomicfoundation/hardhat-ethers@3.0.5)(@nomicfoundation/hardhat-network-helpers@1.0.9)(@nomicfoundation/hardhat-verify@1.1.1)(@typechain/ethers-v6@0.4.3)(@typechain/hardhat@8.0.3)(@types/chai@4.3.10)(@types/mocha@10.0.4)(@types/node@20.9.2)(chai@4.3.10)(ethers@6.8.1)(hardhat-gas-reporter@1.0.9)(hardhat@2.19.1)(solidity-coverage@0.8.5)(ts-node@10.9.1)(typechain@8.3.2)(typescript@5.3.2) + specifier: ^4.0.0 + version: 4.0.0(@nomicfoundation/hardhat-chai-matchers@2.0.2)(@nomicfoundation/hardhat-ethers@3.0.5)(@nomicfoundation/hardhat-network-helpers@1.0.9)(@nomicfoundation/hardhat-verify@2.0.1)(@typechain/ethers-v6@0.5.1)(@typechain/hardhat@9.1.0)(@types/chai@4.3.11)(@types/mocha@10.0.6)(@types/node@20.9.4)(chai@4.3.10)(ethers@6.8.1)(hardhat-gas-reporter@1.0.9)(hardhat@2.19.1)(solidity-coverage@0.8.5)(ts-node@10.9.1)(typechain@8.3.2)(typescript@5.3.2) "@nomicfoundation/hardhat-verify": - specifier: ^1.1.1 - version: 1.1.1(hardhat@2.19.1) + specifier: ^2.0.1 + version: 2.0.1(hardhat@2.19.1) "@openzeppelin/contracts": specifier: ^5.0.0 version: 5.0.0 "@tenderly/hardhat-tenderly": specifier: ^2.0.1 - version: 2.0.1(@types/node@20.9.2)(ethers@6.8.1)(hardhat@2.19.1) + version: 2.0.1(@types/node@20.9.4)(ethers@6.8.1)(hardhat@2.19.1) "@truffle/dashboard-hardhat-plugin": specifier: ^0.2.15 version: 0.2.15(hardhat@2.19.1) "@typechain/ethers-v6": - specifier: ^0.4.3 - version: 0.4.3(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2) + specifier: ^0.5.1 + version: 0.5.1(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2) "@typechain/hardhat": - specifier: ^8.0.3 - version: 8.0.3(@typechain/ethers-v6@0.4.3)(ethers@6.8.1)(hardhat@2.19.1)(typechain@8.3.2) + specifier: ^9.1.0 + version: 9.1.0(@typechain/ethers-v6@0.5.1)(ethers@6.8.1)(hardhat@2.19.1)(typechain@8.3.2) "@types/chai": - specifier: ^4.3.10 - version: 4.3.10 + specifier: ^4.3.11 + version: 4.3.11 "@types/mocha": - specifier: ^10.0.4 - version: 10.0.4 + specifier: ^10.0.6 + version: 10.0.6 "@types/node": - specifier: ^20.9.2 - version: 20.9.2 + specifier: ^20.9.4 + version: 20.9.4 "@typescript-eslint/eslint-plugin": specifier: ^6.12.0 version: 6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@5.3.2) @@ -103,7 +106,7 @@ devDependencies: version: 0.8.5(hardhat@2.19.1) ts-node: specifier: ^10.9.1 - version: 10.9.1(@types/node@20.9.2)(typescript@5.3.2) + version: 10.9.1(@types/node@20.9.4)(typescript@5.3.2) typechain: specifier: ^8.3.2 version: 8.3.2(typescript@5.3.2) @@ -960,29 +963,30 @@ packages: - supports-color dev: true - /@matterlabs/hardhat-zksync-solc@0.4.1(hardhat@2.19.1): + /@matterlabs/hardhat-zksync-solc@1.0.0(hardhat@2.19.1): resolution: { - integrity: sha512-fdlGf/2yZR5ihVNc2ubea1R/nNFXRONL29Fgz5FwB3azB13rPb76fkQgcFIg9zSufHsEy6zUUT029NkxLNA9Sw==, + integrity: sha512-N6uUcmbAwZtu60WooUGJ1ssUdFFCd8MU1PdOSXcCJQ3vzjej2p3Ra8t3DrbJSWf3LRJoM18mZkZD2AktlF/ONw==, } peerDependencies: - hardhat: ^2.14.0 + hardhat: ^2.18.1 dependencies: "@nomiclabs/hardhat-docker": 2.0.2 chalk: 4.1.2 dockerode: 3.3.5 fs-extra: 11.1.1 hardhat: 2.19.1(ts-node@10.9.1)(typescript@5.3.2) + proper-lockfile: 4.1.2 semver: 7.5.4 transitivePeerDependencies: - encoding - supports-color dev: true - /@matterlabs/hardhat-zksync-solc@1.0.0(hardhat@2.19.1): + /@matterlabs/hardhat-zksync-solc@1.0.1(hardhat@2.19.1): resolution: { - integrity: sha512-N6uUcmbAwZtu60WooUGJ1ssUdFFCd8MU1PdOSXcCJQ3vzjej2p3Ra8t3DrbJSWf3LRJoM18mZkZD2AktlF/ONw==, + integrity: sha512-WMqg42+f/1RVFVYHwV+Y9f5cO5lIrH7pDEXtA4WtHKHpvid3Wwo/ipYwS1DbF9vhDS7PaqgknuuyouDnilyUvQ==, } peerDependencies: hardhat: ^2.18.1 @@ -999,19 +1003,18 @@ packages: - supports-color dev: true - /@matterlabs/hardhat-zksync-verify@1.0.0(@nomicfoundation/hardhat-verify@1.1.1)(hardhat@2.19.1): + /@matterlabs/hardhat-zksync-verify@1.1.0(@nomicfoundation/hardhat-verify@2.0.1)(hardhat@2.19.1): resolution: { - integrity: sha512-wHCuJ6Z5SJsq4rZUH35nxh9ma6QKvyUTssAgR1FSPfJk6dEa1TL3LZwLR5V7MihwYxI0gu30PrH8CWZZuFSKKA==, + integrity: sha512-2nw6qoip31i/MpOSF71WPR5C/xqhuERz4sm08rmvfk8c47wO17h5w0tsdYJ9wwUv6tMzXGbVquIJwQIrkyttPg==, } peerDependencies: - "@nomicfoundation/hardhat-verify": ^1.1.1 + "@nomicfoundation/hardhat-verify": ^2.0.0 dependencies: - "@matterlabs/hardhat-zksync-solc": 0.4.1(hardhat@2.19.1) - "@nomicfoundation/hardhat-verify": 1.1.1(hardhat@2.19.1) + "@matterlabs/hardhat-zksync-solc": 1.0.1(hardhat@2.19.1) + "@nomicfoundation/hardhat-verify": 2.0.1(hardhat@2.19.1) axios: 1.6.2(debug@4.3.4) chalk: 4.1.2 - dockerode: 3.3.5 transitivePeerDependencies: - debug - encoding @@ -1019,6 +1022,20 @@ packages: - supports-color dev: true + /@matterlabs/hardhat-zksync-zksync2js@0.0.1-beta.2(ethers@6.8.1)(zksync2-js@0.2.2): + resolution: + { + integrity: sha512-Q0VNkfwYpWd+OxoTOEE4rintVJwU16TRZinF7aPWR4W47tLbiPW3k/snPDqZiVwRp/zqKp9PXMpy4o9LjlP+4Q==, + } + peerDependencies: + ethers: ^6.7.1 + zksync2-js: ^0.2.2 + dependencies: + chalk: 5.3.0 + ethers: 6.8.1 + zksync2-js: 0.2.2(ethers@6.8.1) + dev: true + /@metamask/eth-sig-util@4.0.1: resolution: { @@ -1412,53 +1429,53 @@ packages: hardhat: 2.19.1(ts-node@10.9.1)(typescript@5.3.2) dev: true - /@nomicfoundation/hardhat-toolbox@3.0.0(@nomicfoundation/hardhat-chai-matchers@2.0.2)(@nomicfoundation/hardhat-ethers@3.0.5)(@nomicfoundation/hardhat-network-helpers@1.0.9)(@nomicfoundation/hardhat-verify@1.1.1)(@typechain/ethers-v6@0.4.3)(@typechain/hardhat@8.0.3)(@types/chai@4.3.10)(@types/mocha@10.0.4)(@types/node@20.9.2)(chai@4.3.10)(ethers@6.8.1)(hardhat-gas-reporter@1.0.9)(hardhat@2.19.1)(solidity-coverage@0.8.5)(ts-node@10.9.1)(typechain@8.3.2)(typescript@5.3.2): + /@nomicfoundation/hardhat-toolbox@4.0.0(@nomicfoundation/hardhat-chai-matchers@2.0.2)(@nomicfoundation/hardhat-ethers@3.0.5)(@nomicfoundation/hardhat-network-helpers@1.0.9)(@nomicfoundation/hardhat-verify@2.0.1)(@typechain/ethers-v6@0.5.1)(@typechain/hardhat@9.1.0)(@types/chai@4.3.11)(@types/mocha@10.0.6)(@types/node@20.9.4)(chai@4.3.10)(ethers@6.8.1)(hardhat-gas-reporter@1.0.9)(hardhat@2.19.1)(solidity-coverage@0.8.5)(ts-node@10.9.1)(typechain@8.3.2)(typescript@5.3.2): resolution: { - integrity: sha512-MsteDXd0UagMksqm9KvcFG6gNKYNa3GGNCy73iQ6bEasEgg2v8Qjl6XA5hjs8o5UD5A3153B6W2BIVJ8SxYUtA==, + integrity: sha512-jhcWHp0aHaL0aDYj8IJl80v4SZXWMS1A2XxXa1CA6pBiFfJKuZinCkO6wb+POAt0LIfXB3gA3AgdcOccrcwBwA==, } peerDependencies: "@nomicfoundation/hardhat-chai-matchers": ^2.0.0 "@nomicfoundation/hardhat-ethers": ^3.0.0 "@nomicfoundation/hardhat-network-helpers": ^1.0.0 - "@nomicfoundation/hardhat-verify": ^1.0.0 - "@typechain/ethers-v6": ^0.4.0 - "@typechain/hardhat": ^8.0.0 + "@nomicfoundation/hardhat-verify": ^2.0.0 + "@typechain/ethers-v6": ^0.5.0 + "@typechain/hardhat": ^9.0.0 "@types/chai": ^4.2.0 "@types/mocha": ">=9.1.0" - "@types/node": ">=12.0.0" + "@types/node": ">=16.0.0" chai: ^4.2.0 ethers: ^6.4.0 hardhat: ^2.11.0 hardhat-gas-reporter: ^1.0.8 solidity-coverage: ^0.8.1 ts-node: ">=8.0.0" - typechain: ^8.2.0 + typechain: ^8.3.0 typescript: ">=4.5.0" dependencies: "@nomicfoundation/hardhat-chai-matchers": 2.0.2(@nomicfoundation/hardhat-ethers@3.0.5)(chai@4.3.10)(ethers@6.8.1)(hardhat@2.19.1) "@nomicfoundation/hardhat-ethers": 3.0.5(ethers@6.8.1)(hardhat@2.19.1) "@nomicfoundation/hardhat-network-helpers": 1.0.9(hardhat@2.19.1) - "@nomicfoundation/hardhat-verify": 1.1.1(hardhat@2.19.1) - "@typechain/ethers-v6": 0.4.3(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2) - "@typechain/hardhat": 8.0.3(@typechain/ethers-v6@0.4.3)(ethers@6.8.1)(hardhat@2.19.1)(typechain@8.3.2) - "@types/chai": 4.3.10 - "@types/mocha": 10.0.4 - "@types/node": 20.9.2 + "@nomicfoundation/hardhat-verify": 2.0.1(hardhat@2.19.1) + "@typechain/ethers-v6": 0.5.1(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2) + "@typechain/hardhat": 9.1.0(@typechain/ethers-v6@0.5.1)(ethers@6.8.1)(hardhat@2.19.1)(typechain@8.3.2) + "@types/chai": 4.3.11 + "@types/mocha": 10.0.6 + "@types/node": 20.9.4 chai: 4.3.10 ethers: 6.8.1 hardhat: 2.19.1(ts-node@10.9.1)(typescript@5.3.2) hardhat-gas-reporter: 1.0.9(hardhat@2.19.1) solidity-coverage: 0.8.5(hardhat@2.19.1) - ts-node: 10.9.1(@types/node@20.9.2)(typescript@5.3.2) + ts-node: 10.9.1(@types/node@20.9.4)(typescript@5.3.2) typechain: 8.3.2(typescript@5.3.2) typescript: 5.3.2 dev: true - /@nomicfoundation/hardhat-verify@1.1.1(hardhat@2.19.1): + /@nomicfoundation/hardhat-verify@2.0.1(hardhat@2.19.1): resolution: { - integrity: sha512-9QsTYD7pcZaQFEA3tBb/D/oCStYDiEVDN7Dxeo/4SCyHRSm86APypxxdOMEPlGmXsAvd+p1j/dTODcpxb8aztA==, + integrity: sha512-TuJrhW5p9x92wDRiRhNkGQ/wzRmOkfCLkoRg8+IRxyeLigOALbayQEmkNiGWR03vGlxZS4znXhKI7y97JwZ6Og==, } peerDependencies: hardhat: ^2.0.4 @@ -1861,7 +1878,7 @@ packages: defer-to-connect: 2.0.1 dev: true - /@tenderly/hardhat-tenderly@2.0.1(@types/node@20.9.2)(ethers@6.8.1)(hardhat@2.19.1): + /@tenderly/hardhat-tenderly@2.0.1(@types/node@20.9.4)(ethers@6.8.1)(hardhat@2.19.1): resolution: { integrity: sha512-MaVq7UuWvsyqstya5wVwDc5ml5xo1pAS9PRQQZWhg/f6ats3KFboi9BP18Yhypjh4bPw2NPZOBip9u1lV0oaGw==, @@ -1878,7 +1895,7 @@ packages: hardhat: 2.19.1(ts-node@10.9.1)(typescript@5.3.2) hardhat-deploy: 0.11.43 tenderly: 0.7.0(ts-node@10.9.1)(typescript@5.3.2) - ts-node: 10.9.1(@types/node@20.9.2)(typescript@5.3.2) + ts-node: 10.9.1(@types/node@20.9.4)(typescript@5.3.2) tslog: 4.9.2 typescript: 5.3.2 transitivePeerDependencies: @@ -2189,14 +2206,14 @@ packages: } dev: true - /@typechain/ethers-v6@0.4.3(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2): + /@typechain/ethers-v6@0.5.1(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2): resolution: { - integrity: sha512-TrxBsyb4ryhaY9keP6RzhFCviWYApcLCIRMPyWaKp2cZZrfaM3QBoxXTnw/eO4+DAY3l+8O0brNW0WgeQeOiDA==, + integrity: sha512-F+GklO8jBWlsaVV+9oHaPh5NJdd6rAKN4tklGfInX1Q7h0xPgVLP39Jl3eCulPB5qexI71ZFHwbljx4ZXNfouA==, } peerDependencies: ethers: 6.x - typechain: ^8.3.1 + typechain: ^8.3.2 typescript: ">=4.7.0" dependencies: ethers: 6.8.1 @@ -2206,18 +2223,18 @@ packages: typescript: 5.3.2 dev: true - /@typechain/hardhat@8.0.3(@typechain/ethers-v6@0.4.3)(ethers@6.8.1)(hardhat@2.19.1)(typechain@8.3.2): + /@typechain/hardhat@9.1.0(@typechain/ethers-v6@0.5.1)(ethers@6.8.1)(hardhat@2.19.1)(typechain@8.3.2): resolution: { - integrity: sha512-MytSmJJn+gs7Mqrpt/gWkTCOpOQ6ZDfRrRT2gtZL0rfGe4QrU4x9ZdW15fFbVM/XTa+5EsKiOMYXhRABibNeng==, + integrity: sha512-mtaUlzLlkqTlfPwB3FORdejqBskSnh+Jl8AIJGjXNAQfRQ4ofHADPl1+oU7Z3pAJzmZbUXII8MhOLQltcHgKnA==, } peerDependencies: - "@typechain/ethers-v6": ^0.4.3 + "@typechain/ethers-v6": ^0.5.1 ethers: ^6.1.0 hardhat: ^2.9.9 - typechain: ^8.3.1 + typechain: ^8.3.2 dependencies: - "@typechain/ethers-v6": 0.4.3(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2) + "@typechain/ethers-v6": 0.5.1(ethers@6.8.1)(typechain@8.3.2)(typescript@5.3.2) ethers: 6.8.1 fs-extra: 9.1.0 hardhat: 2.19.1(ts-node@10.9.1)(typescript@5.3.2) @@ -2230,7 +2247,7 @@ packages: integrity: sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/bn.js@5.1.5: @@ -2239,7 +2256,7 @@ packages: integrity: sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/cacheable-request@6.0.3: @@ -2250,7 +2267,7 @@ packages: dependencies: "@types/http-cache-semantics": 4.0.4 "@types/keyv": 3.1.4 - "@types/node": 20.9.2 + "@types/node": 20.9.4 "@types/responselike": 1.0.3 dev: true @@ -2260,13 +2277,13 @@ packages: integrity: sha512-ThlRVIJhr69FLlh6IctTXFkmhtP3NpMZ2QGq69StYLyKZFp/HOp1VdKZj7RvfNWYYcJ1xlbLGLLWj1UvP5u/Gw==, } dependencies: - "@types/chai": 4.3.10 + "@types/chai": 4.3.11 dev: true - /@types/chai@4.3.10: + /@types/chai@4.3.11: resolution: { - integrity: sha512-of+ICnbqjmFCiixUnqRulbylyXQrPqIGf/B3Jax1wIF3DvSheysQxAWvqHhZiW3IQrycvokcLcFQlveGp+vyNg==, + integrity: sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==, } dev: true @@ -2276,7 +2293,7 @@ packages: integrity: sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/form-data@0.0.33: @@ -2285,7 +2302,7 @@ packages: integrity: sha512-8BSvG1kGm83cyJITQMZSulnl6QV8jqAGreJsc5tPu1Jq0vTSOiY/k24Wx82JRpWwZSqrala6sd5rWi6aNXvqcw==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/glob@7.2.0: @@ -2295,7 +2312,7 @@ packages: } dependencies: "@types/minimatch": 5.1.2 - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/http-cache-semantics@4.0.4: @@ -2318,7 +2335,7 @@ packages: integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/lru-cache@5.1.1: @@ -2335,10 +2352,10 @@ packages: } dev: true - /@types/mocha@10.0.4: + /@types/mocha@10.0.6: resolution: { - integrity: sha512-xKU7bUjiFTIttpWaIZ9qvgg+22O1nmbA+HRxdlR+u6TWsGfmFdXrheJoK4fFxrHNVIOBDvDNKZG+LYBpMHpX3w==, + integrity: sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==, } dev: true @@ -2363,10 +2380,10 @@ packages: } dev: true - /@types/node@20.9.2: + /@types/node@20.9.4: resolution: { - integrity: sha512-WHZXKFCEyIUJzAwh3NyyTHYSR35SevJ6mZ1nWwJafKtiQbqRTIKSRcw3Ma3acqgsent3RRDqeVwpHntMk+9irg==, + integrity: sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==, } dependencies: undici-types: 5.26.5 @@ -2385,7 +2402,7 @@ packages: integrity: sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/prettier@2.7.3: @@ -2408,7 +2425,7 @@ packages: integrity: sha512-oM5JSKQCcICF1wvGgmecmHldZ48OZamtMxcGGVICOJA8o8cahXC1zEVAif8iwoc5j8etxFaRFnf095+CDsuoFQ==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 safe-buffer: 5.1.2 dev: true @@ -2418,7 +2435,7 @@ packages: integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true /@types/secp256k1@4.0.6: @@ -2427,13 +2444,13 @@ packages: integrity: sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ==, } dependencies: - "@types/node": 20.9.2 + "@types/node": 20.9.4 dev: true - /@types/semver@7.5.5: + /@types/semver@7.5.6: resolution: { - integrity: sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg==, + integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==, } dev: true @@ -2577,7 +2594,7 @@ packages: dependencies: "@eslint-community/eslint-utils": 4.4.0(eslint@8.54.0) "@types/json-schema": 7.0.15 - "@types/semver": 7.5.5 + "@types/semver": 7.5.6 "@typescript-eslint/scope-manager": 6.12.0 "@typescript-eslint/types": 6.12.0 "@typescript-eslint/typescript-estree": 6.12.0(typescript@5.3.2) @@ -3624,6 +3641,14 @@ packages: supports-color: 7.2.0 dev: true + /chalk@5.3.0: + resolution: + { + integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==, + } + engines: { node: ^12.17.0 || ^14.13 || >=16.0.0 } + dev: true + /charenc@0.0.2: resolution: { @@ -6183,7 +6208,7 @@ packages: solc: 0.7.3(debug@4.3.4) source-map-support: 0.5.21 stacktrace-parser: 0.1.10 - ts-node: 10.9.1(@types/node@20.9.2)(typescript@5.3.2) + ts-node: 10.9.1(@types/node@20.9.4)(typescript@5.3.2) tsort: 0.0.1 typescript: 5.3.2 undici: 5.27.2 @@ -9871,7 +9896,7 @@ packages: js-yaml: 4.1.0 open: 8.4.2 prompts: 2.4.2 - ts-node: 10.9.1(@types/node@20.9.2)(typescript@5.3.2) + ts-node: 10.9.1(@types/node@20.9.4)(typescript@5.3.2) tslog: 4.9.2 typescript: 5.3.2 transitivePeerDependencies: @@ -10026,7 +10051,7 @@ packages: code-block-writer: 12.0.0 dev: true - /ts-node@10.9.1(@types/node@20.9.2)(typescript@5.3.2): + /ts-node@10.9.1(@types/node@20.9.4)(typescript@5.3.2): resolution: { integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==, @@ -10048,7 +10073,7 @@ packages: "@tsconfig/node12": 1.0.11 "@tsconfig/node14": 1.0.3 "@tsconfig/node16": 1.0.4 - "@types/node": 20.9.2 + "@types/node": 20.9.4 acorn: 8.11.2 acorn-walk: 8.3.0 arg: 4.1.3 diff --git a/scripts/deploy.ts b/scripts/deploy.ts index ca50563..204f569 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -1,6 +1,6 @@ import hre, { ethers } from "hardhat"; -function delay(ms: number) { +export function delay(ms: number) { return new Promise((resolve) => setTimeout(resolve, ms)); }