-
Notifications
You must be signed in to change notification settings - Fork 3
/
hardhat.config.ts
67 lines (62 loc) · 1.18 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
import dotenv from "dotenv";
import "hardhat-deploy";
import "hardhat-deploy-ethers";
import "@typechain/hardhat";
import "@matterlabs/hardhat-zksync-solc";
import "./tasks/get-token-balance";
import "./tasks/bridge-token";
import "./tasks/configure";
dotenv.config({ path: __dirname + "/.env" });
const accounts = [
process.env.PRIVATE_KEY
];
const config: any = {
gasReporter: {
enabled: true,
token: "ETH",
coinmarketcap: process.env.CMC_API_KEY || "",
},
networks: {
"ethereum-sepolia": {
chainId: 11155111,
url: "https://eth-sepolia.public.blastapi.io",
live: false,
accounts: accounts,
},
"polygon-amoy": {
chainId: 80002,
url: 'https://rpc-amoy.polygon.technology/',
live: false,
accounts: accounts,
},
"cronoszk-testnet": {
chainId: 282,
url: "https://testnet.zkevm.cronos.org",
live: false,
accounts: accounts,
zksync: true,
},
hardhat: {
live: false,
deploy: ["deploy/hardhat/"],
},
},
namedAccounts: {
deployer: 0,
accountant: 1,
},
solidity: {
compilers: [
{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
};
export default config;