build runner

This commit is contained in:
julian 2023-11-16 17:38:36 -06:00
parent 32f9fc51e1
commit 72956ea676
13 changed files with 45 additions and 43 deletions

View file

@ -196,7 +196,9 @@ WalletInfo _walletInfoDeserialize(
Map<Type, List<int>> allOffsets, Map<Type, List<int>> allOffsets,
) { ) {
final object = WalletInfo( final object = WalletInfo(
cachedBalanceSecondaryString: reader.readStringOrNull(offsets[0]),
cachedBalanceString: reader.readStringOrNull(offsets[1]), cachedBalanceString: reader.readStringOrNull(offsets[1]),
cachedBalanceTertiaryString: reader.readStringOrNull(offsets[2]),
cachedChainHeight: reader.readLongOrNull(offsets[3]) ?? 0, cachedChainHeight: reader.readLongOrNull(offsets[3]) ?? 0,
cachedReceivingAddress: reader.readStringOrNull(offsets[4]) ?? "", cachedReceivingAddress: reader.readStringOrNull(offsets[4]) ?? "",
coinName: reader.readString(offsets[5]), coinName: reader.readString(offsets[5]),

View file

@ -403,7 +403,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
@override @override
_i5.Future<Map<String, dynamic>> getSparkMintMetaData({ _i5.Future<Map<String, dynamic>> getSparkMintMetaData({
String? requestID, String? requestID,
required List<String>? sparkCoinHashes, required List<({int denom, String pubCoin})>? sparkCoinHashes,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -31,9 +31,9 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/utilities/prefs.dart' as _i14;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4; as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
as _i8; as _i8;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values

View file

@ -1106,8 +1106,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
[], [],
{#apiKey: apiKey}, {#apiKey: apiKey},
), ),
returnValue: _i8.Future< returnValue: _i8
_i4.ExchangeResponse<List<_i21.FixedRateMarket>>>.value( .Future<_i4.ExchangeResponse<List<_i21.FixedRateMarket>>>.value(
_FakeExchangeResponse_2<List<_i21.FixedRateMarket>>( _FakeExchangeResponse_2<List<_i21.FixedRateMarket>>(
this, this,
Invocation.method( Invocation.method(
@ -1148,8 +1148,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
returnValue: _i8.Future< returnValue: _i8
_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value( .Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value(
_FakeExchangeResponse_2<_i22.ExchangeTransaction>( _FakeExchangeResponse_2<_i22.ExchangeTransaction>(
this, this,
Invocation.method( Invocation.method(
@ -1205,8 +1205,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
returnValue: _i8.Future< returnValue: _i8
_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value( .Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value(
_FakeExchangeResponse_2<_i22.ExchangeTransaction>( _FakeExchangeResponse_2<_i22.ExchangeTransaction>(
this, this,
Invocation.method( Invocation.method(
@ -1230,35 +1230,35 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
)), )),
) as _i8.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>); ) as _i8.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>);
@override @override
_i8.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>> _i8.Future<
getTransactionStatus({ _i4
.ExchangeResponse<_i23.ExchangeTransactionStatus>> getTransactionStatus({
required String? id, required String? id,
String? apiKey, String? apiKey,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getTransactionStatus, #getTransactionStatus,
[], [],
{ {
#id: id, #id: id,
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
returnValue: _i8.Future< returnValue: _i8
_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>.value( .Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>.value(
_FakeExchangeResponse_2<_i23.ExchangeTransactionStatus>( _FakeExchangeResponse_2<_i23.ExchangeTransactionStatus>(
this, this,
Invocation.method( Invocation.method(
#getTransactionStatus, #getTransactionStatus,
[], [],
{ {
#id: id, #id: id,
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
)), )),
) as _i8 ) as _i8.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>);
.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>);
@override @override
_i8.Future<_i4.ExchangeResponse<List<_i24.Pair>>> _i8.Future<_i4.ExchangeResponse<List<_i24.Pair>>>
getAvailableFloatingRatePairs({bool? includePartners = false}) => getAvailableFloatingRatePairs({bool? includePartners = false}) =>

View file

@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
@override @override
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({ _i4.Future<Map<String, dynamic>> getSparkMintMetaData({
String? requestID, String? requestID,
required List<String>? sparkCoinHashes, required List<({int denom, String pubCoin})>? sparkCoinHashes,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
@override @override
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({ _i4.Future<Map<String, dynamic>> getSparkMintMetaData({
String? requestID, String? requestID,
required List<String>? sparkCoinHashes, required List<({int denom, String pubCoin})>? sparkCoinHashes,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
@override @override
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({ _i4.Future<Map<String, dynamic>> getSparkMintMetaData({
String? requestID, String? requestID,
required List<String>? sparkCoinHashes, required List<({int denom, String pubCoin})>? sparkCoinHashes,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -430,7 +430,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
@override @override
_i5.Future<Map<String, dynamic>> getSparkMintMetaData({ _i5.Future<Map<String, dynamic>> getSparkMintMetaData({
String? requestID, String? requestID,
required List<String>? sparkCoinHashes, required List<({int denom, String pubCoin})>? sparkCoinHashes,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
@override @override
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({ _i4.Future<Map<String, dynamic>> getSparkMintMetaData({
String? requestID, String? requestID,
required List<String>? sparkCoinHashes, required List<({int denom, String pubCoin})>? sparkCoinHashes,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -400,7 +400,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
@override @override
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({ _i4.Future<Map<String, dynamic>> getSparkMintMetaData({
String? requestID, String? requestID,
required List<String>? sparkCoinHashes, required List<({int denom, String pubCoin})>? sparkCoinHashes,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -31,9 +31,9 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/utilities/prefs.dart' as _i14;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4; as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
as _i7; as _i7;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values

View file

@ -24,9 +24,9 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
import 'package:stackwallet/utilities/prefs.dart' as _i11; import 'package:stackwallet/utilities/prefs.dart' as _i11;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4; as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
as _i6; as _i6;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20; import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20;
// ignore_for_file: type=lint // ignore_for_file: type=lint

View file

@ -43,9 +43,9 @@ import 'package:stackwallet/utilities/prefs.dart' as _i19;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4; as _i4;
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i35; 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' import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
as _i12; as _i12;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:tuple/tuple.dart' as _i13; import 'package:tuple/tuple.dart' as _i13;
// ignore_for_file: type=lint // ignore_for_file: type=lint