Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Common/Ticker.js
Show All 16 Lines | export const currency = { | ||||
blockExplorerUrlTestnet: 'https://texplorer.bitcoinabc.org', | blockExplorerUrlTestnet: 'https://texplorer.bitcoinabc.org', | ||||
tokenName: 'Bitcoin ABC SLP', | tokenName: 'Bitcoin ABC SLP', | ||||
tokenTicker: 'SLPA', | tokenTicker: 'SLPA', | ||||
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, | |||||
}; | }; | ||||
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 |