-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
41 lines (35 loc) · 1.08 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
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-gas-reporter";
import { HardhatUserConfig, subtask, task } from "hardhat/config";
task("deploy-testnets", "Deploys contract on a provided network")
.setAction(async () => {
const { deployLibrary } = require('./scripts/deploy');
await deployLibrary();
});
subtask("print", "Prints valuble info")
.addParam("deployerAddress", "The deployer address")
.addParam("contractAddress", "The contractAddress address")
.setAction(async ({ deployerAddress, contractAddress }) => {
console.log(`Deployed contract with the account: ${deployerAddress}`);
console.log(`Deployed contract at address: ${contractAddress}`)
});
task("deploy-LimeToken", "Deploys the LimeToken")
.setAction(async () => {
const { deployLimeToken } = require('./scripts/deploy');
await deployLimeToken();
})
const config: HardhatUserConfig = {
solidity: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
gasReporter: {
enabled: true,
}
};
export default config;