-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
84 lines (82 loc) · 1.79 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
81
82
83
84
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("@nomiclabs/hardhat-vyper");
require("./tasks/launchtoken");
require("./tasks/enter");
module.exports = {
solidity: {
compilers: [
{ version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}, },
{ version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}, },
{ version: "0.6.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}, }
],
},
vyper: {
version: "0.3.1"
},
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,
},
};