-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
35 lines (35 loc) · 938 Bytes
/
hardhat.config.js
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
require("@nomiclabs/hardhat-waffle");
require('dotenv').config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
hardhat: {
accounts: [{ privateKey: process.env.PRIVATE_KEY, balance: "10000000000000000000000" }],
chainId: 43114,
forking: {
url: "https://api.avax.network/ext/bc/C/rpc",
}
},
fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
accounts: [process.env.PRIVATE_KEY]
},
mainnet: {
url: "https://api.avax.network/ext/bc/C/rpc",
accounts: [process.env.PRIVATE_KEY]
}
},
solidity: {
compilers: [{
version: "0.6.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
}
}
}],
}
};