-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
127 lines (123 loc) · 2.85 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
import dotenv from 'dotenv';
dotenv.config ();
const PRIVATE_KEY: string = process.env.PRIVATE_KEY as string;
const config: HardhatUserConfig = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 100,
},
viaIR: true,
},
},
// defaultNetwork: "sepolia",
networks: {
sepolia: {
url: process.env.SEPOLIA_URL,
accounts: [PRIVATE_KEY],
},
goerli: {
url: process.env.GOERLI_URL,
accounts: [PRIVATE_KEY],
},
mantle: {
url: process.env.MANTLE_URL,
accounts: [PRIVATE_KEY]
},
etc: {
url: process.env.ETC_URL,
accounts: [PRIVATE_KEY]
},
polygon: {
url: process.env.POLYGON_URL,
accounts: [PRIVATE_KEY]
},
opt: {
url: process.env.OPTIMISM_URL,
accounts: [PRIVATE_KEY]
},
arbitrum: {
url: process.env.ARBITRUM_URL,
accounts: [PRIVATE_KEY]
},
base: {
url: process.env.BASE_URL,
accounts: [PRIVATE_KEY]
},
bsc: {
url: process.env.BSC_URL,
accounts: [PRIVATE_KEY]
},
scroll: {
url: process.env.SCROLL_URL,
accounts: [PRIVATE_KEY]
},
artio_testnet: {
url: process.env.ARTIO_URL,
accounts: [PRIVATE_KEY]
},
},
etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_KEY!,
sepolia: process.env.ETHERSCAN_KEY!,
polygon: process.env.POLYGONSCAN_KEY!,
mantle: "any",
etc: process.env.ETCSCAN_KEY!,
bsc: process.env.BSCSCAN_API_KEY!,
scroll: process.env.SCROLLSCAN_KEY!,
artio_testnet: "artio_testnet"
},
customChains: [
{
network: "mantle",
chainId: 5000,
urls: {
apiURL: "https://api.routescan.io/v2/network/mainnet/evm/5000/etherscan",
browserURL: "https://mantlescan.info"
}
},
{
network: "etc",
chainId: 61,
urls: {
apiURL: "https://etc.blockscout.com/api",
browserURL: "https://etc.blockscout.com/"
}
},
{
network: "polygon",
chainId: 137,
urls: {
apiURL: "https://api.polygonscan.com/api",
browserURL: "https://polygonscan.com/"
}
},
{
network: "artio_testnet",
chainId: 80085,
urls: {
apiURL: "https://api.routescan.io/v2/network/testnet/evm/80085/etherscan",
browserURL: "https://artio.beratrail.io"
}
},
{
network: "scroll",
chainId: 534352,
urls: {
apiURL: "https://api.scrollscan.com/api",
browserURL: "https://api.scrollscan.com"
}
}
]
},
sourcify: {
enabled: true,
},
};
export default config;