-
Notifications
You must be signed in to change notification settings - Fork 50
/
hardhat.config.js
70 lines (65 loc) · 1.5 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
61
62
63
64
65
66
67
68
69
70
const config = require('./config');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('hardhat-deploy');
require('@nomiclabs/hardhat-ethers');
require('@nomiclabs/hardhat-waffle');
require('hardhat-gas-reporter');
require('solidity-coverage');
// Load environment variables from .env file. Suppress warnings using silent
// if this file is missing. dotenv will never modify any environment variables
// that have already been set.
// https://github.com/motdotla/dotenv
require('dotenv').config({ silent: true });
// hardhat actions
require('./tasks/maketree');
real_accounts = undefined;
if (process.env.DEPLOYER_KEY) {
real_accounts = [process.env.DEPLOYER_KEY];
}
module.exports = {
solidity: '0.8.21',
settings: {
optimizer: {
enabled: true, // runs: 200 by default
},
},
gasReporter: {
currency: 'USD',
coinmarketcap: '08cd3ec6-0b9b-4b4b-9906-f215c98f5896',
},
namedAccounts: {
deployer: {
default: 0,
},
alice: {
default: 1,
},
bob: {
default: 2,
},
charlie: {
default: 3,
},
dave: {
default: 4,
},
},
networks: {
hardhat: {
initialDate: config.UNLOCK_BEGIN,
tags: ['test'],
allowUnlimitedContractSize: true,
},
mainnet: {
url: 'http://localhost:8545/',
chainId: 1,
accounts: real_accounts,
maxPriorityFeePerGas: 1000000000,
},
tenderly: {
url: 'https://rpc.tenderly.co/fork/bd704e15-7f2c-4f12-8c1a-9bedf536c336',
},
},
};