mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-24 06:48:38 +02:00
Remove Wyre buy-provider integration (shut down 2023)
Delete the WyreBuyProvider + WyreOrderProviderAdapter source files, strip imports and call sites from buy/order view models and the buy webview, force isBitcoinBuyEnabled = false in di.dart, and drop the three wyreSecretKey/wyreApiKey/wyreAccountId entries from tool/utils/secret_key.dart. BuyProviderDescription.wyre (raw: 0) is kept as a no-op legacy entry so any old Hive-persisted order with that raw value still deserializes without throwing. Don't wire it back to UI/services.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import 'package:hash_wallet/buy/buy_provider.dart';
|
||||
import 'package:hash_wallet/buy/wyre/wyre_buy_provider.dart';
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:hash_wallet/entities/fiat_currency.dart';
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
@@ -87,14 +86,6 @@ abstract class BuyViewModelBase with Store {
|
||||
}
|
||||
|
||||
Future<void> _fetchBuyItems() async {
|
||||
final List<BuyProvider> _providerList = [];
|
||||
|
||||
if (wallet.type == WalletType.bitcoin) {
|
||||
_providerList.add(WyreBuyProvider(wallet: wallet));
|
||||
}
|
||||
|
||||
items = _providerList
|
||||
.map((provider) => BuyItem(provider: provider, buyAmountViewModel: buyAmountViewModel))
|
||||
.toList();
|
||||
items = const <BuyItem>[];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import 'package:hash_wallet/generated/i18n.dart';
|
||||
import 'package:hash_wallet/order/order.dart';
|
||||
import 'package:hash_wallet/order/order_provider.dart';
|
||||
import 'package:hash_wallet/order/order_provider_adapter/cake_pay_order_provider_adapter.dart';
|
||||
import 'package:hash_wallet/order/order_provider_adapter/wyre_order_provider_adapter.dart';
|
||||
import 'package:hash_wallet/order/order_provider_description.dart';
|
||||
import 'package:hash_wallet/order/order_source_description.dart';
|
||||
import 'package:hash_wallet/src/screens/order_details/cake_pay_detail_list_card_item.dart';
|
||||
@@ -39,9 +38,7 @@ abstract class OrderDetailsViewModelBase with Store {
|
||||
order = orderForDetails {
|
||||
switch (order.source) {
|
||||
case OrderSourceDescription.buy:
|
||||
if (order.buyProvider == BuyProviderDescription.wyre) {
|
||||
_provider = WyreOrderProviderAdapter(wallet: wallet);
|
||||
} else if (order.buyProvider == BuyProviderDescription.moonPay) {
|
||||
if (order.buyProvider == BuyProviderDescription.moonPay) {
|
||||
//_provider = MoonPayOrderProviderAdapter(appStore: null /* provide if needed */, wallet: wallet);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user