-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
41 lines (39 loc) · 1.05 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
import "dotenv/config"
import "tsconfig-paths/register"
import "@typechain/hardhat"
import "@nomiclabs/hardhat-ethers"
import "@nomiclabs/hardhat-waffle"
const accounts = {
mnemonic: process.env.MNEMONIC || "test test test test test test test test test test test junk",
accountsBalance: "1000000000000000000000000",
}
module.exports = {
networks: {
hardhat: {
chainId: parseInt(process.env.CHAIN_ID ?? "0", 10),
accounts,
forking: {
url: process.env.FORK_NODE_RPC_URL ?? "",
blockNumber: parseInt(process.env.FORK_BLOCK_NUMBER ?? "0", 10),
},
allowUnlimitedContractSize: true,
},
},
solidity: {
compilers: [
{
version: "0.7.6",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
},
mocha: {
delay: true,
timeout: 40000,
},
}