Files
explore/lib/web3/wallets.ts
T
0c5a297834 "Add chain" button in the header (#3084)
* redesign "add chain" button

* fix wallet detection

* [skip ci] update default value for ENV

* fix tests

* return button to the footer and add source to mixpanel event

* regcred from helmfile for review

* [skip ci] remove wallets env from values for demo stand

* use react-query to cache detection result

* add cookie to hide button in the topbar

* add prefix to svg ids to fix rabby icon

* update screenshot

* remove unnecessary comment

---------

Co-authored-by: Nick Zenchik <[email protected]>
2025-11-17 18:15:21 +01:00

35 lines
708 B
TypeScript

import type { WalletType, WalletInfo } from 'types/client/wallets';
export const WALLETS_INFO: Record<Exclude<WalletType, 'none'>, WalletInfo> = {
metamask: {
name: 'MetaMask',
icon: 'wallets/metamask',
color: '#FF8D5D',
},
coinbase: {
name: 'Coinbase Wallet',
icon: 'wallets/coinbase',
color: '#0052FF',
},
token_pocket: {
name: 'TokenPocket',
icon: 'wallets/token-pocket',
color: '#2980FE',
},
rabby: {
name: 'Rabby',
icon: 'wallets/rabby',
color: '#8798FF',
},
okx: {
name: 'OKX Wallet',
icon: 'wallets/okx',
color: '#6DB809',
},
trust: {
name: 'Trust Wallet',
icon: 'wallets/trust',
color: '#2D77FF',
},
};