diff --git a/lib/wallets/isar/models/wallet_info.g.dart b/lib/wallets/isar/models/wallet_info.g.dart index c6227d79f..ec7ce6b03 100644 --- a/lib/wallets/isar/models/wallet_info.g.dart +++ b/lib/wallets/isar/models/wallet_info.g.dart @@ -196,7 +196,9 @@ WalletInfo _walletInfoDeserialize( Map> allOffsets, ) { final object = WalletInfo( + cachedBalanceSecondaryString: reader.readStringOrNull(offsets[0]), cachedBalanceString: reader.readStringOrNull(offsets[1]), + cachedBalanceTertiaryString: reader.readStringOrNull(offsets[2]), cachedChainHeight: reader.readLongOrNull(offsets[3]) ?? 0, cachedReceivingAddress: reader.readStringOrNull(offsets[4]) ?? "", coinName: reader.readString(offsets[5]), diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart index 4f39c9822..09cd500dc 100644 --- a/test/cached_electrumx_test.mocks.dart +++ b/test/cached_electrumx_test.mocks.dart @@ -403,7 +403,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { @override _i5.Future> getSparkMintMetaData({ String? requestID, - required List? sparkCoinHashes, + required List<({int denom, String pubCoin})>? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index 0dad4c5d5..ee8ee40be 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -31,9 +31,9 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i8; -import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values diff --git a/test/screen_tests/exchange/exchange_view_test.mocks.dart b/test/screen_tests/exchange/exchange_view_test.mocks.dart index a5ad35244..1d97e1d48 100644 --- a/test/screen_tests/exchange/exchange_view_test.mocks.dart +++ b/test/screen_tests/exchange/exchange_view_test.mocks.dart @@ -1106,8 +1106,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI { [], {#apiKey: apiKey}, ), - returnValue: _i8.Future< - _i4.ExchangeResponse>>.value( + returnValue: _i8 + .Future<_i4.ExchangeResponse>>.value( _FakeExchangeResponse_2>( this, Invocation.method( @@ -1148,8 +1148,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI { #apiKey: apiKey, }, ), - returnValue: _i8.Future< - _i4.ExchangeResponse<_i22.ExchangeTransaction>>.value( + returnValue: _i8 + .Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value( _FakeExchangeResponse_2<_i22.ExchangeTransaction>( this, Invocation.method( @@ -1205,8 +1205,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI { #apiKey: apiKey, }, ), - returnValue: _i8.Future< - _i4.ExchangeResponse<_i22.ExchangeTransaction>>.value( + returnValue: _i8 + .Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value( _FakeExchangeResponse_2<_i22.ExchangeTransaction>( this, Invocation.method( @@ -1230,35 +1230,35 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI { )), ) as _i8.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>); @override - _i8.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>> - getTransactionStatus({ + _i8.Future< + _i4 + .ExchangeResponse<_i23.ExchangeTransactionStatus>> getTransactionStatus({ required String? id, String? apiKey, }) => - (super.noSuchMethod( - Invocation.method( - #getTransactionStatus, - [], - { - #id: id, - #apiKey: apiKey, - }, - ), - returnValue: _i8.Future< - _i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>.value( - _FakeExchangeResponse_2<_i23.ExchangeTransactionStatus>( - this, - Invocation.method( - #getTransactionStatus, - [], - { - #id: id, - #apiKey: apiKey, - }, - ), - )), - ) as _i8 - .Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>); + (super.noSuchMethod( + Invocation.method( + #getTransactionStatus, + [], + { + #id: id, + #apiKey: apiKey, + }, + ), + returnValue: _i8 + .Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>.value( + _FakeExchangeResponse_2<_i23.ExchangeTransactionStatus>( + this, + Invocation.method( + #getTransactionStatus, + [], + { + #id: id, + #apiKey: apiKey, + }, + ), + )), + ) as _i8.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>); @override _i8.Future<_i4.ExchangeResponse>> getAvailableFloatingRatePairs({bool? includePartners = false}) => diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart index 2db6d6963..6373db881 100644 --- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart +++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart @@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { @override _i4.Future> getSparkMintMetaData({ String? requestID, - required List? sparkCoinHashes, + required List<({int denom, String pubCoin})>? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart index 0589e39e9..12a053fbb 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart @@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { @override _i4.Future> getSparkMintMetaData({ String? requestID, - required List? sparkCoinHashes, + required List<({int denom, String pubCoin})>? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart index 6b4933833..627f385af 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart @@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { @override _i4.Future> getSparkMintMetaData({ String? requestID, - required List? sparkCoinHashes, + required List<({int denom, String pubCoin})>? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/firo/firo_wallet_test.mocks.dart b/test/services/coins/firo/firo_wallet_test.mocks.dart index 7b7155ab4..398e7a6ab 100644 --- a/test/services/coins/firo/firo_wallet_test.mocks.dart +++ b/test/services/coins/firo/firo_wallet_test.mocks.dart @@ -430,7 +430,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { @override _i5.Future> getSparkMintMetaData({ String? requestID, - required List? sparkCoinHashes, + required List<({int denom, String pubCoin})>? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart index c84c014cc..d724903eb 100644 --- a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart +++ b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart @@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { @override _i4.Future> getSparkMintMetaData({ String? requestID, - required List? sparkCoinHashes, + required List<({int denom, String pubCoin})>? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/particl/particl_wallet_test.mocks.dart b/test/services/coins/particl/particl_wallet_test.mocks.dart index 24fb5106f..8bbfed24e 100644 --- a/test/services/coins/particl/particl_wallet_test.mocks.dart +++ b/test/services/coins/particl/particl_wallet_test.mocks.dart @@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { @override _i4.Future> getSparkMintMetaData({ String? requestID, - required List? sparkCoinHashes, + required List<({int denom, String pubCoin})>? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index 04e088256..272aacf9e 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -31,9 +31,9 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i7; -import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart index 085210345..c210b4921 100644 --- a/test/widget_tests/node_options_sheet_test.mocks.dart +++ b/test/widget_tests/node_options_sheet_test.mocks.dart @@ -24,9 +24,9 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/prefs.dart' as _i11; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i6; -import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20; // ignore_for_file: type=lint diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index 37d79045a..ca429ccec 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -43,9 +43,9 @@ import 'package:stackwallet/utilities/prefs.dart' as _i19; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i35; +import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i12; -import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:tuple/tuple.dart' as _i13; // ignore_for_file: type=lint