-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhardhat.config.ts
104 lines (98 loc) · 2.02 KB
/
hardhat.config.ts
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
97
98
99
100
101
102
103
104
import { task } from "hardhat/config";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-waffle";
import "hardhat-deploy";
import "./tasks/index";
import "hardhat-gas-reporter"
import * as mnemonic from "./private/testmnemonic.json";
import "hardhat-abi-exporter"
task("accounts", "Prints the list of accounts", async (_, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
export default {
solidity:
{
compilers: [
{
version: "0.8.16"
},
{
version: "0.7.1"
}
]
},
gasReporter: {
optimizer: true,
outputFile: "gasReport.txt",
disabled: true
},
abiExporter: {
path: './ABIs',
runOnCompile: true,
clear: true,
flat: true,
spacing: 2,
pretty: true
},
networks: {
hardhat: {
allowUnlimitedContractSize: false,
chainId: 1337,
accounts: {
mnemonic: "eight fun oak spot hip pencil matter domain bright fiscal nurse easy",
},
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
mining: {
auto: true,
interval: 2,
},
},
ropsten: {
url: `https://nd-564-762-624.p2pify.com/41adb4b5065ff74a971a8bf5e85947c7`,
chainId: 3,
accounts: {
mnemonic: mnemonic.phrase,
},
from: mnemonic.primary,
gasMultiplier: 6,
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
// maxFeePerGas: "0x17D78400",
// maxPriorityFeePerGas: "0x17D78400",
},
sepolia:{
url:`http://localhost:8545`,
chainId:11155111,
accounts:{
mnemonic:mnemonic.phrase
},
from:mnemonic.primary,
gasMultiplier:2,
settings:{
optimizer:{
enabled:true,
runs:200
}
}
}
},
namedAccounts: {
deployer: 0,
},
mocha: {
timeout: 3000000,
},
};