-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
108 lines (104 loc) · 2.41 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import dotenv from 'dotenv';
import '@nomicfoundation/hardhat-toolbox';
import 'hardhat-dependency-compiler';
import { HardhatUserConfig } from 'hardhat/config';
dotenv.config();
const privateKey = process.env.PRIVATE_KEY || '0x0000000000000000000000000000000000000000000000000000000000000000';
const infuraKey = process.env.INFURA_API_KEY || '';
const etherscanApi = process.env.ETHERSCAN_API_KEY || '';
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
{
version: '0.4.25',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
},
typechain: {
outDir: './typechain-types',
target: 'ethers-v5',
},
networks: {
hardhat: {
allowUnlimitedContractSize: false,
},
mainnet: {
url: `https://mainnet.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
goerli: {
url: `https://goerli.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
sepolia: {
url: `https://sepolia.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
arbitrumRinkeby: {
url: `https://arbitrum-rinkeby.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
arbitrum: {
url: `https://arbitrum-mainnet.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
bnb: {
url: `https://bsc-dataseed.binance.org/`,
accounts: [privateKey]
},
mumbai: {
url: `https://polygon-mumbai.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
optimism: {
url: `https://optimism-mainnet.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
optimismKovan: {
url: `https://optimism-kovan.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
polygon: {
url: `https://polygon-mainnet.infura.io/v3/${infuraKey}`,
accounts: [privateKey]
},
},
etherscan: {
apiKey: etherscanApi
},
paths: {
artifacts: './artifacts',
cache: './cache',
sources: './contracts',
tests: './tests',
},
dependencyCompiler: {
paths: [
],
},
gasReporter: {
currency: 'USD',
enabled: true,
gasPrice: 10,
token: 'ETH',
},
mocha: {
timeout: 60000,
}
};
export default config;