-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
59 lines (54 loc) · 1.35 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import dotenv from "dotenv";
import { HttpNetworkAccountsUserConfig } from "hardhat/types";
dotenv.config();
const { MNEMONIC, INFURA_KEY, ETHERSCAN_API_KEY, GNOSISSCAN_API_KEY} = process.env;
const sharedAccountConfig: HttpNetworkAccountsUserConfig = {
mnemonic: MNEMONIC || "myth like bonus scare over problem client lizard pioneer submit female collect"
}
const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
hardhat: {
accounts: sharedAccountConfig,
allowUnlimitedContractSize: true,
blockGasLimit: 100000000,
gas: 100000000,
},
goerli: {
accounts: sharedAccountConfig,
url: `https://goerli.infura.io/v3/${INFURA_KEY}`,
},
gnosis: {
accounts: sharedAccountConfig,
url: "https://rpc.gnosis.gateway.fm",
},
},
sourcify: {
enabled: false,
},
etherscan: {
apiKey: GNOSISSCAN_API_KEY,
// apiKey: ETHERSCAN_API_KEY,
customChains: [
{
network: "gnosis",
chainId: 100,
urls: {
apiURL: "https://api.gnosisscan.io/api",
browserURL: "https://gnosisscan.io/",
},
},
]
},
};
export default config;