-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
97 lines (94 loc) · 2.1 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
import {HardhatUserConfig, task} from 'hardhat/config';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import '@typechain/hardhat';
import 'hardhat-gas-reporter';
import 'solidity-coverage';
import '@nomiclabs/hardhat-web3';
import '@openzeppelin/hardhat-upgrades';
import '@matterlabs/hardhat-zksync-deploy';
import '@matterlabs/hardhat-zksync-solc';
import accounts from './test/mock/accounts.json';
import initTask from './tasks/minter';
require('dotenv').config();
initTask(task);
const config: HardhatUserConfig | any = {
solidity: {
compilers: [
{
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
zkTestnet: {
version: "1.3.5",
compilerSource: "binary",
settings: {},
},
networks: {
localhost: {
url: 'http://127.0.0.1:8545',
gasMultiplier: 1,
accounts: [process.env.PRIVATE_KEY],
},
hardhat: {
forking: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA}`,
}
},
zkTestnet: {
url: 'https://zksync2-testnet.zksync.dev',
ethNetwork: 'goerli',
zksync: true,
},
live: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA}`,
chainId: 1,
accounts: [process.env.PRIVATE_KEY],
},
mumbai: {
url: `https://rpc-mumbai.maticvigil.com`,
chainId: 80001,
accounts: accounts.privateKey,
},
testnet: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA}`,
chainId: 4,
accounts: accounts.privateKey,
gasMultiplier: 2,
}
},
gasReporter: {
enabled: true,
currency: 'USD',
},
etherscan: {
apiKey: process.env.ETHERSCAN,
},
abiExporter: {
path: './data/abi',
clear: true,
spacing: 2,
},
spdxLicenseIdentifier: {
overwrite: false,
runOnCompile: true,
},
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
},
mocha: {
timeout: 20000,
enableTimeouts: true,
},
};
export default config;