forked from ourzora/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
50 lines (48 loc) · 1.21 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
47
48
49
50
import { HardhatUserConfig } from 'hardhat/config';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import 'hardhat-typechain';
import 'hardhat-deploy';
require('dotenv').config();
// 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.6.8',
settings: {
optimizer: {
enabled: true,
},
},
},
],
},
networks: {
rinkeby: {
chainId: 4,
url: 'https://eth-rinkeby.alchemyapi.io/v2/' + process.env.ALCHEMY_KEY,
timeout: 1000 * 60,
},
bsc_mainnet: {
chainId: 56,
url: 'https://bsc-dataseed.binance.org/',
timeout: 1000 * 60,
},
bsc_testnet: {
chainId: 97,
url: 'https://data-seed-prebsc-1-s1.binance.org:8545/',
timeout: 1000 * 60,
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.SCAN_KEY,
},
};
export default config;