forked from alpaca-finance/alpaca-v2-money-market
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
43 lines (40 loc) · 916 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { config as dotEnvConfig } from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
dotEnvConfig();
import "@openzeppelin/hardhat-upgrades";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import "hardhat-deploy";
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
bsc_mainnet: {
chainId: 56,
url: process.env.BSC_RPC_URL,
accounts: process.env.DEPLOYER_PRIVATE_KEY !== undefined ? [process.env.DEPLOYER_PRIVATE_KEY] : [],
},
},
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
paths: {
sources: "./solidity/contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
typechain: {
outDir: "./typechain",
target: "ethers-v5",
},
mocha: {
timeout: 100000,
},
};
export default config;