-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
62 lines (59 loc) · 1.42 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
import "@nomicfoundation/hardhat-toolbox";
import * as dotenv from 'dotenv';
import { HardhatUserConfig } from "hardhat/config";
import "solidity-coverage";
dotenv.config();
const config: HardhatUserConfig = {
gasReporter: {
enabled: true,
},
solidity: {
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
scrollTestnet: {
url: process.env.SCROLL_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
polygon_mumbai: {
url: "https://rpc-mumbai.maticvigil.com",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
localhost: {
url: "http://127.0.0.1:8545"
}
},
etherscan: {
apiKey: {
scrollAlpha: 'abc',
polygon_mumbai: process.env.POLYGONSCAN_API_KEY !== undefined ? process.env.POLYGONSCAN_API_KEY : '',
},
customChains: [
{
network: 'scrollAlpha',
chainId: 534353,
urls: {
apiURL: 'https://blockscout.scroll.io/api',
browserURL: 'https://blockscout.scroll.io/'
},
},
{
network: 'polygon_mumbai',
chainId: 80001,
urls: {
apiURL: 'https://rpc-mumbai.maticvigil.com/',
browserURL: 'https://polygonscan.com/'
},
},
],
},
};
export default config;