You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
788 B

// @flow
import memoize from 'lodash/memoize'
import { listCryptoCurrencies as listCC } from '@ledgerhq/live-common/lib/helpers/currencies'
import type { CryptoCurrencyIds } from '@ledgerhq/live-common/lib/types'
const supported: CryptoCurrencyIds[] = [
'bitcoin',
'ethereum',
'ripple',
'bitcoin_cash',
'litecoin',
'dash',
'ethereum_classic',
'qtum',
'zcash',
'bitcoin_gold',
'stratis',
'dogecoin',
'digibyte',
'hcash',
'komodo',
'pivx',
'zencash',
'vertcoin',
'peercoin',
'viacoin',
'stealthcoin',
'poswallet',
'clubcoin',
'bitcoin_testnet',
]
export const listCryptoCurrencies = memoize((withDevCrypto?: boolean) =>
listCC(withDevCrypto)
.filter(c => supported.includes(c.id))
.sort((a, b) => a.name.localeCompare(b.name)),
)