-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
46 lines (42 loc) · 977 Bytes
/
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
import { HardhatUserConfig } from 'hardhat/config';
require('dotenv').config();
import '@nomicfoundation/hardhat-toolbox';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
const { PRIVATE_KEY, PUBLIC_KEY, ALCHEMY_KEY, ETHERSCAN_API_KEY } = process.env;
// const config: HardhatUserConfig = {
const config = {
solidity: {
compilers: [
{
version: '0.8.9',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: '0.6.12',
settings: {},
},
{
version: '0.6.0',
settings: {},
},
{
version: '0.4.21',
settings: {},
},
],
},
networks: {
mumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/4Wyho29rDaYnNPbEAUR-5GY2ekvRsrAh`,
accounts: [`${PRIVATE_KEY}`],
},
},
etherscan: { apiKey: `${ETHERSCAN_API_KEY}` },
};
export default config;