mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
Add btcln; add 2 assets to SideShift (#890)
* Add btcln; add 2 assets to SideShift * fix regex line * change ordering
This commit is contained in:
@@ -85,6 +85,8 @@ class AddressValidator extends TextValidator {
|
||||
return 'R[0-9a-zA-Z]{33}';
|
||||
case CryptoCurrency.pivx:
|
||||
return 'D([1-9a-km-zA-HJ-NP-Z]){33}';
|
||||
case CryptoCurrency.btcln:
|
||||
return '^(lnbc|LNBC)([0-9]{1,}[a-zA-Z0-9]+)';
|
||||
default:
|
||||
return '[0-9a-zA-Z]';
|
||||
}
|
||||
@@ -194,6 +196,8 @@ class AddressValidator extends TextValidator {
|
||||
return [45];
|
||||
case CryptoCurrency.near:
|
||||
return [64];
|
||||
case CryptoCurrency.btcln:
|
||||
return null;
|
||||
default:
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -29,9 +29,7 @@ class SideShiftExchangeProvider extends ExchangeProvider {
|
||||
CryptoCurrency.dcr,
|
||||
CryptoCurrency.kmd,
|
||||
CryptoCurrency.mkr,
|
||||
CryptoCurrency.near,
|
||||
CryptoCurrency.oxt,
|
||||
CryptoCurrency.paxg,
|
||||
CryptoCurrency.pivx,
|
||||
CryptoCurrency.rune,
|
||||
CryptoCurrency.rvn,
|
||||
@@ -300,6 +298,8 @@ class SideShiftExchangeProvider extends ExchangeProvider {
|
||||
return 'usdcsol';
|
||||
case CryptoCurrency.maticpoly:
|
||||
return 'polygon';
|
||||
case CryptoCurrency.btcln:
|
||||
return 'ln';
|
||||
default:
|
||||
return currency.title.toLowerCase();
|
||||
}
|
||||
|
||||
@@ -285,6 +285,8 @@ class TrocadorExchangeProvider extends ExchangeProvider {
|
||||
return 'ERC20';
|
||||
case 'TRX':
|
||||
return 'TRC20';
|
||||
case 'LN':
|
||||
return 'Lightning';
|
||||
default:
|
||||
return tag.toLowerCase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user