diff --git a/src/components/views/nft/mint/NFTMintIndex.tsx b/src/components/views/nft/mint/NFTMintIndex.tsx index a1d10a620d..352948b1c6 100644 --- a/src/components/views/nft/mint/NFTMintIndex.tsx +++ b/src/components/views/nft/mint/NFTMintIndex.tsx @@ -139,7 +139,7 @@ export const NFTMintIndex = () => { = { + [polygon.id]: 'https://polygon.blockscout.com', + [goerli.id]: 'https://eth-goerli.blockscout.com', + [gnosis.id]: 'https://gnosis.blockscout.com', + [optimismSepolia.id]: 'https://optimism-sepolia.blockscout.com', + [celoAlfajores.id]: 'https://explorer.celo.org/alfajores', + [arbitrumSepolia.id]: 'https://sepolia-explorer.arbitrum.io', + [celo.id]: 'https://explorer.celo.org/mainnet', + [classic.id]: 'https://etc.blockscout.com', + [mainnet.id]: 'https://eth.blockscout.com', + [optimism.id]: 'https://optimism.blockscout.com', + [arbitrum.id]: 'https://arbitrum.blockscout.com', + [sepolia.id]: 'https://eth-sepolia.blockscout.com', + [base.id]: 'https://base.blockscout.com', + [baseSepolia.id]: 'https://base-sepolia.blockscout.com', + [polygonZkEvm.id]: 'https://zkevm.blockscout.com', + [polygonZkEvmCardona.id]: 'https://explorer-ui.cardona.zkevm-rpc.com', +}; + +function updateBlockExplorers(chain: Chain): Chain { + if (!EXPLORER_URLS[chain.id]) { + return chain; + } + return { + ...chain, + blockExplorers: { + default: { + name: 'Blockscout', + url: EXPLORER_URLS[chain.id], + }, + }, + }; +} + +const chains: Record = Object.fromEntries( + Object.entries({ + celoAlfajores, + gnosis, + goerli, + sepolia, + optimismSepolia, + polygon, + arbitrumSepolia, + celo, + classic, + mainnet, + optimism, + arbitrum, + base, + baseSepolia, + polygonZkEvm, + polygonZkEvmCardona, + }).map(([key, chain]) => [key, updateBlockExplorers(chain)]), +); + +export default chains; diff --git a/src/config/development.tsx b/src/config/development.tsx index 0cb620561b..8d89c124de 100644 --- a/src/config/development.tsx +++ b/src/config/development.tsx @@ -1,14 +1,4 @@ import React from 'react'; -import { - celoAlfajores, - gnosis, - sepolia, - optimismSepolia, - polygon, - arbitrumSepolia, - baseSepolia, - polygonZkEvmCardona, -} from 'wagmi/chains'; import { WalletAdapterNetwork } from '@solana/wallet-adapter-base'; import { type Chain } from 'viem'; import { @@ -32,6 +22,19 @@ import IconArbitrum from '@/components/Icons/Arbitrum'; import IconStellar from '@/components/Icons/Stellar'; import { IconClassic } from '@/components/Icons/Classic'; +import chains from './chains'; + +const { + celoAlfajores, + gnosis, + sepolia, + optimismSepolia, + polygon, + arbitrumSepolia, + baseSepolia, + polygonZkEvmCardona, +} = chains; + const BASE_ROUTE = process.env.NEXT_PUBLIC_BASE_ROUTE || 'https://impact-graph.serve.giveth.io'; diff --git a/src/config/production.tsx b/src/config/production.tsx index 5a8deca43c..9ed93bb3a0 100644 --- a/src/config/production.tsx +++ b/src/config/production.tsx @@ -1,14 +1,3 @@ -import { - celo, - classic, - gnosis, - mainnet, - optimism, - polygon, - arbitrum, - base, - polygonZkEvm, -} from '@wagmi/core/chains'; import { WalletAdapterNetwork } from '@solana/wallet-adapter-base'; import React from 'react'; import { type Chain } from 'viem'; @@ -32,6 +21,20 @@ import IconArbitrum from '@/components/Icons/Arbitrum'; import IconZKEVM from '@/components/Icons/ZKEVM'; import IconStellar from '@/components/Icons/Stellar'; +import chains from './chains'; + +const { + celo, + classic, + gnosis, + mainnet, + optimism, + polygon, + arbitrum, + base, + polygonZkEvm, +} = chains; + const GNOSIS_GIV_TOKEN_ADDRESS = '0x4f4F9b8D5B4d0Dc10506e5551B0513B61fD59e75'; const OPTIMISM_GIV_TOKEN_ADDRESS = '0x528CDc92eAB044E1E39FE43B9514bfdAB4412B98'; const ZKEVM_GIV_TOKEN_ADDRESS = '0xddAFB91475bBf6210a151FA911AC8fdA7dE46Ec2'; diff --git a/src/content/FAQ.tsx b/src/content/FAQ.tsx index 641e332674..79eb4a0d48 100644 --- a/src/content/FAQ.tsx +++ b/src/content/FAQ.tsx @@ -273,8 +273,8 @@ const faqContent = (formatMessage: any) => { {' '} (e.g.,{' '} ){' '}