Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions app/providers/DynamicProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ import { ETHERSCAN_TESTNET_URL } from "../components/constants";
import { EthereumWalletConnectors } from "@dynamic-labs/ethereum";
import {
DynamicContextProvider,
FilterChain,
mergeNetworks,
} from "@dynamic-labs/sdk-react-core";
import { SolanaWalletConnectors } from "@dynamic-labs/solana";
import { RelayChain } from "@reservoir0x/relay-sdk";
import { ReactNode, useEffect, useState } from "react";

const eclipseWallets = ["backpacksol", "nightlysol"];
const evmNetworks = [
{
blockExplorerUrls: [ETHERSCAN_TESTNET_URL],
Expand Down Expand Up @@ -41,9 +39,6 @@ const cssOverrides = `
}

div { font-family: 'IBM Plex Sans', sans-serif; }
img[data-testid='iconic-solana'] {
content: url('/eclipse.png');
}

.wallet-progress-stepper, .accordion-item {
border: 1px solid rgba(255, 255, 255, 0.1);
Expand Down Expand Up @@ -110,7 +105,7 @@ export const DynamicProvider = (props: {
chains: RelayChain[];
}) => {
const [isMobile, setIsMobile] = useState<boolean>(false);
const { walletFilter, setWalletFilter } = useWalletFilter();
const { setWalletFilter } = useWalletFilter();

useEffect(() => {
const checkWindowSize = () => {
Expand Down Expand Up @@ -176,6 +171,7 @@ export const DynamicProvider = (props: {
EthereumWalletConnectors,
EclipseWalletConnectors,
BitcoinWalletConnectors,
SolanaWalletConnectors,
],
mobileExperience: "redirect",
initialAuthenticationMode: "connect-only",
Expand All @@ -195,11 +191,6 @@ export const DynamicProvider = (props: {
mergeNetworks(networks, relayNetworks),
);
},
chainDisplayValues: {
solana: {
displayName: "Eclipse",
},
},
},
cssOverrides,
bridgeChains: [
Expand Down
1 change: 1 addition & 0 deletions app/providers/RelayKitProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const RelayKitProvider = (props: {
source: "bridge.eclipse.xyz",
vmConnectorKeyOverrides: {
9286185: ["backpackeclipse", "nightlyeclipse", "okxeclipse"],
792703809: ["backpacksol", "nightlysol", "okxsol"],
},
}}
theme={theme}
Expand Down
9 changes: 1 addition & 8 deletions app/providers/wagmiProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ export const WagmiProvider = (props: WagmiProviderProps) => {
]);
useEffect(() => {
queryRelayChains(MAINNET_RELAY_API, {}).then((data) => {
const eclipseChain = data.chains?.find((chain) => chain.id === 9286185);
if (eclipseChain) {
eclipseChain.explorerUrl = "https://eclipsescan.xyz";
}
const apiChains =
data.chains
?.map((chain) => configureViemChain(chain as any))
//filter out solana temporarily
.filter((chain) => chain.id !== 792703809) ?? [];
data.chains?.map((chain) => configureViemChain(chain as any)) ?? [];
const { wagmiConfig } = createWagmiConfig(
apiChains
.filter(({ viemChain }) => viemChain !== undefined)
Expand Down