-
Notifications
You must be signed in to change notification settings - Fork 11
/
hardhat.config.js
60 lines (59 loc) · 1.66 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
56
57
58
59
60
require('dotenv').config();
require('@nomiclabs/hardhat-ethers');
require('@nomiclabs/hardhat-waffle');
require('hardhat-deploy');
require('hardhat-deploy-ethers');
require('solidity-coverage');
module.exports = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 31337,
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
},
},
matic: {
url: `https://polygon-mumbai.infura.io/v3/${process.env.MUMBAI_API_KEY}`,
accounts: [process.env.PRIVAT_KEY_WALLET],
gas: 2100000,
gasPrice: 8000000000,
},
polygon: {
url: `https://polygon-mainnet.infura.io/v3/${procces.env.POLYGON_API_KEY}`,
accounts: [process.env.PRIVAT_KEY_WALLET],
gas: 2100000,
gasPrice: 8000000000,
}
},
namedAccounts: {
DAI: {
default: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
},
USDC: {
default: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
},
USDT: {
default: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
},
deployer: {
default: 0,
},
user: {
default: 0,
},
holderUSDC: {
default: '0xF977814e90dA44bFA03b6295A0616a897441aceC',
},
holderDai: {
default: '0x5A16552f59ea34E44ec81E58b3817833E9fD5436',
},
holderUsdt: {
default: '0x3567Cafb8Bf2A83bBEa4E79f3591142fb4EBe86d',
},
},
mocha: {
timeout: 300000,
},
solidity: '0.8.0',
};