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
2 changes: 2 additions & 0 deletions chrome-extension/src/background/chainConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const shortListSymbolToCaip: Record<string, string> = {
XRP: 'ripple:4109c6f2045fc7eff4cde8f9905d19c2/slip44:144',
MATIC: 'eip155:137/slip44:60',
OP: 'eip155:10/slip44:60',
RHD: 'eip155:4663/slip44:60',
AVAX: 'eip155:43114/slip44:60',
BSC: 'eip155:56/slip44:60',
BNB: 'eip155:56/slip44:60',
Expand Down Expand Up @@ -63,6 +64,7 @@ export const shortListNameToCaip: Record<string, string> = {
ripple: 'ripple:4109c6f2045fc7eff4cde8f9905d19c2/slip44:144',
optimism: 'eip155:10/slip44:60',
base: 'eip155:8453/slip44:60',
robinhood: 'eip155:4663/slip44:60',
solana: 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501',
ton: 'ton:-239/slip44:607',
tron: 'tron:27Lqcw/slip44:195',
Expand Down
1 change: 1 addition & 0 deletions chrome-extension/src/background/chains/lastResortRpcs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const RPCS: Record<string, string[]> = {
'eip155:56': ['https://bsc-rpc.publicnode.com', 'https://bsc-dataseed.bnbchain.org'],
'eip155:137': ['https://polygon-rpc.com', 'https://polygon-bor-rpc.publicnode.com'],
'eip155:324': ['https://mainnet.era.zksync.io'],
'eip155:4663': ['https://rpc.mainnet.chain.robinhood.com', 'https://rpc.arrowrpc.com'],
'eip155:8453': ['https://mainnet.base.org', 'https://base-rpc.publicnode.com'],
'eip155:42161': ['https://arb1.arbitrum.io/rpc', 'https://arbitrum-one-rpc.publicnode.com'],
'eip155:43114': ['https://api.avax.network/ext/bc/C/rpc', 'https://avalanche-c-chain-rpc.publicnode.com'],
Expand Down
3 changes: 3 additions & 0 deletions packages/shared/lib/utils/chainConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const Chain = {
Osmosis: 'OSMO',
Polygon: 'MATIC',
Ripple: 'XRP',
Robinhood: 'RHD',
Solana: 'SOL',
THORChain: 'THOR',
Ton: 'TON',
Expand All @@ -48,6 +49,7 @@ export const ChainToNetworkId: Record<string, string> = {
MAYA: 'cosmos:mayachain-mainnet-v1',
OP: 'eip155:10',
OSMO: 'cosmos:osmosis-1',
RHD: 'eip155:4663',
MATIC: 'eip155:137',
XRP: 'ripple:4109c6f2045fc7eff4cde8f9905d19c2',
THOR: 'cosmos:thorchain-mainnet-v1',
Expand Down Expand Up @@ -84,6 +86,7 @@ export const COIN_MAP_LONG: Record<string, string> = {
ETH: 'ethereum',
AVAX: 'avalanche',
MATIC: 'polygon',
RHD: 'robinhood',
XRP: 'ripple',
SOL: 'solana',
TON: 'ton',
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/lib/utils/explorerUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const EXPLORER_TX_URLS: Record<string, string> = {
'eip155:43114': 'https://snowscan.xyz/tx/',
'eip155:56': 'https://bscscan.com/tx/',
'eip155:8453': 'https://basescan.org/tx/',
'eip155:4663': 'https://robinhoodchain.blockscout.com/tx/',
'eip155:324': 'https://explorer.zksync.io/tx/',
};

Expand All @@ -49,6 +50,7 @@ export const EXPLORER_ADDRESS_URLS: Record<string, string> = {
'eip155:43114': 'https://snowscan.xyz/address/',
'eip155:56': 'https://bscscan.com/address/',
'eip155:8453': 'https://basescan.org/address/',
'eip155:4663': 'https://robinhoodchain.blockscout.com/address/',
'eip155:324': 'https://explorer.zksync.io/address/',
};

Expand Down
1 change: 1 addition & 0 deletions pages/side-panel/src/components/Balances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { COIN_MAP_LONG, NetworkIdToChain } from '@extension/shared';
const getChainDisplayName = (networkId: string): string => {
if (networkId?.includes('eip155:1/')) return 'Ethereum';
if (networkId?.includes('eip155:8453')) return 'Base';
if (networkId?.includes('eip155:4663')) return 'Robinhood Chain';
if (networkId?.includes('eip155:137')) return 'Polygon';
if (networkId?.includes('eip155:43114')) return 'Avalanche';
if (networkId?.includes('eip155:56')) return 'BSC';
Expand Down
2 changes: 2 additions & 0 deletions pages/side-panel/src/components/header/headerConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const KNOWN_EVM_CHAINS: Record<string, { name: string; symbol: string }>
'eip155:43114': { name: 'Avalanche', symbol: 'AVAX' },
'eip155:56': { name: 'BNB Smart Chain', symbol: 'BSC' },
'eip155:8453': { name: 'Base', symbol: 'BASE' },
'eip155:4663': { name: 'Robinhood Chain', symbol: 'RHD' },
'eip155:10': { name: 'Optimism', symbol: 'OP' },
'eip155:137': { name: 'Polygon', symbol: 'MATIC' },
'eip155:324': { name: 'zkSync Era', symbol: 'ZKSYNC' },
Expand All @@ -24,6 +25,7 @@ export const EVM_NATIVE_GAS: Record<string, { name: string; symbol: string }> =
'eip155:43114': { name: 'Avalanche', symbol: 'AVAX' },
'eip155:56': { name: 'BNB', symbol: 'BNB' },
'eip155:8453': { name: 'Ethereum', symbol: 'ETH' },
'eip155:4663': { name: 'Ethereum', symbol: 'ETH' },
'eip155:10': { name: 'Ethereum', symbol: 'ETH' },
'eip155:137': { name: 'Polygon', symbol: 'POL' },
'eip155:324': { name: 'Ethereum', symbol: 'ETH' },
Expand Down
Loading