Skip to content

Commit

Permalink
🔁 Migrate to zksync-ethers Dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Dec 10, 2023
1 parent f027024 commit 5b71d7d
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 119 deletions.
2 changes: 1 addition & 1 deletion deploy/deploy-zksync.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Note that the deployment scripts must be placed in the `deploy` folder for `hardhat deploy-zksync`
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { Wallet } from "zksync2-js";
import { Wallet } from "zksync-ethers";
import { Deployer } from "@matterlabs/hardhat-zksync-deploy";

function delay(ms: number) {
Expand Down
9 changes: 3 additions & 6 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +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 "@matterlabs/hardhat-zksync-ethers";
import "@truffle/dashboard-hardhat-plugin";
import "hardhat-gas-reporter";
import "hardhat-abi-exporter";
Expand Down Expand Up @@ -452,10 +452,7 @@ const config: HardhatUserConfig = {
zkSyncTestnet: {
chainId: 300,
url: vars.get("ZKSYNC_TESTNET_URL", "https://sepolia.era.zksync.dev"),
ethNetwork: vars.get(
"ETH_SEPOLIA_TESTNET_URL",
"https://rpc.sepolia.org",
),
ethNetwork: "sepolia",
zksync: true,
verifyURL:
"https://explorer.sepolia.era.zksync.dev/contract_verification",
Expand All @@ -465,7 +462,7 @@ const config: HardhatUserConfig = {
zkSyncMain: {
chainId: 324,
url: vars.get("ZKSYNC_MAINNET_URL", "https://mainnet.era.zksync.io"),
ethNetwork: ethMainnetUrl,
ethNetwork: "mainnet",
zksync: true,
verifyURL:
"https://zksync2-mainnet-explorer.zksync.io/contract_verification",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
"lint:fix": "pnpm prettier:fix && pnpm solhint:fix && npx eslint **/*.{js,ts} --fix"
},
"devDependencies": {
"@matterlabs/hardhat-zksync-deploy": "^1.0.0",
"@matterlabs/hardhat-zksync-deploy": "^1.1.0",
"@matterlabs/hardhat-zksync-ethers": "0.0.1-beta.1",
"@matterlabs/hardhat-zksync-solc": "^1.0.3",
"@matterlabs/hardhat-zksync-verify": "^1.1.1",
"@matterlabs/hardhat-zksync-zksync2js": "0.0.1-beta.2",
"@matterlabs/hardhat-zksync-verify": "^1.2.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-foundry": "^1.1.1",
Expand All @@ -146,14 +146,14 @@
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.9",
"prettier": "^3.1.0",
"prettier": "^3.1.1",
"prettier-plugin-solidity": "^1.2.0",
"solhint": "^4.0.0",
"solidity-coverage": "^0.8.5",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.3.3",
"xdeployer": "^2.2.1",
"zksync2-js": "^0.2.2"
"zksync-ethers": "^6.0.0"
}
}
155 changes: 48 additions & 107 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b71d7d

Please sign in to comment.