mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
@@ -3,14 +3,14 @@ import 'package:cake_wallet/cake_pay/src/services/cake_pay_api.dart';
|
||||
import 'package:cake_wallet/cake_pay/src/models/cake_pay_order.dart';
|
||||
import 'package:cake_wallet/cake_pay/src/models/cake_pay_vendor.dart';
|
||||
import 'package:cake_wallet/core/secure_storage.dart';
|
||||
import 'package:cake_wallet/entities/country.dart';
|
||||
|
||||
class CakePayService {
|
||||
CakePayService(this.secureStorage, this.cakePayApi);
|
||||
|
||||
static const cakePayEmailStorageKey = 'cake_pay_email';
|
||||
static const cakePayUsernameStorageKey = 'cake_pay_username';
|
||||
static const cakePayUserTokenKey = 'cake_pay_user_token';
|
||||
/// `_v2` was added to log out users so they can login using the new backend
|
||||
static const cakePayEmailStorageKey = 'cake_pay_email_v2';
|
||||
static const cakePayUsernameStorageKey = 'cake_pay_username_v2';
|
||||
static const cakePayUserTokenKey = 'cake_pay_user_token_v2';
|
||||
|
||||
static String get testCakePayApiKey => secrets.testCakePayApiKey;
|
||||
|
||||
|
||||
@@ -157,6 +157,8 @@ class AddressValidator extends TextValidator {
|
||||
pattern = '(lnbc|LNBC)([0-9]{1,}[a-zA-Z0-9]+)';
|
||||
case CryptoCurrency.zano:
|
||||
pattern = r'([1-9A-HJ-NP-Za-km-z]{90,200})|(@[\w\d.-]+)';
|
||||
case CryptoCurrency.doge:
|
||||
pattern = r'^D[a-km-zA-HJ-NP-Z1-9]{25,34}';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -194,11 +194,19 @@ class UniversalAddressDetector {
|
||||
currency: CryptoCurrency.ltc,
|
||||
),
|
||||
|
||||
// Solana (Base58 format, 32-44 chars)
|
||||
// Dogecoin P2PKH
|
||||
_DetectionPattern(
|
||||
pattern: RegExp(r'^[1-9A-HJ-NP-Za-km-z]{32,44}$'),
|
||||
currency: CryptoCurrency.sol,
|
||||
pattern: RegExp(r'^D[a-km-zA-HJ-NP-Z1-9]{25,34}$'),
|
||||
currency: CryptoCurrency.doge,
|
||||
),
|
||||
|
||||
// TODO: commented out until a better approach is implemented.
|
||||
// as this will consider most addresses to be a valid Solana address
|
||||
// Solana (Base58 format, 32-44 chars)
|
||||
// _DetectionPattern(
|
||||
// pattern: RegExp(r'^[1-9A-HJ-NP-Za-km-z]{32,44}$'),
|
||||
// currency: CryptoCurrency.sol,
|
||||
// ),
|
||||
];
|
||||
|
||||
// Test each pattern in order of specificity
|
||||
|
||||
@@ -15,14 +15,14 @@ APP_ANDROID_TYPE=$1
|
||||
|
||||
MONERO_COM_NAME="Monero.com"
|
||||
MONERO_COM_VERSION="5.3.0"
|
||||
MONERO_COM_BUILD_NUMBER=132
|
||||
MONERO_COM_BUILD_NUMBER=133
|
||||
MONERO_COM_BUNDLE_ID="com.monero.app"
|
||||
MONERO_COM_PACKAGE="com.monero.app"
|
||||
MONERO_COM_SCHEME="monero.com"
|
||||
|
||||
CAKEWALLET_NAME="Cake Wallet"
|
||||
CAKEWALLET_VERSION="5.3.0"
|
||||
CAKEWALLET_BUILD_NUMBER=273
|
||||
CAKEWALLET_BUILD_NUMBER=274
|
||||
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
|
||||
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
|
||||
CAKEWALLET_SCHEME="cakewallet"
|
||||
|
||||
@@ -13,12 +13,12 @@ APP_IOS_TYPE=$1
|
||||
|
||||
MONERO_COM_NAME="Monero.com"
|
||||
MONERO_COM_VERSION="5.3.0"
|
||||
MONERO_COM_BUILD_NUMBER=133
|
||||
MONERO_COM_BUILD_NUMBER=135
|
||||
MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
|
||||
|
||||
CAKEWALLET_NAME="Cake Wallet"
|
||||
CAKEWALLET_VERSION="5.3.0"
|
||||
CAKEWALLET_BUILD_NUMBER=332
|
||||
CAKEWALLET_BUILD_NUMBER=334
|
||||
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user