This repository was archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.js
More file actions
65 lines (64 loc) · 1.53 KB
/
hardhat.config.js
File metadata and controls
65 lines (64 loc) · 1.53 KB
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
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-contract-sizer");
require('dotenv').config()
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
gasReporter: {
enabled: true,
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
},
solidity: {
version: "0.8.18",
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://api-testnet.polygonscan.com/',
browserURL: 'https://polygonscan.com/'
},
},
],
},
};