-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
74 lines (71 loc) · 1.97 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
/** @type import('hardhat/config').HardhatUserConfig */
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-web3");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-docgen');
require("xdeployer");
require("dotenv").config();
const { ALCHEMY_API_KEY, GOERLI_PRIVATE_KEY1,GOERLI_PRIVATE_KEY2, ETHERSCAN_API_KEY, BSCSCAN_API_KEY } = process.env;
module.exports = {
docgen: {
path: './documents',
clear: true,
runOnCompile: true,
},
solidity: {
compilers: [
{
version: "0.4.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.4.26",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.8.17",
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 1000000,
},
},
},
],
},
networks: {
hardhat: {
allowUnlimitedContractSize: true
},
localhost : {
allowUnlimitedContractSize: true,
gas: 30000000
},
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
accounts: [GOERLI_PRIVATE_KEY1, GOERLI_PRIVATE_KEY2],
gasMultiplier: 1.3,
},
bsctest: {
url: `https://data-seed-prebsc-1-s1.binance.org:8545`,
accounts: [GOERLI_PRIVATE_KEY1],
chainId: 97,
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
// apiKey: BSCSCAN_API_KEY
}
};