forked from traderjoe-xyz/rocket-joe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
56 lines (54 loc) · 1.27 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
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require("@openzeppelin/hardhat-upgrades");
require("dotenv").config();
require("hardhat-abi-exporter");
require("hardhat-contract-sizer");
require("hardhat-deploy");
require("hardhat-deploy-ethers");
require("solidity-coverage");
require("./tasks/launchtoken");
require("./tasks/enter");
module.exports = {
solidity: "0.8.6",
defaultNetwork: "hardhat",
networks: {
hardhat: {},
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${
process.env.ALCHEMY_PROJECT_ID || ""
}`,
accounts: process.env.DEPLOY_PRIVATE_KEY
? [process.env.DEPLOY_PRIVATE_KEY]
: [],
gas: 2100000,
gasPrice: 8000000000,
saveDeployments: true,
},
avalanche: {
url: "https://api.avax.network/ext/bc/C/rpc",
gasPrice: 26000000000,
chainId: 43114,
accounts: process.env.DEPLOY_PRIVATE_KEY
? [process.env.DEPLOY_PRIVATE_KEY]
: [],
},
},
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
contractSizer: {
strict: true,
},
namedAccounts: {
deployer: 0,
dev: 1,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};