-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
59 lines (56 loc) · 1.29 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
import * as dotenv from 'dotenv'; // see https://github.com/motdotla/dotenv#how-do-i-use-dotenv-with-// import dotfile
dotenv.config();
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.5.12',
},
{
version: '0.8.9',
},
{
version: '0.8.7',
},
{
version: '0.6.0',
},
{
version: '0.8.4',
},
{
version: '0.8.15',
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: '0.6.12',
},
],
},
networks: {
hardhat: {
// For metamask
// https://hardhat.org/metamask-issue
chainId: 1337,
// Since we compile/deploy monolith contracts (instead of separately deployed)
// Some contracts (USDC) hit contract size limit
allowUnlimitedContractSize: true,
},
// use mumbai
mumbai: {
// Set url to alchemy mumbai.
url: 'https://polygon-mumbai.g.alchemy.com/v2/' + process.env.ALCHEMY_API_KEY!,
chainId: 80001,
accounts: [process.env.MUMBAI_PRIVATE_KEY!],
},
}
};
export default config;