-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
46 lines (42 loc) · 1.27 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("@unlock-protocol/hardhat-plugin");
const unlockNetworks = require('@unlock-protocol/networks').networks
const networks = Object.keys(unlockNetworks).reduce((prev, current) => {
const network = unlockNetworks[current]
return {
...prev,
[network.chain]: {
url: network.provider,
accounts: process.env.PKEY ? [process.env.PKEY] : []
}
}
}, {})
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: '0.8.7',
// optimizer is required to deploy unlock contracts
optimizer: {
enabled: true,
runs: 200,
},
},
networks,
etherscan: {
apiKey: {
polygon: 'W9TVEYKW2CDTQ94T3A2V93IX6U3IHQN5Y3',
goerli: 'HPSH1KQDPJTNAPU3335G931SC6Y3ZYK3BF',
mainnet: 'HPSH1KQDPJTNAPU3335G931SC6Y3ZYK3BF',
bsc: '6YUDRP3TFPQNRGGZQNYAEI1UI17NK96XGK',
gnosis: 'BSW3C3NDUUBWSQZJ5FUXBNXVYX92HZDDCV',
optimisticEthereum: 'V51DWC44XURIGPP49X85VZQGH1DCBAW5EC',
arbitrumOne: 'W5XNFPZS8D6JZ5AXVWD4XCG8B5ZH5JCD4Y',
polygonMumbai: 'W9TVEYKW2CDTQ94T3A2V93IX6U3IHQN5Y3'
}
},
};