-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
65 lines (61 loc) · 1.73 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
import "dotenv/config";
import {HardhatUserConfig} from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
require("dotenv").config();
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
paths: {
artifacts: "./artifacts",
},
networks: {
hardhat: {
forking: {
url: "https://rockbeard-eth-cartio.berachain.com/",
blockNumber: 586534,
},
},
berachainTestnet: {
chainId: 80084,
url: "https://bartio.rpc.berachain.com/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
},
cartio: {
chainId: 80000,
url: "https://rockbeard-eth-cartio.berachain.com/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
},
berachain: {
chainId: 80094,
url: "https://rpc.berachain.com/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.API_KEY || "",
customChains: [
{
network: "berachain",
chainId: 80094,
urls: {
apiURL: "https://api.berascan.com/api",
browserURL: "https://berascan.com/"
}
}
]
},
};
export default config;