Skip to content

Commit 80df4ad

Browse files
committed
feat: add base main network
1 parent d8ab915 commit 80df4ad

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/components/NavMenusSection/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ export const NavMenusSection: React.FC = () => {
7979
handleSelectNetwork("base-sepolia");
8080
},
8181
},
82+
{
83+
label: "base",
84+
href: "",
85+
handleClick: () => {
86+
handleSelectNetwork("base-main");
87+
},
88+
},
8289
]}
8390
/>
8491
{/* <NavItem

src/utils/env.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Address } from "viem";
22

3-
export type Network = "mainnet" | "sepolia" | "base-sepolia";
3+
export type Network = "mainnet" | "sepolia" | "base-sepolia" | "base-main";
44

55
export const ApiDoc = process.env.NEXT_PUBLIC_API_DOC || "";
66

@@ -30,4 +30,10 @@ export const networkConfigs: Record<Network, NetworkConfig> = {
3030
explorer_l2: "https://sepolia.basescan.org",
3131
network: "base-sepolia",
3232
},
33+
"base-main": {
34+
origin: process.env.NEXT_PUBLIC_BASE_URL || "",
35+
explorer_l1: "https://etherscan.io",
36+
explorer_l2: "https://basescan.org",
37+
network: "base-main",
38+
},
3339
};

0 commit comments

Comments
 (0)