-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
35 lines (32 loc) · 941 Bytes
/
hardhat.config.ts
File metadata and controls
35 lines (32 loc) · 941 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
30
31
32
33
34
35
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@openzeppelin/hardhat-upgrades";
import { HardhatUserConfig } from "hardhat/config";
require("dotenv").config();
export default {
solidity: {
compilers: [{ version: "0.8.10", settings: { optimizer: { enabled: true, runs: 200 } } }],
},
paths: {
sources: "src",
},
networks: {
hardhat: {
chainId: 1337,
forking: {
url: process.env.NETWORK_URL_OPERA,
},
accounts: [{ privateKey: process.env.PRIVATE_KEY_OPERA, balance: "1000000000000000000000" }],
},
opera: {
url: process.env.NETWORK_URL_OPERA,
accounts: [process.env.PRIVATE_KEY_OPERA],
},
},
etherscan: {
apiKey: {
opera: process.env.API_KEY_OPERA,
},
},
} as HardhatUserConfig;