-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
54 lines (51 loc) · 1.15 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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "hardhat",
solidity: {
compilers: [
{
version: "0.8.19",
},
],
settings: {
metadata: {
// Not including the metadata hash
// https://github.com/paulrberg/hardhat-template/issues/31
bytecodeHash: "none",
},
// Disable the optimizer when debugging
// https://hardhat.org/hardhat-network/#solidity-optimizer-support
optimizer: {
enabled: true,
runs: 800,
},
},
},
networks: {
hardhat: {
chainId: 1337,
initialBaseFeePerGas: 0,
},
localhost: {
url: "http://127.0.0.1:8545/",
chainId: 1337,
timeout: 6000000,
},
polygonMumbai: {
url: `${process.env.MUMBAI_PROVIDER_URL}`,
accounts: [
process.env.DEPLOYER_PRIVATE_KEY,
],
chainId: 80001,
},
polygon: {
url: `${process.env.POLYGON_PROVIDER_URL}`,
accounts: [
process.env.DEPLOYER_PRIVATE_KEY,
],
chainId: 137,
},
}
};