-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
35 lines (32 loc) · 954 Bytes
/
hardhat.config.ts
File metadata and controls
35 lines (32 loc) · 954 Bytes
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
// eslint-disable-next-line no-unused-vars
import { HardhatUserConfig } from 'hardhat/config';
import { INFURA_PROJECT_ID, PRIVATE_KEY, ETHERSCAN_API_KEY } from './config';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-typechain';
// Activate the following plugin when support for ethers v5 is present
// usePlugin('buidler-typechain');
const config: HardhatUserConfig = {
solidity: {
version: '0.7.5',
settings: {
optimizer: {
enabled: true,
},
},
},
networks: {
ropsten: {
url: `https://ropsten.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [PRIVATE_KEY],
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [PRIVATE_KEY],
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
};
export default config;