-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhardhat.config.ts
73 lines (69 loc) · 1.75 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
/* eslint-disable import/no-extraneous-dependencies */
import '@nomicfoundation/hardhat-ethers'
import '@nomicfoundation/hardhat-chai-matchers'
import 'hardhat-gas-reporter'
import '@nomiclabs/hardhat-etherscan'
import { HardhatUserConfig } from 'hardhat/config'
require('dotenv').config()
const config: HardhatUserConfig = {
solidity: {
version: '0.8.19',
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 1000
}
}
},
gasReporter: {
enabled: true,
currency: 'USD',
coinmarketcap: 'c47b3b52-863b-4ffe-8673-955a09a393c2',
token: 'ETH'
},
networks: {
base: {
url: 'https://mainnet.base.org',
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined
},
optimism: {
url: 'https://invictus.ambire.com/optimism',
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined
},
ethereum: {
url: 'https://invictus.ambire.com/ethereum',
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
customChains: [
{
network: 'base',
chainId: 8453,
urls: {
apiURL: 'https://api.basescan.org/api',
browserURL: 'https://api.basescan.org/api'
}
},
{
network: 'optimism',
chainId: 10,
urls: {
apiURL: 'https://api-optimistic.etherscan.io/api',
browserURL: 'https://optimistic.etherscan.io/'
}
},
{
network: 'ethereum',
chainId: 10,
urls: {
apiURL: 'https://api.etherscan.io/api',
browserURL: 'https://etherscan.io/'
}
}
]
}
} as any
export default config