-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
74 lines (64 loc) · 1.75 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import "dotenv/config"
import { HardhatUserConfig, vars } from "hardhat/config";
import "hardhat-deploy"
import "@matterlabs/hardhat-zksync";
import "./type-extension"
import "./tasks/setPeer"
import './tasks/bridge'
const accounts = vars.has("PRIVATE_KEY") ? [vars.get("PRIVATE_KEY")] : [];
if (accounts.length === 0) {
throw new Error("Dont forget to set your env vars: https://hardhat.org/hardhat-runner/docs/guides/configuration-variables")
}
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
paths: {
deployPaths: "./deploy-zk"
},
namedAccounts: {
deployer: {
default: 0,
},
},
deployerAccounts: {
'zksepolia': 0,
},
networks: {
zksepolia: {
url: 'https://sepolia.era.zksync.dev',
ethNetwork: 'sepolia',
accounts,
zksync: true,
verifyURL: 'https://explorer.sepolia.era.zksync.dev/contract_verification',
lzEndpoint: {
eid: 40305,
address: "0xe2Ef622A13e71D9Dd2BBd12cd4b27e1516FA8a09"
}
},
arbsepolia: {
url: "https://rpc.ankr.com/arbitrum_sepolia/4d958b0214f14cdd1a9b17371b86a01fdc1bec611879fe33b6f344fc8d5a5225",
ethNetwork: 'sepolia',
accounts: accounts,
zksync: false,
lzEndpoint: {
eid: 40231,
address: "0x6EDCE65403992e310A62460808c4b910D972f10f"
}
},
// topaz: {
// url: process.env.RPC_URL_TREASURE_CHAIN_TOPAZ,
// ethNetwork: 'sepolia',
// zksync: true,
// verifyURL: 'https://rpc-explorer-verify.topaz.treasure.lol/contract_verification',
// },
},
zksolc: {
version: 'latest',
settings: {
contractsToCompile: ["contracts/MyOFT.sol", "contracts/MyONFT.sol"]
}
},
solidity: {
version: '0.8.26',
},
};
export default config;