-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
79 lines (72 loc) · 1.93 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-ignition-ethers";
import "@starboardventures/hardhat-verify";
import * as dotenv from "dotenv";
import "./tasks/F3Parameters";
dotenv.config();
// fallback to dummy key
const PRIVATE_KEY = process.env.PRIVATE_KEY || "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.23",
settings: {
optimizer: {
enabled: true,
},
},
},
defaultNetwork: "hardhat",
networks: {
localnet: {
chainId: 31415926,
url: "http://127.0.0.1:1234/rpc/v1",
accounts: [PRIVATE_KEY],
},
calibrationnet: {
chainId: 314159,
url: "https://api.calibration.node.glif.io/rpc/v1",
accounts: [PRIVATE_KEY],
},
filecoinmainnet: {
chainId: 314,
url: "https://api.node.glif.io",
//url: 'https://rpc.ankr.com/filecoin',
accounts: [PRIVATE_KEY],
},
},
starboardConfig: {
baseURL: 'https://fvm-calibration-api.starboard.ventures',
network: 'Calibration' // if there's no baseURL, url will depend on the network. Mainnet || Calibration
},
etherscan: {
apiKey: {
'calibrationnet': 'empty',
'filecoinmainnet': 'empty',
},
customChains: [
{
network: "filecoinmainnet",
chainId: 314,
urls: {
apiURL: "https://filecoin.blockscout.com/api",
browserURL: "https://filecoin.blockscout.com"
}
},
{
network: "calibrationnet",
chainId: 314159,
urls: {
apiURL: "https://filecoin-testnet.blockscout.com/api",
browserURL: "https://filecoin-testnet.blockscout.com"
}
}
]
},
sourcify: {
enabled: true,
apiUrl: "https://sourcify.dev/server",
browserUrl: "https://repo.sourcify.dev",
}
};
export default config;