forked from defi-org-code/web3-candies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
29 lines (26 loc) · 860 Bytes
/
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
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-web3";
import "@typechain/hardhat";
import "dotenv/config";
import "hardhat-gas-reporter";
import "hardhat-spdx-license-identifier";
import "hardhat-tracer";
import { task } from "hardhat/config";
import _ from "lodash";
import { account, erc20s, ether, web3 } from "./src";
import { hardhatDefaultConfig } from "./src/hardhat";
import { deploy } from "./src/hardhat/deploy";
task("deploy").setAction(async () => {
const ac = web3().eth.accounts.create();
console.log("pk:", ac.privateKey);
await web3().eth.sendTransaction({ from: await account(), to: ac.address, value: ether.toString() });
await deploy({
contractName: "Example",
args: [123, erc20s.eth.WETH().address, [456]],
});
});
export default _.merge(hardhatDefaultConfig(), {
mocha: {
retries: 0,
},
});