generated from Chan7348/HardhatTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
69 lines (68 loc) · 2.33 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
import { HardhatUserConfig, vars } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomicfoundation/hardhat-viem";
import "@nomicfoundation/hardhat-foundry";
const config: HardhatUserConfig = {
solidity: {
version: "0.7.6",
settings: {
evmVersion: "cancun",
optimizer: {
enabled: true,
runs: 1000,
},
},
},
defaultNetwork: 'localhost',
networks: {
hardhat: {
forking: {
// url: vars.get("MAINNET_INFURA_URL") || "",
// url: vars.get("MAINNET_ALCHEMY_URL") || "",
// url: "https://rpc.merlinchain.io", // merlin
// url: "https://arb-sepolia.g.alchemy.com/v2/a1Z6RxI8nUQLxzzNnYDbDkSzwZYpsmHU", //arbitrum sepolia
url: "https://eth-sepolia.g.alchemy.com/v2/7dg61Re-J49kkBk9urxJIBwCRaVQcWq8", //sepolia
// blockNumber: 19532800,
// blockNumber: 5634369,
},
blockGasLimit: 60000000,
// hardfork: "cancun",
},
arbitrum_sepolia: {
url: "https://arb-sepolia.g.alchemy.com/v2/a1Z6RxI8nUQLxzzNnYDbDkSzwZYpsmHU" || "",
accounts: [vars.get("TEST1_KEY"), vars.get("TEST2_KEY")],
},
sepolia: {
url: "https://eth-sepolia.g.alchemy.com/v2/7dg61Re-J49kkBk9urxJIBwCRaVQcWq8" || "",
accounts: [vars.get("TEST1_KEY"), vars.get("TEST2_KEY")],
},
arbitrum: {
url: "https://arb-mainnet.g.alchemy.com/v2/3xJE5XydRW9R6svaRlbiXeyhVEm6yFFQ" || "",
accounts: [vars.get("TEST1_KEY"), vars.get("TEST2_KEY")],
},
optimism: {
url: "https://opt-mainnet.g.alchemy.com/v2/C0rnovoXZQ6eo9Egfvw1sTfkdLGsvouh" || "",
accounts: [vars.get("TEST1_KEY"), vars.get("TEST2_KEY")],
},
base: {
url: "https://base-mainnet.g.alchemy.com/v2/TGwFWGfUH96rmhISEJYNY1o1kTvqYasp" || "",
accounts: [vars.get("TEST1_KEY"), vars.get("TEST2_KEY")],
},
zksync_sepolia: {
url: "https://zksync-sepolia.core.chainstack.com/f227e59c311b3d5d34e454230af63bb4" || "",
accounts: [vars.get("TEST1_KEY"), vars.get("TEST2_KEY")],
}
},
sourcify: {
enabled: true,
},
etherscan: {
apiKey: {
arbitrumSepolia: 'IQWAAF48I9BVSMJA8BIVEGM8Z55DZXTBSD',
sepolia: 'VK61M4154HUEBDRPEUZXF3MW2J7GSK9WJW',
optimism: '79WNIY53FCZY116W61ZN8DDTE1THBBVKN7',
base: 'TJY2CHMTQMI1HF4WVQJES2CDVF4K733CUK',
}
}
};
export default config;