forked from Pandora-Labs-Org/erc404
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
29 lines (26 loc) · 793 Bytes
/
hardhat.config.ts
File metadata and controls
29 lines (26 loc) · 793 Bytes
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
import "dotenv/config"
import { HardhatUserConfig } from "hardhat/config"
import "@nomicfoundation/hardhat-toolbox"
import "hardhat-gas-reporter"
let { PRIVATE_KEY, INFURA_KEY, ETHERSCAN_API_KEY } = process.env;
const config: HardhatUserConfig = {
solidity: { compilers: [{ version: "0.8.20" }, { version: "0.4.18" }] },
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
accounts: [`${PRIVATE_KEY}`]
},
sepolia: {
url: `https://sepolia.infura.io/v3/${INFURA_KEY}`,
accounts: [`${PRIVATE_KEY}`],
},
mumbai: {
url: `https://polygon-mumbai.infura.io/v3/${INFURA_KEY}`,
accounts: [`${PRIVATE_KEY}`]
}
},
etherscan: {
apiKey: `${ETHERSCAN_API_KEY}` //for contract verify
}
}
export default config