-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhardhat.config.ts
48 lines (45 loc) · 1.12 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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
import { HardhatUserConfig } from "hardhat/types";
import "@nomiclabs/hardhat-waffle";
import "hardhat-typechain";
import "hardhat-etherscan-abi";
import "@nomiclabs/hardhat-solhint";
import "solidity-coverage";
import 'hardhat-deploy';
// const accounts = {
// mnemonic: process.env.MNEMONIC || "test test test test test test test test test test test junk",
// accountsBalance: "990000000000000000000",
// }
const config: HardhatUserConfig = {
solidity: "0.7.3",
networks: {
hardhat: {
forking: {
url: `https://mainnet.infura.io/v3/${process.env.WEB3_INFURA_PROJECT_ID}`,
},
chainId: 1,
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.WEB3_INFURA_PROJECT_ID}`,
accounts: {
mnemonic: process.env.HDWALLET_MNEMONIC || ""
}
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_TOKEN
},
mocha: {
timeout: 60000
},
namedAccounts: {
deployer: {
default: 0
}
},
};
export default config;