-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
59 lines (53 loc) · 1.25 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-chai-matchers");
require("@nomiclabs/hardhat-ethers");
require("hardhat-interface-generator");
require('@symblox/hardhat-abi-gen');
require('hardhat-contract-sizer');
require('solidity-coverage');
require('dotenv').config()
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.9",
settings: {
optimizer : {
enabled: true,
runs: 2000,
details: {
yul: true,
yulDetails: {
stackAllocation: true,
}
}
},
}
},
networks: {
hardhat: {
forking: {
url: process.env.OPTIMISM_MAINNET_API_AND_KEY,
blockNumber: 29617000, //16th oct 2022
},
//allowUnlimitedContractSize: true,
},
kovan: {
url: process.env.KOVAN_API_AND_KEY,
accounts: [ process.env.DEPLOYMENT_ACCOUNT ]
},
optimism: {
url: process.env.OPTIMISM_MAINNET_API_AND_KEY,
accounts: [ process.env.DEPLOYMENT_ACCOUNT ]
},
optimism_kovan: {
url: process.env.OPTIMISM_KOVAN_API_AND_KEY,
accounts: [ process.env.DEPLOYMENT_ACCOUNT ]
},
optimism_goerli: {
url: process.env.OPTIMISM_GOERLI_API_AND_KEY,
accounts: [ process.env.DEPLOYMENT_ACCOUNT ]
}
} ,
};