add script to make it easier to run build runner and update mocks from merge

This commit is contained in:
Julian 2023-10-29 12:31:15 -06:00
parent b88c073e22
commit e4fa06214c
4 changed files with 193 additions and 118 deletions

View file

@ -282,10 +282,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.17.1" version: "1.17.2"
connectivity_plus: connectivity_plus:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1051,18 +1051,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: matcher name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.12.15" version: "0.12.16"
material_color_utilities: material_color_utilities:
dependency: transitive dependency: transitive
description: description:
name: material_color_utilities name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.2.0" version: "0.5.0"
memoize: memoize:
dependency: transitive dependency: transitive
description: description:
@ -1537,10 +1537,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: source_span name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.9.1" version: "1.10.0"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -1626,26 +1626,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test name: test
sha256: "3dac9aecf2c3991d09b9cdde4f98ded7b30804a88a0d7e4e7e1678e78d6b97f4" sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.24.1" version: "1.24.3"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.5.1" version: "0.6.0"
test_core: test_core:
dependency: transitive dependency: transitive
description: description:
name: test_core name: test_core
sha256: "5138dbffb77b2289ecb12b81c11ba46036590b72a64a7a90d6ffb880f1a29e93" sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.5.1" version: "0.5.3"
tezart: tezart:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1843,10 +1843,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vm_service name: vm_service
sha256: f6deed8ed625c52864792459709183da231ebf66ff0cf09e69b573227c377efe sha256: c620a6f783fa22436da68e42db7ebbf18b8c44b9a46ab911f666ff09ffd9153f
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "11.3.0" version: "11.7.1"
wakelock: wakelock:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1912,6 +1912,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.0" version: "1.1.0"
web:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
web3dart: web3dart:
dependency: "direct main" dependency: "direct main"
description: description:
@ -2018,5 +2026,5 @@ packages:
source: hosted source: hosted
version: "1.0.0" version: "1.0.0"
sdks: sdks:
dart: ">=3.0.6 <4.0.0" dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=3.10.3" flutter: ">=3.10.3"

3
scripts/build_runner.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
dart run build_runner build --delete-conflicting-outputs

View file

