merge clean up

This commit is contained in:
julian 2023-03-23 18:21:09 -06:00
parent 3e1e68237a
commit 44a87df41c
38 changed files with 311 additions and 11 deletions
lib
models/isar/models/blockchain_data
pages
add_wallet_views/create_or_restore_wallet_view
receive_view/addresses
settings_views/global_settings_view
pages_desktop_specific/settings/settings_menu
utilities
test
pages/send_view
screen_tests
widget_tests

View file

@ -141,6 +141,8 @@ enum AddressType {
return "Unknown";
case AddressType.nonWallet:
return "Non wallet/unknown";
case AddressType.ethereum:
return "Ethereum";
}
}
}

View file

@ -5,7 +5,6 @@ import 'package:stackwallet/pages/add_wallet_views/create_or_restore_wallet_view
import 'package:stackwallet/pages/add_wallet_views/create_or_restore_wallet_view/sub_widgets/create_or_restore_wallet_title.dart';
import 'package:stackwallet/pages/add_wallet_views/create_or_restore_wallet_view/sub_widgets/create_wallet_button_group.dart';
import 'package:stackwallet/pages_desktop_specific/my_stack_view/exit_to_my_stack_button.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/theme/color_theme.dart';
import 'package:stackwallet/utilities/theme/stack_colors.dart';
import 'package:stackwallet/utilities/util.dart';

View file

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:isar/isar.dart';
import 'package:qr_flutter/qr_flutter.dart';
import 'package:stackwallet/db/main_db.dart';
import 'package:stackwallet/db/isar/main_db.dart';
import 'package:stackwallet/models/isar/models/isar_models.dart';
import 'package:stackwallet/pages/receive_view/addresses/address_tag.dart';
import 'package:stackwallet/pages/wallet_view/sub_widgets/no_transactions_found.dart';

View file

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:stackwallet/db/hive/db.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:stackwallet/providers/providers.dart';
import 'package:stackwallet/providers/ui/color_theme_provider.dart';

View file

@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/db/hive/db.dart';
import 'package:stackwallet/providers/global/prefs_provider.dart';
import 'package:stackwallet/providers/ui/color_theme_provider.dart';
import 'package:stackwallet/utilities/assets.dart';

View file

@ -1,7 +1,7 @@
import 'package:hive/hive.dart';
import 'package:isar/isar.dart';
import 'package:stackwallet/db/hive/db.dart';
import 'package:stackwallet/db/isar/main_db.dart';
import 'package:isar/isar.dart';
import 'package:stackwallet/electrumx_rpc/electrumx.dart';
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart';
import 'package:stackwallet/models/exchange/response_objects/trade.dart';

View file

