mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
add script to make it easier to run build runner and update mocks from merge
This commit is contained in:
parent
b88c073e22
commit
e4fa06214c
4 changed files with 193 additions and 118 deletions
42
pubspec.lock
42
pubspec.lock
|
@ -282,10 +282,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: collection
|
||||
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
|
||||
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.17.1"
|
||||
version: "1.17.2"
|
||||
connectivity_plus:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -1051,18 +1051,18 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: matcher
|
||||
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
|
||||
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.12.15"
|
||||
version: "0.12.16"
|
||||
material_color_utilities:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: material_color_utilities
|
||||
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
|
||||
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.2.0"
|
||||
version: "0.5.0"
|
||||
memoize:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1537,10 +1537,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: source_span
|
||||
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
|
||||
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.9.1"
|
||||
version: "1.10.0"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1626,26 +1626,26 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: test
|
||||
sha256: "3dac9aecf2c3991d09b9cdde4f98ded7b30804a88a0d7e4e7e1678e78d6b97f4"
|
||||
sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.24.1"
|
||||
version: "1.24.3"
|
||||
test_api:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_api
|
||||
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
|
||||
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.5.1"
|
||||
version: "0.6.0"
|
||||
test_core:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_core
|
||||
sha256: "5138dbffb77b2289ecb12b81c11ba46036590b72a64a7a90d6ffb880f1a29e93"
|
||||
sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.5.1"
|
||||
version: "0.5.3"
|
||||
tezart:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -1843,10 +1843,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: vm_service
|
||||
sha256: f6deed8ed625c52864792459709183da231ebf66ff0cf09e69b573227c377efe
|
||||
sha256: c620a6f783fa22436da68e42db7ebbf18b8c44b9a46ab911f666ff09ffd9153f
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "11.3.0"
|
||||
version: "11.7.1"
|
||||
wakelock:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -1912,6 +1912,14 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.0"
|
||||
web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: web
|
||||
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.1.4-beta"
|
||||
web3dart:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -2018,5 +2026,5 @@ packages:
|
|||
source: hosted
|
||||
version: "1.0.0"
|
||||
sdks:
|
||||
dart: ">=3.0.6 <4.0.0"
|
||||
dart: ">=3.1.0-185.0.dev <4.0.0"
|
||||
flutter: ">=3.10.3"
|
||||
|
|
3
scripts/build_runner.sh
Executable file
3
scripts/build_runner.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
dart run build_runner build --delete-conflicting-outputs
|
|
@ -11,15 +11,16 @@ import 'package:mockito/mockito.dart' as _i1;
|
|||
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/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'
|
||||
as _i14;
|
||||
import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i10;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i12;
|
||||
as _i15;
|
||||
import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i11;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i13;
|
||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||
as _i8;
|
||||
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: avoid_redundant_argument_values
|
||||
|
@ -637,13 +638,44 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
@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(
|
||||
#getContactEntries,
|
||||
[],
|
||||
),
|
||||
returnValue: <_i10.ContactEntry>[],
|
||||
) as List<_i10.ContactEntry>);
|
||||
returnValue: <_i11.ContactEntry>[],
|
||||
) as List<_i11.ContactEntry>);
|
||||
@override
|
||||
_i5.Future<bool> deleteContactEntry({required String? id}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -665,15 +697,15 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
@override
|
||||
_i10.ContactEntry? getContactEntry({required String? id}) =>
|
||||
_i11.ContactEntry? getContactEntry({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getContactEntry,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i10.ContactEntry?);
|
||||
)) as _i11.ContactEntry?);
|
||||
@override
|
||||
_i5.Future<bool> putContactEntry(
|
||||
{required _i10.ContactEntry? contactEntry}) =>
|
||||
{required _i11.ContactEntry? contactEntry}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putContactEntry,
|
||||
|
@ -683,16 +715,16 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
@override
|
||||
_i11.TransactionBlockExplorer? getTransactionBlockExplorer(
|
||||
_i12.TransactionBlockExplorer? getTransactionBlockExplorer(
|
||||
{required _i7.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getTransactionBlockExplorer,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i11.TransactionBlockExplorer?);
|
||||
)) as _i12.TransactionBlockExplorer?);
|
||||
@override
|
||||
_i5.Future<int> putTransactionBlockExplorer(
|
||||
_i11.TransactionBlockExplorer? explorer) =>
|
||||
_i12.TransactionBlockExplorer? explorer) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putTransactionBlockExplorer,
|
||||
|
@ -701,13 +733,13 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<int>.value(0),
|
||||
) as _i5.Future<int>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.Address, _i12.Address, _i4.QAfterWhereClause>
|
||||
_i4.QueryBuilder<_i13.Address, _i13.Address, _i4.QAfterWhereClause>
|
||||
getAddresses(String? walletId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getAddresses,
|
||||
[walletId],
|
||||
),
|
||||
returnValue: _FakeQueryBuilder_4<_i12.Address, _i12.Address,
|
||||
returnValue: _FakeQueryBuilder_4<_i13.Address, _i13.Address,
|
||||
_i4.QAfterWhereClause>(
|
||||
this,
|
||||
Invocation.method(
|
||||
|
@ -716,9 +748,9 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
),
|
||||
),
|
||||
) as _i4
|
||||
.QueryBuilder<_i12.Address, _i12.Address, _i4.QAfterWhereClause>);
|
||||
.QueryBuilder<_i13.Address, _i13.Address, _i4.QAfterWhereClause>);
|
||||
@override
|
||||
_i5.Future<int> putAddress(_i12.Address? address) => (super.noSuchMethod(
|
||||
_i5.Future<int> putAddress(_i13.Address? address) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putAddress,
|
||||
[address],
|
||||
|
@ -726,7 +758,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<int>.value(0),
|
||||
) as _i5.Future<int>);
|
||||
@override
|
||||
_i5.Future<List<int>> putAddresses(List<_i12.Address>? addresses) =>
|
||||
_i5.Future<List<int>> putAddresses(List<_i13.Address>? addresses) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putAddresses,
|
||||
|
@ -735,7 +767,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<List<int>>.value(<int>[]),
|
||||
) as _i5.Future<List<int>>);
|
||||
@override
|
||||
_i5.Future<List<int>> updateOrPutAddresses(List<_i12.Address>? addresses) =>
|
||||
_i5.Future<List<int>> updateOrPutAddresses(List<_i13.Address>? addresses) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateOrPutAddresses,
|
||||
|
@ -744,7 +776,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<List<int>>.value(<int>[]),
|
||||
) as _i5.Future<List<int>>);
|
||||
@override
|
||||
_i5.Future<_i12.Address?> getAddress(
|
||||
_i5.Future<_i13.Address?> getAddress(
|
||||
String? walletId,
|
||||
String? address,
|
||||
) =>
|
||||
|
@ -756,12 +788,12 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
address,
|
||||
],
|
||||
),
|
||||
returnValue: _i5.Future<_i12.Address?>.value(),
|
||||
) as _i5.Future<_i12.Address?>);
|
||||
returnValue: _i5.Future<_i13.Address?>.value(),
|
||||
) as _i5.Future<_i13.Address?>);
|
||||
@override
|
||||
_i5.Future<int> updateAddress(
|
||||
_i12.Address? oldAddress,
|
||||
_i12.Address? newAddress,
|
||||
_i13.Address? oldAddress,
|
||||
_i13.Address? newAddress,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -774,13 +806,13 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<int>.value(0),
|
||||
) as _i5.Future<int>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.Transaction, _i12.Transaction, _i4.QAfterWhereClause>
|
||||
_i4.QueryBuilder<_i13.Transaction, _i13.Transaction, _i4.QAfterWhereClause>
|
||||
getTransactions(String? walletId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getTransactions,
|
||||
[walletId],
|
||||
),
|
||||
returnValue: _FakeQueryBuilder_4<_i12.Transaction, _i12.Transaction,
|
||||
returnValue: _FakeQueryBuilder_4<_i13.Transaction, _i13.Transaction,
|
||||
_i4.QAfterWhereClause>(
|
||||
this,
|
||||
Invocation.method(
|
||||
|
@ -788,10 +820,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
[walletId],
|
||||
),
|
||||
),
|
||||
) as _i4.QueryBuilder<_i12.Transaction, _i12.Transaction,
|
||||
) as _i4.QueryBuilder<_i13.Transaction, _i13.Transaction,
|
||||
_i4.QAfterWhereClause>);
|
||||
@override
|
||||
_i5.Future<int> putTransaction(_i12.Transaction? transaction) =>
|
||||
_i5.Future<int> putTransaction(_i13.Transaction? transaction) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putTransaction,
|
||||
|
@ -800,7 +832,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<int>.value(0),
|
||||
) as _i5.Future<int>);
|
||||
@override
|
||||
_i5.Future<List<int>> putTransactions(List<_i12.Transaction>? transactions) =>
|
||||
_i5.Future<List<int>> putTransactions(List<_i13.Transaction>? transactions) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putTransactions,
|
||||
|
@ -809,7 +841,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<List<int>>.value(<int>[]),
|
||||
) as _i5.Future<List<int>>);
|
||||
@override
|
||||
_i5.Future<_i12.Transaction?> getTransaction(
|
||||
_i5.Future<_i13.Transaction?> getTransaction(
|
||||
String? walletId,
|
||||
String? txid,
|
||||
) =>
|
||||
|
@ -821,10 +853,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
txid,
|
||||
],
|
||||
),
|
||||
returnValue: _i5.Future<_i12.Transaction?>.value(),
|
||||
) as _i5.Future<_i12.Transaction?>);
|
||||
returnValue: _i5.Future<_i13.Transaction?>.value(),
|
||||
) as _i5.Future<_i13.Transaction?>);
|
||||
@override
|
||||
_i5.Stream<_i12.Transaction?> watchTransaction({
|
||||
_i5.Stream<_i13.Transaction?> watchTransaction({
|
||||
required int? id,
|
||||
bool? fireImmediately = false,
|
||||
}) =>
|
||||
|
@ -837,10 +869,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
#fireImmediately: fireImmediately,
|
||||
},
|
||||
),
|
||||
returnValue: _i5.Stream<_i12.Transaction?>.empty(),
|
||||
) as _i5.Stream<_i12.Transaction?>);
|
||||
returnValue: _i5.Stream<_i13.Transaction?>.empty(),
|
||||
) as _i5.Stream<_i13.Transaction?>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause> getUTXOs(
|
||||
_i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause> getUTXOs(
|
||||
String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -848,16 +880,16 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
[walletId],
|
||||
),
|
||||
returnValue:
|
||||
_FakeQueryBuilder_4<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause>(
|
||||
_FakeQueryBuilder_4<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getUTXOs,
|
||||
[walletId],
|
||||
),
|
||||
),
|
||||
) as _i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause>);
|
||||
) as _i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterFilterCondition>
|
||||
_i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterFilterCondition>
|
||||
getUTXOsByAddress(
|
||||
String? walletId,
|
||||
String? address,
|
||||
|
@ -870,7 +902,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
address,
|
||||
],
|
||||
),
|
||||
returnValue: _FakeQueryBuilder_4<_i12.UTXO, _i12.UTXO,
|
||||
returnValue: _FakeQueryBuilder_4<_i13.UTXO, _i13.UTXO,
|
||||
_i4.QAfterFilterCondition>(
|
||||
this,
|
||||
Invocation.method(
|
||||
|
@ -882,9 +914,9 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
),
|
||||
),
|
||||
) as _i4
|
||||
.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterFilterCondition>);
|
||||
.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterFilterCondition>);
|
||||
@override
|
||||
_i5.Future<void> putUTXO(_i12.UTXO? utxo) => (super.noSuchMethod(
|
||||
_i5.Future<void> putUTXO(_i13.UTXO? utxo) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putUTXO,
|
||||
[utxo],
|
||||
|
@ -893,7 +925,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i5.Future<void> putUTXOs(List<_i12.UTXO>? utxos) => (super.noSuchMethod(
|
||||
_i5.Future<void> putUTXOs(List<_i13.UTXO>? utxos) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putUTXOs,
|
||||
[utxos],
|
||||
|
@ -904,7 +936,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
@override
|
||||
_i5.Future<bool> updateUTXOs(
|
||||
String? walletId,
|
||||
List<_i12.UTXO>? utxos,
|
||||
List<_i13.UTXO>? utxos,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -917,7 +949,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
@override
|
||||
_i5.Stream<_i12.UTXO?> watchUTXO({
|
||||
_i5.Stream<_i13.UTXO?> watchUTXO({
|
||||
required int? id,
|
||||
bool? fireImmediately = false,
|
||||
}) =>
|
||||
|
@ -930,10 +962,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
#fireImmediately: fireImmediately,
|
||||
},
|
||||
),
|
||||
returnValue: _i5.Stream<_i12.UTXO?>.empty(),
|
||||
) as _i5.Stream<_i12.UTXO?>);
|
||||
returnValue: _i5.Stream<_i13.UTXO?>.empty(),
|
||||
) as _i5.Stream<_i13.UTXO?>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.TransactionNote, _i12.TransactionNote,
|
||||
_i4.QueryBuilder<_i13.TransactionNote, _i13.TransactionNote,
|
||||
_i4.QAfterWhereClause> getTransactionNotes(
|
||||
String? walletId) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -941,18 +973,18 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
#getTransactionNotes,
|
||||
[walletId],
|
||||
),
|
||||
returnValue: _FakeQueryBuilder_4<_i12.TransactionNote,
|
||||
_i12.TransactionNote, _i4.QAfterWhereClause>(
|
||||
returnValue: _FakeQueryBuilder_4<_i13.TransactionNote,
|
||||
_i13.TransactionNote, _i4.QAfterWhereClause>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getTransactionNotes,
|
||||
[walletId],
|
||||
),
|
||||
),
|
||||
) as _i4.QueryBuilder<_i12.TransactionNote, _i12.TransactionNote,
|
||||
) as _i4.QueryBuilder<_i13.TransactionNote, _i13.TransactionNote,
|
||||
_i4.QAfterWhereClause>);
|
||||
@override
|
||||
_i5.Future<void> putTransactionNote(_i12.TransactionNote? transactionNote) =>
|
||||
_i5.Future<void> putTransactionNote(_i13.TransactionNote? transactionNote) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putTransactionNote,
|
||||
|
@ -963,7 +995,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i5.Future<void> putTransactionNotes(
|
||||
List<_i12.TransactionNote>? transactionNotes) =>
|
||||
List<_i13.TransactionNote>? transactionNotes) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putTransactionNotes,
|
||||
|
@ -973,7 +1005,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i5.Future<_i12.TransactionNote?> getTransactionNote(
|
||||
_i5.Future<_i13.TransactionNote?> getTransactionNote(
|
||||
String? walletId,
|
||||
String? txid,
|
||||
) =>
|
||||
|
@ -985,10 +1017,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
txid,
|
||||
],
|
||||
),
|
||||
returnValue: _i5.Future<_i12.TransactionNote?>.value(),
|
||||
) as _i5.Future<_i12.TransactionNote?>);
|
||||
returnValue: _i5.Future<_i13.TransactionNote?>.value(),
|
||||
) as _i5.Future<_i13.TransactionNote?>);
|
||||
@override
|
||||
_i5.Stream<_i12.TransactionNote?> watchTransactionNote({
|
||||
_i5.Stream<_i13.TransactionNote?> watchTransactionNote({
|
||||
required int? id,
|
||||
bool? fireImmediately = false,
|
||||
}) =>
|
||||
|
@ -1001,27 +1033,27 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
#fireImmediately: fireImmediately,
|
||||
},
|
||||
),
|
||||
returnValue: _i5.Stream<_i12.TransactionNote?>.empty(),
|
||||
) as _i5.Stream<_i12.TransactionNote?>);
|
||||
returnValue: _i5.Stream<_i13.TransactionNote?>.empty(),
|
||||
) as _i5.Stream<_i13.TransactionNote?>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.AddressLabel, _i12.AddressLabel, _i4.QAfterWhereClause>
|
||||
_i4.QueryBuilder<_i13.AddressLabel, _i13.AddressLabel, _i4.QAfterWhereClause>
|
||||
getAddressLabels(String? walletId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getAddressLabels,
|
||||
[walletId],
|
||||
),
|
||||
returnValue: _FakeQueryBuilder_4<_i12.AddressLabel,
|
||||
_i12.AddressLabel, _i4.QAfterWhereClause>(
|
||||
returnValue: _FakeQueryBuilder_4<_i13.AddressLabel,
|
||||
_i13.AddressLabel, _i4.QAfterWhereClause>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getAddressLabels,
|
||||
[walletId],
|
||||
),
|
||||
),
|
||||
) as _i4.QueryBuilder<_i12.AddressLabel, _i12.AddressLabel,
|
||||
) as _i4.QueryBuilder<_i13.AddressLabel, _i13.AddressLabel,
|
||||
_i4.QAfterWhereClause>);
|
||||
@override
|
||||
_i5.Future<int> putAddressLabel(_i12.AddressLabel? addressLabel) =>
|
||||
_i5.Future<int> putAddressLabel(_i13.AddressLabel? addressLabel) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putAddressLabel,
|
||||
|
@ -1030,7 +1062,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<int>.value(0),
|
||||
) as _i5.Future<int>);
|
||||
@override
|
||||
int putAddressLabelSync(_i12.AddressLabel? addressLabel) =>
|
||||
int putAddressLabelSync(_i13.AddressLabel? addressLabel) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putAddressLabelSync,
|
||||
|
@ -1039,7 +1071,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: 0,
|
||||
) as int);
|
||||
@override
|
||||
_i5.Future<void> putAddressLabels(List<_i12.AddressLabel>? addressLabels) =>
|
||||
_i5.Future<void> putAddressLabels(List<_i13.AddressLabel>? addressLabels) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putAddressLabels,
|
||||
|
@ -1049,7 +1081,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i5.Future<_i12.AddressLabel?> getAddressLabel(
|
||||
_i5.Future<_i13.AddressLabel?> getAddressLabel(
|
||||
String? walletId,
|
||||
String? addressString,
|
||||
) =>
|
||||
|
@ -1061,10 +1093,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
addressString,
|
||||
],
|
||||
),
|
||||
returnValue: _i5.Future<_i12.AddressLabel?>.value(),
|
||||
) as _i5.Future<_i12.AddressLabel?>);
|
||||
returnValue: _i5.Future<_i13.AddressLabel?>.value(),
|
||||
) as _i5.Future<_i13.AddressLabel?>);
|
||||
@override
|
||||
_i12.AddressLabel? getAddressLabelSync(
|
||||
_i13.AddressLabel? getAddressLabelSync(
|
||||
String? walletId,
|
||||
String? addressString,
|
||||
) =>
|
||||
|
@ -1074,9 +1106,9 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
walletId,
|
||||
addressString,
|
||||
],
|
||||
)) as _i12.AddressLabel?);
|
||||
)) as _i13.AddressLabel?);
|
||||
@override
|
||||
_i5.Stream<_i12.AddressLabel?> watchAddressLabel({
|
||||
_i5.Stream<_i13.AddressLabel?> watchAddressLabel({
|
||||
required int? id,
|
||||
bool? fireImmediately = false,
|
||||
}) =>
|
||||
|
@ -1089,10 +1121,10 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
#fireImmediately: fireImmediately,
|
||||
},
|
||||
),
|
||||
returnValue: _i5.Stream<_i12.AddressLabel?>.empty(),
|
||||
) as _i5.Stream<_i12.AddressLabel?>);
|
||||
returnValue: _i5.Stream<_i13.AddressLabel?>.empty(),
|
||||
) as _i5.Stream<_i13.AddressLabel?>);
|
||||
@override
|
||||
_i5.Future<int> updateAddressLabel(_i12.AddressLabel? addressLabel) =>
|
||||
_i5.Future<int> updateAddressLabel(_i13.AddressLabel? addressLabel) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateAddressLabel,
|
||||
|
@ -1131,7 +1163,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i5.Future<void> addNewTransactionData(
|
||||
List<_i13.Tuple2<_i12.Transaction, _i12.Address?>>? transactionsData,
|
||||
List<_i14.Tuple2<_i13.Transaction, _i13.Address?>>? transactionsData,
|
||||
String? walletId,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1147,7 +1179,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i5.Future<List<int>> updateOrPutTransactionV2s(
|
||||
List<_i14.TransactionV2>? transactions) =>
|
||||
List<_i15.TransactionV2>? transactions) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateOrPutTransactionV2s,
|
||||
|
@ -1156,13 +1188,13 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<List<int>>.value(<int>[]),
|
||||
) as _i5.Future<List<int>>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.EthContract, _i12.EthContract, _i4.QWhere>
|
||||
_i4.QueryBuilder<_i13.EthContract, _i13.EthContract, _i4.QWhere>
|
||||
getEthContracts() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getEthContracts,
|
||||
[],
|
||||
),
|
||||
returnValue: _FakeQueryBuilder_4<_i12.EthContract, _i12.EthContract,
|
||||
returnValue: _FakeQueryBuilder_4<_i13.EthContract, _i13.EthContract,
|
||||
_i4.QWhere>(
|
||||
this,
|
||||
Invocation.method(
|
||||
|
@ -1171,24 +1203,24 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
),
|
||||
),
|
||||
) as _i4
|
||||
.QueryBuilder<_i12.EthContract, _i12.EthContract, _i4.QWhere>);
|
||||
.QueryBuilder<_i13.EthContract, _i13.EthContract, _i4.QWhere>);
|
||||
@override
|
||||
_i5.Future<_i12.EthContract?> getEthContract(String? contractAddress) =>
|
||||
_i5.Future<_i13.EthContract?> getEthContract(String? contractAddress) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getEthContract,
|
||||
[contractAddress],
|
||||
),
|
||||
returnValue: _i5.Future<_i12.EthContract?>.value(),
|
||||
) as _i5.Future<_i12.EthContract?>);
|
||||
returnValue: _i5.Future<_i13.EthContract?>.value(),
|
||||
) as _i5.Future<_i13.EthContract?>);
|
||||
@override
|
||||
_i12.EthContract? getEthContractSync(String? contractAddress) =>
|
||||
_i13.EthContract? getEthContractSync(String? contractAddress) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getEthContractSync,
|
||||
[contractAddress],
|
||||
)) as _i12.EthContract?);
|
||||
)) as _i13.EthContract?);
|
||||
@override
|
||||
_i5.Future<int> putEthContract(_i12.EthContract? contract) =>
|
||||
_i5.Future<int> putEthContract(_i13.EthContract? contract) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putEthContract,
|
||||
|
@ -1197,7 +1229,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
returnValue: _i5.Future<int>.value(0),
|
||||
) as _i5.Future<int>);
|
||||
@override
|
||||
_i5.Future<void> putEthContracts(List<_i12.EthContract>? contracts) =>
|
||||
_i5.Future<void> putEthContracts(List<_i13.EthContract>? contracts) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putEthContracts,
|
||||
|
|
|
@ -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/electrumx.dart' as _i12;
|
||||
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'
|
||||
as _i39;
|
||||
import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i37;
|
||||
as _i40;
|
||||
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/stack_theme.dart' as _i35;
|
||||
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/sync_type_enum.dart' as _i28;
|
||||
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;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
@ -3079,13 +3080,44 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
|
|||
returnValue: _i21.Future<bool>.value(false),
|
||||
) as _i21.Future<bool>);
|
||||
@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(
|
||||
#getContactEntries,
|
||||
[],
|
||||
),
|
||||
returnValue: <_i37.ContactEntry>[],
|
||||
) as List<_i37.ContactEntry>);
|
||||
returnValue: <_i38.ContactEntry>[],
|
||||
) as List<_i38.ContactEntry>);
|
||||
@override
|
||||
_i21.Future<bool> deleteContactEntry({required String? id}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -3107,15 +3139,15 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
|
|||
returnValue: _i21.Future<bool>.value(false),
|
||||
) as _i21.Future<bool>);
|
||||
@override
|
||||
_i37.ContactEntry? getContactEntry({required String? id}) =>
|
||||
_i38.ContactEntry? getContactEntry({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getContactEntry,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i37.ContactEntry?);
|
||||
)) as _i38.ContactEntry?);
|
||||
@override
|
||||
_i21.Future<bool> putContactEntry(
|
||||
{required _i37.ContactEntry? contactEntry}) =>
|
||||
{required _i38.ContactEntry? contactEntry}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putContactEntry,
|
||||
|
@ -3125,16 +3157,16 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
|
|||
returnValue: _i21.Future<bool>.value(false),
|
||||
) as _i21.Future<bool>);
|
||||
@override
|
||||
_i38.TransactionBlockExplorer? getTransactionBlockExplorer(
|
||||
_i39.TransactionBlockExplorer? getTransactionBlockExplorer(
|
||||
{required _i20.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getTransactionBlockExplorer,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i38.TransactionBlockExplorer?);
|
||||
)) as _i39.TransactionBlockExplorer?);
|
||||
@override
|
||||
_i21.Future<int> putTransactionBlockExplorer(
|
||||
_i38.TransactionBlockExplorer? explorer) =>
|
||||
_i39.TransactionBlockExplorer? explorer) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putTransactionBlockExplorer,
|
||||
|
@ -3593,7 +3625,7 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
|
|||
) as _i21.Future<void>);
|
||||
@override
|
||||
_i21.Future<List<int>> updateOrPutTransactionV2s(
|
||||
List<_i39.TransactionV2>? transactions) =>
|
||||
List<_i40.TransactionV2>? transactions) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateOrPutTransactionV2s,
|
||||
|
|
Loading…
Reference in a new issue