@ -11,15 +11,16 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i9; import 'package:stackwallet/db/isar/main_db.dart' as _i9;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6; import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i11; import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i12;
import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart'
as _i14; as _i15;
import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i10; import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i11;
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i12; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i13;
import 'package:stackwallet/services/transaction_notification_tracker.dart' import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8; as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
import 'package:tuple/tuple.dart' as _i13; import 'package:stackwallet/wallets/isar_models/wallet_info.dart' as _i10;
import 'package:tuple/tuple.dart' as _i14;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -637,13 +638,44 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<bool>.value(false), returnValue: _i5.Future<bool>.value(false),
) as _i5.Future<bool>); ) as _i5.Future<bool>);
@override @override
List<_i10.ContactEntry> getContactEntries() => (super.noSuchMethod( _i5.Future<void> putWalletInfo(_i10.WalletInfo? walletInfo) =>
(super.noSuchMethod(
Invocation.method(
#putWalletInfo,
[walletInfo],
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
@override
_i5.Future<void> updateWalletInfo(_i10.WalletInfo? walletInfo) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletInfo,
[walletInfo],
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
@override
_i5.Future<void> deleteWallet({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#deleteWallet,
[],
{#walletId: walletId},
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
@override
List<_i11.ContactEntry> getContactEntries() => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getContactEntries, #getContactEntries,
[], [],
), ),
returnValue: <_i10.ContactEntry>[], returnValue: <_i11.ContactEntry>[],
) as List<_i10.ContactEntry>); ) as List<_i11.ContactEntry>);
@override @override
_i5.Future<bool> deleteContactEntry({required String? id}) => _i5.Future<bool> deleteContactEntry({required String? id}) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -665,15 +697,15 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<bool>.value(false), returnValue: _i5.Future<bool>.value(false),
) as _i5.Future<bool>); ) as _i5.Future<bool>);
@override @override
_i10.ContactEntry? getContactEntry({required String? id}) => _i11.ContactEntry? getContactEntry({required String? id}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getContactEntry, #getContactEntry,
[], [],
{#id: id}, {#id: id},
)) as _i10.ContactEntry?); )) as _i11.ContactEntry?);
@override @override
_i5.Future<bool> putContactEntry( _i5.Future<bool> putContactEntry(
{required _i10.ContactEntry? contactEntry}) => {required _i11.ContactEntry? contactEntry}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putContactEntry, #putContactEntry,
@ -683,16 +715,16 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<bool>.value(false), returnValue: _i5.Future<bool>.value(false),
) as _i5.Future<bool>); ) as _i5.Future<bool>);
@override @override
_i11.TransactionBlockExplorer? getTransactionBlockExplorer( _i12.TransactionBlockExplorer? getTransactionBlockExplorer(
{required _i7.Coin? coin}) => {required _i7.Coin? coin}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getTransactionBlockExplorer, #getTransactionBlockExplorer,
[], [],
{#coin: coin}, {#coin: coin},
)) as _i11.TransactionBlockExplorer?); )) as _i12.TransactionBlockExplorer?);
@override @override
_i5.Future<int> putTransactionBlockExplorer( _i5.Future<int> putTransactionBlockExplorer(
_i11.TransactionBlockExplorer? explorer) => _i12.TransactionBlockExplorer? explorer) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactionBlockExplorer, #putTransactionBlockExplorer,
@ -701,13 +733,13 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<int>.value(0), returnValue: _i5.Future<int>.value(0),
) as _i5.Future<int>); ) as _i5.Future<int>);
@override @override
_i4.QueryBuilder<_i12.Address, _i12.Address, _i4.QAfterWhereClause> _i4.QueryBuilder<_i13.Address, _i13.Address, _i4.QAfterWhereClause>
getAddresses(String? walletId) => (super.noSuchMethod( getAddresses(String? walletId) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getAddresses, #getAddresses,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_4<_i12.Address, _i12.Address, returnValue: _FakeQueryBuilder_4<_i13.Address, _i13.Address,
_i4.QAfterWhereClause>( _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -716,9 +748,9 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
), ),
), ),
) as _i4 ) as _i4
.QueryBuilder<_i12.Address, _i12.Address, _i4.QAfterWhereClause>); .QueryBuilder<_i13.Address, _i13.Address, _i4.QAfterWhereClause>);
@override @override
_i5.Future<int> putAddress(_i12.Address? address) => (super.noSuchMethod( _i5.Future<int> putAddress(_i13.Address? address) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddress, #putAddress,
[address], [address],
@ -726,7 +758,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<int>.value(0), returnValue: _i5.Future<int>.value(0),
) as _i5.Future<int>); ) as _i5.Future<int>);
@override @override
_i5.Future<List<int>> putAddresses(List<_i12.Address>? addresses) => _i5.Future<List<int>> putAddresses(List<_i13.Address>? addresses) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddresses, #putAddresses,
@ -735,7 +767,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<List<int>>.value(<int>[]), returnValue: _i5.Future<List<int>>.value(<int>[]),
) as _i5.Future<List<int>>); ) as _i5.Future<List<int>>);
@override @override
_i5.Future<List<int>> updateOrPutAddresses(List<_i12.Address>? addresses) => _i5.Future<List<int>> updateOrPutAddresses(List<_i13.Address>? addresses) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#updateOrPutAddresses, #updateOrPutAddresses,
@ -744,7 +776,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<List<int>>.value(<int>[]), returnValue: _i5.Future<List<int>>.value(<int>[]),
) as _i5.Future<List<int>>); ) as _i5.Future<List<int>>);
@override @override
_i5.Future<_i12.Address?> getAddress( _i5.Future<_i13.Address?> getAddress(
String? walletId, String? walletId,
String? address, String? address,
) => ) =>
@ -756,12 +788,12 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
address, address,
], ],
), ),
returnValue: _i5.Future<_i12.Address?>.value(), returnValue: _i5.Future<_i13.Address?>.value(),
) as _i5.Future<_i12.Address?>); ) as _i5.Future<_i13.Address?>);
@override @override
_i5.Future<int> updateAddress( _i5.Future<int> updateAddress(
_i12.Address? oldAddress, _i13.Address? oldAddress,
_i12.Address? newAddress, _i13.Address? newAddress,
) => ) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -774,13 +806,13 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<int>.value(0), returnValue: _i5.Future<int>.value(0),
) as _i5.Future<int>); ) as _i5.Future<int>);
@override @override
_i4.QueryBuilder<_i12.Transaction, _i12.Transaction, _i4.QAfterWhereClause> _i4.QueryBuilder<_i13.Transaction, _i13.Transaction, _i4.QAfterWhereClause>
getTransactions(String? walletId) => (super.noSuchMethod( getTransactions(String? walletId) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getTransactions, #getTransactions,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_4<_i12.Transaction, _i12.Transaction, returnValue: _FakeQueryBuilder_4<_i13.Transaction, _i13.Transaction,
_i4.QAfterWhereClause>( _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -788,10 +820,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
[walletId], [walletId],
), ),
), ),
) as _i4.QueryBuilder<_i12.Transaction, _i12.Transaction, ) as _i4.QueryBuilder<_i13.Transaction, _i13.Transaction,
_i4.QAfterWhereClause>); _i4.QAfterWhereClause>);
@override @override
_i5.Future<int> putTransaction(_i12.Transaction? transaction) => _i5.Future<int> putTransaction(_i13.Transaction? transaction) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransaction, #putTransaction,
@ -800,7 +832,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<int>.value(0), returnValue: _i5.Future<int>.value(0),
) as _i5.Future<int>); ) as _i5.Future<int>);
@override @override
_i5.Future<List<int>> putTransactions(List<_i12.Transaction>? transactions) => _i5.Future<List<int>> putTransactions(List<_i13.Transaction>? transactions) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactions, #putTransactions,
@ -809,7 +841,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<List<int>>.value(<int>[]), returnValue: _i5.Future<List<int>>.value(<int>[]),
) as _i5.Future<List<int>>); ) as _i5.Future<List<int>>);
@override @override
_i5.Future<_i12.Transaction?> getTransaction( _i5.Future<_i13.Transaction?> getTransaction(
String? walletId, String? walletId,
String? txid, String? txid,
) => ) =>
@ -821,10 +853,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
txid, txid,
], ],
), ),
returnValue: _i5.Future<_i12.Transaction?>.value(), returnValue: _i5.Future<_i13.Transaction?>.value(),
) as _i5.Future<_i12.Transaction?>); ) as _i5.Future<_i13.Transaction?>);
@override @override
_i5.Stream<_i12.Transaction?> watchTransaction({ _i5.Stream<_i13.Transaction?> watchTransaction({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -837,10 +869,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i5.Stream<_i12.Transaction?>.empty(), returnValue: _i5.Stream<_i13.Transaction?>.empty(),
) as _i5.Stream<_i12.Transaction?>); ) as _i5.Stream<_i13.Transaction?>);
@override @override
_i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause> getUTXOs( _i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause> getUTXOs(
String? walletId) => String? walletId) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -848,16 +880,16 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
[walletId], [walletId],
), ),
returnValue: returnValue:
_FakeQueryBuilder_4<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause>( _FakeQueryBuilder_4<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
#getUTXOs, #getUTXOs,
[walletId], [walletId],
), ),
), ),
) as _i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause>); ) as _i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause>);
@override @override
_i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterFilterCondition> _i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterFilterCondition>
getUTXOsByAddress( getUTXOsByAddress(
String? walletId, String? walletId,
String? address, String? address,
@ -870,7 +902,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
address, address,
], ],
), ),
returnValue: _FakeQueryBuilder_4<_i12.UTXO, _i12.UTXO, returnValue: _FakeQueryBuilder_4<_i13.UTXO, _i13.UTXO,
_i4.QAfterFilterCondition>( _i4.QAfterFilterCondition>(
this, this,
Invocation.method( Invocation.method(
@ -882,9 +914,9 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
), ),
), ),
) as _i4 ) as _i4
.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterFilterCondition>); .QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterFilterCondition>);
@override @override
_i5.Future<void> putUTXO(_i12.UTXO? utxo) => (super.noSuchMethod( _i5.Future<void> putUTXO(_i13.UTXO? utxo) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#putUTXO, #putUTXO,
[utxo], [utxo],
@ -893,7 +925,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> putUTXOs(List<_i12.UTXO>? utxos) => (super.noSuchMethod( _i5.Future<void> putUTXOs(List<_i13.UTXO>? utxos) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#putUTXOs, #putUTXOs,
[utxos], [utxos],
@ -904,7 +936,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
@override @override
_i5.Future<bool> updateUTXOs( _i5.Future<bool> updateUTXOs(
String? walletId, String? walletId,
List<_i12.UTXO>? utxos, List<_i13.UTXO>? utxos,
) => ) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -917,7 +949,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<bool>.value(false), returnValue: _i5.Future<bool>.value(false),
) as _i5.Future<bool>); ) as _i5.Future<bool>);
@override @override
_i5.Stream<_i12.UTXO?> watchUTXO({ _i5.Stream<_i13.UTXO?> watchUTXO({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -930,10 +962,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i5.Stream<_i12.UTXO?>.empty(), returnValue: _i5.Stream<_i13.UTXO?>.empty(),
) as _i5.Stream<_i12.UTXO?>); ) as _i5.Stream<_i13.UTXO?>);
@override @override
_i4.QueryBuilder<_i12.TransactionNote, _i12.TransactionNote, _i4.QueryBuilder<_i13.TransactionNote, _i13.TransactionNote,
_i4.QAfterWhereClause> getTransactionNotes( _i4.QAfterWhereClause> getTransactionNotes(
String? walletId) => String? walletId) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -941,18 +973,18 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#getTransactionNotes, #getTransactionNotes,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_4<_i12.TransactionNote, returnValue: _FakeQueryBuilder_4<_i13.TransactionNote,
_i12.TransactionNote, _i4.QAfterWhereClause>( _i13.TransactionNote, _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
#getTransactionNotes, #getTransactionNotes,
[walletId], [walletId],
), ),
), ),
) as _i4.QueryBuilder<_i12.TransactionNote, _i12.TransactionNote, ) as _i4.QueryBuilder<_i13.TransactionNote, _i13.TransactionNote,
_i4.QAfterWhereClause>); _i4.QAfterWhereClause>);
@override @override
_i5.Future<void> putTransactionNote(_i12.TransactionNote? transactionNote) => _i5.Future<void> putTransactionNote(_i13.TransactionNote? transactionNote) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactionNote, #putTransactionNote,
@ -963,7 +995,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> putTransactionNotes( _i5.Future<void> putTransactionNotes(
List<_i12.TransactionNote>? transactionNotes) => List<_i13.TransactionNote>? transactionNotes) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactionNotes, #putTransactionNotes,
@ -973,7 +1005,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<_i12.TransactionNote?> getTransactionNote( _i5.Future<_i13.TransactionNote?> getTransactionNote(
String? walletId, String? walletId,
String? txid, String? txid,
) => ) =>
@ -985,10 +1017,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
txid, txid,
], ],
), ),
returnValue: _i5.Future<_i12.TransactionNote?>.value(), returnValue: _i5.Future<_i13.TransactionNote?>.value(),
) as _i5.Future<_i12.TransactionNote?>); ) as _i5.Future<_i13.TransactionNote?>);
@override @override
_i5.Stream<_i12.TransactionNote?> watchTransactionNote({ _i5.Stream<_i13.TransactionNote?> watchTransactionNote({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -1001,27 +1033,27 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i5.Stream<_i12.TransactionNote?>.empty(), returnValue: _i5.Stream<_i13.TransactionNote?>.empty(),
) as _i5.Stream<_i12.TransactionNote?>); ) as _i5.Stream<_i13.TransactionNote?>);
@override @override
_i4.QueryBuilder<_i12.AddressLabel, _i12.AddressLabel, _i4.QAfterWhereClause> _i4.QueryBuilder<_i13.AddressLabel, _i13.AddressLabel, _i4.QAfterWhereClause>
getAddressLabels(String? walletId) => (super.noSuchMethod( getAddressLabels(String? walletId) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getAddressLabels, #getAddressLabels,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_4<_i12.AddressLabel, returnValue: _FakeQueryBuilder_4<_i13.AddressLabel,
_i12.AddressLabel, _i4.QAfterWhereClause>( _i13.AddressLabel, _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
#getAddressLabels, #getAddressLabels,
[walletId], [walletId],
), ),
), ),
) as _i4.QueryBuilder<_i12.AddressLabel, _i12.AddressLabel, ) as _i4.QueryBuilder<_i13.AddressLabel, _i13.AddressLabel,
_i4.QAfterWhereClause>); _i4.QAfterWhereClause>);
@override @override
_i5.Future<int> putAddressLabel(_i12.AddressLabel? addressLabel) => _i5.Future<int> putAddressLabel(_i13.AddressLabel? addressLabel) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddressLabel, #putAddressLabel,
@ -1030,7 +1062,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<int>.value(0), returnValue: _i5.Future<int>.value(0),
) as _i5.Future<int>); ) as _i5.Future<int>);
@override @override
int putAddressLabelSync(_i12.AddressLabel? addressLabel) => int putAddressLabelSync(_i13.AddressLabel? addressLabel) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddressLabelSync, #putAddressLabelSync,
@ -1039,7 +1071,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: 0, returnValue: 0,
) as int); ) as int);
@override @override
_i5.Future<void> putAddressLabels(List<_i12.AddressLabel>? addressLabels) => _i5.Future<void> putAddressLabels(List<_i13.AddressLabel>? addressLabels) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddressLabels, #putAddressLabels,
@ -1049,7 +1081,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<_i12.AddressLabel?> getAddressLabel( _i5.Future<_i13.AddressLabel?> getAddressLabel(
String? walletId, String? walletId,
String? addressString, String? addressString,
) => ) =>
@ -1061,10 +1093,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
addressString, addressString,
], ],
), ),
returnValue: _i5.Future<_i12.AddressLabel?>.value(), returnValue: _i5.Future<_i13.AddressLabel?>.value(),
) as _i5.Future<_i12.AddressLabel?>); ) as _i5.Future<_i13.AddressLabel?>);
@override @override
_i12.AddressLabel? getAddressLabelSync( _i13.AddressLabel? getAddressLabelSync(
String? walletId, String? walletId,
String? addressString, String? addressString,
) => ) =>
@ -1074,9 +1106,9 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
walletId, walletId,
addressString, addressString,
], ],
)) as _i12.AddressLabel?); )) as _i13.AddressLabel?);
@override @override
_i5.Stream<_i12.AddressLabel?> watchAddressLabel({ _i5.Stream<_i13.AddressLabel?> watchAddressLabel({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -1089,10 +1121,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i5.Stream<_i12.AddressLabel?>.empty(), returnValue: _i5.Stream<_i13.AddressLabel?>.empty(),
) as _i5.Stream<_i12.AddressLabel?>); ) as _i5.Stream<_i13.AddressLabel?>);
@override @override
_i5.Future<int> updateAddressLabel(_i12.AddressLabel? addressLabel) => _i5.Future<int> updateAddressLabel(_i13.AddressLabel? addressLabel) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#updateAddressLabel, #updateAddressLabel,
@ -1131,7 +1163,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> addNewTransactionData( _i5.Future<void> addNewTransactionData(
List<_i13.Tuple2<_i12.Transaction, _i12.Address?>>? transactionsData, List<_i14.Tuple2<_i13.Transaction, _i13.Address?>>? transactionsData,
String? walletId, String? walletId,
) => ) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -1147,7 +1179,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<List<int>> updateOrPutTransactionV2s( _i5.Future<List<int>> updateOrPutTransactionV2s(
List<_i14.TransactionV2>? transactions) => List<_i15.TransactionV2>? transactions) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#updateOrPutTransactionV2s, #updateOrPutTransactionV2s,
@ -1156,13 +1188,13 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<List<int>>.value(<int>[]), returnValue: _i5.Future<List<int>>.value(<int>[]),
) as _i5.Future<List<int>>); ) as _i5.Future<List<int>>);
@override @override
_i4.QueryBuilder<_i12.EthContract, _i12.EthContract, _i4.QWhere> _i4.QueryBuilder<_i13.EthContract, _i13.EthContract, _i4.QWhere>
getEthContracts() => (super.noSuchMethod( getEthContracts() => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getEthContracts, #getEthContracts,
[], [],
), ),
returnValue: _FakeQueryBuilder_4<_i12.EthContract, _i12.EthContract, returnValue: _FakeQueryBuilder_4<_i13.EthContract, _i13.EthContract,
_i4.QWhere>( _i4.QWhere>(
this, this,
Invocation.method( Invocation.method(
@ -1171,24 +1203,24 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
), ),
), ),
) as _i4 ) as _i4
.QueryBuilder<_i12.EthContract, _i12.EthContract, _i4.QWhere>); .QueryBuilder<_i13.EthContract, _i13.EthContract, _i4.QWhere>);
@override @override
_i5.Future<_i12.EthContract?> getEthContract(String? contractAddress) => _i5.Future<_i13.EthContract?> getEthContract(String? contractAddress) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getEthContract, #getEthContract,
[contractAddress], [contractAddress],
), ),
returnValue: _i5.Future<_i12.EthContract?>.value(), returnValue: _i5.Future<_i13.EthContract?>.value(),
) as _i5.Future<_i12.EthContract?>); ) as _i5.Future<_i13.EthContract?>);
@override @override
_i12.EthContract? getEthContractSync(String? contractAddress) => _i13.EthContract? getEthContractSync(String? contractAddress) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getEthContractSync, #getEthContractSync,
[contractAddress], [contractAddress],
)) as _i12.EthContract?); )) as _i13.EthContract?);
@override @override
_i5.Future<int> putEthContract(_i12.EthContract? contract) => _i5.Future<int> putEthContract(_i13.EthContract? contract) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putEthContract, #putEthContract,
@ -1197,7 +1229,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValue: _i5.Future<int>.value(0), returnValue: _i5.Future<int>.value(0),
) as _i5.Future<int>); ) as _i5.Future<int>);
@override @override
_i5.Future<void> putEthContracts(List<_i12.EthContract>? contracts) => _i5.Future<void> putEthContracts(List<_i13.EthContract>? contracts) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putEthContracts, #putEthContracts,

