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,
) {
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]),

View file

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

View file

@ -1106,8 +1106,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
[],
{#apiKey: apiKey},
),
returnValue: _i8.Future<
_i4.ExchangeResponse<List<_i21.FixedRateMarket>>>.value(
returnValue: _i8
.Future<_i4.ExchangeResponse<List<_i21.FixedRateMarket>>>.value(
_FakeExchangeResponse_2<List<_i21.FixedRateMarket>>(
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,8 +1230,9 @@ 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,
}) =>
@ -1244,8 +1245,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i8.Future<
_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>.value(
returnValue: _i8
.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>.value(
_FakeExchangeResponse_2<_i23.ExchangeTransactionStatus>(
this,
Invocation.method(
@ -1257,8 +1258,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
},
),
)),
) as _i8
.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>);
) as _i8.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>);
@override
_i8.Future<_i4.ExchangeResponse<List<_i24.Pair>>>
getAvailableFloatingRatePairs({bool? includePartners = false}) =>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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/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

View file

@ -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