-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
70 lines (68 loc) · 1.57 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
import { task } from "hardhat/config";
import "@nomiclabs/hardhat-waffle";
import "solidity-coverage";
import "hardhat-spdx-license-identifier";
import "hardhat-gas-reporter";
import { manualUpdate } from "./scripts/manualUpdate";
import axios from "axios";
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
task("keep-balance", "Runs balance manager keeper")
.addParam("threshold", "threshold to call keep, enter eth amount (ex. 0.5 eth => 0.5)")
.setAction(
async(taskArgs, hre) => {
await manualUpdate(hre, taskArgs.threshold);
});
export default {
gasReporter: {
enabled: true,
currency: "USD",
gasPrice: 100,
},
spdxLicenseIdentifier: {
overwrite: false,
runOnCompile: true,
},
solidity: {
compilers: [
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.5.17",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
hardhat: {
gas: 10000000,
accounts: {
accountsBalance: "10000000000000000000000000",
},
allowUnlimitedContractSize: true,
timeout: 1000000,
forking: {
url: "https://eth-mainnet.alchemyapi.io/v2/90dtUWHmLmwbYpvIeC53UpAICALKyoIu",
blockNumber: 13581728
}
},
coverage: {
url: "http://localhost:8555",
},
},
mocha: {
timeout: "200000000",
},
};