-
Notifications
You must be signed in to change notification settings - Fork 102
/
hardhat.config.js
55 lines (52 loc) · 1.21 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
49
50
51
52
53
54
55
require('dotenv').config();
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-truffle5');
require("@nomiclabs/hardhat-etherscan");
require('hardhat-gas-reporter');
require('solidity-coverage');
require('@nomiclabs/hardhat-solhint');
require('hardhat-contract-sizer');
require('@openzeppelin/hardhat-upgrades');
const PRIVATE_KEY = process.env.PRIVATE_KEY;
module.exports = {
solidity: {
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
gasReporter: {
currency: 'USD',
enabled: false,
gasPrice: 50,
},
networks: {
mainnet: {
url: `https://rpcapi.fantom.network`,
chainId: 250,
accounts: [`0x${PRIVATE_KEY}`]
},
testnet: {
url: `https://rpcapi-tracing.testnet.fantom.network`,
chainId: 4002,
accounts: [`0x${PRIVATE_KEY}`]
},
ropsten: {
url: `https://ropsten.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161`,
chainId: 3,
accounts: [`0x${PRIVATE_KEY}`],
},
coverage: {
url: 'http://localhost:8555',
},
localhost: {
url: `http://127.0.0.1:8545`
},
},
etherscan: {
apiKey: '46DD6NK19R2AZQQIJIY1FXR85HKM2XSNBE'
}
};