-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
51 lines (48 loc) · 1.05 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
import 'dotenv/config';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
const PRIVATE_KEY = process.env.PRIVATE_KEY || '';
const POLYGONSCAN_API_KEY = process.env.POLYGONSCAN_API_KEY;
const config: HardhatUserConfig = {
defaultNetwork: 'sepolia',
networks: {
hardhat: {},
polygon_mumbai: {
url: 'https://rpc-mumbai.maticvigil.com',
accounts: [PRIVATE_KEY],
},
sepolia: {
url: 'https://eth-sepolia.g.alchemy.com/v2/sTnv_4QBL2A-1ILbEvsC9gpECMxr7S1L',
accounts: [PRIVATE_KEY],
},
},
etherscan: {
apiKey: POLYGONSCAN_API_KEY,
},
solidity: {
compilers: [
{
version: '0.6.0',
},
{
version: '0.8.0',
},
{
version: '0.6.12',
},
],
// version: '^0.6.0',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
mocha: {
timeout: 1000000000000000,
},
};
export default config;