Skip to content

Commit

Permalink
Add Solana chain to chain registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ericHgorski committed Sep 20, 2024
1 parent b2e2be2 commit a223e1c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/client/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,9 @@ const SOLANA_CHAIN = {
pretty_name: 'Solana',
network_type: 'mainnet',
website: 'https://solana.com',
bech32_prefix: '', // Not applicable for Solana
bech32_prefix: '',
daemon_name: '', // Not applicable for Solana
node_home: '', // Not applicable for Solana
key_algos: ['ed25519'],
codebase: {
git_repo: 'https://github.com/solana-labs/solana',
},
Expand Down Expand Up @@ -358,9 +357,9 @@ const SOLANA_CHAIN = {

export function chains(): Chain[] {
const registryChains = chainRegistry.chains;
const additionalChains = [DYDX_CHAIN, CELESTIA_CHAIN, SOLANA_CHAIN];
const additionalChains = [DYDX_CHAIN, CELESTIA_CHAIN, SOLANA_CHAIN] as Chain[];

const existingChainIds = new Set(registryChains.map((chain: Chain) => chain.chain_id));
const existingChainIds = new Set(registryChains.map((chain) => chain.chain_id));

const newChains = additionalChains.filter(
(chain) => !existingChainIds.has(chain.chain_id)
Expand Down

0 comments on commit a223e1c

Please sign in to comment.