diff --git a/components/layout/CategoryMetrics.tsx b/components/layout/CategoryMetrics.tsx
index 78e40cd1..a754b0a9 100644
--- a/components/layout/CategoryMetrics.tsx
+++ b/components/layout/CategoryMetrics.tsx
@@ -77,16 +77,6 @@ export default function CategoryMetrics({
data: any[];
};
- const ContractUrls = {
- arbitrum: "https://arbiscan.io/address/",
- optimism: "https://optimistic.etherscan.io/address/",
- zksync_era: "https://explorer.zksync.io/address/",
- polygon_zkevm: "https://zkevm.polygonscan.com/address/",
- imx: "https://immutascan.io/address/",
- base: "https://basescan.org/address/",
- zora: "https://explorer.zora.energy/address/",
- gitcoin_pgn: "https://explorer.publicgoods.network/address/",
- };
const { isSidebarOpen } = useUIContext();
const [selectedMode, setSelectedMode] = useState("gas_fees_");
const [selectedCategory, setSelectedCategory] = useState(
@@ -136,16 +126,12 @@ export default function CategoryMetrics({
const [selectedChains, setSelectedChains] = useState<{
[key: string]: boolean;
- }>({
- arbitrum: true,
- zksync_era: true,
- optimism: true,
- polygon_zkevm: true,
- imx: true,
- base: true,
- zora: true,
- gitcoin_pgn: true,
- });
+ }>(
+ Object.entries(AllChainsByKeys).reduce((acc, [key, chain]) => {
+ if (AllChainsByKeys[key].chainType === "L2") acc[key] = true;
+ return acc;
+ }, {}),
+ );
const [contracts, setContracts] = useState<{ [key: string]: ContractInfo }>(
{},
@@ -2316,19 +2302,22 @@ export default function CategoryMetrics({
-
-
-
+ {master && (
+
+
+
+ )}
diff --git a/components/layout/ChainAnimations.tsx b/components/layout/ChainAnimations.tsx
index 9c1393d1..4adb194b 100644
--- a/components/layout/ChainAnimations.tsx
+++ b/components/layout/ChainAnimations.tsx
@@ -142,9 +142,7 @@ export default function ChainAnimations({
4
? "text-white/60 text-xs"
: "text-black text-xs"
@@ -2508,19 +2481,22 @@ export default function OverviewMetrics({
-
-
-
+ {master && (
+
+
+
+ )}
diff --git a/icons/gtp.json b/icons/gtp.json
index ef1fa3b1..fbbff1c0 100644
--- a/icons/gtp.json
+++ b/icons/gtp.json
@@ -153,6 +153,11 @@
"width": 15,
"height": 15
},
+ "linea-logo-monochrome": {
+ "body": "",
+ "width": 15,
+ "height": 15
+ },
"house": {
"body": "\n \n \n \n \n \n \n \n \n \n \n \n \n ",
"width": 24,
diff --git a/lib/chains.ts b/lib/chains.ts
index 02edd01e..20f573e1 100644
--- a/lib/chains.ts
+++ b/lib/chains.ts
@@ -20,6 +20,7 @@ export const AllChains = [
light: ["bg-[#293305]", "bg-[#293305]"],
dark: ["bg-[#C1C1C1]", "bg-[#C1C1C1]"],
},
+ darkTextOnBackground: false,
},
{
label: "Arbitrum",
@@ -42,6 +43,7 @@ export const AllChains = [
light: ["bg-[#2ECEE8]", "bg-[#2ECEE8]"],
dark: ["bg-[#1DF7EF]", "bg-[#1DF7EF]"],
},
+ darkTextOnBackground: true,
},
{
label: "Aztec V2",
@@ -60,8 +62,8 @@ export const AllChains = [
light: ["bg-[#000000]", "bg-[#000000]"],
dark: ["bg-[#000000]", "bg-[#000000]"],
},
+ darkTextOnBackground: false,
},
-
{
label: "Immutable X",
icon: "/icons/immutablex.png",
@@ -83,6 +85,7 @@ export const AllChains = [
light: ["bg-[#08373C]", "bg-[#08373C]"],
dark: ["bg-[#3AFCC9]", "bg-[#3AFCC9]"],
},
+ darkTextOnBackground: true,
},
{
label: "Polygon zkEVM",
@@ -105,6 +108,7 @@ export const AllChains = [
light: ["bg-[#800094]", "bg-[#800094]"],
dark: ["bg-[#AD0DC5]", "bg-[#AD0DC5]"],
},
+ darkTextOnBackground: false,
},
{
label: "Loopring",
@@ -126,6 +130,7 @@ export const AllChains = [
light: ["bg-[#000000]", "bg-[#000000]"],
dark: ["bg-[#000000]", "bg-[#000000]"],
},
+ darkTextOnBackground: false,
},
{
label: "OP Mainnet",
@@ -148,6 +153,7 @@ export const AllChains = [
light: ["bg-[#DD3408]", "bg-[#DD3408]"],
dark: ["bg-[#FE5468]", "bg-[#FE5468]"],
},
+ darkTextOnBackground: false,
},
{
label: "zkSync Era",
@@ -170,6 +176,7 @@ export const AllChains = [
light: ["bg-[#390094]", "bg-[#390094]"],
dark: ["bg-[#7C32F4]", "bg-[#7C32F4]"],
},
+ darkTextOnBackground: false,
},
{
label: "Base",
@@ -192,6 +199,7 @@ export const AllChains = [
light: ["bg-[#2151F5]", "bg-[#2151F5]"],
dark: ["bg-[#2151F5]", "bg-[#2151F5]"],
},
+ darkTextOnBackground: false,
},
{
label: "Public Goods Network",
@@ -214,6 +222,7 @@ export const AllChains = [
light: ["bg-[#B9EE75]", "bg-[#B9EE75]"],
dark: ["bg-[#D7FD7B]", "bg-[#D7FD7B]"],
},
+ darkTextOnBackground: true,
},
{
label: "Zora",
@@ -236,7 +245,31 @@ export const AllChains = [
light: ["bg-[#2FB9F4]", "bg-[#2FB9F4]"],
dark: ["bg-[#2FB9F4]", "bg-[#2FB9F4]"],
},
+ darkTextOnBackground: false,
},
+ // {
+ // label: "Linea",
+ // icon: "/icons/linea.png",
+ // key: "linea",
+ // urlKey: "linea",
+ // chainType: "L2",
+ // ecosystem: ["all-chains"],
+ // description:
+ // "Linea is a developer-friendly ZK Rollup, marked as the next stage of ConsenSys zkEVM, which aims to enhance the Ethereum network by facilitating a new wave of decentralized applications. Public launch was in August 2023.",
+ // border: {
+ // light: ["border-[#9CE5FF]", "border-[#9CE5FF]"],
+ // dark: ["border-[#A9E9FF]", "border-[#A9E9FF]"],
+ // },
+ // colors: {
+ // light: ["#9CE5FF", "#9CE5FF"], // dark purple
+ // dark: ["#A9E9FF", "#A9E9FF"], // dark purple
+ // },
+ // backgrounds: {
+ // light: ["bg-[#9CE5FF]", "bg-[#9CE5FF]"],
+ // dark: ["bg-[#A9E9FF]", "bg-[#A9E9FF]"],
+ // },
+ // darkTextOnBackground: true,
+ // },
{
label: "Multiple",
icon: null,
@@ -258,6 +291,7 @@ export const AllChains = [
light: ["bg-[#cdd8d3]", "bg-[#cdd8d3]"],
dark: ["bg-[#cdd8d3]", "bg-[#cdd8d3]"],
},
+ darkTextOnBackground: false,
},
{
label: "All L2s",
@@ -279,6 +313,7 @@ export const AllChains = [
light: ["bg-[#FFDF27]", "bg-[#FE5468]"],
dark: ["bg-[#FFDF27]", "bg-[#FE5468]"],
},
+ darkTextOnBackground: false,
},
];
diff --git a/lib/navigation.tsx b/lib/navigation.tsx
index cf385203..84a51bee 100644
--- a/lib/navigation.tsx
+++ b/lib/navigation.tsx
@@ -396,6 +396,17 @@ export const navigationItems: NavigationItem[] = [
rootKey: "chainsOptimism",
urlKey: "zksync-era",
},
+ // {
+ // label: "Linea",
+ // category: "zk-rollup",
+ // page: {
+ // description: "",
+ // },
+ // icon: "gtp:linea-logo-monochrome",
+ // key: "linea",
+ // rootKey: "chainsLinea",
+ // urlKey: "linea",
+ // },
{
label: "Immutable X",
category: "validium",
diff --git a/lib/urls.ts b/lib/urls.ts
index b4d35f4e..a379b1ea 100644
--- a/lib/urls.ts
+++ b/lib/urls.ts
@@ -31,7 +31,7 @@ export const ChainURLs = {
base: "https://api.growthepie.xyz/v1/chains/base.json",
gitcoin_pgn: "https://api.growthepie.xyz/v1/chains/gitcoin_pgn.json",
zora: "https://api.growthepie.xyz/v1/chains/zora.json",
-
+ linea: "https://api.growthepie.xyz/v1/chains/linea.json",
// mock urls
// ethereum: "http://localhost:3000/mock/v1/chains/ethereum.json",
// arbitrum: "http://localhost:3000/mock/v1/chains/arbitrum.json",