forked from axelarnetwork/axelar-contract-deployments
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhardhat.config.js
More file actions
49 lines (44 loc) · 1.48 KB
/
hardhat.config.js
File metadata and controls
49 lines (44 loc) · 1.48 KB
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
require('@nomicfoundation/hardhat-toolbox');
require('@nomiclabs/hardhat-ethers');
require('@typechain/hardhat');
const { importNetworks, readJSON } = require(`${__dirname}/axelar-chains-config`);
const env = process.env.NETWORK || 'testnet';
const chains = readJSON(`${__dirname}/axelar-chains-config/info/${env}.json`);
const keys = readJSON(`${__dirname}/keys.json`);
const { networks, etherscan } = importNetworks(chains, keys);
networks.hardhat.hardfork = process.env.EVM_VERSION || 'merge';
const config = {
solidity: {
version: '0.8.21',
settings: {
evmVersion: process.env.EVM_VERSION || 'london',
optimizer: {
enabled: true,
runs: 1000000,
details: {
peephole: process.env.COVERAGE === undefined,
inliner: process.env.COVERAGE === undefined,
jumpdestRemover: true,
orderLiterals: true,
deduplicate: true,
cse: process.env.COVERAGE === undefined,
constantOptimizer: true,
yul: true,
yulDetails: {
stackAllocation: true,
},
},
},
},
},
defaultNetwork: 'hardhat',
networks,
etherscan,
mocha: {
timeout: 1000000,
},
gasReporter: {
enabled: process.env.REPORT_GAS !== '',
},
};
module.exports = config;