-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
60 lines (53 loc) · 1.27 KB
/
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
51
52
53
54
55
56
57
58
59
60
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
gas: "auto", // gas limit
},
degen: { // DEGEN L3 Chain mainnet
url: 'https://rpc.degen.tips',
chainId: 666666666,
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
gas: "auto", // gas limit
gasPrice: 1000000000, // 1 gwei
},
},
/* Verification on the Degen block explorer */
etherscan: {
apiKey: {
degen: "somestring", // no API key is needed, but it cannot be an empty string either
},
customChains: [
{
network: "degen",
chainId: 666666666,
urls: {
apiURL: "https://explorer.degen.tips/api",
browserURL: "https://explorer.degen.tips"
}
}
]
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true
},
solidity: {
compilers: [
{
version: "0.8.24", // enter the version of solidity your contracts are using
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
],
}
};