-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.sample.ts
40 lines (36 loc) · 1.05 KB
/
config.sample.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
import { NetworksUserConfig } from 'hardhat/types';
import { EtherscanConfig } from '@nomiclabs/hardhat-etherscan/dist/src/types';
export const networks: NetworksUserConfig = {
// Needed for `solidity-coverage`
coverage: {
url: 'http://localhost:8555',
},
// Rinkeby
rinkeby: {
url: 'https://rinkeby.infura.io/v3/YOUR-INFURA-API-KEY',
chainId: 4,
accounts: {
mnemonic: 'YOUR MNEMONIC HERE',
path: 'm/44\'/60\'/0\'/0',
initialIndex: 0,
count: 10,
},
gas: 'auto',
gasPrice: 1000000000, // 1 gwei
gasMultiplier: 1.5,
},
// Mainnet
mainnet: {
url: 'https://mainnet.infura.io/v3/YOUR-INFURA-KEY',
chainId: 1,
accounts: ['0xaaaa'],
gas: 'auto',
gasPrice: 50000000000,
gasMultiplier: 1.5,
},
};
// Use to verify contracts on Etherscan
// https://buidler.dev/plugins/nomiclabs-buidler-etherscan.html
export const etherscan: EtherscanConfig = {
apiKey: 'YOUR-ETHERSCAN-API-KEY',
};