-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
97 lines (93 loc) · 2.02 KB
/
Copy pathhardhat.config.ts
File metadata and controls
97 lines (93 loc) · 2.02 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
86
87
88
89
90
91
92
93
94
95
96
97
import type { HardhatUserConfig } from "hardhat/config";
import "@gelatonetwork/web3-functions-sdk/hardhat-plugin";
import "@nomiclabs/hardhat-ethers";
import "@foundry-rs/hardhat-anvil";
const PRIVATE_KEY =
process.env.PRIVATE_KEY ??
"0x0000000000000000000000000000000000000000000000000000000000000001";
const config = {
w3f: {
rootDir: "./web3-functions",
debug: false,
networks: [
"ethereum",
"avalanche",
"arbitrum",
"blast",
"fantom",
"optimism",
"polygon",
"bsc",
"kava",
"base",
"linea",
], //(multiChainProvider) injects provider for these networks
},
defaultNetwork: "ethereum",
networks: {
anvil: {
url: "http://127.0.0.1:8545/",
launch: true,
chainId: 1,
forkUrl: "https://rpc.ankr.com/eth",
accounts: [PRIVATE_KEY],
},
ethereum: {
chainId: 1,
url: "https://rpc.ankr.com/eth",
accounts: [PRIVATE_KEY],
},
avalanche: {
url: "https://api.avax.network/ext/bc/C/rpc",
chainId: 43114,
accounts: [PRIVATE_KEY],
},
arbitrum: {
chainId: 42161,
url: "https://arb1.arbitrum.io/rpc",
accounts: [PRIVATE_KEY],
},
blast: {
chainId: 81457,
url: "https://rpc.ankr.com/blast ",
accounts: [PRIVATE_KEY],
},
fantom: {
chainId: 250,
url: "https://rpc2.fantom.network",
accounts: [PRIVATE_KEY],
},
optimism: {
chainId: 10,
url: "https://mainnet.optimism.io",
accounts: [PRIVATE_KEY],
},
polygon: {
chainId: 137,
url: "https://rpc-mainnet.maticvigil.com",
accounts: [PRIVATE_KEY],
},
bsc: {
chainId: 56,
url: "https://bsc.publicnode.com",
accounts: [PRIVATE_KEY],
},
kava: {
chainId: 2222,
url: "https://kava-evm.publicnode.com",
accounts: [PRIVATE_KEY],
},
base: {
chainId: 8453,
url: "https://base.meowrpc.com",
accounts: [PRIVATE_KEY],
},
linea: {
chainId: 59144,
url: "https://rpc.linea.build",
accounts: [PRIVATE_KEY],
},
},
// biome-ignore lint/complexity/noBannedTypes: Improve auto-completion
} satisfies HardhatUserConfig | Object;
export default config;