-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.js
37 lines (34 loc) · 1.05 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
require("@nomicfoundation/hardhat-toolbox");
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] : [],
},
};
}, {});
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.18",
optimizer: {
enabled: true,
runs: 200,
},
networks,
etherscan: {
apiKey: {
polygon: "W9TVEYKW2CDTQ94T3A2V93IX6U3IHQN5Y3",
goerli: "HPSH1KQDPJTNAPU3335G931SC6Y3ZYK3BF",
mainnet: "HPSH1KQDPJTNAPU3335G931SC6Y3ZYK3BF",
bsc: "6YUDRP3TFPQNRGGZQNYAEI1UI17NK96XGK",
gnosis: "BSW3C3NDUUBWSQZJ5FUXBNXVYX92HZDDCV",
optimisticEthereum: "V51DWC44XURIGPP49X85VZQGH1DCBAW5EC",
arbitrumOne: "W5XNFPZS8D6JZ5AXVWD4XCG8B5ZH5JCD4Y",
polygonMumbai: "W9TVEYKW2CDTQ94T3A2V93IX6U3IHQN5Y3",
},
},
};