Skip to content

feat: add eclipse chain support #879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 22 additions & 32 deletions advanced/wallets/react-wallet-v2/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,36 @@ import Link from 'next/link'
export default function Navigation() {
return (
<Row justify="space-between" align="center">
<Link href="/" passHref>
<a className="navLink" data-testid="accounts">
<Image alt="accounts icon" src="/icons/accounts-icon.svg" width={27} height={27} />
</a>
<Link href="/" passHref className="navLink" data-testid="accounts">
<Image alt="accounts icon" src="/icons/accounts-icon.svg" width={27} height={27} />
</Link>

<Link href="/sessions" passHref>
<a className="navLink" data-testid="sessions">
<Image alt="sessions icon" src="/icons/sessions-icon.svg" width={27} height={27} />
</a>
<Link href="/sessions" passHref className="navLink" data-testid="sessions">
<Image alt="sessions icon" src="/icons/sessions-icon.svg" width={27} height={27} />
</Link>

<Link href="/walletconnect" passHref>
<a className="navLink" data-testid="wc-connect">
<Avatar
size="lg"
css={{ cursor: 'pointer' }}
color="gradient"
icon={
<Image
alt="wallet connect icon"
src="/wallet-connect-logo.svg"
width={30}
height={30}
/>
}
/>
</a>
<Link href="/walletconnect" passHref className="navLink" data-testid="wc-connect">
<Avatar
size="lg"
css={{ cursor: 'pointer' }}
color="gradient"
icon={
<Image
alt="wallet connect icon"
src="/wallet-connect-logo.svg"
width={30}
height={30}
/>
}
/>
</Link>

<Link href="/pairings" passHref>
<a className="navLink" data-testid="pairings">
<Image alt="pairings icon" src="/icons/pairings-icon.svg" width={25} height={25} />
</a>
<Link href="/pairings" passHref className="navLink" data-testid="pairings">
<Image alt="pairings icon" src="/icons/pairings-icon.svg" width={25} height={25} />
</Link>

<Link href="/settings" passHref>
<a className="navLink" data-testid="settings">
<Image alt="settings icon" src="/icons/settings-icon.svg" width={27} height={27} />
</a>
<Link href="/settings" passHref className="navLink" data-testid="settings">
<Image alt="settings icon" src="/icons/settings-icon.svg" width={27} height={27} />
</Link>
</Row>
)
Expand Down
24 changes: 24 additions & 0 deletions advanced/wallets/react-wallet-v2/src/data/SolanaData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export const SOLANA_MAINNET_CHAINS = {
rgb: '30, 240, 166',
rpc: 'https://api.mainnet-beta.solana.com',
namespace: 'solana'
},
'solana:EAQLJCV2mh23BsK2P9oYpV5CHVLDNHTx': {
chainId: 'EAQLJCV2mh23BsK2P9oYpV5CHVLDNHTx',
name: 'Eclipse',
logo: '/chain-logos/eclipse.png',
rgb: '162, 254, 160',
rpc: 'https://eclipse.helius-rpc.com',
namespace: 'solana'
}
}

Expand Down Expand Up @@ -51,6 +59,22 @@ export const SOLANA_TEST_CHAINS = {
rgb: '30, 240, 166',
rpc: 'https://api.testnet.solana.com',
namespace: 'solana'
},
'solana:CX4huckiV9QNAkKNVKi5Tj8nxzBive5k': {
chainId: 'CX4huckiV9QNAkKNVKi5Tj8nxzBive5k',
name: 'Eclipse Testnet',
logo: '/chain-logos/eclipse.png',
rgb: '162, 254, 160',
rpc: 'https://testnet.dev2.eclipsenetwork.xyz',
namespace: 'solana'
},
'solana:8axJLKAqQU9oyULRunGrZTLDEXhn17VW': {
chainId: '8axJLKAqQU9oyULRunGrZTLDEXhn17VW',
name: 'Eclipse Devnet',
logo: '/chain-logos/eclipse.png',
rgb: '162, 254, 160',
rpc: 'https://staging-rpc.dev2.eclipsenetwork.xyz',
namespace: 'solana'
}
}

Expand Down