-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
57 lines (53 loc) · 1.51 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import env from "dotenv";
env.config();
const config: HardhatUserConfig = {
etherscan: {
apiKey: "-", // polygon
// apiKey: "YB3X78F14NZV8YW6RHTW74GC9XXZZFHZJS", // arbitrum
},
solidity: {
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
forking: {
url: `https://polygon-mainnet.g.alchemy.com/v2/${process.env.INFURA_API_KEY}`,
blockNumber: 66605908
}
},
polygon: {
url: `https://polygon-mainnet.g.alchemy.com/v2/${process.env.INFURA_API_KEY}`,
chainId: 137,
accounts: [`0x${process.env.DEPLOYMENT_ACCOUNT_KEY}`]
},
arbitrum: {
url: `https://arb-mainnet.g.alchemy.com/v2/${process.env.INFURA_API_KEY}`,
chainId: 42161,
accounts: [`0x${process.env.DEPLOYMENT_ACCOUNT_KEY}`]
},
ethereum: {
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.INFURA_API_KEY}`,
chainId: 1,
accounts: [`0x${process.env.DEPLOYMENT_ACCOUNT_KEY}`]
},
bsc: {
url: `https://bsc-mainnet.g.alchemy.com/v2/${process.env.INFURA_API_KEY}`,
chainId: 56,
accounts: [`0x${process.env.DEPLOYMENT_ACCOUNT_KEY}`]
},
optimism: {
url: `https://opt-mainnet.g.alchemy.com/v2/${process.env.INFURA_API_KEY}`,
chainId: 10,
accounts: [`0x${process.env.DEPLOYMENT_ACCOUNT_KEY}`]
},
},
};
export default config;