Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Common/Ticker.js
Show All 18 Lines | export const currency = { | ||||
tokenName: 'eToken', | tokenName: 'eToken', | ||||
tokenTicker: 'eToken', | tokenTicker: 'eToken', | ||||
tokenLogo: tokenLogo, | tokenLogo: tokenLogo, | ||||
tokenPrefixes: ['simpleledger', 'etoken'], | tokenPrefixes: ['simpleledger', 'etoken'], | ||||
tokenIconsUrl: '', //https://tokens.bitcoin.com/32 for BCH SLP | tokenIconsUrl: '', //https://tokens.bitcoin.com/32 for BCH SLP | ||||
useBlockchainWs: false, | useBlockchainWs: false, | ||||
txHistoryCount: 5, | txHistoryCount: 5, | ||||
hydrateUtxoBatchSize: 20, | hydrateUtxoBatchSize: 20, | ||||
defaultSettings: { fiatCurrency: 'usd' }, | |||||
settingsValidation: { fiatCurrency: ['usd', 'idr', 'krw', 'cny'] }, | |||||
fiatCurrencies: { | |||||
usd: { name: 'US Dollar', symbol: '$', slug: 'usd' }, | |||||
idr: { name: 'Indonesian Rupiah', symbol: 'Rp', slug: 'idr' }, | |||||
krw: { name: 'Korean Won', symbol: '₩', slug: 'krw' }, | |||||
cny: { name: 'Chinese Yuan', symbol: '元', slug: 'cny' }, | |||||
}, | |||||
}; | }; | ||||
export function isValidCashPrefix(addressString) { | export function isValidCashPrefix(addressString) { | ||||
// Note that this function validates prefix only | // Note that this function validates prefix only | ||||
// Check for prefix included in currency.prefixes array | // Check for prefix included in currency.prefixes array | ||||
// For now, validation is handled by converting to bitcoincash: prefix and checksum | // For now, validation is handled by converting to bitcoincash: prefix and checksum | ||||
// and relying on legacy validation methods of bitcoincash: prefix addresses | // and relying on legacy validation methods of bitcoincash: prefix addresses | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |