-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhardhat.config.js
51 lines (47 loc) · 1.24 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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('dotenv').config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-gas-reporter");
const { API_URL_MATIC, API_URL_MUMBAI, MNEMONIC, POLYGONSCAN_API_KEY } = process.env;
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
module.exports = {
solidity: "0.8.9",
defaultNetwork: "hardhat",
networks: {
hardhat: {},
polygon_mumbai: {
url: API_URL_MUMBAI,
accounts: { mnemonic: MNEMONIC, initialIndex: 0 },
gasPrice: 20000000000,
gas: 6000000,
},
polygon_matic:{
url: API_URL_MATIC,
accounts: { mnemonic: MNEMONIC, initialIndex: 1 },
//gasPrice: 45000000000,
//gas: 20000000
},
lukso_testnet: {
url: "https://rpc.l16.lukso.network",
accounts: { mnemonic: MNEMONIC, initialIndex: 0 },
gasPrice: 20000000000,
gas: 6000000
}
},
gasReporter: {
enabled: true,
currency: 'CHF',
gasPrice: 21
},
etherscan: {
apiKey: POLYGONSCAN_API_KEY,
}
}