-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
45 lines (43 loc) · 1.06 KB
/
hardhat.config.ts
File metadata and controls
45 lines (43 loc) · 1.06 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
import { task } from "hardhat/config";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-web3-legacy";
import "hardhat-contract-sizer";
require("dotenv").config();
// 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 = {
networks: {
bsctestnet: {
url: process.env.BSCTESTNET_NETWORK_URL,
chainId: 97,
gasPrice: 20000000000,
accounts: [process.env.BSCTESTNET_PRIVATE_KEY],
},
bscmainnet: {
url: process.env.BSCMAINNET_NETWORK_URL,
chainId: 56,
gasPrice: 20000000000,
accounts: [process.env.BSCMAINNET_PRIVATE_KEY],
},
},
etherscan: {
apiKey: process.env.BSCTESTNET_ETHERSCAN_KEY,
},
settings: {
optimizer: {
enabled: true,
runs: 10000,
},
},
solidity: "0.8.4",
typechain: {
outDir: "src/types",
target: "ethers-v5",
},
};