-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
50 lines (48 loc) · 977 Bytes
/
hardhat.config.js
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
require('@nomiclabs/hardhat-waffle')
require('dotenv').config()
// require("@nomiclabs/hardhat-etherscan");
require("@nomicfoundation/hardhat-verify");
module.exports = {
defaultNetwork: 'localhost',
networks: {
localhost: {
url: 'http://127.0.0.1:8545',
},
scroll: {
url: process.env.Rpc_Url,
chainId: 534351,
accounts: [process.env.Private_Key]
}
},
solidity: {
version: '0.8.11',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: './src/contracts',
artifacts: './src/abis',
},
mocha: {
timeout: 40000,
},etherscan: {
// Your Etherscan API key
apiKey: process.env.EtherScan_key
},customChains: [
{
network: "scroll",
chainId: 534351,
urls: {
apiURL: process.env.Rpc_Url,
browserURL: "https://scrollscan.com/"
}
}
],sourcify: {
enabled: true,
// Optional: specify a different Sourcify server
}
}