-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
76 lines (73 loc) · 1.8 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
72
73
74
75
76
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-waffle";
import { HardhatUserConfig } from "hardhat/types";
import * as dotenv from "dotenv";
dotenv.config();
// When using the hardhat network, you may choose to fork Fuji or Avalanche Mainnet
// This will allow you to debug contracts using the hardhat network while keeping the current network state
// To enable forking, turn one of these booleans on, and then run your tasks/scripts using ``--network hardhat``
// For more information go to the hardhat guide
// https://hardhat.org/hardhat-network/
// https://hardhat.org/guides/mainnet-forking.html
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
compilers: [
{
version: "0.5.16"
},
{
version: "0.6.2"
},
{
version: "0.6.4"
},
{
version: "0.6.12"
},
{
version: "0.7.0"
},
{
version: "0.8.0"
}
]
},
networks: {
hardhat: {
gasPrice: "auto",
chainId: 43114, //Only specify a chainId if we are not forking
throwOnTransactionFailures: false,
loggingEnabled: true,
forking: {
url: 'https://api.avax.network/ext/bc/C/rpc',
enabled: true,
blockNumber: 8000000
}
},
fuji: {
url: 'https://api.avax-test.network/ext/bc/C/rpc',
gasPrice: 225000000000,
gasMultiplier: 1.1,
minGasPrice: 50000000000,
blockGasLimit: 12500000,
chainId: 43113,
accounts: []
},
mainnet: {
url: 'https://api.avax.network/ext/bc/C/rpc',
gasPrice: 'auto',
chainId: 43114,
accounts: []
}
},
typechain: {
outDir: "typechain",
target: "ethers-v5"
},
mocha: {
timeout: 100000
},
}
export default config;