forked from metta2085/pyth-oracles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
85 lines (80 loc) · 2.11 KB
/
Copy pathhardhat.config.ts
File metadata and controls
85 lines (80 loc) · 2.11 KB
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@gelatonetwork/web3-functions-sdk/hardhat-plugin";
import dotenv from "dotenv";
dotenv.config();
const config: HardhatUserConfig = {
w3f: {
rootDir: "./web3-functions",
debug: false,
networks: ["blast", "zksync"], //(multiChainProvider) injects provider for these networks
},
solidity: "0.8.24",
defaultNetwork: "zksync",
networks: {
hardhat: {
accounts: [],
},
manta: {
url: "https://pacific-rpc.manta.network/http",
accounts: [process.env.WALLET_PRIVATE_KEY || ""],
chainId: 169,
},
linea: {
url: "https://rpc.linea.build",
accounts: [process.env.WALLET_PRIVATE_KEY || ""],
chainId: 59144,
},
zksync: {
url: "https://mainnet.era.zksync.io",
accounts: [process.env.WALLET_PRIVATE_KEY || ""],
chainId: 324,
zksync: true,
},
blast_sepolia: {
url: "https://sepolia.blast.io",
accounts: [process.env.WALLET_PRIVATE_KEY || ""],
chainId: 168587773,
},
blast: {
url: "https://rpc.ankr.com/blast",
accounts: [process.env.WALLET_PRIVATE_KEY || ""],
chainId: 81457,
},
},
etherscan: {
apiKey: {
manta: process.env.MANTA_API_KEY || "nothing",
linea: process.env.LINEA_API_KEY || "nothing",
blast_sepolia: "nothing",
},
customChains: [
{
network: "manta",
chainId: 169,
urls: {
apiURL: "https://pacific-explorer.manta.network/api",
browserURL: "https://pacific-explorer.manta.network",
},
},
{
network: "blast_sepolia",
chainId: 168587773,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan",
browserURL: "https://testnet.blastscan.io",
},
},
{
network: "linea",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build",
},
},
],
},
};
export default config;