-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
42 lines (39 loc) · 1.06 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("@nomiclabs/hardhat-waffle");
require("hardhat-tracer");
require('dotenv').config();
require("solidity-coverage");
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);
}
});
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
//solidity: "0.8.0",
solidity: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
defaultNetwork: "ftmtestnet",
networks: {
ftmtestnet: {
url: `https://rpc.testnet.fantom.network/`,
accounts: [`${process.env.owner_PRIVATE_KEY}`, `${process.env.buyer1_PRIVATE_KEY}`, `${process.env.buyer2_PRIVATE_KEY}`, `${process.env.seller1_PRIVATE_KEY}`],
},
hardhat: {
allowUnlimitedContractSize: true,
forking: {
//url: "https://speedy-nodes-nyc.moralis.io/9e6e79f489193b1865d7185f/fantom/mainnet",
url: "https://rpc.testnet.fantom.network/",
},
},
}
};