mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
V6.5.0 rc (#3674)
* bump: monero_c to v0.18.5.3 * revert deprecated seeds table * update monero_c * update monero_c * update monero_c * v6.5.0 Release candidate Things to test: - Robinhood (new evm wallet) - Monero update (test monero in general) - Restore from backup that is created in previous versions - Charts - Bitcoin accounts (please also test that ltc, bch, doge are working fine without issues) - quick bitcoin sync (also verify other wallets above are working fine) * v6.5.0 Release candidate Things to test: - Robinhood (new evm wallet) - Monero update (test monero in general) - Restore from backup that is created in previous versions - Charts - Bitcoin accounts (please also test that ltc, bch, doge are working fine without issues) - quick bitcoin sync (also verify other wallets above are working fine) * bump: monero fix: ci * fix monero.com build * disable exolix [skip ci] --------- Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
This commit is contained in:
co-authored by
Czarek Nakamoto
parent
f8a992ce03
commit
5f91c4d262
@@ -924,7 +924,7 @@ class CWBitcoin extends Bitcoin {
|
||||
}
|
||||
|
||||
@override
|
||||
ElectrumBalance balanceForAccount(Object wallet, int accountIndex) {
|
||||
Balance balanceForAccount(Object wallet, int accountIndex) {
|
||||
final bitcoinWallet = wallet as ElectrumWallet;
|
||||
return bitcoinWallet.balanceForAccount(accountIndex);
|
||||
}
|
||||
|
||||
@@ -2,10 +2,7 @@ import 'dart:convert';
|
||||
import 'dart:io' show Directory, File, Platform;
|
||||
|
||||
import 'package:cake_wallet/bitcoin/bitcoin.dart';
|
||||
import "package:cake_wallet/core/key_service.dart";
|
||||
import 'package:cake_wallet/core/secure_storage.dart';
|
||||
import "package:cake_wallet/decred/decred.dart";
|
||||
import "package:cake_wallet/di.dart";
|
||||
import 'package:cake_wallet/entities/balance_display_mode.dart';
|
||||
import 'package:cake_wallet/entities/contact.dart';
|
||||
import 'package:cake_wallet/entities/exchange_api_mode.dart';
|
||||
@@ -17,9 +14,6 @@ import 'package:cake_wallet/entities/preferences_key.dart';
|
||||
import 'package:cake_wallet/entities/secret_store_key.dart';
|
||||
import 'package:cake_wallet/monero/monero.dart';
|
||||
import 'package:cake_wallet/new-ui/model/charts/charts_asset.dart';
|
||||
import "package:cake_wallet/store/settings_store.dart";
|
||||
import "package:cake_wallet/zano/zano.dart";
|
||||
import "package:cw_core/cake_hive.dart";
|
||||
import 'package:cake_wallet/wownero/wownero.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
@@ -29,10 +23,8 @@ import 'package:cw_core/node_list.dart';
|
||||
import 'package:cw_core/pathForWallet.dart';
|
||||
import 'package:cw_core/root_dir.dart';
|
||||
import 'package:cw_core/spl_token.dart';
|
||||
import "package:cw_core/unspent_coins_info.dart";
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
import 'package:cw_core/wallet_info.dart';
|
||||
import "package:cw_core/wallet_service.dart";
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:encrypt/encrypt.dart' as encrypt;
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
@@ -415,13 +415,26 @@ class SwapTradeExchangeProvider extends ExchangeProvider {
|
||||
bool _isPairSupported(CryptoCurrency from, CryptoCurrency to) =>
|
||||
_networkFor(from) != null && _networkFor(to) != null;
|
||||
|
||||
String? _networkFor(CryptoCurrency currency) =>
|
||||
switch ((currency.title.toUpperCase(), currency.tag?.toUpperCase())) {
|
||||
("BNB", "BSC") => "BNB_BSC",
|
||||
("USDT", "ETH") => "USDT_ERC20",
|
||||
("USDT", "TRX") => "TRX_USDT_S2UZ",
|
||||
("USDT", "BSC") => "USDT_BSC",
|
||||
(final title, null) => title,
|
||||
_ => null,
|
||||
};
|
||||
String? _networkFor(CryptoCurrency currency) {
|
||||
final network = switch (currency) {
|
||||
CryptoCurrency.eth => 'ETH',
|
||||
CryptoCurrency.bnb => 'BNB_BSC',
|
||||
CryptoCurrency.baseEth => 'BASE',
|
||||
CryptoCurrency.robEth => 'ROB',
|
||||
CryptoCurrency.arb => 'ARB',
|
||||
CryptoCurrency.arbEth => 'ARB',
|
||||
CryptoCurrency.usdterc20 => 'USDT_ERC20',
|
||||
CryptoCurrency.usdttrc20 => 'TRX_USDT_S2UZ',
|
||||
CryptoCurrency.usdtbsc => 'USDT_BSC',
|
||||
CryptoCurrency.sol => 'SOL',
|
||||
CryptoCurrency.btc => 'BTC',
|
||||
CryptoCurrency.xmr => 'XMR',
|
||||
CryptoCurrency.ltc => 'LTC',
|
||||
CryptoCurrency.ada => 'ADA',
|
||||
CryptoCurrency.bch => 'BCH',
|
||||
CryptoCurrency.zec => 'ZEC',
|
||||
_ => currency.tag?.toUpperCase(),
|
||||
};
|
||||
return network;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/new-ui/widgets/new_primary_button.dart';
|
||||
import 'package:cake_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
|
||||
import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
@@ -40,15 +41,16 @@ class _ChangelogModalState extends State<ChangelogModal> {
|
||||
}
|
||||
|
||||
void loadChangelog() async {
|
||||
final fileName = isMoneroOnly ? "monerocom_changelog" : "changelog";
|
||||
String lang = WidgetsBinding.instance.platformDispatcher.locale.languageCode;
|
||||
if (lang == "und" ||
|
||||
lang.isEmpty ||
|
||||
!(await File("$changelogTextLocation/changelog_$lang.json").exists())) {
|
||||
!(await File("$changelogTextLocation/${fileName}_$lang.json").exists())) {
|
||||
lang = "en";
|
||||
}
|
||||
|
||||
final List<dynamic> changelog =
|
||||
jsonDecode(await rootBundle.loadString("$changelogTextLocation/changelog_$lang.json"))
|
||||
jsonDecode(await rootBundle.loadString("$changelogTextLocation/${fileName}_$lang.json"))
|
||||
as List<dynamic>;
|
||||
|
||||
for (final item in changelog) {
|
||||
@@ -146,7 +148,9 @@ class VersionNumberHeader extends StatelessWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
CakeImageWidget(
|
||||
imageUrl: "assets/images/cake_logo_dark.svg",
|
||||
imageUrl: isMoneroOnly
|
||||
? "assets/images/monerocom_logo.svg"
|
||||
: "assets/images/cake_logo_dark.svg",
|
||||
height: 32,
|
||||
width: 32,
|
||||
colorFilter:
|
||||
|
||||
@@ -6,7 +6,7 @@ class FeatureFlag {
|
||||
static const bool isCakePayEnabled = false;
|
||||
static const bool isCakePayPurchaseSimulationEnabled = true;
|
||||
static const bool isCakePayRedemptionFlowEnabled = false;
|
||||
static const bool isExolixEnabled = true;
|
||||
static const bool isExolixEnabled = false;
|
||||
static const bool isBackgroundSyncEnabled = true;
|
||||
static bool get isInAppTorEnabled => CakeTor.instance is! CakeTorDisabled;
|
||||
static const int verificationWordsCount = kDebugMode || kProfileMode ? 0 : 2;
|
||||
|
||||
Reference in New Issue
Block a user