mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-06 18:59:24 +00:00
merge clean up
This commit is contained in:
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
address_book_view/subviews
add_address_book_view_screen_test.mocks.dartaddress_book_entry_details_view_screen_test.mocks.dartedit_address_book_entry_view_screen_test.mocks.dart
exchange
lockscreen_view_screen_test.mocks.dartmain_view_tests
main_view_screen_testA_test.mocks.dartmain_view_screen_testB_test.mocks.dartmain_view_screen_testC_test.mocks.dart
onboarding
backup_key_view_screen_test.mocks.dartbackup_key_warning_view_screen_test.mocks.dartcreate_pin_view_screen_test.mocks.dartrestore_wallet_view_screen_test.mocks.dartverify_backup_key_view_screen_test.mocks.dart
settings_view
settings_subviews
currency_view_screen_test.mocks.dart
settings_view_screen_test.mocks.dartnetwork_settings_subviews
wallet_backup_view_screen_test.mocks.dartwallet_settings_subviews
wallet_settings_view_screen_test.mocks.darttransaction_subviews
wallet_view
widget_tests
|
@ -141,6 +141,8 @@ enum AddressType {
|
|||
return "Unknown";
|
||||
case AddressType.nonWallet:
|
||||
return "Non wallet/unknown";
|
||||
case AddressType.ethereum:
|
||||
return "Ethereum";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue