-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
42 lines (39 loc) · 959 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
require('dotenv').config();
require('hardhat-deploy');
const config = {
solidity: {
version: '0.7.5',
settings: {
evmVersion: 'berlin',
optimizer: { enabled: true, runs: 200 },
},
},
networks: {
ganache: {
url: `http://${process.env.GANACHE_HOST || 'localhost'}:8545`,
},
goerli: {
url: 'https://goerli.infura.io/v3/6a04b7c89c5b421faefde663f787aa35', // <---- YOUR INFURA ID! (or it won't work)
accounts: {
mnemonic: process.env.MNEMONIC,
},
},
hardhat: {
blockGasLimit: 15000000,
gasPrice: 10,
hardfork: 'berlin',
},
},
paths: {
artifacts: './src/artifacts',
},
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
},
},
};
export default config;