-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
45 lines (39 loc) · 1.02 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
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan"
import "hardhat-gas-reporter"
import dotenv from "dotenv";
dotenv.config({ path: ".env.local" });
export default {
solidity: {
version: "0.8.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
defaultNetwork: "goerli",
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
mumbai: {
url: process.env.MUMBAI_URL || '',
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/V5p1PckEwUqIq5s5rA2zvwRKH0V9Hslr`,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : ["temp"]
},
shardeum: {
url: process.env.MUMBAI_URL,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : ["temp"],
chainId: 8080,
}
},
etherscan: {
apiKey: "2S8CM6KUUPXGG7JV63UZVVVZTWP6RYJXYE"
}
};