-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.js
113 lines (107 loc) · 3.41 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// import { task } from 'hardhat/config'
// import '@nomiclabs/hardhat-waffle'
// import 'hardhat-typechain'
// import { HardhatUserConfig } from 'hardhat/types'
// import 'hardhat-deploy'
// import 'hardhat-deploy-ethers'
require('@openzeppelin/hardhat-upgrades')
// require('solidity-coverage')
// require('hardhat-dependency-compiler')
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
// task('accounts', 'Prints the list of accounts', async (args, hre) => {
// const accounts = await hre.ethers.getSigners()
// // eslint-disable-next-line no-restricted-syntax
// for (const account of accounts) {
// // eslint-disable-next-line no-console
// console.log(account.address)
// }
// })
// TODO: add this to the hardhat-dependency-compiler repo as a pull request or whatever
// declare module 'hardhat/types/config' {
// interface HardhatUserConfig {
// dependencyCompiler?: any;
// }
// }
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
module.exports = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
gas: 12000000,
blockGasLimit: 0x1fffffffffffff,
allowUnlimitedContractSize: true
},
dev2: {
chainId: 31337,
url: "http://localhost:8547",
accounts: ["0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"]
},
dev1: {
chainId: 8997,
url: 'http://localhost:8546',
accounts: ['0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0']
},
localsidechain: {
chainId: 8997,
url: 'http://localhost:8546',
accounts: ['0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0']
},
localmainchain: {
chainId: 8995,
url: 'http://localhost:8995',
accounts: ['0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0']
},
polygonMainnet: {
chainId: 137,
url: 'https://polygon-rpc.com',
}
},
dependencyCompiler: {
paths: [
'@openzeppelin/contracts-upgradeable/metatx/MinimalForwarderUpgradeable.sol',
'@chainlink/contracts/src/v0.4/LinkToken.sol',
'@chainlink/contracts/src/v0.6/Oracle.sol'
],
},
solidity: {
compilers: [
{
version: '0.8.6',
settings: {
optimizer: {
enabled: true,
runs: 100,
},
},
},
{
version: '0.6.6',
settings: {
optimizer: {
enabled: true,
runs: 100,
},
},
},
{
version: '0.4.24',
settings: {
optimizer: {
enabled: true,
runs: 100,
},
},
},
{
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 100,
},
},
}],
}
}