-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
44 lines (42 loc) · 1.1 KB
/
hardhat.config.ts
File metadata and controls
44 lines (42 loc) · 1.1 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
import 'hardhat-typechain';
import 'hardhat-deploy';
import '@nomiclabs/hardhat-etherscan';
// You have to export an object to set up your config
// This object can have the following optional entries:
// defaultNetwork, networks, solc, and paths.
// Go to https://buidler.dev/config/ to learn more
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.8.3',
settings: {
optimizer: {
enabled: true
}
}
}
]
},
etherscan: {
apiKey: require('dotenv').config({ path: '.env.4' }).parsed.ETHERSCAN_KEY
},
networks: {
rinkeby: {
chainId: 4,
url: require('dotenv').config({ path: '.env.4' }).parsed.RPC_ENDPOINT
},
goerli: {
chainId: 5,
url: require('dotenv').config({ path: '.env.5' }).parsed.RPC_ENDPOINT
},
mumbai: {
chainId: 80001,
url: require('dotenv').config({ path: '.env.80001' }).parsed.RPC_ENDPOINT
}
}
};
export default config;