-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhardhat.config.js
More file actions
96 lines (88 loc) · 2.69 KB
/
hardhat.config.js
File metadata and controls
96 lines (88 loc) · 2.69 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
const { task } = require("hardhat/config");
require("@nomiclabs/hardhat-ganache");
require("@nomiclabs/hardhat-truffle5");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-web3");
require("hardhat-contract-sizer"); //yarn run hardhat size-contracts
require("solidity-coverage"); // $ npx hardhat coverage
require("hardhat-log-remover");
require('hardhat-docgen');
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
/// this is for use with ethers.js
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts.address) {
const wallet = ethers.Wallet.fromMnemonic("test test test test test test test test test test test junk", "m/44'/60'/0'/0");
console.log(account);
}
});
/*task("accounts", "Prints accounts", async (_, { web3 }) => {
console.log();
console.log(await web3.eth.getAccounts());
});*/
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
/**/
module.exports = {
solidity: {
version: "0.4.26",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
contractSizer: {
alphaSort: false,
runOnCompile: false,
disambiguatePaths: false,
},
networks: {
hardhat: {},
rskPublicTestnet: {
url: "https://public-node.testnet.rsk.co/",
accounts: { mnemonic: "brownie", count: 10 },
network_id: 31,
confirmations: 4,
gasMultiplier: 1.25,
//timeout: 20000, // increase if needed; 20000 is the default value
//allowUnlimitedContractSize, //EIP170 contrtact size restriction temporal testnet workaround
},
rskPublicMainnet: {
url: "https://public-node.rsk.co/",
network_id: 30,
//timeout: 20000, // increase if needed; 20000 is the default value
},
rskSovrynTestnet: {
url: "https://testnet.sovryn.app/rpc",
accounts: { mnemonic: "brownie", count: 10 },
network_id: 31,
confirmations: 4,
gasMultiplier: 1.25,
//timeout: 20000, // increase if needed; 20000 is the default value
//allowUnlimitedContractSize, //EIP170 contrtact size restriction temporal testnet workaround
},
rskSovrynMainnet: {
url: "https://mainnet.sovryn.app/rpc",
network_id: 30,
//timeout: 20000, // increase if needed; 20000 is the default value
},
},
paths: {
sources: "./solidity/contracts",
tests: "./solidity/test/",
},
mocha: {
timeout: 800000,
grep: "^(?!.*; using Ganache).*",
},
docgen: {
path: './docs',
clear: true
}
};