-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
48 lines (44 loc) · 1.03 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
require("@nomicfoundation/hardhat-toolbox");
const FORK_FUJI = false;
const FORK_MAINNET = false;
let forkingData = undefined;
if (FORK_MAINNET) {
forkingData = {
url: "https://api.avax.network/ext/bc/C/rpcc",
};
}
if (FORK_FUJI) {
forkingData = {
url: "https://api.avax-test.network/ext/bc/C/rpc",
};
}
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.18",
// etherscan: {
// apiKey: // ETHERSCAN API KEY HERE,
// },
networks: {
hardhat: {
gasPrice: 225000000000,
chainId: !forkingData ? 43112 : undefined, //Only specify a chainId if we are not forking
forking: forkingData
},
fuji: {
url: 'https://api.avax-test.network/ext/bc/C/rpc',
gasPrice: 225000000000,
chainId: 43113,
accounts: [
// YOUR PRIVATE KEY HERE
]
},
mainnet: {
url: 'https://api.avax.network/ext/bc/C/rpc',
gasPrice: 225000000000,
chainId: 43114,
accounts: [
// YOUR PRIVATE KEY HERE
]
}
}
}