@ -13,7 +13,7 @@ import 'package:bitcoindart/bitcoindart.dart' as _i14;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/main_db.dart' as _i13;
import 'package:stackwallet/db/isar/main_db.dart' as _i13;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i11;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i10;
import 'package:stackwallet/models/balance.dart' as _i12;
@ -1641,6 +1641,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet {
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
List<String> getWalletTokenContractAddresses() => (super.noSuchMethod(
Invocation.method(
#getWalletTokenContractAddresses,
[],
),
returnValue: <String>[],
) as List<String>);
@override
_i22.Future<void> updateWalletTokenContractAddresses(
List<String>? contractAddresses) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletTokenContractAddresses,
[contractAddresses],
),
returnValue: _i22.Future<void>.value(),
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
void initWalletDB({_i13.MainDB? mockableOverride}) => super.noSuchMethod(
Invocation.method(
#initWalletDB,
@ -2837,6 +2856,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -378,6 +378,11 @@ class MockManager extends _i1.Mock implements _i11.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -339,6 +339,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -337,6 +337,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -732,6 +732,23 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
)),
) as _i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>);
@override
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>> getCurrenciesV2() =>
(super.noSuchMethod(
Invocation.method(
#getCurrenciesV2,
[],
),
returnValue:
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>.value(
_FakeExchangeResponse_0<List<_i14.Currency>>(
this,
Invocation.method(
#getCurrenciesV2,
[],
),
)),
) as _i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>);
@override
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>> getPairedCurrencies({
required String? ticker,
bool? fixedRate,

View file

@ -646,6 +646,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -433,6 +433,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -433,6 +433,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -433,6 +433,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -431,6 +431,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -646,6 +646,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -487,6 +487,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -423,6 +423,11 @@ class MockManager extends _i1.Mock implements _i11.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -423,6 +423,11 @@ class MockManager extends _i1.Mock implements _i11.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -431,6 +431,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -688,6 +688,11 @@ class MockManager extends _i1.Mock implements _i15.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -431,6 +431,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -210,6 +210,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -209,6 +209,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -208,6 +208,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -250,6 +250,11 @@ class MockManager extends _i1.Mock implements _i8.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -210,6 +210,11 @@ class MockManager extends _i1.Mock implements _i5.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -13,7 +13,7 @@ import 'package:bitcoindart/bitcoindart.dart' as _i13;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/main_db.dart' as _i12;
import 'package:stackwallet/db/isar/main_db.dart' as _i12;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9;
import 'package:stackwallet/models/balance.dart' as _i11;
@ -1432,6 +1432,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
List<String> getWalletTokenContractAddresses() => (super.noSuchMethod(
Invocation.method(
#getWalletTokenContractAddresses,
[],
),
returnValue: <String>[],
) as List<String>);
@override
_i22.Future<void> updateWalletTokenContractAddresses(
List<String>? contractAddresses) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletTokenContractAddresses,
[contractAddresses],
),
returnValue: _i22.Future<void>.value(),
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod(
Invocation.method(
#initWalletDB,
@ -2411,6 +2430,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -13,7 +13,7 @@ import 'package:bitcoindart/bitcoindart.dart' as _i13;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/main_db.dart' as _i12;
import 'package:stackwallet/db/isar/main_db.dart' as _i12;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9;
import 'package:stackwallet/models/balance.dart' as _i11;
@ -1419,6 +1419,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet {
returnValueForMissingStub: _i21.Future<void>.value(),
) as _i21.Future<void>);
@override
List<String> getWalletTokenContractAddresses() => (super.noSuchMethod(
Invocation.method(
#getWalletTokenContractAddresses,
[],
),
returnValue: <String>[],
) as List<String>);
@override
_i21.Future<void> updateWalletTokenContractAddresses(
List<String>? contractAddresses) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletTokenContractAddresses,
[contractAddresses],
),
returnValue: _i21.Future<void>.value(),
returnValueForMissingStub: _i21.Future<void>.value(),
) as _i21.Future<void>);
@override
void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod(
Invocation.method(
#initWalletDB,
@ -2136,6 +2155,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -10,7 +10,7 @@ import 'package:decimal/decimal.dart' as _i14;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/main_db.dart' as _i13;
import 'package:stackwallet/db/isar/main_db.dart' as _i13;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i12;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i11;
import 'package:stackwallet/models/balance.dart' as _i9;
@ -556,6 +556,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,
@ -1956,6 +1961,25 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet {
returnValueForMissingStub: _i18.Future<void>.value(),
) as _i18.Future<void>);
@override
List<String> getWalletTokenContractAddresses() => (super.noSuchMethod(
Invocation.method(
#getWalletTokenContractAddresses,
[],
),
returnValue: <String>[],
) as List<String>);
@override
_i18.Future<void> updateWalletTokenContractAddresses(
List<String>? contractAddresses) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletTokenContractAddresses,
[contractAddresses],
),
returnValue: _i18.Future<void>.value(),
returnValueForMissingStub: _i18.Future<void>.value(),
) as _i18.Future<void>);
@override
void initWalletDB({_i13.MainDB? mockableOverride}) => super.noSuchMethod(
Invocation.method(
#initWalletDB,
@ -2532,6 +2556,21 @@ class MockPriceService extends _i1.Mock implements _i28.PriceService {
),
) as _i15.Tuple2<_i14.Decimal, double>);
@override
_i15.Tuple2<_i14.Decimal, double> getTokenPrice(String? contractAddress) =>
(super.noSuchMethod(
Invocation.method(
#getTokenPrice,
[contractAddress],
),
returnValue: _FakeTuple2_13<_i14.Decimal, double>(
this,
Invocation.method(
#getTokenPrice,
[contractAddress],
),
),
) as _i15.Tuple2<_i14.Decimal, double>);
@override
_i18.Future<void> updatePrice() => (super.noSuchMethod(
Invocation.method(
#updatePrice,

View file

@ -13,7 +13,7 @@ import 'package:bitcoindart/bitcoindart.dart' as _i13;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/main_db.dart' as _i12;
import 'package:stackwallet/db/isar/main_db.dart' as _i12;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9;
import 'package:stackwallet/models/balance.dart' as _i11;
@ -1431,6 +1431,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
List<String> getWalletTokenContractAddresses() => (super.noSuchMethod(
Invocation.method(
#getWalletTokenContractAddresses,
[],
),
returnValue: <String>[],
) as List<String>);
@override
_i22.Future<void> updateWalletTokenContractAddresses(
List<String>? contractAddresses) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletTokenContractAddresses,
[contractAddresses],
),
returnValue: _i22.Future<void>.value(),
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod(
Invocation.method(
#initWalletDB,
@ -2348,6 +2367,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,

View file

@ -13,7 +13,7 @@ import 'package:bitcoindart/bitcoindart.dart' as _i13;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/main_db.dart' as _i12;
import 'package:stackwallet/db/isar/main_db.dart' as _i12;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9;
import 'package:stackwallet/models/balance.dart' as _i11;
@ -1431,6 +1431,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
List<String> getWalletTokenContractAddresses() => (super.noSuchMethod(
Invocation.method(
#getWalletTokenContractAddresses,
[],
),
returnValue: <String>[],
) as List<String>);
@override
_i22.Future<void> updateWalletTokenContractAddresses(
List<String>? contractAddresses) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletTokenContractAddresses,
[contractAddresses],
),
returnValue: _i22.Future<void>.value(),
returnValueForMissingStub: _i22.Future<void>.value(),
) as _i22.Future<void>);
@override
void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod(
Invocation.method(
#initWalletDB,
@ -2348,6 +2367,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
returnValue: false,
) as bool);
@override
bool get hasTokenSupport => (super.noSuchMethod(
Invocation.getter(#hasTokenSupport),
returnValue: false,
) as bool);
@override
bool get hasWhirlpoolSupport => (super.noSuchMethod(
Invocation.getter(#hasWhirlpoolSupport),
returnValue: false,