-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
42 lines (39 loc) · 1.09 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
require("@nomicfoundation/hardhat-toolbox")
require("hardhat-gas-reporter");
require("dotenv").config()
const privateKeys = process.env.PRIVATE_KEYS || ""
const sepoliakey =process.env.SEPOLIA_PRIVATE_KEY
const mainkey =process.env.MAINNET_PRIVATE_KEY
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.5.17",
mocha: {
timeout: 100000000,
},
etherscan: {
apiKey:"AMYQZ6AN3URESGFCCEWMUK55I8HAMZDT4V"
},
gasReporter: {
enabled:true,
currency:"USD",
coinmarketcap:"360f973f-a8b8-44fd-89e5-39a07c6a8945",
gasPriceApi:"https://api.etherscan.io/api?module=proxy&action=eth_gasPrice"
},
networks: {
hardhat: {
forking: {
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY_POLYGON}`,
}
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [sepoliakey],
gasPrice: 90000000000,
gas: 9000000,
},
main: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [mainkey],
}
}
};