-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
70 lines (66 loc) · 1.83 KB
/
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
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
import { HardhatUserConfig } from "hardhat/types/config";
import { config } from "dotenv";
import "solidity-coverage";
import "hardhat-gas-reporter";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "./tasks/test-deploy";
import "./tasks/get-proof";
import "./tasks/deploy-token";
import "./tasks/deploy-claimer";
import "./tasks/deploy-vested-claimer";
import "./tasks/estimate-swpr-deployment-gas-used";
import "./tasks/verify-deployment";
import "./tasks/deploy-distributor";
import "./tasks/deploy-converter";
config();
const infuraId = process.env.INFURA_ID;
const accounts = process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [];
const hardhatConfig: HardhatUserConfig = {
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${infuraId}`,
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${infuraId}`,
accounts,
},
arbitrumTestnet: {
url: "https://rinkeby.arbitrum.io/rpc",
accounts,
gasPrice: 0,
},
arbitrumOne: {
url: "https://arb1.arbitrum.io/rpc",
accounts,
gasPrice: 0,
},
xdai: {
url: "https://xdai.poanetwork.dev",
accounts,
gasPrice: 0,
},
},
solidity: {
compilers: [
{
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
gasReporter: {
currency: "USD",
enabled: process.env.GAS_REPORT_ENABLED === "true",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};
export default hardhatConfig;