mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 11:29:23 +00:00
build runner
This commit is contained in:
parent
32f9fc51e1
commit
72956ea676
13 changed files with 45 additions and 43 deletions
|
@ -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]),
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,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<List<_i24.Pair>>>
|
||||
getAvailableFloatingRatePairs({bool? includePartners = false}) =>
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue