-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
52 lines (50 loc) · 1.31 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import dotenv from "dotenv";
import { ethers } from "hardhat";
dotenv.config();
const PK = process.env.PRIVATE_KEY!;
const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
settings: {
viaIR: false,
optimizer: {
enabled: true,
runs: 800,
},
metadata: {
// do not include the metadata hash, since this is machine dependent
// and we want all generated code to be deterministic
// https://docs.soliditylang.org/en/v0.8.20/metadata.html
bytecodeHash: "none",
},
},
},
networks: {
hardhat: {
enableTransientStorage: true,
allowUnlimitedContractSize: true,
accounts: [
{ privateKey: PK, balance: "1000000000000000000000000000000000" },
],
// forking: {
// url: "https://1rpc.io/scroll/sepolia",
// blockNumber: 994816,
// },
},
uniswap: {
chainId: 111,
url: "https://l2-uniswap-v4-hook-sandbox-6tl5qq8i4d.t.conduit.xyz",
},
arbitrum_sepolia: {
chainId: 421614,
url: "https://sepolia-rollup.arbitrum.io/rpc",
},
scroll_sepolia: {
chainId: 534351,
url: "https://1rpc.io/scroll/sepolia",
},
},
};
export default config;