generated from gnosisguild/zodiac-mod-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhardhat.config.ts
60 lines (52 loc) · 1.47 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
53
54
55
56
57
58
59
60
import { HardhatUserConfig } from "hardhat/config"
import "@nomicfoundation/hardhat-toolbox"
import "@nomicfoundation/hardhat-verify"
import "@nomicfoundation/hardhat-ethers"
import 'hardhat-gas-reporter'
import dotenv from 'dotenv'
import { HttpNetworkUserConfig } from 'hardhat/types'
dotenv.config()
import "./tasks/extract-mastercopy"
import "./tasks/deploy-mastercopies"
import "./tasks/deploy-mastercopy"
import "./tasks/verify-mastercopies"
import "./tasks/verify-mastercopy"
const { MNEMONIC } = process.env
const sharedNetworkConfig: HttpNetworkUserConfig = {
accounts: {
mnemonic: MNEMONIC || "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat",
},
}
const config: HardhatUserConfig = {
paths: {
artifacts: "build/artifacts",
cache: "build/cache",
sources: "contracts",
},
solidity: {
compilers: [{ version: "0.8.20" }, { version: "0.8.15" }, { version: "0.8.0" }],
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
blockGasLimit: 100000000,
gas: 100000000,
},
mainnet: {
...sharedNetworkConfig,
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
},
sepolia: {
...sharedNetworkConfig,
url: `https://sepolia.infura.io/v3/${process.env.INFURA_KEY}`,
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
}
export default config