forked from AelinXYZ/aelin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
71 lines (68 loc) · 1.79 KB
/
hardhat.config.ts
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "hardhat-interact";
import "solidity-coverage";
import "@nomiclabs/hardhat-etherscan";
import "dotenv/config";
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
outputSelection: {
"*": {
"*": ["storageLayout"],
},
},
},
},
],
},
defaultNetwork: "hardhat",
mocha: {
// this needs to be long because CI takes a while to fork the mainnet data from alchemy
timeout: 1000000,
},
etherscan: {
apiKey: `${process.env.ETHERSCAN_API_KEY}`,
},
networks: {
optimism: {
url: `https://optimism-mainnet.infura.io/v3/${process.env.OP_API_KEY}`,
accounts: [`0x${process.env.OP_PRIVATE_KEY}`],
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [`0x${process.env.OP_PRIVATE_KEY}`],
gasMultiplier: 1.5,
},
kovan: {
url: `https://eth-kovan.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [`0x${process.env.KOVAN_PRIVATE_KEY}`],
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [`0x${process.env.KOVAN_PRIVATE_KEY}`],
},
hardhat: {
initialBaseFeePerGas: 0,
forking: {
url: process.env.ALCHEMY_URL || "",
blockNumber: 13123510,
enabled: !!process.env.ALCHEMY_URL,
},
},
},
};
export default config;