-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
81 lines (61 loc) · 1.58 KB
/
hardhat.config.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Binance Name Service
* @website github.com/binance-name
* @author Team BNS <[email protected]>
* @license SPDX-License-Identifier: MIT
*/
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-contract-sizer');
//require('hardhat-deploy');
require("./tasks/deploy")
require('@openzeppelin/hardhat-upgrades');
require('hardhat-abi-exporter',{ path: 'data/abi', clear: true });
const {
moralisApiKey,
accountPrivateKey,
etherscanAPIKey
} = require(__dirname+'/.secrets.js');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
hardhat: {
accounts: [{privateKey: `0x${accountPrivateKey}`, balance: "91229544000000000000"}],
//forking: {
//url: `https://speedy-nodes-nyc.moralis.io/${moralisApiKey}/bsc/mainnet`
// },
},
bsc_testnet: {
url: `https://data-seed-prebsc-2-s3.binance.org:8545/`,
chainId: 97,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
bsc_mainnet: {
url: `https://speedy-nodes-nyc.moralis.io/${moralisApiKey}/bsc/mainnet`,
chainId: 56,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: etherscanAPIKey
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 1
}
}
},
mocha: {
timeout: 1000000
}
};