-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
32 lines (30 loc) · 2.23 KB
/
hardhat.config.js
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
require("hardhat-deploy");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
// Load environment variables from .env file. Suppress warnings if dotenv is missing.
require("dotenv").config({ silent: true });
module.exports = {
solidity: {
compilers: [
{
version: "0.8.19", // Use a Solidity version compatible with Uniswap V3
},
{
version: "0.7.6", // Uniswap V3 Periphery uses 0.7.6
}
],
},
networks: {
hardhat: {
forking: {
url: "https://eth-mainnet.g.alchemy.com/v2/WcDsq7m0lStFkxdphGwFAgtJeGbrGVpd", // YOUR ALCHEMY URL!
}
}
},
paths: {
sources: "./contracts", // Where your .sol contracts are
tests: "./test", // Where your tests are
cache: "./cache", // Cache directory (for compilation artifacts)
artifacts: "./artifacts", // Where to put compiled output
}
};