This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
generated from solidstate-network/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
hardhat.config.js
103 lines (91 loc) · 2.46 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
require('dotenv').config();
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-etherscan');
require('hardhat-abi-exporter');
require('hardhat-docgen');
require('hardhat-gas-reporter');
require('hardhat-spdx-license-identifier');
require('solidity-coverage');
require('./tasks/deploy_treasure');
require('./tasks/deploy_unraveler');
require('./tasks/deploy_magic');
require('./tasks/deploy_agld_farm');
require('./tasks/deploy_loot_farm');
require('./tasks/deploy_n_farm');
require('./tasks/deploy_treasure_farm');
require('./tasks/claim');
require('./tasks/unravel');
require('./tasks/read');
require('./tasks/magic_set_whitelist');
require('./tasks/magic_fix_decimals');
require('./tasks/magic_fix_whitelist');
require('./tasks/magic_fix_reentrancy');
require('./tasks/magic_fix_mint');
require('./tasks/magic_admin_mint');
require('./tasks/test_mint');
require('./tasks/add_whitelist');
require('./tasks/deploy_magic_rewards');
require('./tasks/deploy_magic_claim');
require('./tasks/deploy_cards');
require('./tasks/deploy_frozen_magic_claim');
require('./tasks/cards_update_metadata');
require('./tasks/deploy_cards_claim_2');
require('./tasks/deploy_cards_claim_3');
require('./tasks/tree_json_to_csv');
module.exports = {
solidity: {
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
...(process.env.FORK_MODE
? {
forking: {
url: `https://eth-${
process.env.FORK_NETWORK || 'mainnet'
}.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
},
}
: {}),
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.ETH_MAIN_KEY],
gas: 'auto',
gasPrice: 'auto',
},
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.ETH_TEST_KEY],
},
arbitrum: {
url: `https://arb-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_KEY_ARBITRUM}`,
accounts: [process.env.ETH_MAIN_KEY],
},
},
abiExporter: {
clear: true,
flat: true,
pretty: true,
},
docgen: {
clear: true,
runOnCompile: false,
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
},
gasReporter: {
enabled: process.env.REPORT_GAS === 'true',
},
spdxLicenseIdentifier: {
overwrite: false,
runOnCompile: true,
},
};