-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
90 lines (89 loc) · 2.21 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
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
import '@nomiclabs/hardhat-waffle';
import '@typechain/hardhat';
import '@nomiclabs/hardhat-etherscan';
import 'hardhat-gas-reporter';
import { config } from 'dotenv';
config({ path: '.env' });
module.exports = {
gasReporter: {
currency: 'USD',
token: 'ETH',
gasPrice: 20,
enabled: process.env.COINMARKETCAP_API_KEY ? true : false,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
},
solidity: {
version: '0.8.16',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
typechain: {
outDir: 'typechain-types',
target: 'ethers-v5',
},
networks: {
hardhat: {
forking: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.MUMBAI_API_KEY}`,
},
},
polygonMumbai: {
url: `https://rpc.eu-north-1.gateway.fm/v4/polygon/non-archival/mumbai`,
accounts: [process.env.PRIVATE_KEY],
},
scroll: {
url: 'https://alpha-rpc.scroll.io/l2' || '',
accounts: [process.env.PRIVATE_KEY],
},
taiko: {
url: 'http://rpc.test.taiko.xyz',
accounts: [process.env.PRIVATE_KEY],
},
mantle: {
url: 'https://rpc.testnet.mantle.xyz',
accounts: [process.env.PRIVATE_KEY],
},
optimisticEthereum: {
url: 'https://mainnet.optimism.io',
accounts: [process.env.PRIVATE_KEY],
}
},
etherscan: {
apiKey: {
scroll: 'abc',
polygonMumbai: '7V4UBHQJT1G7TIWHKFQ2VU5RMG3U8KYSCB',
mantle: '266e97a3-6b1b-45b9-8c48-ac9888f6786b',
optimisticEthereum: 'FN1NSQ23ZPJ992WT9C4GNWA2RNAJDTGQX6',
},
customChains: [
{
network: 'scroll',
chainId: 534353,
urls: {
apiURL: 'https://blockscout.scroll.io/api',
browserURL: 'https://blockscout.scroll.io/',
},
},
{
network: 'taiko',
chainId: 167005,
urls: {
apiURL: 'https://explorer.test.taiko.xyz/api',
browserURL: 'https://explorer.test.taiko.xyz',
},
},
{
network: 'mantle',
chainId: 5001,
urls: {
apiURL: 'https://explorer.testnet.mantle.xyz/api',
browserURL: 'https://explorer.testnet.mantle.xyz',
},
},
],
},
};