generated from scaffold-eth/scaffold-eth-2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
scaffold.config.ts
44 lines (37 loc) · 1.42 KB
/
scaffold.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
import * as chains from "wagmi/chains";
export type ScaffoldConfig = {
targetNetwork: chains.Chain;
pollingInterval: number;
alchemyApiKey: string;
burnerWallet: {
enabled: boolean;
onlyLocal: boolean;
};
walletAutoConnect: boolean;
};
const scaffoldConfig = {
// The network where your DApp lives in
targetNetwork: chains.polygon,
// The interval at which your front-end polls the RPC servers for new data
// it has no effect on the local network
pollingInterval: 30000,
// This is ours Alchemy's default API key.
// You can get your own at https://dashboard.alchemyapi.io
// It's recommended to store it in an env variable:
// .env.local for local testing, and in the Vercel/system env config for live apps.
alchemyApiKey: process.env.NEXT_PUBLIC_ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF",
// Burner Wallet configuration
burnerWallet: {
// Set it to false to completely remove burner wallet from all networks
enabled: false,
// Only show the Burner Wallet when running on hardhat network
onlyLocal: false,
},
/**
* Auto connect:
* 1. If the user was connected into a wallet before, on page reload reconnect automatically
* 2. If user is not connected to any wallet: On reload, connect to burner wallet if burnerWallet.enabled is true && burnerWallet.onlyLocal is false
*/
walletAutoConnect: true,
} satisfies ScaffoldConfig;
export default scaffoldConfig;