-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhardhat.config.ts
46 lines (40 loc) · 1.09 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
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import 'hardhat-deploy';
import * as dotenv from 'dotenv';
import { HardhatUserConfig } from 'hardhat/config';
dotenv.config();
const { DEPLOYER_PRIVATE_KEY, INFURA_PROJECT_ID, ETHERSCAN_API_KEY } = process.env;
const config: HardhatUserConfig = {
solidity: '0.8.3',
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_PROJECT_ID}`,
chainId: 1,
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`],
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_PROJECT_ID}`,
chainId: 42,
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`],
},
bsc_testnet: {
url: 'https://data-seed-prebsc-1-s1.binance.org:8545',
chainId: 97,
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`],
},
bsc_mainnet: {
url: 'https://bsc-dataseed.binance.org/',
chainId: 56,
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
namedAccounts: {
deployer: 0,
},
};
export default config;