diff --git a/web/src/app/[cat]/InteractionClient.tsx b/web/src/app/[cat]/InteractionClient.tsx index 7d49575f..bfef5c83 100644 --- a/web/src/app/[cat]/InteractionClient.tsx +++ b/web/src/app/[cat]/InteractionClient.tsx @@ -26,11 +26,11 @@ import { SupportedChainId } from "@/utils/indexedDB"; // Chain names mapping const CHAIN_NAMES: Record = { - 137: "Polygon", - 534351: "Scroll Sepolia", + // 137: "Polygon", + // 534351: "Scroll Sepolia", 5115: "Citrea Testnet", - 61: "Ethereum Classic", - 8453: "Base" + // 61: "Ethereum Classic", + // 8453: "Base" }; @@ -237,7 +237,8 @@ export default function InteractionClient() { // Type guard for chain ID validation const isValidChainId = useCallback((chainId: number): chainId is SupportedChainId => { - const validChainIds: SupportedChainId[] = [ 137, 534351, 5115, 61, 8453]; + // const validChainIds: SupportedChainId[] = [ 137, 534351, 5115, 61, 8453]; + const validChainIds: SupportedChainId[] = [ 5115]; return validChainIds.includes(chainId as SupportedChainId); }, []); diff --git a/web/src/app/create/page.tsx b/web/src/app/create/page.tsx index 9e6aa470..7ebb5c8e 100644 --- a/web/src/app/create/page.tsx +++ b/web/src/app/create/page.tsx @@ -22,22 +22,23 @@ import { ButtonLoadingState } from "@/components/ui/button-loading-state"; import { getPublicClient } from "@wagmi/core"; // Define supported chain IDs and names -type SupportedChainId = 137 | 534351 | 5115 | 61 | 8453; +// type SupportedChainId = 137 | 534351 | 5115 | 61 | 8453; +type SupportedChainId = 5115; const CHAIN_NAMES: Record = { - 137: "Polygon", - 534351: "Scroll Sepolia", + // 137: "Polygon", + // 534351: "Scroll Sepolia", 5115: "Citrea Testnet", - 61: "Ethereum Classic", - 8453: "Base Mainnet", + // 61: "Ethereum Classic", + // 8453: "Base Mainnet", }; const CHAIN_COLORS: Record = { - 137: "bg-purple-500", - 534351: "bg-orange-500", + // 137: "bg-purple-500", + // 534351: "bg-orange-500", 5115: "bg-yellow-500", - 61: "bg-green-500", - 8453: "bg-blue-500", + // 61: "bg-green-500", + // 8453: "bg-blue-500", }; interface DeployContractProps { diff --git a/web/src/app/my-cats/page.tsx b/web/src/app/my-cats/page.tsx index d6e614e0..f8d7a2ea 100644 --- a/web/src/app/my-cats/page.tsx +++ b/web/src/app/my-cats/page.tsx @@ -24,20 +24,20 @@ import toast from "react-hot-toast"; // Chain ID to name mapping const CHAIN_NAMES: Record = { - 137: "Polygon", - 534351: "Scroll Sepolia", + // 137: "Polygon", + // 534351: "Scroll Sepolia", 5115: "Citrea Testnet", - 61: "Ethereum Classic", - 8453: "Base Mainnet", + // 61: "Ethereum Classic", + // 8453: "Base Mainnet", }; // Chain colors for visual distinction const CHAIN_COLORS: Record = { - 137: "bg-purple-500", - 534351: "bg-orange-500", + // 137: "bg-purple-500", + // 534351: "bg-orange-500", 5115: "bg-yellow-500", - 61: "bg-green-500", - 8453: "bg-blue-500", + // 61: "bg-green-500", + // 8453: "bg-blue-500", }; interface CatDetails { @@ -60,7 +60,8 @@ interface PaginationInfo { const isValidChainId = ( chainId: number | string ): chainId is SupportedChainId => { - const validChainIds: SupportedChainId[] = [137, 534351, 5115, 61, 8453]; + // const validChainIds: SupportedChainId[] = [137, 534351, 5115, 61, 8453]; + const validChainIds: SupportedChainId[] = [5115]; return validChainIds.includes(Number(chainId) as SupportedChainId); }; diff --git a/web/src/app/page.tsx b/web/src/app/page.tsx index 6f87ea71..60510e88 100644 --- a/web/src/app/page.tsx +++ b/web/src/app/page.tsx @@ -21,11 +21,11 @@ import { showTransactionToast } from "@/components/ui/transaction-toast" const supportedChains = [ - { id: "534351", name: "Scroll Sepolia" }, + // { id: "534351", name: "Scroll Sepolia" }, { id: "5115", name: "Citrea Testnet" }, - { id: "61", name: "Ethereum Classic" }, - { id: "8453", name: "Base Mainnet" }, - { id: "137", name: "Polygon Mainnet" }, + // { id: "61", name: "Ethereum Classic" }, + // { id: "8453", name: "Base Mainnet" }, + // { id: "137", name: "Polygon Mainnet" }, ]; const contact_links = [ diff --git a/web/src/components/ChainDropdown.tsx b/web/src/components/ChainDropdown.tsx index 468b82dd..0a197277 100644 --- a/web/src/components/ChainDropdown.tsx +++ b/web/src/components/ChainDropdown.tsx @@ -5,24 +5,25 @@ import { motion, AnimatePresence } from "framer-motion"; import { ChevronDown, Check, Network } from "lucide-react"; // Define supported chain IDs -type SupportedChainId = 137 | 534351 | 5115 | 61 | 8453; +// type SupportedChainId = 137 | 534351 | 5115 | 61 | 8453; +type SupportedChainId = 5115; // Chain ID to name mapping const CHAIN_NAMES: Record = { - 137: "Polygon", - 534351: "Scroll Sepolia", + // 137: "Polygon", + // 534351: "Scroll Sepolia", 5115: "Citrea Testnet", - 61: "Ethereum Classic", - 8453: "Base Mainnet", + // 61: "Ethereum Classic", + // 8453: "Base Mainnet", }; // Chain colors for visual distinction const CHAIN_COLORS: Record = { - 137: "bg-purple-500", - 534351: "bg-orange-500", + // 137: "bg-purple-500", + // 534351: "bg-orange-500", 5115: "bg-yellow-500", - 61: "bg-green-500", - 8453: "bg-blue-500", + // 61: "bg-green-500", + // 8453: "bg-blue-500", }; interface ChainDropdownProps { diff --git a/web/src/components/EthereumClassic.tsx b/web/src/components/EthereumClassic.tsx index 415e8337..10035f80 100644 --- a/web/src/components/EthereumClassic.tsx +++ b/web/src/components/EthereumClassic.tsx @@ -1,26 +1,26 @@ -import { defineChain } from "viem"; +// import { defineChain } from "viem"; -export const ethereumClassic = defineChain({ - id: 61, - name: "Ethereum Classic", - network: "ethereumClassic", - nativeCurrency: { - name: "Ethereum Classic", - symbol: "ETC", - decimals: 18, - }, - rpcUrls: { - default: { - http: ["https://etc.rivet.link"], - }, - public: { - http: ["https://etc.rivet.link"], - }, - }, - blockExplorers: { - default: { - name: "BlockScout", - url: "https://blockscout.com/etc/mainnet", - }, - }, -}); +// export const ethereumClassic = defineChain({ +// id: 61, +// name: "Ethereum Classic", +// network: "ethereumClassic", +// nativeCurrency: { +// name: "Ethereum Classic", +// symbol: "ETC", +// decimals: 18, +// }, +// rpcUrls: { +// default: { +// http: ["https://etc.rivet.link"], +// }, +// public: { +// http: ["https://etc.rivet.link"], +// }, +// }, +// blockExplorers: { +// default: { +// name: "BlockScout", +// url: "https://blockscout.com/etc/mainnet", +// }, +// }, +// }); diff --git a/web/src/utils/address.ts b/web/src/utils/address.ts index 6f4329cd..b3641cd5 100644 --- a/web/src/utils/address.ts +++ b/web/src/utils/address.ts @@ -1,9 +1,9 @@ export const ClowderVaultFactories = { - 534351: "0x9551a49da35158c97b5c7857b5ef46223c71e9e1", + // 534351: "0x9551a49da35158c97b5c7857b5ef46223c71e9e1", 5115: "0x90070eD69ED51f606b899f5bB9069157Dec4A400", - 61: "0x6300F69Ff4Bf96EB4AaD8bf99ee82D8f1a19Bb0F", - 137: "0x562a404f844ea6097bd84feb005bd6f420d3640e", - 8453: "0x553859a7e3f8841aed994a2a131ebfb38aa9dc10", + // 61: "0x6300F69Ff4Bf96EB4AaD8bf99ee82D8f1a19Bb0F", + // 137: "0x562a404f844ea6097bd84feb005bd6f420d3640e", + // 8453: "0x553859a7e3f8841aed994a2a131ebfb38aa9dc10", } as { [key: number]: `0x${string}`; }; \ No newline at end of file diff --git a/web/src/utils/catExplorer.ts b/web/src/utils/catExplorer.ts index 35b9fc9a..a103c1bb 100644 --- a/web/src/utils/catExplorer.ts +++ b/web/src/utils/catExplorer.ts @@ -3,8 +3,8 @@ export const catExplorer = (hash: `0x${string}`, chainId: number): string => { 1: "https://etherscan.io/address/", 137: "https://polygonscan.com/address/", 534351: "https://sepolia.scrollscan.com/address/", - 5115: "https://explorer.testnet.mantle.xyz/address/", - 61: "https://explorer.testnet.rsk.co/address/", + 5115: "https://explorer.testnet.citrea.xyz/address/", + 61: "https://etc.blockscout.com/address/", 2001: "https://explorer.testnet.milkomeda.com/address/", 8453: "https://basescan.org/address/", 84531: "https://goerli.basescan.org/address/", diff --git a/web/src/utils/config.tsx b/web/src/utils/config.tsx index aa89b7ab..ccbdeecc 100644 --- a/web/src/utils/config.tsx +++ b/web/src/utils/config.tsx @@ -1,22 +1,22 @@ import { - polygon, - scrollSepolia, - base, + // polygon, + // scrollSepolia, + // base, } from "wagmi/chains"; import { getDefaultConfig, } from "@rainbow-me/rainbowkit"; import { citreaTestnet } from "@/components/CitreaTestnet"; -import { ethereumClassic } from "@/components/EthereumClassic"; +// import { ethereumClassic } from "@/components/EthereumClassic"; export const config = getDefaultConfig({ appName: "clowder", projectId: process.env.NEXT_PUBLIC_PROJECT_ID ?? "", chains: [ - scrollSepolia, - base, - polygon, - ethereumClassic, + // scrollSepolia, + // base, + // polygon, + // ethereumClassic, citreaTestnet, ] as const, ssr: true, // Disable SSR for static export diff --git a/web/src/utils/explorer.ts b/web/src/utils/explorer.ts index d6a7aa60..a00e2f0c 100644 --- a/web/src/utils/explorer.ts +++ b/web/src/utils/explorer.ts @@ -3,11 +3,11 @@ export const getExplorerUrl = (hash: `0x${string}`, chainId: number): string => 1: "https://etherscan.io/tx/", 137: "https://polygonscan.com/tx/", 534351: "https://sepolia.scrollscan.com/tx/", - 5115: "https://explorer.testnet.mantle.xyz/tx/", - 61: "https://explorer.testnet.rsk.co/tx/", + 5115: "https://explorer.testnet.citrea.xyz/tx/", + 61: "https://etc.blockscout.com/tx/", 2001: "https://explorer.testnet.milkomeda.com/tx/", 8453: "https://basescan.org/tx/", - 84531: "https://goerli.basescan.org/tx/", + // 84531: "https://goerli.basescan.org/tx/", }; const baseUrl = baseUrls[chainId]; diff --git a/web/src/utils/indexedDB.ts b/web/src/utils/indexedDB.ts index 00a3d051..5628b86b 100644 --- a/web/src/utils/indexedDB.ts +++ b/web/src/utils/indexedDB.ts @@ -1,7 +1,8 @@ // IndexedDB service for storing CAT and token data // Following best practices with versioning, proper indexing, and error handling -export type SupportedChainId = 137 | 534351 | 5115 | 61 | 8453; +// export type SupportedChainId = 137 | 534351 | 5115 | 61 | 8453; +export type SupportedChainId = 5115; export interface CatDetails { chainId: SupportedChainId;