-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathhardhat.config.ts
99 lines (97 loc) · 2.23 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@openzeppelin/hardhat-upgrades";
import "hardhat-deploy";
import * as dotenv from "dotenv";
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
islander: {
url: process.env.ISLANDER_RPC_URL || "",
accounts:
process.env.DEPLOYER_PRIVATE_KEY !== undefined
? [process.env.DEPLOYER_PRIVATE_KEY]
: [],
allowUnlimitedContractSize: true,
},
moksha: {
url: process.env.MOKSHA_RPC_URL || "",
chainId: 14800,
accounts:
process.env.DEPLOYER_PRIVATE_KEY !== undefined
? [process.env.DEPLOYER_PRIVATE_KEY]
: [],
},
satori: {
url: process.env.SATORI_RPC_URL || "",
chainId: 14801,
accounts:
process.env.DEPLOYER_PRIVATE_KEY !== undefined
? [process.env.DEPLOYER_PRIVATE_KEY]
: [],
},
},
etherscan: {
apiKey: {
// Is not required by blockscout. Can be any non-empty string
islander: "abc",
moksha: "abc",
satori: "abc",
},
customChains: [
{
network: "islander",
chainId: 1480,
urls: {
apiURL: process.env.ISLANDER_API_URL || "",
browserURL: process.env.ISLANDER_BROWSER_URL || "",
},
},
{
network: "moksha",
chainId: 14800,
urls: {
apiURL: "https://api.moksha.vanascan.io/api/",
browserURL: "https://moksha.vanascan.io",
},
},
{
network: "satori",
chainId: 14801,
urls: {
apiURL: process.env.SATORI_API_URL || "",
browserURL: process.env.SATORI_BROWSER_URL || "",
},
},
],
},
sourcify: {
enabled: false,
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
mocha: {
timeout: 40000,
},
gasReporter: {
enabled: true,
excludeContracts: ["mocks", "tests"],
},
};
export default config;