-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
49 lines (46 loc) · 1006 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
47
48
49
import { HardhatUserConfig } from 'hardhat/config'
import 'hardhat-deploy'
import '@nomicfoundation/hardhat-toolbox'
import * as dotenv from 'dotenv'
dotenv.config()
const config: HardhatUserConfig = {
defaultNetwork: 'localhost',
solidity: {
version: '0.8.24',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
namedAccounts: {
deployer: {
// By default, it will take the first Hardhat account as the deployer
default: 0,
},
},
networks: {
hardhat: {
chainId: 31337,
},
sepolia: {
url: process.env.SEPOLIA_RPC_URL,
accounts: [process.env.PRIVATE_KEY || '0x'],
},
mumbai: {
url: process.env.MUMBAI_RPC_URL,
accounts: [process.env.PRIVATE_KEY || '0x'],
},
},
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_KEY || '',
polygonMumbai: process.env.POLYGONSCAN_KEY || '',
},
},
sourcify: {
enabled: true,
},
}
export default config