From c883ac260dd97d12b9f897c1aba975566e5aab16 Mon Sep 17 00:00:00 2001 From: arthcp Date: Tue, 5 Dec 2023 19:04:55 +0530 Subject: [PATCH] feat: latest dl chains --- src/components/Contracts/ChainConfig.tsx | 19 +- src/components/Contracts/Dropdown.tsx | 4 +- .../Contracts/SwitchboardAddresses.tsx | 4 +- src/components/Contracts/chainDetails.ts | 116 ++ src/components/Contracts/config.ts | 50 - src/components/Contracts/deployments.json | 1681 ++++++++++++++++- static/img/lyra-logo.png | Bin 0 -> 27100 bytes static/img/sx-logo.png | Bin 0 -> 21771 bytes 8 files changed, 1714 insertions(+), 160 deletions(-) create mode 100644 src/components/Contracts/chainDetails.ts delete mode 100644 src/components/Contracts/config.ts create mode 100644 static/img/lyra-logo.png create mode 100644 static/img/sx-logo.png diff --git a/src/components/Contracts/ChainConfig.tsx b/src/components/Contracts/ChainConfig.tsx index eafb5e4..dd84c94 100644 --- a/src/components/Contracts/ChainConfig.tsx +++ b/src/components/Contracts/ChainConfig.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { config } from "./config"; +import { chainDetails } from "./chainDetails"; import deployments from "./deployments.json"; import { shortenAddress } from "../../utils/shortenAddress"; @@ -11,12 +11,12 @@ function ChainConfig() {
chain logo - - {config[Object.keys(deployments)[index]].chainName}{" "} + + {chainDetails[Object.keys(deployments)[index]].chainName}{" "}
@@ -24,16 +24,15 @@ function ChainConfig() { {" "}
Chain Slug : {" "} - {config[Object.keys(deployments)[index]].chainId}{" "} + {chainDetails[Object.keys(deployments)[index]].chainId}{" "}
{" "} Socket : {" "} diff --git a/src/components/Contracts/Dropdown.tsx b/src/components/Contracts/Dropdown.tsx index c520df0..987fb7a 100644 --- a/src/components/Contracts/Dropdown.tsx +++ b/src/components/Contracts/Dropdown.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { config } from "./config"; +import { chainDetails } from "./chainDetails"; function DropdownComponent({ selectedChainId, @@ -12,7 +12,7 @@ function DropdownComponent({ className="h-10 px-2 rounded text-sm border-gray-300" onChange={(e) => onChangeAction(e.target.value)} > - {Object.values(config).map((item) => { + {Object.values(chainDetails).map((item) => { if (item.chainId.toString() != excludeChainId) { return item.chainId == selectedChainId ? (