-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
74 lines (72 loc) · 1.87 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "./tasks/index";
import { network } from "./configs/config";
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
gasReporter: { enabled: true },
mocha: {
timeout: 200000,
},
networks: {
[network.name]: {
url: network.rpc,
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined,
chainId: network.chainId,
},
cardona: {
url: "https://rpc.cardona.zkevm-rpc.com/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined,
chainId: 2442,
},
sepolia: {
url: "https://rpc.sepolia.org/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined,
chainId: 11155111,
},
chiado: {
url: "https://rpc.chiadochain.net/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined,
chainId: 10200,
},
stavanger: {
url: "https://stavanger-rpc.eu-north-2.gateway.fm/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined,
chainId: 50591822,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY ?? "",
customChains: [
{
network: network.name,
chainId: network.chainId,
urls: {
apiURL: network.apiURL,
browserURL: network.browserURL,
},
},
{
network: "stavanger",
chainId: 50591822,
urls: {
apiURL: "https://stavanger-blockscout.eu-north-2.gateway.fm/api/",
browserURL: "https://stavanger-blockscout.eu-north-2.gateway.fm/",
},
},
],
},
};
export default config;