Repository navigation
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
109 lines (106 loc) · 3.26 KB
/
Copy pathhardhat.config.ts
File metadata and controls
109 lines (106 loc) · 3.26 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
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
104
105
106
107
108
109
import * as dotenv from "dotenv";
dotenv.config();
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-network-helpers";
import "@openzeppelin/hardhat-upgrades";
import "@typechain/hardhat";
import "hardhat-deploy";
import { HardhatUserConfig } from "hardhat/config";
import "solidity-coverage";
import { ethers } from "ethers";
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
{
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
},
networks: {
hardhat: {
/*accounts: [
{
privateKey:
process.env[
`${process.env.FORKING_NETWORK?.toUpperCase()}_DEPLOYER`
]!,
balance: "10000000000000000000000",
},
],*/
companionNetworks: {
mainnet: process.env.FORKING_NETWORK?.toLowerCase()!,
},
forking: {
blockNumber: 166350,
enabled: true,
url: process.env[
`${process.env.FORKING_NETWORK?.toUpperCase()}_RPC_URL`
]!,
},
autoImpersonate: true,
gasPrice: 1000000000,
},
linea: {
chainId: 59144,
url: process.env.LINEA_RPC_URL,
gasPrice: 1800000000,
accounts: [process.env.LINEA_DEPLOYER!],
verify: {
etherscan: {
apiUrl: process.env.LINEA_EXPLORER_API_URL,
apiKey: process.env.LINEA_EXPLORER_API_KEY,
},
},
addresses: {
usdc: "0x176211869ca2b568f2a7d4ee941e073a821ee1ff",
msig: "0xe3CDa0A0896b70F0eBC6A1848096529AA7AEe9eE",
vc: "0xcc22F6AA610D1b2a0e89EF228079cB3e1831b1D1",
vault: "0x1d0188c4B276A09366D05d6Be06aF61a73bC7535",
factory: "0xBe6c6A389b82306e88d74d1692B67285A9db9A47",
usdcWhale: "0xd5efeedaeadbfaa3c5741010cce8a2cf61df2630",
},
},
linea_goerli: {
chainId: 59140,
url: process.env.LINEA_GOERLI_RPC_URL,
accounts: [process.env.LINEA_GOERLI_DEPLOYER!],
verify: {
etherscan: {
apiUrl: process.env.LINEA_GOERLI_EXPLORER_API_URL,
apiKey: process.env.LINEA_GOERLI_EXPLORER_API_KEY,
},
},
addresses: {
usdc: "",
msig: "",
vc: "",
vault: "",
factory: "",
},
},
},
namedAccounts: {
adminAccount: {
default: 0,
},
reservesAccount: {
default: 1,
},
},
};
export default config;