diff --git a/chrome-extension/src/background/chainConfig.ts b/chrome-extension/src/background/chainConfig.ts index 7c52b3a..9c92393 100644 --- a/chrome-extension/src/background/chainConfig.ts +++ b/chrome-extension/src/background/chainConfig.ts @@ -36,6 +36,7 @@ export const shortListSymbolToCaip: Record = { 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', @@ -63,6 +64,7 @@ export const shortListNameToCaip: Record = { 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', diff --git a/chrome-extension/src/background/chains/lastResortRpcs.ts b/chrome-extension/src/background/chains/lastResortRpcs.ts index a33a0d4..67f2884 100644 --- a/chrome-extension/src/background/chains/lastResortRpcs.ts +++ b/chrome-extension/src/background/chains/lastResortRpcs.ts @@ -37,6 +37,7 @@ const RPCS: Record = { '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'], diff --git a/packages/shared/lib/utils/chainConfig.ts b/packages/shared/lib/utils/chainConfig.ts index e55c68d..109a848 100644 --- a/packages/shared/lib/utils/chainConfig.ts +++ b/packages/shared/lib/utils/chainConfig.ts @@ -22,6 +22,7 @@ export const Chain = { Osmosis: 'OSMO', Polygon: 'MATIC', Ripple: 'XRP', + Robinhood: 'RHD', Solana: 'SOL', THORChain: 'THOR', Ton: 'TON', @@ -48,6 +49,7 @@ export const ChainToNetworkId: Record = { 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', @@ -84,6 +86,7 @@ export const COIN_MAP_LONG: Record = { ETH: 'ethereum', AVAX: 'avalanche', MATIC: 'polygon', + RHD: 'robinhood', XRP: 'ripple', SOL: 'solana', TON: 'ton', diff --git a/packages/shared/lib/utils/explorerUrls.ts b/packages/shared/lib/utils/explorerUrls.ts index 6f51790..55f79a3 100644 --- a/packages/shared/lib/utils/explorerUrls.ts +++ b/packages/shared/lib/utils/explorerUrls.ts @@ -23,6 +23,7 @@ export const EXPLORER_TX_URLS: Record = { '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/', }; @@ -49,6 +50,7 @@ export const EXPLORER_ADDRESS_URLS: Record = { '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/', }; diff --git a/pages/side-panel/src/components/Balances.tsx b/pages/side-panel/src/components/Balances.tsx index 5a4e050..f15c6a1 100644 --- a/pages/side-panel/src/components/Balances.tsx +++ b/pages/side-panel/src/components/Balances.tsx @@ -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'; diff --git a/pages/side-panel/src/components/header/headerConstants.ts b/pages/side-panel/src/components/header/headerConstants.ts index 4abae2a..d9b6215 100644 --- a/pages/side-panel/src/components/header/headerConstants.ts +++ b/pages/side-panel/src/components/header/headerConstants.ts @@ -6,6 +6,7 @@ export const KNOWN_EVM_CHAINS: Record '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' }, @@ -24,6 +25,7 @@ export const EVM_NATIVE_GAS: Record = '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' },