View file

@ -16,10 +16,10 @@ import 'package:stackwallet/db/isar/main_db.dart' as _i14;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i13; import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i13;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i12; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i12;
import 'package:stackwallet/models/balance.dart' as _i9; import 'package:stackwallet/models/balance.dart' as _i9;
import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i38; import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i39;
import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart'
as _i39; as _i40;
import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i37; import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i38;
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i24; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i24;
import 'package:stackwallet/models/isar/stack_theme.dart' as _i35; import 'package:stackwallet/models/isar/stack_theme.dart' as _i35;
import 'package:stackwallet/models/models.dart' as _i8; import 'package:stackwallet/models/models.dart' as _i8;
@ -45,6 +45,7 @@ import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i29;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i28; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i28;
import 'package:stackwallet/utilities/prefs.dart' as _i22; import 'package:stackwallet/utilities/prefs.dart' as _i22;
import 'package:stackwallet/wallets/isar_models/wallet_info.dart' as _i37;
import 'package:tuple/tuple.dart' as _i16; import 'package:tuple/tuple.dart' as _i16;
// ignore_for_file: type=lint // ignore_for_file: type=lint
@ -3079,13 +3080,44 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
returnValue: _i21.Future<bool>.value(false), returnValue: _i21.Future<bool>.value(false),
) as _i21.Future<bool>); ) as _i21.Future<bool>);
@override @override
List<_i37.ContactEntry> getContactEntries() => (super.noSuchMethod( _i21.Future<void> putWalletInfo(_i37.WalletInfo? walletInfo) =>
(super.noSuchMethod(
Invocation.method(
#putWalletInfo,
[walletInfo],
),
returnValue: _i21.Future<void>.value(),
returnValueForMissingStub: _i21.Future<void>.value(),
) as _i21.Future<void>);
@override
_i21.Future<void> updateWalletInfo(_i37.WalletInfo? walletInfo) =>
(super.noSuchMethod(
Invocation.method(
#updateWalletInfo,
[walletInfo],
),
returnValue: _i21.Future<void>.value(),
returnValueForMissingStub: _i21.Future<void>.value(),
) as _i21.Future<void>);
@override
_i21.Future<void> deleteWallet({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#deleteWallet,
[],
{#walletId: walletId},
),
returnValue: _i21.Future<void>.value(),
returnValueForMissingStub: _i21.Future<void>.value(),
) as _i21.Future<void>);
@override
List<_i38.ContactEntry> getContactEntries() => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getContactEntries, #getContactEntries,
[], [],
), ),
returnValue: <_i37.ContactEntry>[], returnValue: <_i38.ContactEntry>[],
) as List<_i37.ContactEntry>); ) as List<_i38.ContactEntry>);
@override @override
_i21.Future<bool> deleteContactEntry({required String? id}) => _i21.Future<bool> deleteContactEntry({required String? id}) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -3107,15 +3139,15 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
returnValue: _i21.Future<bool>.value(false), returnValue: _i21.Future<bool>.value(false),
) as _i21.Future<bool>); ) as _i21.Future<bool>);
@override @override
_i37.ContactEntry? getContactEntry({required String? id}) => _i38.ContactEntry? getContactEntry({required String? id}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getContactEntry, #getContactEntry,
[], [],
{#id: id}, {#id: id},
)) as _i37.ContactEntry?); )) as _i38.ContactEntry?);
@override @override
_i21.Future<bool> putContactEntry( _i21.Future<bool> putContactEntry(
{required _i37.ContactEntry? contactEntry}) => {required _i38.ContactEntry? contactEntry}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putContactEntry, #putContactEntry,
@ -3125,16 +3157,16 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
returnValue: _i21.Future<bool>.value(false), returnValue: _i21.Future<bool>.value(false),
) as _i21.Future<bool>); ) as _i21.Future<bool>);
@override @override
_i38.TransactionBlockExplorer? getTransactionBlockExplorer( _i39.TransactionBlockExplorer? getTransactionBlockExplorer(
{required _i20.Coin? coin}) => {required _i20.Coin? coin}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getTransactionBlockExplorer, #getTransactionBlockExplorer,
[], [],
{#coin: coin}, {#coin: coin},
)) as _i38.TransactionBlockExplorer?); )) as _i39.TransactionBlockExplorer?);
@override @override
_i21.Future<int> putTransactionBlockExplorer( _i21.Future<int> putTransactionBlockExplorer(
_i38.TransactionBlockExplorer? explorer) => _i39.TransactionBlockExplorer? explorer) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactionBlockExplorer, #putTransactionBlockExplorer,
@ -3593,7 +3625,7 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
) as _i21.Future<void>); ) as _i21.Future<void>);
@override @override
_i21.Future<List<int>> updateOrPutTransactionV2s( _i21.Future<List<int>> updateOrPutTransactionV2s(
List<_i39.TransactionV2>? transactions) => List<_i40.TransactionV2>? transactions) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#updateOrPutTransactionV2s, #updateOrPutTransactionV2s,