forked from paco0x/amm-arbitrageur
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
43 lines (39 loc) · 983 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
43
import { task, HardhatUserConfig } from 'hardhat/config';
import '@typechain/hardhat';
import '@nomiclabs/hardhat-waffle';
import deployer from './.secret';
// const BSC_RPC = 'https://bsc-dataseed.binance.org/';
const BSC_RPC = 'https://bsc-dataseed1.defibit.io/';
const BSC_Tetsnet_RPC = 'https://data-seed-prebsc-1-s1.binance.org:8545/';
const config: HardhatUserConfig = {
solidity: { version: '0.7.6' },
networks: {
hardhat: {
// loggingEnabled: true,
forking: {
url: BSC_RPC,
enabled: true,
},
accounts: {
accountsBalance: '1000000000000000000000000', // 1 mil ether
},
},
bscTestnet: {
url: BSC_Tetsnet_RPC,
chainId: 0x61,
accounts: [deployer.private],
},
bsc: {
url: BSC_RPC,
chainId: 0x38,
accounts: [deployer.private],
},
},
mocha: {
timeout: 40000,
},
};
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = config;