-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.js.fork
76 lines (72 loc) · 2.01 KB
/
hardhat.config.js.fork
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
/*global process*/
require("hardhat-contract-sizer");
require("hardhat-deploy");
require("hardhat-deploy-ethers");
require("hardhat-gas-reporter");
require("hardhat-tracer");
require("@nomicfoundation/hardhat-chai-matchers");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomicfoundation/hardhat-toolbox");
const accounts = {
mnemonic: "test test test test test test test test test test test junk",
accountsBalance: "100000000000000000000000000",
};
const ALCHEMY_API_KEY = process.env.ALCHEMY_API_KEY;
let TESTNET_MNEMONIC = process.env.TESTNET_MNEMONIC;
if (!TESTNET_MNEMONIC) {
TESTNET_MNEMONIC = accounts.mnemonic;
}
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
module.exports = {
networks: {
local: {
url: "http://localhost:8545",
},
mainnet: {
url: "https://eth-mainnet.g.alchemy.com/v2/" + ALCHEMY_API_KEY,
chainId: 1,
},
hardhat: {
allowUnlimitedContractSize: true,
accounts,
forking: {
url: "https://eth-mainnet.g.alchemy.com/v2/" + ALCHEMY_API_KEY,
// The block number of the original Curve Voting Escrow deployment
blockNumber: 10647812
},
mining: {
auto: false,
interval: 3000
}
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY
},
solidity: {
compilers: [
{
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
},
},
{
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
},
}
]
},
gasReporter: {
enabled: true
}
};