diff --git a/android/build.gradle b/android/build.gradle index 28e4d5fc8..d2ffbffa4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '2.0.20' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.3.1' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() @@ -18,12 +5,12 @@ allprojects { } } -rootProject.buildDir = '../build' +rootProject.buildDir = "../build" subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { - project.evaluationDependsOn(':app') + project.evaluationDependsOn(":app") } tasks.register("clean", Delete) { diff --git a/android/gradle.properties b/android/gradle.properties index 38c8d4544..7803bf46c 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,4 +1,3 @@ -org.gradle.jvmargs=-Xmx1536M -android.enableR8=true +org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G android.useAndroidX=true -android.enableJetifier=true +android.enableJetifier=true \ No newline at end of file diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 6b665338b..7bb2df6ba 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,5 @@ -#Fri Jun 23 08:50:38 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip diff --git a/android/settings.gradle b/android/settings.gradle index 44e62bcf0..b9e43bd37 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.1.0" apply false + id "org.jetbrains.kotlin.android" version "1.8.22" apply false +} + +include ":app" diff --git a/crypto_plugins/flutter_libepiccash b/crypto_plugins/flutter_libepiccash index 46a7da857..844bbf081 160000 --- a/crypto_plugins/flutter_libepiccash +++ b/crypto_plugins/flutter_libepiccash @@ -1 +1 @@ -Subproject commit 46a7da857d4113eb3998567b18ac0b33a470f4fd +Subproject commit 844bbf08115bde7bb9da4e7ee83edd67dd9695a7 diff --git a/crypto_plugins/flutter_liblelantus b/crypto_plugins/flutter_liblelantus index f8746dbef..8120d1dd3 160000 --- a/crypto_plugins/flutter_liblelantus +++ b/crypto_plugins/flutter_liblelantus @@ -1 +1 @@ -Subproject commit f8746dbef5c5ad5ed2dad12f615723d087083e9c +Subproject commit 8120d1dd3dc21a7b64cb176df3419f44fc9505c3 diff --git a/crypto_plugins/flutter_libmonero b/crypto_plugins/flutter_libmonero index c0b899400..7186b0bb9 160000 --- a/crypto_plugins/flutter_libmonero +++ b/crypto_plugins/flutter_libmonero @@ -1 +1 @@ -Subproject commit c0b8994009d29bc7fd2f0f2edbb004c39bf93951 +Subproject commit 7186b0bb936428cba441b69f77b508d007c50fb2 diff --git a/crypto_plugins/frostdart b/crypto_plugins/frostdart index 2a74a97fb..d3fa81695 160000 --- a/crypto_plugins/frostdart +++ b/crypto_plugins/frostdart @@ -1 +1 @@ -Subproject commit 2a74a97fb0f0e22a5280b22c010b710cdeec33bb +Subproject commit d3fa8169524376579da08a5062ad88e45ee9b1eb diff --git a/lib/db/sqlite/firo_cache_writer.dart b/lib/db/sqlite/firo_cache_writer.dart index d42c48834..99d318444 100644 --- a/lib/db/sqlite/firo_cache_writer.dart +++ b/lib/db/sqlite/firo_cache_writer.dart @@ -19,8 +19,8 @@ FCResult _updateSparkUsedTagsWith( ) { // hash the tags here since this function is called in a background isolate final hashedTags = LibSpark.hashTags( - base64Tags: tags.map((e) => e[0] as String), - ); + base64Tags: tags.map((e) => e[0] as String).toSet(), + ).toList(); if (hashedTags.isEmpty) { // nothing to add, return early diff --git a/lib/models/isar/exchange_cache/currency.g.dart b/lib/models/isar/exchange_cache/currency.g.dart index 8f81bfdc0..89d93a11d 100644 --- a/lib/models/isar/exchange_cache/currency.g.dart +++ b/lib/models/isar/exchange_cache/currency.g.dart @@ -7,7 +7,7 @@ part of 'currency.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetCurrencyCollection on Isar { IsarCollection get currencies => this.collection(); @@ -135,7 +135,7 @@ const CurrencySchema = CollectionSchema( getId: _currencyGetId, getLinks: _currencyGetLinks, attach: _currencyAttach, - version: '3.0.5', + version: '3.1.8', ); int _currencyEstimateSize( diff --git a/lib/models/isar/exchange_cache/pair.g.dart b/lib/models/isar/exchange_cache/pair.g.dart index eae9ee5b5..0f9b6435d 100644 --- a/lib/models/isar/exchange_cache/pair.g.dart +++ b/lib/models/isar/exchange_cache/pair.g.dart @@ -7,7 +7,7 @@ part of 'pair.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetPairCollection on Isar { IsarCollection get pairs => this.collection(); @@ -92,7 +92,7 @@ const PairSchema = CollectionSchema( getId: _pairGetId, getLinks: _pairGetLinks, attach: _pairAttach, - version: '3.0.5', + version: '3.1.8', ); int _pairEstimateSize( diff --git a/lib/models/isar/models/address_label.g.dart b/lib/models/isar/models/address_label.g.dart index 2a6b41e70..a87af5963 100644 --- a/lib/models/isar/models/address_label.g.dart +++ b/lib/models/isar/models/address_label.g.dart @@ -7,7 +7,7 @@ part of 'address_label.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetAddressLabelCollection on Isar { IsarCollection get addressLabels => this.collection(); @@ -81,7 +81,7 @@ const AddressLabelSchema = CollectionSchema( getId: _addressLabelGetId, getLinks: _addressLabelGetLinks, attach: _addressLabelAttach, - version: '3.0.5', + version: '3.1.8', ); int _addressLabelEstimateSize( diff --git a/lib/models/isar/models/block_explorer.g.dart b/lib/models/isar/models/block_explorer.g.dart index f524392d5..0c4be65bc 100644 --- a/lib/models/isar/models/block_explorer.g.dart +++ b/lib/models/isar/models/block_explorer.g.dart @@ -7,7 +7,7 @@ part of 'block_explorer.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetTransactionBlockExplorerCollection on Isar { IsarCollection get transactionBlockExplorers => @@ -54,7 +54,7 @@ const TransactionBlockExplorerSchema = CollectionSchema( getId: _transactionBlockExplorerGetId, getLinks: _transactionBlockExplorerGetLinks, attach: _transactionBlockExplorerAttach, - version: '3.0.5', + version: '3.1.8', ); int _transactionBlockExplorerEstimateSize( diff --git a/lib/models/isar/models/blockchain_data/address.g.dart b/lib/models/isar/models/blockchain_data/address.g.dart index 7e78cbee8..fc3597585 100644 --- a/lib/models/isar/models/blockchain_data/address.g.dart +++ b/lib/models/isar/models/blockchain_data/address.g.dart @@ -7,7 +7,7 @@ part of 'address.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetAddressCollection on Isar { IsarCollection
get addresses => this.collection(); @@ -124,7 +124,7 @@ const AddressSchema = CollectionSchema( getId: _addressGetId, getLinks: _addressGetLinks, attach: _addressAttach, - version: '3.0.5', + version: '3.1.8', ); int _addressEstimateSize( @@ -1821,7 +1821,7 @@ extension AddressQueryProperty // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const DerivationPathSchema = Schema( name: r'DerivationPath', diff --git a/lib/models/isar/models/blockchain_data/input.g.dart b/lib/models/isar/models/blockchain_data/input.g.dart index 608446fea..a08dc7637 100644 --- a/lib/models/isar/models/blockchain_data/input.g.dart +++ b/lib/models/isar/models/blockchain_data/input.g.dart @@ -7,7 +7,7 @@ part of 'input.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const InputSchema = Schema( name: r'Input', diff --git a/lib/models/isar/models/blockchain_data/output.g.dart b/lib/models/isar/models/blockchain_data/output.g.dart index 5e3bbf02d..6a5812373 100644 --- a/lib/models/isar/models/blockchain_data/output.g.dart +++ b/lib/models/isar/models/blockchain_data/output.g.dart @@ -7,7 +7,7 @@ part of 'output.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const OutputSchema = Schema( name: r'Output', diff --git a/lib/models/isar/models/blockchain_data/transaction.g.dart b/lib/models/isar/models/blockchain_data/transaction.g.dart index 965a64870..0d34d133d 100644 --- a/lib/models/isar/models/blockchain_data/transaction.g.dart +++ b/lib/models/isar/models/blockchain_data/transaction.g.dart @@ -7,7 +7,7 @@ part of 'transaction.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetTransactionCollection on Isar { IsarCollection get transactions => this.collection(); @@ -171,7 +171,7 @@ const TransactionSchema = CollectionSchema( getId: _transactionGetId, getLinks: _transactionGetLinks, attach: _transactionAttach, - version: '3.0.5', + version: '3.1.8', ); int _transactionEstimateSize( diff --git a/lib/models/isar/models/blockchain_data/utxo.g.dart b/lib/models/isar/models/blockchain_data/utxo.g.dart index b12e9b470..0d2a0fcd7 100644 --- a/lib/models/isar/models/blockchain_data/utxo.g.dart +++ b/lib/models/isar/models/blockchain_data/utxo.g.dart @@ -7,7 +7,7 @@ part of 'utxo.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetUTXOCollection on Isar { IsarCollection get utxos => this.collection(); @@ -149,7 +149,7 @@ const UTXOSchema = CollectionSchema( getId: _uTXOGetId, getLinks: _uTXOGetLinks, attach: _uTXOAttach, - version: '3.0.5', + version: '3.1.8', ); int _uTXOEstimateSize( diff --git a/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart b/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart index c1a3b781b..fb0e9dd61 100644 --- a/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart +++ b/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart @@ -7,7 +7,7 @@ part of 'input_v2.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const OutpointV2Schema = Schema( name: r'OutpointV2', @@ -330,7 +330,7 @@ extension OutpointV2QueryObject on QueryBuilder {} // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const InputV2Schema = Schema( name: r'InputV2', diff --git a/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart b/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart index e26075d44..539ad6dbd 100644 --- a/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart +++ b/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart @@ -7,7 +7,7 @@ part of 'output_v2.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const OutputV2Schema = Schema( name: r'OutputV2', diff --git a/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart b/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart index 83006da89..68d8a18c5 100644 --- a/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart +++ b/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart @@ -7,7 +7,7 @@ part of 'transaction_v2.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetTransactionV2Collection on Isar { IsarCollection get transactionV2s => this.collection(); @@ -177,7 +177,7 @@ const TransactionV2Schema = CollectionSchema( getId: _transactionV2GetId, getLinks: _transactionV2GetLinks, attach: _transactionV2Attach, - version: '3.0.5', + version: '3.1.8', ); int _transactionV2EstimateSize( diff --git a/lib/models/isar/models/contact_entry.g.dart b/lib/models/isar/models/contact_entry.g.dart index dc1eb2b61..282112f55 100644 --- a/lib/models/isar/models/contact_entry.g.dart +++ b/lib/models/isar/models/contact_entry.g.dart @@ -7,7 +7,7 @@ part of 'contact_entry.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetContactEntryCollection on Isar { IsarCollection get contactEntrys => this.collection(); @@ -69,7 +69,7 @@ const ContactEntrySchema = CollectionSchema( getId: _contactEntryGetId, getLinks: _contactEntryGetLinks, attach: _contactEntryAttach, - version: '3.0.5', + version: '3.1.8', ); int _contactEntryEstimateSize( @@ -1142,7 +1142,7 @@ extension ContactEntryQueryProperty // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const ContactAddressEntrySchema = Schema( name: r'ContactAddressEntry', diff --git a/lib/models/isar/models/encrypted_string_value.g.dart b/lib/models/isar/models/encrypted_string_value.g.dart index fdfe5527a..5b3490dcc 100644 --- a/lib/models/isar/models/encrypted_string_value.g.dart +++ b/lib/models/isar/models/encrypted_string_value.g.dart @@ -7,7 +7,7 @@ part of 'encrypted_string_value.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetEncryptedStringValueCollection on Isar { IsarCollection get encryptedStringValues => @@ -54,7 +54,7 @@ const EncryptedStringValueSchema = CollectionSchema( getId: _encryptedStringValueGetId, getLinks: _encryptedStringValueGetLinks, attach: _encryptedStringValueAttach, - version: '3.0.5', + version: '3.1.8', ); int _encryptedStringValueEstimateSize( diff --git a/lib/models/isar/models/ethereum/eth_contract.g.dart b/lib/models/isar/models/ethereum/eth_contract.g.dart index bc9548e8d..fcb1af11d 100644 --- a/lib/models/isar/models/ethereum/eth_contract.g.dart +++ b/lib/models/isar/models/ethereum/eth_contract.g.dart @@ -7,7 +7,7 @@ part of 'eth_contract.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetEthContractCollection on Isar { IsarCollection get ethContracts => this.collection(); @@ -74,7 +74,7 @@ const EthContractSchema = CollectionSchema( getId: _ethContractGetId, getLinks: _ethContractGetLinks, attach: _ethContractAttach, - version: '3.0.5', + version: '3.1.8', ); int _ethContractEstimateSize( diff --git a/lib/models/isar/models/firo_specific/lelantus_coin.g.dart b/lib/models/isar/models/firo_specific/lelantus_coin.g.dart index 4b9214889..1c0f4d405 100644 --- a/lib/models/isar/models/firo_specific/lelantus_coin.g.dart +++ b/lib/models/isar/models/firo_specific/lelantus_coin.g.dart @@ -7,7 +7,7 @@ part of 'lelantus_coin.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetLelantusCoinCollection on Isar { IsarCollection get lelantusCoins => this.collection(); @@ -101,7 +101,7 @@ const LelantusCoinSchema = CollectionSchema( getId: _lelantusCoinGetId, getLinks: _lelantusCoinGetLinks, attach: _lelantusCoinAttach, - version: '3.0.5', + version: '3.1.8', ); int _lelantusCoinEstimateSize( diff --git a/lib/models/isar/models/log.g.dart b/lib/models/isar/models/log.g.dart index 8a4cf22b1..ebad873f2 100644 --- a/lib/models/isar/models/log.g.dart +++ b/lib/models/isar/models/log.g.dart @@ -7,7 +7,7 @@ part of 'log.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetLogCollection on Isar { IsarCollection get logs => this.collection(); @@ -59,7 +59,7 @@ const LogSchema = CollectionSchema( getId: _logGetId, getLinks: _logGetLinks, attach: _logAttach, - version: '3.0.5', + version: '3.1.8', ); int _logEstimateSize( diff --git a/lib/models/isar/models/sent_to_address.g.dart b/lib/models/isar/models/sent_to_address.g.dart index 304d2c5fc..88153da9d 100644 --- a/lib/models/isar/models/sent_to_address.g.dart +++ b/lib/models/isar/models/sent_to_address.g.dart @@ -7,7 +7,7 @@ part of 'sent_to_address.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetSentToAddressCollection on Isar { IsarCollection get sentToAddress => this.collection(); @@ -81,7 +81,7 @@ const SentToAddressSchema = CollectionSchema( getId: _sentToAddressGetId, getLinks: _sentToAddressGetLinks, attach: _sentToAddressAttach, - version: '3.0.5', + version: '3.1.8', ); int _sentToAddressEstimateSize( diff --git a/lib/models/isar/models/transaction_note.g.dart b/lib/models/isar/models/transaction_note.g.dart index 152070328..67af8cdca 100644 --- a/lib/models/isar/models/transaction_note.g.dart +++ b/lib/models/isar/models/transaction_note.g.dart @@ -7,7 +7,7 @@ part of 'transaction_note.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetTransactionNoteCollection on Isar { IsarCollection get transactionNotes => this.collection(); @@ -76,7 +76,7 @@ const TransactionNoteSchema = CollectionSchema( getId: _transactionNoteGetId, getLinks: _transactionNoteGetLinks, attach: _transactionNoteAttach, - version: '3.0.5', + version: '3.1.8', ); int _transactionNoteEstimateSize( diff --git a/lib/models/isar/ordinal.g.dart b/lib/models/isar/ordinal.g.dart index 89c967cb0..5c23e11bb 100644 --- a/lib/models/isar/ordinal.g.dart +++ b/lib/models/isar/ordinal.g.dart @@ -7,7 +7,7 @@ part of 'ordinal.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetOrdinalCollection on Isar { IsarCollection get ordinals => this.collection(); @@ -83,7 +83,7 @@ const OrdinalSchema = CollectionSchema( getId: _ordinalGetId, getLinks: _ordinalGetLinks, attach: _ordinalAttach, - version: '3.0.5', + version: '3.1.8', ); int _ordinalEstimateSize( diff --git a/lib/models/isar/stack_theme.g.dart b/lib/models/isar/stack_theme.g.dart index 03c543ff0..c77d979f5 100644 --- a/lib/models/isar/stack_theme.g.dart +++ b/lib/models/isar/stack_theme.g.dart @@ -7,7 +7,7 @@ part of 'stack_theme.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetStackThemeCollection on Isar { IsarCollection get stackThemes => this.collection(); @@ -860,7 +860,7 @@ const StackThemeSchema = CollectionSchema( getId: _stackThemeGetId, getLinks: _stackThemeGetLinks, attach: _stackThemeAttach, - version: '3.0.5', + version: '3.1.8', ); int _stackThemeEstimateSize( @@ -18012,7 +18012,7 @@ extension StackThemeQueryProperty // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const ThemeAssetsSchema = Schema( name: r'ThemeAssets', @@ -25833,7 +25833,7 @@ extension ThemeAssetsQueryObject on QueryBuilder {} // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const ThemeAssetsV2Schema = Schema( name: r'ThemeAssetsV2', @@ -29441,7 +29441,7 @@ extension ThemeAssetsV2QueryObject on QueryBuilder {} // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types const ThemeAssetsV3Schema = Schema( name: r'ThemeAssetsV3', diff --git a/lib/pages/add_wallet_views/restore_wallet_view/restore_wallet_view.dart b/lib/pages/add_wallet_views/restore_wallet_view/restore_wallet_view.dart index 4c26ff3fa..1e0b259fd 100644 --- a/lib/pages/add_wallet_views/restore_wallet_view/restore_wallet_view.dart +++ b/lib/pages/add_wallet_views/restore_wallet_view/restore_wallet_view.dart @@ -22,7 +22,7 @@ import 'package:flutter_libmonero/monero/monero.dart' as libxmr; import 'package:flutter_libmonero/wownero/wownero.dart' as libwow; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_svg/flutter_svg.dart'; -import 'package:wakelock/wakelock.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; import '../../../notifications/show_flush_bar.dart'; import '../../../pages_desktop_specific/desktop_home_view.dart'; @@ -282,7 +282,7 @@ class _RestoreWalletViewState extends ConsumerState { ), ); } else { - if (!Platform.isLinux) await Wakelock.enable(); + if (!Platform.isLinux) await WakelockPlus.enable(); final info = WalletInfo.createNew( coin: widget.coin, @@ -426,12 +426,12 @@ class _RestoreWalletViewState extends ConsumerState { } if (!Platform.isLinux && !isDesktop) { - await Wakelock.disable(); + await WakelockPlus.disable(); } } } catch (e) { if (!Platform.isLinux && !isDesktop) { - await Wakelock.disable(); + await WakelockPlus.disable(); } // if (e is HiveError && @@ -463,7 +463,7 @@ class _RestoreWalletViewState extends ConsumerState { } if (!Platform.isLinux && !isDesktop) { - await Wakelock.disable(); + await WakelockPlus.disable(); } } } diff --git a/lib/pages/cashfusion/fusion_progress_view.dart b/lib/pages/cashfusion/fusion_progress_view.dart index e4d787903..022fa0861 100644 --- a/lib/pages/cashfusion/fusion_progress_view.dart +++ b/lib/pages/cashfusion/fusion_progress_view.dart @@ -12,7 +12,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:wakelock/wakelock.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; import '../../pages_desktop_specific/cashfusion/sub_widgets/fusion_progress.dart'; import '../../providers/cash_fusion/fusion_progress_ui_state_provider.dart'; @@ -85,7 +85,7 @@ class _FusionProgressViewState extends ConsumerState { message: "Stopping fusion", ); - await Wakelock.disable(); + await WakelockPlus.disable(); return true; } else { @@ -101,7 +101,7 @@ class _FusionProgressViewState extends ConsumerState { @override void dispose() { - Wakelock.disable(); + WakelockPlus.disable(); super.dispose(); } @@ -117,7 +117,7 @@ class _FusionProgressViewState extends ConsumerState { .watch(fusionProgressUIStateProvider(widget.walletId)) .fusionRoundsCompleted; - Wakelock.enable(); + WakelockPlus.enable(); return WillPopScope( onWillPop: () async { diff --git a/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart b/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart index d0f964116..a4d7d69fe 100644 --- a/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart +++ b/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart @@ -18,7 +18,7 @@ import 'package:isar/isar.dart'; import 'package:stack_wallet_backup/stack_wallet_backup.dart'; import 'package:tuple/tuple.dart'; import 'package:uuid/uuid.dart'; -import 'package:wakelock/wakelock.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; import '../../../../../app_config.dart'; import '../../../../../db/hive/db.dart'; @@ -700,7 +700,7 @@ abstract class SWB { StackRestoringUIState? uiState, SecureStorageInterface secureStorageInterface, ) async { - if (!Platform.isLinux) await Wakelock.enable(); + if (!Platform.isLinux) await WakelockPlus.enable(); Logging.instance.log( "SWB creating temp backup", @@ -914,7 +914,7 @@ abstract class SWB { await status; } - if (!Platform.isLinux) await Wakelock.disable(); + if (!Platform.isLinux) await WakelockPlus.disable(); // check if cancel was requested and restore previous state if (_checkShouldCancel( preRestoreState, diff --git a/lib/pages/settings_views/wallet_settings_view/wallet_network_settings_view/wallet_network_settings_view.dart b/lib/pages/settings_views/wallet_settings_view/wallet_network_settings_view/wallet_network_settings_view.dart index e15fad011..1be577f1d 100644 --- a/lib/pages/settings_views/wallet_settings_view/wallet_network_settings_view/wallet_network_settings_view.dart +++ b/lib/pages/settings_views/wallet_settings_view/wallet_network_settings_view/wallet_network_settings_view.dart @@ -16,7 +16,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_svg/svg.dart'; import 'package:tuple/tuple.dart'; -import 'package:wakelock/wakelock.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; import '../../../../providers/providers.dart'; import '../../../../route_generator.dart'; @@ -125,7 +125,7 @@ class _WalletNetworkSettingsViewState } Future _attemptRescan() async { - if (!Platform.isLinux) await Wakelock.enable(); + if (!Platform.isLinux) await WakelockPlus.enable(); try { if (mounted) { @@ -180,7 +180,7 @@ class _WalletNetworkSettingsViewState ); } } catch (e) { - if (!Platform.isLinux) await Wakelock.disable(); + if (!Platform.isLinux) await WakelockPlus.disable(); if (mounted) { // pop rescanning dialog @@ -212,7 +212,7 @@ class _WalletNetworkSettingsViewState } } } finally { - if (!Platform.isLinux) await Wakelock.disable(); + if (!Platform.isLinux) await WakelockPlus.disable(); } } diff --git a/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart b/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart index 09bce3a3b..8eb43d648 100644 --- a/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart +++ b/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:wakelock/wakelock.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; import '../../../providers/cash_fusion/fusion_progress_ui_state_provider.dart'; import '../../../providers/global/prefs_provider.dart'; @@ -139,7 +139,7 @@ class _FusionDialogViewState extends ConsumerState { message: "Stopping fusion", ); - await Wakelock.disable(); + await WakelockPlus.disable(); return true; } else { @@ -156,7 +156,7 @@ class _FusionDialogViewState extends ConsumerState { @override dispose() { - Wakelock.disable(); + WakelockPlus.disable(); super.dispose(); } @@ -173,7 +173,7 @@ class _FusionDialogViewState extends ConsumerState { .fusionRoundsCompleted; if (!Platform.isLinux) { - Wakelock.enable(); + WakelockPlus.enable(); } return DesktopDialog( diff --git a/lib/utilities/biometrics.dart b/lib/utilities/biometrics.dart index 18e27cbfb..37dae231c 100644 --- a/lib/utilities/biometrics.dart +++ b/lib/utilities/biometrics.dart @@ -10,8 +10,8 @@ import 'dart:io'; -import 'package:local_auth/auth_strings.dart'; import 'package:local_auth/local_auth.dart'; +import 'package:local_auth_android/local_auth_android.dart'; import 'logger.dart'; @@ -62,10 +62,11 @@ class Biometrics { if (availableSystems.contains(BiometricType.face)) { try { final bool didAuthenticate = await localAuth.authenticate( - biometricOnly: true, localizedReason: localizedReason, - stickyAuth: true, - iOSAuthStrings: const IOSAuthMessages(), + options: const AuthenticationOptions( + stickyAuth: true, + biometricOnly: true, + ), ); if (didAuthenticate) { @@ -80,10 +81,11 @@ class Biometrics { } else if (availableSystems.contains(BiometricType.fingerprint)) { try { final bool didAuthenticate = await localAuth.authenticate( - biometricOnly: true, localizedReason: localizedReason, - stickyAuth: true, - iOSAuthStrings: const IOSAuthMessages(), + options: const AuthenticationOptions( + stickyAuth: true, + biometricOnly: true, + ), ); if (didAuthenticate) { @@ -100,14 +102,18 @@ class Biometrics { if (availableSystems.contains(BiometricType.fingerprint)) { try { final bool didAuthenticate = await localAuth.authenticate( - biometricOnly: true, localizedReason: localizedReason, - stickyAuth: true, - androidAuthStrings: AndroidAuthMessages( - biometricHint: "", - cancelButton: cancelButtonText, - signInTitle: title, + options: const AuthenticationOptions( + stickyAuth: true, + biometricOnly: true, ), + authMessages: [ + AndroidAuthMessages( + biometricHint: "", + cancelButton: cancelButtonText, + signInTitle: title, + ), + ], ); if (didAuthenticate) { diff --git a/lib/wallets/isar/models/frost_wallet_info.g.dart b/lib/wallets/isar/models/frost_wallet_info.g.dart index 6c80125e2..a2c7534d0 100644 --- a/lib/wallets/isar/models/frost_wallet_info.g.dart +++ b/lib/wallets/isar/models/frost_wallet_info.g.dart @@ -7,7 +7,7 @@ part of 'frost_wallet_info.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetFrostWalletInfoCollection on Isar { IsarCollection get frostWalletInfo => this.collection(); @@ -68,7 +68,7 @@ const FrostWalletInfoSchema = CollectionSchema( getId: _frostWalletInfoGetId, getLinks: _frostWalletInfoGetLinks, attach: _frostWalletInfoAttach, - version: '3.0.5', + version: '3.1.8', ); int _frostWalletInfoEstimateSize( diff --git a/lib/wallets/isar/models/spark_coin.g.dart b/lib/wallets/isar/models/spark_coin.g.dart index 75cd92b62..717d1a2c6 100644 --- a/lib/wallets/isar/models/spark_coin.g.dart +++ b/lib/wallets/isar/models/spark_coin.g.dart @@ -7,7 +7,7 @@ part of 'spark_coin.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetSparkCoinCollection on Isar { IsarCollection get sparkCoins => this.collection(); @@ -139,7 +139,7 @@ const SparkCoinSchema = CollectionSchema( getId: _sparkCoinGetId, getLinks: _sparkCoinGetLinks, attach: _sparkCoinAttach, - version: '3.0.5', + version: '3.1.8', ); int _sparkCoinEstimateSize( diff --git a/lib/wallets/isar/models/token_wallet_info.g.dart b/lib/wallets/isar/models/token_wallet_info.g.dart index bdf6a060a..f5d8555ab 100644 --- a/lib/wallets/isar/models/token_wallet_info.g.dart +++ b/lib/wallets/isar/models/token_wallet_info.g.dart @@ -7,7 +7,7 @@ part of 'token_wallet_info.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetTokenWalletInfoCollection on Isar { IsarCollection get tokenWalletInfo => this.collection(); @@ -68,7 +68,7 @@ const TokenWalletInfoSchema = CollectionSchema( getId: _tokenWalletInfoGetId, getLinks: _tokenWalletInfoGetLinks, attach: _tokenWalletInfoAttach, - version: '3.0.5', + version: '3.1.8', ); int _tokenWalletInfoEstimateSize( diff --git a/lib/wallets/isar/models/wallet_info.g.dart b/lib/wallets/isar/models/wallet_info.g.dart index bc0a5828e..89c5511fa 100644 --- a/lib/wallets/isar/models/wallet_info.g.dart +++ b/lib/wallets/isar/models/wallet_info.g.dart @@ -7,7 +7,7 @@ part of 'wallet_info.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetWalletInfoCollection on Isar { IsarCollection get walletInfo => this.collection(); @@ -114,7 +114,7 @@ const WalletInfoSchema = CollectionSchema( getId: _walletInfoGetId, getLinks: _walletInfoGetLinks, attach: _walletInfoAttach, - version: '3.0.5', + version: '3.1.8', ); int _walletInfoEstimateSize( diff --git a/lib/wallets/isar/models/wallet_info_meta.g.dart b/lib/wallets/isar/models/wallet_info_meta.g.dart index 619bc1ac5..d8f578929 100644 --- a/lib/wallets/isar/models/wallet_info_meta.g.dart +++ b/lib/wallets/isar/models/wallet_info_meta.g.dart @@ -7,7 +7,7 @@ part of 'wallet_info_meta.dart'; // ************************************************************************** // coverage:ignore-file -// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters +// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetWalletInfoMetaCollection on Isar { IsarCollection get walletInfoMeta => this.collection(); @@ -53,7 +53,7 @@ const WalletInfoMetaSchema = CollectionSchema( getId: _walletInfoMetaGetId, getLinks: _walletInfoMetaGetLinks, attach: _walletInfoMetaAttach, - version: '3.0.5', + version: '3.1.8', ); int _walletInfoMetaEstimateSize( diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index ca56fcfeb..a8e802cea 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -15,13 +15,14 @@ import flutter_local_notifications import flutter_secure_storage_macos import isar_flutter_libs import lelantus +import local_auth_darwin import package_info_plus import path_provider_foundation import share_plus import sqlite3_flutter_libs import stack_wallet_backup import url_launcher_macos -import wakelock_macos +import wakelock_plus import window_size func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { @@ -35,12 +36,13 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin")) IsarFlutterLibsPlugin.register(with: registry.registrar(forPlugin: "IsarFlutterLibsPlugin")) LelantusPlugin.register(with: registry.registrar(forPlugin: "LelantusPlugin")) - FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) + FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) Sqlite3FlutterLibsPlugin.register(with: registry.registrar(forPlugin: "Sqlite3FlutterLibsPlugin")) StackWalletBackupPlugin.register(with: registry.registrar(forPlugin: "StackWalletBackupPlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) - WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin")) + WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin")) WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin")) } diff --git a/pubspec.lock b/pubspec.lock index 71163db91..992e17f6b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,18 +5,23 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a + sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 url: "https://pub.dev" source: hosted - version: "61.0.0" + version: "72.0.0" + _macros: + dependency: transitive + description: dart + source: sdk + version: "0.3.2" analyzer: dependency: "direct dev" description: name: analyzer - sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562 + sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 url: "https://pub.dev" source: hosted - version: "5.13.0" + version: "6.7.0" another_flushbar: dependency: "direct main" description: @@ -29,10 +34,10 @@ packages: dependency: transitive description: name: ansicolor - sha256: "8bf17a8ff6ea17499e40a2d2542c2f481cd7615760c6d34065cb22bfd22e6880" + sha256: "50e982d500bc863e1d703448afdbf9e5a72eb48840a4f766fa361ffd6877055f" url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "2.0.3" archive: dependency: "direct main" description: @@ -45,18 +50,18 @@ packages: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.5.0" asn1lib: dependency: transitive description: name: asn1lib - sha256: "21afe4333076c02877d14f4a89df111e658a6d466cbfc802eb705eb91bd5adfd" + sha256: "2ca377ad4d677bbadca278e0ba4da4e057b80a10b927bfc8f7d8bda8fe2ceb75" url: "https://pub.dev" source: hosted - version: "1.5.0" + version: "1.5.4" async: dependency: "direct main" description: @@ -69,18 +74,18 @@ packages: dependency: "direct main" description: name: barcode_scan2 - sha256: "0b0625d27841a21e36e896195d86b2aada335e3c486f63647cce701495718e16" + sha256: a2ab566027cd57b2795ea42aa26835dbaa8fe70bcc1aff54942a14d3705dff97 url: "https://pub.dev" source: hosted - version: "4.2.4" + version: "4.3.3" basic_utils: dependency: "direct main" description: name: basic_utils - sha256: "8815477fcf58499e42326bd858e391442425fa57db9a45e48e15224c62049262" + sha256: "2064b21d3c41ed7654bc82cc476fd65542e04d60059b74d5eed490a4da08fc6c" url: "https://pub.dev" source: hosted - version: "5.5.4" + version: "5.7.0" bech32: dependency: "direct main" description: @@ -194,34 +199,34 @@ packages: dependency: transitive description: name: build_daemon - sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65" + sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.2" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: d912852cce27c9e80a93603db721c267716894462e7033165178b91138587972 + sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.2" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b" + sha256: dd09dd4e2b078992f42aac7f1a622f01882a8492fef08486b27ddde929c19f04 url: "https://pub.dev" source: hosted - version: "2.4.6" + version: "2.4.12" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41" + sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 url: "https://pub.dev" source: hosted - version: "7.2.10" + version: "7.3.2" built_collection: dependency: transitive description: @@ -234,18 +239,18 @@ packages: dependency: transitive description: name: built_value - sha256: ff627b645b28fb8bdb69e645f910c2458fd6b65f6585c3a53e0626024897dedf + sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb url: "https://pub.dev" source: hosted - version: "8.6.2" + version: "8.9.2" calendar_date_picker2: dependency: "direct main" description: name: calendar_date_picker2 - sha256: "7ff3f372faff6814a2ba69427d116fb9a3d52e28644b9de4b06db6638fdac798" + sha256: "986955aea43081c8cf70fe01735ccdfe9a7041218b2be53ed92d5d4e639e8a1a" url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.1.7" camera_linux: dependency: "direct main" description: @@ -307,10 +312,10 @@ packages: dependency: transitive description: name: cli_util - sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 + sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 url: "https://pub.dev" source: hosted - version: "0.4.0" + version: "0.4.1" clock: dependency: transitive description: @@ -323,28 +328,28 @@ packages: dependency: transitive description: name: code_builder - sha256: "315a598c7fbe77f22de1c9da7cfd6fd21816312f16ffa124453b4fc679e540f1" + sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 url: "https://pub.dev" source: hosted - version: "4.6.0" + version: "4.10.0" coinlib: dependency: "direct overridden" description: path: coinlib - ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f - resolved-ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f - url: "https://github.com/peercoin/coinlib.git" + ref: "0acacfd17eacf72135c693a7b862bd9b7cc56739" + resolved-ref: "0acacfd17eacf72135c693a7b862bd9b7cc56739" + url: "https://github.com/julian-CStack/coinlib.git" source: git - version: "2.1.0-rc.1" + version: "2.2.0" coinlib_flutter: dependency: "direct main" description: path: coinlib_flutter - ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f - resolved-ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f - url: "https://github.com/peercoin/coinlib.git" + ref: "0acacfd17eacf72135c693a7b862bd9b7cc56739" + resolved-ref: "0acacfd17eacf72135c693a7b862bd9b7cc56739" + url: "https://github.com/julian-CStack/coinlib.git" source: git - version: "2.1.0-rc.1" + version: "2.2.0" collection: dependency: transitive description: @@ -381,18 +386,18 @@ packages: dependency: transitive description: name: coverage - sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + sha256: c1fb2dce3c0085f39dc72668e85f8e0210ec7de05345821ff58530567df345a5 url: "https://pub.dev" source: hosted - version: "1.7.2" + version: "1.9.2" cross_file: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.4+2" crypto: dependency: "direct main" description: @@ -405,10 +410,10 @@ packages: dependency: transitive description: name: cryptography - sha256: df156c5109286340817d21fa7b62f9140f17915077127dd70f8bd7a2a0997a35 + sha256: d146b76d33d94548cf035233fbc2f4338c1242fa119013bead807d033fc4ae05 url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.7.0" csslib: dependency: transitive description: @@ -474,10 +479,10 @@ packages: dependency: transitive description: name: dart_style - sha256: abd7625e16f51f554ea244d090292945ec4d4be7bfbaf2ec8cccea568919d334 + sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab" url: "https://pub.dev" source: hosted - version: "2.3.3" + version: "2.3.7" dartx: dependency: transitive description: @@ -490,10 +495,10 @@ packages: dependency: transitive description: name: dbus - sha256: "6f07cba3f7b3448d42d015bfd3d53fe12e5b36da2423f23838efc1d5fb31a263" + sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac" url: "https://pub.dev" source: hosted - version: "0.7.8" + version: "0.7.10" decimal: dependency: "direct main" description: @@ -506,18 +511,18 @@ packages: dependency: "direct dev" description: name: dependency_validator - sha256: "08349175533ed0bd06eb9b6043cde66c45b2bfc7ebc222a7542cdb1324f1bf03" + sha256: f727a5627aa405965fab4aef4f468e50a9b632ba0737fd2f98c932fec6d712b9 url: "https://pub.dev" source: hosted - version: "3.2.2" + version: "3.2.3" desktop_drop: dependency: "direct main" description: name: desktop_drop - sha256: ebba9c9cb0b54385998a977d741cc06fd8324878c08d5a36e9da61cd56b04cc6 + sha256: d55a010fe46c8e8fcff4ea4b451a9ff84a162217bdb3b2a0aa1479776205e15d url: "https://pub.dev" source: hosted - version: "0.4.3" + version: "0.4.4" device_info_plus: dependency: "direct main" description: @@ -538,18 +543,26 @@ packages: dependency: "direct main" description: name: devicelocale - sha256: "09cc0bce937b34dafcaac0b2a9b350d763dd16770f15e59560b7abaaaad3d65b" + sha256: "0812b66f9eac57bc55c6ed4c178e0779440aa4e4e7c7e32fe1db02a758501d0e" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.7.1" dio: dependency: transitive description: name: dio - sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5" + sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" url: "https://pub.dev" source: hosted - version: "5.4.3+1" + version: "5.7.0" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" + url: "https://pub.dev" + source: hosted + version: "2.0.0" dropdown_button2: dependency: "direct main" description: @@ -562,18 +575,18 @@ packages: dependency: transitive description: name: ed25519_hd_key - sha256: c5c9f11a03f5789bf9dcd9ae88d641571c802640851f1cacdb13123f171b3a26 + sha256: "31e191ec97492873067e46dc9cc0c7d55170559c83a478400feffa0627acaccf" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" eip1559: dependency: transitive description: name: eip1559 - sha256: de454d6321bd753eb79116e9ec4f8df20895c2e97f9a3839a032f3a728985516 + sha256: c2b81ac85f3e0e71aaf558201dd9a4600f051ece7ebacd0c5d70065c9b458004 url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.6.2" eip55: dependency: transitive description: @@ -702,10 +715,10 @@ packages: dependency: "direct main" description: name: flutter_hooks - sha256: "7c8db779c2d1010aa7f9ea3fbefe8f86524fcb87b69e8b0af31e1a4b55422dec" + sha256: cde36b12f7188c85286fba9b38cc5a902e7279f36dd676967106c041dc9dde70 url: "https://pub.dev" source: hosted - version: "0.20.3" + version: "0.20.5" flutter_launcher_icons: dependency: "direct dev" description: @@ -732,8 +745,8 @@ packages: dependency: "direct main" description: path: "." - ref: "7a11d0cadf8c7a6a5d5144dab18cef9536aa5943" - resolved-ref: "7a11d0cadf8c7a6a5d5144dab18cef9536aa5943" + ref: cc7b43b731e4a7906dd25d4364a08e34554cee19 + resolved-ref: cc7b43b731e4a7906dd25d4364a08e34554cee19 url: "https://github.com/cypherstack/flutter_libsparkmobile.git" source: git version: "0.0.1" @@ -741,58 +754,58 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 + sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" flutter_local_notifications: dependency: "direct main" description: name: flutter_local_notifications - sha256: f9a05409385b77b06c18f200a41c7c2711ebf7415669350bb0f8474c07bd40d1 + sha256: c500d5d9e7e553f06b61877ca6b9c8b92c570a4c8db371038702e8ce57f8a50f url: "https://pub.dev" source: hosted - version: "17.0.0" + version: "17.2.2" flutter_local_notifications_linux: dependency: transitive description: name: flutter_local_notifications_linux - sha256: "33f741ef47b5f63cc7f78fe75eeeac7e19f171ff3c3df054d84c1e38bedb6a03" + sha256: c49bd06165cad9beeb79090b18cd1eb0296f4bf4b23b84426e37dd7c027fc3af url: "https://pub.dev" source: hosted - version: "4.0.0+1" + version: "4.0.1" flutter_local_notifications_platform_interface: dependency: transitive description: name: flutter_local_notifications_platform_interface - sha256: "7cf643d6d5022f3baed0be777b0662cce5919c0a7b86e700299f22dc4ae660ef" + sha256: "85f8d07fe708c1bdcf45037f2c0109753b26ae077e9d9e899d55971711a4ea66" url: "https://pub.dev" source: hosted - version: "7.0.0+1" + version: "7.2.0" flutter_mobx: dependency: transitive description: name: flutter_mobx - sha256: "0da4add0016387a7bf309a0d0c41d36c6b3ae25ed7a176409267f166509e723e" + sha256: "859fbf452fa9c2519d2700b125dd7fb14c508bbdd7fb65e26ca8ff6c92280e2e" url: "https://pub.dev" source: hosted - version: "2.0.6+5" + version: "2.2.1+1" flutter_native_splash: dependency: "direct main" description: name: flutter_native_splash - sha256: ecff62b3b893f2f665de7e4ad3de89f738941fcfcaaba8ee601e749efafa4698 + sha256: "17d9671396fb8ec45ad10f4a975eb8a0f70bedf0fdaf0720b31ea9de6da8c4da" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.7" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle - sha256: "8cf40eebf5dec866a6d1956ad7b4f7016e6c0cc69847ab946833b7d43743809f" + sha256: "9ee02950848f61c4129af3d6ec84a1cfc0e47931abc746b03e7a3bc3e8ff6eda" url: "https://pub.dev" source: hosted - version: "2.0.19" + version: "2.0.22" flutter_riverpod: dependency: "direct main" description: @@ -813,34 +826,34 @@ packages: dependency: transitive description: name: flutter_secure_storage_linux - sha256: "3d5032e314774ee0e1a7d0a9f5e2793486f0dff2dd9ef5a23f4e3fb2a0ae6a9e" + sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" flutter_secure_storage_macos: dependency: transitive description: name: flutter_secure_storage_macos - sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c + sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.1.2" flutter_secure_storage_platform_interface: dependency: transitive description: name: flutter_secure_storage_platform_interface - sha256: "0d4d3a5dd4db28c96ae414d7ba3b8422fd735a8255642774803b2532c9a61d7e" + sha256: cf91ad32ce5adef6fba4d736a542baca9daf3beac4db2d04be350b87f69ac4a8 url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.1.2" flutter_secure_storage_web: dependency: transitive description: name: flutter_secure_storage_web - sha256: "30f84f102df9dcdaa2241866a958c2ec976902ebdaa8883fbfe525f1f2f3cf20" + sha256: f4ebff989b4f07b2656fb16b47852c0aab9fed9b4ec1c70103368337bc1886a9 url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "1.2.1" flutter_secure_storage_windows: dependency: transitive description: @@ -853,10 +866,10 @@ packages: dependency: "direct main" description: name: flutter_svg - sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338" + sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2" url: "https://pub.dev" source: hosted - version: "2.0.7" + version: "2.0.10+1" flutter_test: dependency: "direct dev" description: flutter @@ -879,10 +892,10 @@ packages: dependency: transitive description: name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "4.0.0" frostdart: dependency: "direct main" description: @@ -899,8 +912,8 @@ packages: dependency: "direct main" description: path: "." - ref: "7dd8ff0dc9cb0caaac795fa44841a26437edfec3" - resolved-ref: "7dd8ff0dc9cb0caaac795fa44841a26437edfec3" + ref: "9dc883f4432c8db4ec44cb8cc836963295d63952" + resolved-ref: "9dc883f4432c8db4ec44cb8cc836963295d63952" url: "https://github.com/cypherstack/fusiondart.git" source: git version: "1.0.0" @@ -916,18 +929,18 @@ packages: dependency: "direct main" description: name: google_fonts - sha256: "6b6f10f0ce3c42f6552d1c70d2c28d764cf22bb487f50f66cca31dcd5194f4d6" + sha256: "2776c66b3e97c6cdd58d1bd3281548b074b64f1fd5c8f82391f7456e38849567" url: "https://pub.dev" source: hosted - version: "4.0.4" + version: "4.0.5" graphs: dependency: transitive description: name: graphs - sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" hex: dependency: "direct main" description: @@ -1004,10 +1017,10 @@ packages: dependency: transitive description: name: image - sha256: a72242c9a0ffb65d03de1b7113bc4e189686fc07c7147b8b41811d0dd0e0d9bf + sha256: "2237616a36c0d69aef7549ab439b833fb7f9fb9fc861af2cc9ac3eedddd69ca8" url: "https://pub.dev" source: hosted - version: "4.0.17" + version: "4.2.0" import_sorter: dependency: "direct dev" description: @@ -1041,26 +1054,26 @@ packages: dependency: "direct main" description: name: isar - sha256: "5be35dbc489880fccc535da3d1c4b3f5fdeee6ebfcacd4b149e39e803c4029cd" - url: "https://pub.dev" + sha256: e17a9555bc7f22ff26568b8c64d019b4ffa2dc6bd4cb1c8d9b269aefd32e53ad + url: "https://pub.isar-community.dev" source: hosted - version: "3.0.5" + version: "3.1.8" isar_flutter_libs: dependency: "direct main" description: name: isar_flutter_libs - sha256: "9794524734856a8a3629652f9f359b66e3fea3cebeec4dbdeb3e3a8fb253073e" - url: "https://pub.dev" + sha256: "78710781e658ce4bff59b3f38c5b2735e899e627f4e926e1221934e77b95231a" + url: "https://pub.isar-community.dev" source: hosted - version: "3.0.5" + version: "3.1.8" isar_generator: dependency: "direct dev" description: name: isar_generator - sha256: ee4ab5d5b251bc7e86e1257793b57af100065831f00f3a12404b177ae53c2d69 - url: "https://pub.dev" + sha256: "484e73d3b7e81dbd816852fe0b9497333118a9aeb646fd2d349a62cc8980ffe1" + url: "https://pub.isar-community.dev" source: hosted - version: "3.0.5" + version: "3.1.8" js: dependency: transitive description: @@ -1073,10 +1086,10 @@ packages: dependency: transitive description: name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.1" + version: "4.9.0" json_rpc_2: dependency: transitive description: @@ -1089,10 +1102,10 @@ packages: dependency: transitive description: name: json_serializable - sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969 + sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b url: "https://pub.dev" source: hosted - version: "6.7.1" + version: "6.8.0" keyboard_dismisser: dependency: "direct main" description: @@ -1144,10 +1157,42 @@ packages: dependency: "direct main" description: name: local_auth - sha256: d3fece0749101725b03206f84a7dab7aaafb702dbbd09131ff8d8173259a9b19 + sha256: "434d854cf478f17f12ab29a76a02b3067f86a63a6d6c4eb8fbfdcfe4879c1b7b" url: "https://pub.dev" source: hosted - version: "1.1.11" + version: "2.3.0" + local_auth_android: + dependency: transitive + description: + name: local_auth_android + sha256: e9a3c321e94359a552b1bdd0f98f79885f2b3e27234d270f9bef5cd82b29340c + url: "https://pub.dev" + source: hosted + version: "1.0.44" + local_auth_darwin: + dependency: transitive + description: + name: local_auth_darwin + sha256: "7ba5738c874ca2b910d72385d00d2bebad9d4e807612936cf5e32bc01a048c71" + url: "https://pub.dev" + source: hosted + version: "1.4.0" + local_auth_platform_interface: + dependency: transitive + description: + name: local_auth_platform_interface + sha256: "1b842ff177a7068442eae093b64abe3592f816afd2a533c0ebcdbe40f9d2075a" + url: "https://pub.dev" + source: hosted + version: "1.0.10" + local_auth_windows: + dependency: transitive + description: + name: local_auth_windows + sha256: bc4e66a29b0fdf751aafbec923b5bed7ad6ed3614875d8151afe2578520b2ab5 + url: "https://pub.dev" + source: hosted + version: "1.0.11" logging: dependency: transitive description: @@ -1160,10 +1205,18 @@ packages: dependency: "direct main" description: name: lottie - sha256: b8bdd54b488c54068c57d41ae85d02808da09e2bee8b8dd1f59f441e7efa60cd + sha256: a93542cc2d60a7057255405f62252533f8e8956e7e06754955669fd32fb4b216 url: "https://pub.dev" source: hosted - version: "2.6.0" + version: "2.7.0" + macros: + dependency: transitive + description: + name: macros + sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" + url: "https://pub.dev" + source: hosted + version: "0.1.2-main.4" matcher: dependency: transitive description: @@ -1200,18 +1253,18 @@ packages: dependency: transitive description: name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.6" mobx: dependency: transitive description: name: mobx - sha256: "0afcf88b3ee9d6819890bf16c11a727fc8c62cf736fda8e5d3b9b4eace4e62ea" + sha256: "63920b27b32ad1910adfe767ab1750e4c212e8923232a1f891597b362074ea5e" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.3.3+2" mockingjay: dependency: "direct dev" description: @@ -1249,10 +1302,10 @@ packages: dependency: "direct main" description: name: mutex - sha256: "03116a4e46282a671b46c12de649d72c0ed18188ffe12a8d0fc63e83f4ad88f4" + sha256: "8827da25de792088eb33e572115a5eb0d61d61a3c01acbc8bcbe76ed78f1a1f2" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.1.0" nanodart: dependency: "direct main" description: @@ -1261,6 +1314,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.0" + nested: + dependency: transitive + description: + name: nested + sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" + url: "https://pub.dev" + source: hosted + version: "1.0.0" nm: dependency: transitive description: @@ -1289,18 +1350,18 @@ packages: dependency: "direct main" description: name: package_info_plus - sha256: "6ff267fcd9d48cb61c8df74a82680e8b82e940231bb5f68356672fde0397334a" + sha256: a75164ade98cb7d24cfd0a13c6408927c6b217fa60dee5a7ff5c116a58f28918 url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "8.0.2" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6" + sha256: ac1f4a4847f1ade8e6a87d1f39f5d7c67490738642e2542f559ec38c37489a66 url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.1" path: dependency: transitive description: @@ -1321,26 +1382,26 @@ packages: dependency: "direct main" description: name: path_provider - sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa + sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.4" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "6b8b19bd80da4f11ce91b2d1fb931f3006911477cec227cce23d3253d80df3f1" + sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.10" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.0" path_provider_linux: dependency: transitive description: @@ -1353,58 +1414,66 @@ packages: dependency: transitive description: name: path_provider_platform_interface - sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c" + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" path_provider_windows: dependency: transitive description: name: path_provider_windows - sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" permission_handler: dependency: "direct main" description: name: permission_handler - sha256: ad65ba9af42a3d067203641de3fd9f547ded1410bad3b84400c2b4899faede70 + sha256: "18bf33f7fefbd812f37e72091a15575e72d5318854877e0e4035a24ac1113ecb" url: "https://pub.dev" source: hosted - version: "11.0.0" + version: "11.3.1" permission_handler_android: dependency: transitive description: name: permission_handler_android - sha256: f23cfe9af0d49c6b9fd8a8b09f7b3301ca7e346204939b5afef4404d36d2608f + sha256: "76e4ab092c1b240d31177bb64d2b0bea43f43d0e23541ec866151b9f7b2490fa" url: "https://pub.dev" source: hosted - version: "11.0.1" + version: "12.0.12" permission_handler_apple: dependency: transitive description: name: permission_handler_apple - sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5" + sha256: e6f6d73b12438ef13e648c4ae56bd106ec60d17e90a59c4545db6781229082a0 url: "https://pub.dev" source: hosted - version: "9.1.4" + version: "9.4.5" + permission_handler_html: + dependency: transitive + description: + name: permission_handler_html + sha256: af26edbbb1f2674af65a8f4b56e1a6f526156bc273d0e65dd8075fab51c78851 + url: "https://pub.dev" + source: hosted + version: "0.1.3+2" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface - sha256: f2343e9fa9c22ae4fd92d4732755bfe452214e7189afcc097380950cf567b4b2 + sha256: e9c8eadee926c4532d0305dff94b85bf961f16759c3af791486613152af4b4f9 url: "https://pub.dev" source: hosted - version: "3.11.5" + version: "4.2.3" permission_handler_windows: dependency: transitive description: name: permission_handler_windows - sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098 + sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" url: "https://pub.dev" source: hosted - version: "0.1.3" + version: "0.2.1" petitparser: dependency: transitive description: @@ -1441,10 +1510,10 @@ packages: dependency: "direct main" description: name: pointycastle - sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c" + sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe" url: "https://pub.dev" source: hosted - version: "3.7.3" + version: "3.9.1" pool: dependency: transitive description: @@ -1457,10 +1526,10 @@ packages: dependency: transitive description: name: pretty_dio_logger - sha256: "00b80053063935cf9a6190da344c5373b9d0e92da4c944c878ff2fbef0ef6dc2" + sha256: "36f2101299786d567869493e2f5731de61ce130faa14679473b26905a92b6407" url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.4.0" process: dependency: transitive description: @@ -1473,10 +1542,18 @@ packages: dependency: transitive description: name: protobuf - sha256: "01dd9bd0fa02548bf2ceee13545d4a0ec6046459d847b6b061d8a27237108a08" + sha256: "68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "3.1.0" + provider: + dependency: transitive + description: + name: provider + sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c + url: "https://pub.dev" + source: hosted + version: "6.1.2" pub_semver: dependency: transitive description: @@ -1489,18 +1566,18 @@ packages: dependency: transitive description: name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 url: "https://pub.dev" source: hosted - version: "1.2.3" + version: "1.3.0" qr: dependency: transitive description: name: qr - sha256: "64957a3930367bf97cc211a5af99551d630f2f4625e38af10edd6b19131b64b3" + sha256: "5a1d2586170e172b8a8c8470bbbffd5eb0cd38a66c0d77155ea138d3af3a4445" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" qr_flutter: dependency: "direct main" description: @@ -1513,18 +1590,18 @@ packages: dependency: transitive description: name: quiver - sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 + sha256: ea0b925899e64ecdfbf9c7becb60d5b50e706ade44a85b2363be2a22d88117d2 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.2.2" rational: dependency: transitive description: name: rational - sha256: ba58e9e18df9abde280e8b10051e4bce85091e41e8e7e411b6cde2e738d357cf + sha256: cb808fb6f1a839e6fc5f7d8cb3b0a10e1db48b3be102de73938c627f0b636336 url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.3" retry: dependency: transitive description: @@ -1561,18 +1638,18 @@ packages: dependency: "direct main" description: name: share_plus - sha256: "6cec740fa0943a826951223e76218df002804adb588235a8910dc3d6b0654e11" + sha256: "3ef39599b00059db0990ca2e30fca0a29d8b37aae924d60063f8e0184cf20900" url: "https://pub.dev" source: hosted - version: "7.1.0" + version: "7.2.2" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface - sha256: "357412af4178d8e11d14f41723f80f12caea54cf0d5cd29af9dcdab85d58aea7" + sha256: "251eb156a8b5fa9ce033747d73535bf53911071f8d3b6f4f0b578505ce0d4496" url: "https://pub.dev" source: hosted - version: "3.3.0" + version: "3.4.0" shelf: dependency: transitive description: @@ -1593,18 +1670,18 @@ packages: dependency: transitive description: name: shelf_static - sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "1.1.3" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" sky_engine: dependency: transitive description: flutter @@ -1614,19 +1691,19 @@ packages: dependency: "direct main" description: name: socks5_proxy - sha256: "1d21b5606169654bbf4cfb904e8e6ed897e9f763358709f87310c757096d909a" + sha256: "616818a0ea1064a4823b53c9f7eaf8da64ed82dcd51ed71371c7e54751ed5053" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.6" socks_socket: dependency: transitive description: path: "." ref: master - resolved-ref: ac6d721fe655208a6d488a088a35bab0ddc25702 + resolved-ref: b1fa8ca505e7e488edb4c2859f0218d48b15dead url: "https://github.com/cypherstack/socks_socket.git" source: git - version: "0.1.0" + version: "1.0.0" solana: dependency: "direct main" description: @@ -1640,10 +1717,10 @@ packages: dependency: transitive description: name: source_gen - sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16 + sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.5.0" source_helper: dependency: transitive description: @@ -1656,10 +1733,10 @@ packages: dependency: transitive description: name: source_map_stack_trace - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" source_maps: dependency: transitive description: @@ -1680,18 +1757,18 @@ packages: dependency: "direct main" description: name: sqlite3 - sha256: b384f598b813b347c5a7e5ffad82cbaff1bec3d1561af267041e66f6f0899295 + sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb url: "https://pub.dev" source: hosted - version: "2.4.3" + version: "2.4.5" sqlite3_flutter_libs: dependency: "direct main" description: name: sqlite3_flutter_libs - sha256: "1e62698dc1ab396152ccaf3b3990d826244e9f3c8c39b51805f209adcd6dbea3" + sha256: "62bbb4073edbcdf53f40c80775f33eea01d301b7b81417e5b3fb7395416258c1" url: "https://pub.dev" source: hosted - version: "0.5.22" + version: "0.5.24" stack_trace: dependency: transitive description: @@ -1704,8 +1781,8 @@ packages: dependency: "direct main" description: path: "." - ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed - resolved-ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed + ref: "5efe8f8f259317d32b6f037cf91f62e06125c040" + resolved-ref: "5efe8f8f259317d32b6f037cf91f62e06125c040" url: "https://github.com/cypherstack/stack_wallet_backup.git" source: git version: "0.0.1" @@ -1721,10 +1798,10 @@ packages: dependency: "direct main" description: name: stellar_flutter_sdk - sha256: "574e8f40a1a1a9b18a735272196c8d3c8168a669efc8460a4d5d6f45151e8dce" + sha256: "7d505963fe11d0f90b3f798964c485ed9fa64731c38f14c9b2fb76d5d5bd6cd8" url: "https://pub.dev" source: hosted - version: "1.7.8" + version: "1.8.1" stream_channel: dependency: "direct main" description: @@ -1810,18 +1887,18 @@ packages: dependency: transitive description: name: time - sha256: "83427e11d9072e038364a5e4da559e85869b227cf699a541be0da74f14140124" + sha256: ad8e018a6c9db36cb917a031853a1aae49467a93e0d464683e029537d848c221 url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" timezone: dependency: transitive description: name: timezone - sha256: "1cfd8ddc2d1cfd836bc93e67b9be88c3adaeca6f40a00ca999104c30693cdca0" + sha256: "2236ec079a174ce07434e89fcd3fcda430025eb7692244139a9cf54fdcf1fc7d" url: "https://pub.dev" source: hosted - version: "0.9.2" + version: "0.9.4" timing: dependency: transitive description: @@ -1891,66 +1968,66 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "47e208a6711459d813ba18af120d9663c20bdf6985d6ad39fe165d2538378d27" + sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3" url: "https://pub.dev" source: hosted - version: "6.1.14" + version: "6.3.0" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: b04af59516ab45762b2ca6da40fa830d72d0f6045cd97744450b73493fa76330 + sha256: e35a698ac302dd68e41f73250bd9517fe3ab5fa4f18fe4647a0872db61bacbab url: "https://pub.dev" source: hosted - version: "6.1.0" + version: "6.3.10" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "7c65021d5dee51813d652357bc65b8dd4a6177082a9966bc8ba6ee477baa795f" + sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e url: "https://pub.dev" source: hosted - version: "6.1.5" + version: "6.3.1" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: b651aad005e0cb06a01dbd84b428a301916dc75f0e7ea6165f80057fee2d8e8e + sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af url: "https://pub.dev" source: hosted - version: "3.0.6" + version: "3.2.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: b55486791f666e62e0e8ff825e58a023fd6b1f71c49926483f1128d3bbd8fe88 + sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de" url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "3.2.0" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "95465b39f83bfe95fcb9d174829d6476216f2d548b79c38ab2506e0458787618" + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.3.2" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: ba140138558fcc3eead51a1c42e92a9fb074a1b1149ed3c73e66035b2ccd94f2 + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.0.19" + version: "2.3.3" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "95fef3129dc7cfaba2bc3d5ba2e16063bb561fc6d78e63eee16162bc70029069" + sha256: "49c10f879746271804767cb45551ec5592cdab00ee105c06dddde1a98f73b185" url: "https://pub.dev" source: hosted - version: "3.0.8" + version: "3.1.2" uuid: dependency: "direct main" description: @@ -1963,26 +2040,26 @@ packages: dependency: transitive description: name: vector_graphics - sha256: "670f6e07aca990b4a2bcdc08a784193c4ccdd1932620244c3a86bb72a0eac67f" + sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3" url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.11+1" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: "7451721781d967db9933b63f5733b1c4533022c0ba373a01bdd79d1a5457f69f" + sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.11+1" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: "80a13c613c8bde758b1464a1755a7b3a8f2b6cec61fbf0f5a53c94c30f03ba2e" + sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81" url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.11+1" vector_math: dependency: transitive description: @@ -1999,22 +2076,6 @@ packages: url: "https://pub.dev" source: hosted version: "14.2.5" - wakelock: - dependency: "direct main" - description: - name: wakelock - sha256: "769ecf42eb2d07128407b50cb93d7c10bd2ee48f0276ef0119db1d25cc2f87db" - url: "https://pub.dev" - source: hosted - version: "0.6.2" - wakelock_macos: - dependency: transitive - description: - name: wakelock_macos - sha256: "047c6be2f88cb6b76d02553bca5a3a3b95323b15d30867eca53a19a0a319d4cd" - url: "https://pub.dev" - source: hosted - version: "0.4.0" wakelock_platform_interface: dependency: transitive description: @@ -2023,14 +2084,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.3.0" - wakelock_web: - dependency: transitive + wakelock_plus: + dependency: "direct main" description: - name: wakelock_web - sha256: "1b256b811ee3f0834888efddfe03da8d18d0819317f20f6193e2922b41a501b5" + name: wakelock_plus + sha256: bf4ee6f17a2fa373ed3753ad0e602b7603f8c75af006d5b9bdade263928c0484 url: "https://pub.dev" source: hosted - version: "0.4.0" + version: "1.2.8" + wakelock_plus_platform_interface: + dependency: transitive + description: + name: wakelock_plus_platform_interface + sha256: "422d1cdbb448079a8a62a5a770b69baa489f8f7ca21aef47800c726d404f9d16" + url: "https://pub.dev" + source: hosted + version: "1.2.1" wakelock_windows: dependency: "direct overridden" description: @@ -2044,10 +2113,10 @@ packages: dependency: transitive description: name: wallet - sha256: "569c91c2af13a9e1119c001f9c09218eccf3f383eb8d15ba13a5b558010c1bc0" + sha256: "687fd89a16557649b26189e597792962f405797fc64113e8758eabc2c2605c32" url: "https://pub.dev" source: hosted - version: "0.0.12+1" + version: "0.0.13" wasm_interop: dependency: transitive description: @@ -2116,16 +2185,16 @@ packages: dependency: transitive description: name: win32_registry - sha256: e4506d60b7244251bc59df15656a3093501c37fb5af02105a944d73eb95be4c9 + sha256: "21ec76dfc731550fd3e2ce7a33a9ea90b828fdf19a5c3bcf556fa992cfa99852" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.5" window_size: dependency: "direct main" description: path: "plugins/window_size" ref: HEAD - resolved-ref: "6c66ad23ee79749f30a8eece542cf54eaf157ed8" + resolved-ref: eb3964990cf19629c89ff8cb4a37640c7b3d5601 url: "https://github.com/google/flutter-desktop-embedding.git" source: git version: "0.1.0" @@ -2178,5 +2247,5 @@ packages: source: hosted version: "0.2.3" sdks: - dart: ">=3.5.2 <4.0.0" - flutter: ">=3.24.2" + dart: ">=3.5.3 <4.0.0" + flutter: ">=3.24.3" diff --git a/scripts/app_config/templates/android/app/build.gradle b/scripts/app_config/templates/android/app/build.gradle index e440e9d0d..307773e41 100644 --- a/scripts/app_config/templates/android/app/build.gradle +++ b/scripts/app_config/templates/android/app/build.gradle @@ -1,30 +1,10 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } +plugins { + id "com.android.application" + id "kotlin-android" + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. + id "dev.flutter.flutter-gradle-plugin" } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { @@ -32,35 +12,29 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 34 + namespace "com.place.holder" + compileSdk flutter.compileSdkVersion + ndkVersion flutter.ndkVersion -// ndkVersion = "21.1.6352462" -// ndkVersion = "25.2.9519653" - ndkVersion = "23.1.7779620" - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - lintOptions { - disable 'InvalidPackage' - } packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' } + defaultConfig { applicationId "com.place.holder" - minSdkVersion 23 - targetSdkVersion 33 -// ndkVersion = "21.1.6352462" -// ndkVersion = "25.2.9519653" - ndkVersion = "23.1.7779620" - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + minSdk flutter.minSdkVersion + targetSdk flutter.targetSdkVersion + versionCode flutter.versionCode + versionName flutter.versionName + + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + ndk { abiFilters "x86_64","armeabi-v7a", "arm64-v8a" } @@ -99,15 +73,18 @@ android { 'proguard-rules.pro' } } + + // not required. Just info + tasks.whenTaskAdded { task -> + if (task.name == 'assembleDebug') { + task.doFirst { + println "The compileSdkVersion is $flutter.compileSdkVersion" + println "The targetSdkVersion is $flutter.targetSdkVersion" + } + } + } } flutter { source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test:runner:1.1.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' -} +} \ No newline at end of file diff --git a/scripts/app_config/templates/android/app/src/main/AndroidManifest.xml b/scripts/app_config/templates/android/app/src/main/AndroidManifest.xml index 2ae40734c..78a92aa5c 100644 --- a/scripts/app_config/templates/android/app/src/main/AndroidManifest.xml +++ b/scripts/app_config/templates/android/app/src/main/AndroidManifest.xml @@ -74,4 +74,14 @@ + + + + + + + \ No newline at end of file diff --git a/scripts/app_config/templates/pubspec.template b/scripts/app_config/templates/pubspec.template index ee10f28ab..14a69ef96 100644 --- a/scripts/app_config/templates/pubspec.template +++ b/scripts/app_config/templates/pubspec.template @@ -13,16 +13,18 @@ description: PLACEHOLDER # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: PLACEHOLDER_V+PLACEHOLDER_B +isar_version: &isar_version 3.1.8 + environment: - sdk: ">=3.5.2 <4.0.0" - flutter: ^3.24.2 + sdk: ">=3.5.3 <4.0.0" + flutter: ^3.24.3 dependencies: flutter: sdk: flutter ffi: ^2.0.1 mutex: ^3.0.0 - web_socket_channel: ^2.4.5 + web_socket_channel: ^2.4.0 lelantus: path: ./crypto_plugins/flutter_liblelantus @@ -33,7 +35,7 @@ dependencies: flutter_libsparkmobile: git: url: https://github.com/cypherstack/flutter_libsparkmobile.git - ref: 7a11d0cadf8c7a6a5d5144dab18cef9536aa5943 + ref: cc7b43b731e4a7906dd25d4364a08e34554cee19 flutter_libmonero: path: ./crypto_plugins/flutter_libmonero @@ -63,7 +65,7 @@ dependencies: stack_wallet_backup: git: url: https://github.com/cypherstack/stack_wallet_backup.git - ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed + ref: 5efe8f8f259317d32b6f037cf91f62e06125c040 bip47: git: @@ -78,11 +80,11 @@ dependencies: fusiondart: git: url: https://github.com/cypherstack/fusiondart.git - ref: 7dd8ff0dc9cb0caaac795fa44841a26437edfec3 + ref: 9dc883f4432c8db4ec44cb8cc836963295d63952 # Utility plugins http: ^0.13.0 - local_auth: ^1.1.10 + local_auth: ^2.3.0 permission_handler: ^11.0.0 flutter_local_notifications: ^17.2.2 rxdart: ^0.27.3 @@ -130,10 +132,10 @@ dependencies: event_bus: ^2.0.0 uuid: ^3.0.5 crypto: ^3.0.2 - barcode_scan2: ^4.2.3 - wakelock: ^0.6.2 + barcode_scan2: ^4.3.3 + wakelock_plus: ^1.2.8 intl: ^0.17.0 - devicelocale: ^0.6.0 + devicelocale: ^0.7.1 device_info_plus: ^10.1.2 keyboard_dismisser: ^3.0.0 another_flushbar: ^1.10.28 @@ -143,12 +145,16 @@ dependencies: share_plus: ^7.0.2 emojis: ^0.9.9 pointycastle: ^3.6.0 - package_info_plus: ^4.0.2 + package_info_plus: ^8.0.2 lottie: ^2.3.2 file_picker: ^8.0.3 connectivity_plus: ^4.0.1 - isar: 3.0.5 - isar_flutter_libs: 3.0.5 # contains the binaries + isar: + version: *isar_version + hosted: https://pub.isar-community.dev/ + isar_flutter_libs: # contains Isar Core + version: *isar_version + hosted: https://pub.isar-community.dev/ dropdown_button2: ^2.1.3 string_validator: ^0.3.0 equatable: ^2.0.5 @@ -157,7 +163,7 @@ dependencies: dart_bs58check: ^3.0.2 hex: ^0.2.0 archive: ^3.6.1 - desktop_drop: ^0.4.1 + desktop_drop: ^0.4.4 nanodart: ^2.0.0 basic_utils: ^5.5.4 stellar_flutter_sdk: ^1.7.8 @@ -174,8 +180,8 @@ dependencies: # coinlib_flutter: ^2.1.0-rc.1 coinlib_flutter: git: - url: https://github.com/peercoin/coinlib.git - ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f + url: https://github.com/julian-CStack/coinlib.git + ref: 0acacfd17eacf72135c693a7b862bd9b7cc56739 path: coinlib_flutter electrum_adapter: git: @@ -212,10 +218,12 @@ dev_dependencies: mockito: ^5.4.1 mockingjay: ^0.2.0 # lint: ^1.10.0 - analyzer: ^5.13.0 + analyzer: ^6.7.0 import_sorter: ^4.6.0 flutter_lints: ^3.0.1 - isar_generator: 3.0.5 + isar_generator: + version: *isar_version + hosted: https://pub.isar-community.dev/ flutter_native_splash: image: assets/icon/splash.png @@ -230,14 +238,14 @@ dependency_overrides: # coin lib git for testing while waiting for publishing coinlib: git: - url: https://github.com/peercoin/coinlib.git - ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f + url: https://github.com/julian-CStack/coinlib.git + ref: 0acacfd17eacf72135c693a7b862bd9b7cc56739 path: coinlib coinlib_flutter: git: - url: https://github.com/peercoin/coinlib.git - ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f + url: https://github.com/julian-CStack/coinlib.git + ref: 0acacfd17eacf72135c693a7b862bd9b7cc56739 path: coinlib_flutter # adding here due to pure laziness @@ -267,7 +275,7 @@ dependency_overrides: stack_wallet_backup: git: url: https://github.com/cypherstack/stack_wallet_backup.git - ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed + ref: 5efe8f8f259317d32b6f037cf91f62e06125c040 # required override for nanodart bip39: @@ -282,7 +290,7 @@ dependency_overrides: ref: 9abc0930081c9859884e073bd25ab88b2114d9e7 crypto: 3.0.2 - analyzer: ^5.2.0 + analyzer: ^6.7.0 pinenacl: ^0.6.0 http: ^0.13.0 diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart index db289eae0..993f73f69 100644 --- a/test/cached_electrumx_test.mocks.dart +++ b/test/cached_electrumx_test.mocks.dart @@ -89,6 +89,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { Invocation.getter(#cryptoCurrency), ), ) as _i2.CryptoCurrency); + @override set failovers(List<_i5.ElectrumXNode>? _failovers) => super.noSuchMethod( Invocation.setter( @@ -97,11 +98,13 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override int get currentFailoverIndex => (super.noSuchMethod( Invocation.getter(#currentFailoverIndex), returnValue: 0, ) as int); + @override set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod( Invocation.setter( @@ -110,6 +113,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override Duration get connectionTimeoutForSpecialCaseJsonRPCClients => (super.noSuchMethod( @@ -119,6 +123,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), ), ) as Duration); + @override String get host => (super.noSuchMethod( Invocation.getter(#host), @@ -127,16 +132,19 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { Invocation.getter(#host), ), ) as String); + @override int get port => (super.noSuchMethod( Invocation.getter(#port), returnValue: 0, ) as int); + @override bool get useSSL => (super.noSuchMethod( Invocation.getter(#useSSL), returnValue: false, ) as bool); + @override _i7.Future closeAdapter() => (super.noSuchMethod( Invocation.method( @@ -146,6 +154,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); + @override _i7.Future checkElectrumAdapter() => (super.noSuchMethod( Invocation.method( @@ -155,6 +164,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); + @override _i7.Future request({ required String? command, @@ -177,6 +187,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future.value(), ) as _i7.Future); + @override _i7.Future> batchRequest({ required String? command, @@ -197,6 +208,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future>.value([]), ) as _i7.Future>); + @override _i7.Future ping({ String? requestID, @@ -213,6 +225,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future.value(false), ) as _i7.Future); + @override _i7.Future> getBlockHeadTip({String? requestID}) => (super.noSuchMethod( @@ -224,6 +237,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future> getServerFeatures({String? requestID}) => (super.noSuchMethod( @@ -235,6 +249,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future broadcastTransaction({ required String? rawTx, @@ -261,6 +276,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), )), ) as _i7.Future); + @override _i7.Future> getBalance({ required String? scripthash, @@ -278,6 +294,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future>> getHistory({ required String? scripthash, @@ -295,6 +312,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>>.value( >[]), ) as _i7.Future>>); + @override _i7.Future>>> getBatchHistory( {required List? args}) => @@ -307,6 +325,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>>>.value( >>[]), ) as _i7.Future>>>); + @override _i7.Future>> getUTXOs({ required String? scripthash, @@ -324,6 +343,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>>.value( >[]), ) as _i7.Future>>); + @override _i7.Future>>> getBatchUTXOs( {required List? args}) => @@ -336,6 +356,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>>>.value( >>[]), ) as _i7.Future>>>); + @override _i7.Future> getTransaction({ required String? txHash, @@ -355,6 +376,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future> getLelantusAnonymitySet({ String? groupId = r'1', @@ -374,6 +396,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future getLelantusMintData({ dynamic mints, @@ -390,6 +413,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future.value(), ) as _i7.Future); + @override _i7.Future> getLelantusUsedCoinSerials({ String? requestID, @@ -407,6 +431,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future getLelantusLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -417,6 +442,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future.value(0), ) as _i7.Future); + @override _i7.Future> getSparkAnonymitySet({ String? coinGroupId = r'1', @@ -436,6 +462,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future>> getSparkMintMetaData({ String? requestID, @@ -453,6 +480,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>>.value( >[]), ) as _i7.Future>>); + @override _i7.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -463,6 +491,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future.value(0), ) as _i7.Future); + @override _i7.Future> getMempoolTxids({String? requestID}) => (super.noSuchMethod( @@ -473,6 +502,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future< List< @@ -515,6 +545,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { List serialContext, String txid })>>); + @override _i7.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ String? requestID, @@ -531,6 +562,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future>>.value(>[]), ) as _i7.Future>>); + @override _i7.Future isMasterNodeCollateral({ String? requestID, @@ -549,6 +581,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), returnValue: _i7.Future.value(false), ) as _i7.Future); + @override _i7.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( @@ -560,6 +593,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { returnValue: _i7.Future>.value({}), ) as _i7.Future>); + @override _i7.Future<_i3.Decimal> estimateFee({ String? requestID, @@ -586,6 +620,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient { ), )), ) as _i7.Future<_i3.Decimal>); + @override _i7.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod( Invocation.method( @@ -617,11 +652,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { Invocation.getter(#isInitialized), returnValue: false, ) as bool); + @override int get lastUnlockedTimeout => (super.noSuchMethod( Invocation.getter(#lastUnlockedTimeout), returnValue: 0, ) as int); + @override set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod( Invocation.setter( @@ -630,11 +667,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override int get lastUnlocked => (super.noSuchMethod( Invocation.getter(#lastUnlocked), returnValue: 0, ) as int); + @override set lastUnlocked(int? lastUnlocked) => super.noSuchMethod( Invocation.setter( @@ -643,16 +682,19 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override int get currentNotificationId => (super.noSuchMethod( Invocation.getter(#currentNotificationId), returnValue: 0, ) as int); + @override List get walletIdsSyncOnStartup => (super.noSuchMethod( Invocation.getter(#walletIdsSyncOnStartup), returnValue: [], ) as List); + @override set walletIdsSyncOnStartup(List? walletIdsSyncOnStartup) => super.noSuchMethod( @@ -662,11 +704,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override _i9.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), returnValue: _i9.SyncingType.currentWalletOnly, ) as _i9.SyncingType); + @override set syncType(_i9.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( @@ -675,11 +719,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get wifiOnly => (super.noSuchMethod( Invocation.getter(#wifiOnly), returnValue: false, ) as bool); + @override set wifiOnly(bool? wifiOnly) => super.noSuchMethod( Invocation.setter( @@ -688,11 +734,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showFavoriteWallets => (super.noSuchMethod( Invocation.getter(#showFavoriteWallets), returnValue: false, ) as bool); + @override set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod( Invocation.setter( @@ -701,6 +749,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override String get language => (super.noSuchMethod( Invocation.getter(#language), @@ -709,6 +758,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { Invocation.getter(#language), ), ) as String); + @override set language(String? newLanguage) => super.noSuchMethod( Invocation.setter( @@ -717,6 +767,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override String get currency => (super.noSuchMethod( Invocation.getter(#currency), @@ -725,6 +776,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { Invocation.getter(#currency), ), ) as String); + @override set currency(String? newCurrency) => super.noSuchMethod( Invocation.setter( @@ -733,11 +785,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get randomizePIN => (super.noSuchMethod( Invocation.getter(#randomizePIN), returnValue: false, ) as bool); + @override set randomizePIN(bool? randomizePIN) => super.noSuchMethod( Invocation.setter( @@ -746,11 +800,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useBiometrics => (super.noSuchMethod( Invocation.getter(#useBiometrics), returnValue: false, ) as bool); + @override set useBiometrics(bool? useBiometrics) => super.noSuchMethod( Invocation.setter( @@ -759,11 +815,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hasPin => (super.noSuchMethod( Invocation.getter(#hasPin), returnValue: false, ) as bool); + @override set hasPin(bool? hasPin) => super.noSuchMethod( Invocation.setter( @@ -772,11 +830,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override int get familiarity => (super.noSuchMethod( Invocation.getter(#familiarity), returnValue: 0, ) as int); + @override set familiarity(int? familiarity) => super.noSuchMethod( Invocation.setter( @@ -785,11 +845,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get torKillSwitch => (super.noSuchMethod( Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); + @override set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( @@ -798,11 +860,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showTestNetCoins => (super.noSuchMethod( Invocation.getter(#showTestNetCoins), returnValue: false, ) as bool); + @override set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod( Invocation.setter( @@ -811,11 +875,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get isAutoBackupEnabled => (super.noSuchMethod( Invocation.getter(#isAutoBackupEnabled), returnValue: false, ) as bool); + @override set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod( Invocation.setter( @@ -824,6 +890,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod( Invocation.setter( @@ -832,11 +899,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override _i10.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), returnValue: _i10.BackupFrequencyType.everyTenMinutes, ) as _i10.BackupFrequencyType); + @override set backupFrequencyType(_i10.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( @@ -846,6 +915,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod( Invocation.setter( @@ -854,11 +924,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hideBlockExplorerWarning => (super.noSuchMethod( Invocation.getter(#hideBlockExplorerWarning), returnValue: false, ) as bool); + @override set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) => super.noSuchMethod( @@ -868,11 +940,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get gotoWalletOnStartup => (super.noSuchMethod( Invocation.getter(#gotoWalletOnStartup), returnValue: false, ) as bool); + @override set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod( Invocation.setter( @@ -881,6 +955,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override set startupWalletId(String? startupWalletId) => super.noSuchMethod( Invocation.setter( @@ -889,11 +964,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get externalCalls => (super.noSuchMethod( Invocation.getter(#externalCalls), returnValue: false, ) as bool); + @override set externalCalls(bool? externalCalls) => super.noSuchMethod( Invocation.setter( @@ -902,11 +979,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableCoinControl => (super.noSuchMethod( Invocation.getter(#enableCoinControl), returnValue: false, ) as bool); + @override set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod( Invocation.setter( @@ -915,11 +994,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableSystemBrightness => (super.noSuchMethod( Invocation.getter(#enableSystemBrightness), returnValue: false, ) as bool); + @override set enableSystemBrightness(bool? enableSystemBrightness) => super.noSuchMethod( @@ -929,6 +1010,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override String get themeId => (super.noSuchMethod( Invocation.getter(#themeId), @@ -937,6 +1019,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { Invocation.getter(#themeId), ), ) as String); + @override set themeId(String? themeId) => super.noSuchMethod( Invocation.setter( @@ -945,6 +1028,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessLightThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessLightThemeId), @@ -953,6 +1037,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { Invocation.getter(#systemBrightnessLightThemeId), ), ) as String); + @override set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) => super.noSuchMethod( @@ -962,6 +1047,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessDarkThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessDarkThemeId), @@ -970,6 +1056,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { Invocation.getter(#systemBrightnessDarkThemeId), ), ) as String); + @override set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) => super.noSuchMethod( @@ -979,11 +1066,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useTor => (super.noSuchMethod( Invocation.getter(#useTor), returnValue: false, ) as bool); + @override set useTor(bool? useTor) => super.noSuchMethod( Invocation.setter( @@ -992,11 +1081,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override bool get autoPin => (super.noSuchMethod( Invocation.getter(#autoPin), returnValue: false, ) as bool); + @override set autoPin(bool? autoPin) => super.noSuchMethod( Invocation.setter( @@ -1005,11 +1096,28 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + + @override + bool get enableExchange => (super.noSuchMethod( + Invocation.getter(#enableExchange), + returnValue: false, + ) as bool); + + @override + set enableExchange(bool? showExchange) => super.noSuchMethod( + Invocation.setter( + #enableExchange, + showExchange, + ), + returnValueForMissingStub: null, + ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i7.Future init() => (super.noSuchMethod( Invocation.method( @@ -1019,6 +1127,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); + @override _i7.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( @@ -1028,6 +1137,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); + @override _i7.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( @@ -1036,6 +1146,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValue: _i7.Future.value(false), ) as _i7.Future); + @override _i7.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( @@ -1045,6 +1156,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); + @override _i7.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( @@ -1054,6 +1166,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); + @override _i11.AmountUnit amountUnit(_i2.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -1062,6 +1175,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValue: _i11.AmountUnit.normal, ) as _i11.AmountUnit); + @override void updateAmountUnit({ required _i2.CryptoCurrency? coin, @@ -1078,6 +1192,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override int maxDecimals(_i2.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -1086,6 +1201,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValue: 0, ) as int); + @override void updateMaxDecimals({ required _i2.CryptoCurrency? coin, @@ -1102,6 +1218,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override _i4.FusionInfo getFusionServerInfo(_i2.CryptoCurrency? coin) => (super.noSuchMethod( @@ -1117,6 +1234,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), ), ) as _i4.FusionInfo); + @override void setFusionServerInfo( _i2.CryptoCurrency? coin, @@ -1132,6 +1250,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1140,6 +1259,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1148,6 +1268,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1156,6 +1277,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/flutter_secure_storage_interface_test.mocks.dart b/test/flutter_secure_storage_interface_test.mocks.dart index 8779d5147..e99c6b1a7 100644 --- a/test/flutter_secure_storage_interface_test.mocks.dart +++ b/test/flutter_secure_storage_interface_test.mocks.dart @@ -100,6 +100,7 @@ class MockFlutterSecureStorage extends _i1.Mock Invocation.getter(#iOptions), ), ) as _i2.IOSOptions); + @override _i2.AndroidOptions get aOptions => (super.noSuchMethod( Invocation.getter(#aOptions), @@ -108,6 +109,7 @@ class MockFlutterSecureStorage extends _i1.Mock Invocation.getter(#aOptions), ), ) as _i2.AndroidOptions); + @override _i2.LinuxOptions get lOptions => (super.noSuchMethod( Invocation.getter(#lOptions), @@ -116,6 +118,7 @@ class MockFlutterSecureStorage extends _i1.Mock Invocation.getter(#lOptions), ), ) as _i2.LinuxOptions); + @override _i2.WindowsOptions get wOptions => (super.noSuchMethod( Invocation.getter(#wOptions), @@ -124,6 +127,7 @@ class MockFlutterSecureStorage extends _i1.Mock Invocation.getter(#wOptions), ), ) as _i2.WindowsOptions); + @override _i2.WebOptions get webOptions => (super.noSuchMethod( Invocation.getter(#webOptions), @@ -132,6 +136,7 @@ class MockFlutterSecureStorage extends _i1.Mock Invocation.getter(#webOptions), ), ) as _i2.WebOptions); + @override _i2.MacOsOptions get mOptions => (super.noSuchMethod( Invocation.getter(#mOptions), @@ -140,6 +145,7 @@ class MockFlutterSecureStorage extends _i1.Mock Invocation.getter(#mOptions), ), ) as _i2.MacOsOptions); + @override _i3.Future write({ required String? key, @@ -169,6 +175,7 @@ class MockFlutterSecureStorage extends _i1.Mock returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); + @override _i3.Future read({ required String? key, @@ -195,6 +202,7 @@ class MockFlutterSecureStorage extends _i1.Mock ), returnValue: _i3.Future.value(), ) as _i3.Future); + @override _i3.Future containsKey({ required String? key, @@ -221,6 +229,7 @@ class MockFlutterSecureStorage extends _i1.Mock ), returnValue: _i3.Future.value(false), ) as _i3.Future); + @override _i3.Future delete({ required String? key, @@ -248,6 +257,7 @@ class MockFlutterSecureStorage extends _i1.Mock returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); + @override _i3.Future> readAll({ _i2.IOSOptions? iOptions, @@ -272,6 +282,7 @@ class MockFlutterSecureStorage extends _i1.Mock ), returnValue: _i3.Future>.value({}), ) as _i3.Future>); + @override _i3.Future deleteAll({ _i2.IOSOptions? iOptions, diff --git a/test/models/type_adapter_tests/lelantus_coin_adapter_test.mocks.dart b/test/models/type_adapter_tests/lelantus_coin_adapter_test.mocks.dart index 13aeb65c7..140c686d5 100644 --- a/test/models/type_adapter_tests/lelantus_coin_adapter_test.mocks.dart +++ b/test/models/type_adapter_tests/lelantus_coin_adapter_test.mocks.dart @@ -48,11 +48,13 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { Invocation.getter(#availableBytes), returnValue: 0, ) as int); + @override int get usedBytes => (super.noSuchMethod( Invocation.getter(#usedBytes), returnValue: 0, ) as int); + @override void skip(int? bytes) => super.noSuchMethod( Invocation.method( @@ -61,6 +63,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValueForMissingStub: null, ); + @override int readByte() => (super.noSuchMethod( Invocation.method( @@ -69,6 +72,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override _i4.Uint8List viewBytes(int? bytes) => (super.noSuchMethod( Invocation.method( @@ -77,6 +81,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override _i4.Uint8List peekBytes(int? bytes) => (super.noSuchMethod( Invocation.method( @@ -85,6 +90,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override int readWord() => (super.noSuchMethod( Invocation.method( @@ -93,6 +99,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readInt32() => (super.noSuchMethod( Invocation.method( @@ -101,6 +108,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readUint32() => (super.noSuchMethod( Invocation.method( @@ -109,6 +117,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readInt() => (super.noSuchMethod( Invocation.method( @@ -117,6 +126,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override double readDouble() => (super.noSuchMethod( Invocation.method( @@ -125,6 +135,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0.0, ) as double); + @override bool readBool() => (super.noSuchMethod( Invocation.method( @@ -133,6 +144,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: false, ) as bool); + @override String readString([ int? byteCount, @@ -157,6 +169,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), ), ) as String); + @override _i4.Uint8List readByteList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -165,6 +178,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override List readIntList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -173,6 +187,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readDoubleList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -181,6 +196,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readBoolList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -189,6 +205,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readStringList([ int? length, @@ -204,6 +221,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -212,6 +230,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override Map readMap([int? length]) => (super.noSuchMethod( Invocation.method( @@ -220,6 +239,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: {}, ) as Map); + @override _i3.HiveList<_i1.HiveObjectMixin> readHiveList([int? length]) => (super.noSuchMethod( @@ -253,6 +273,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeWord(int? value) => super.noSuchMethod( Invocation.method( @@ -261,6 +282,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeInt32(int? value) => super.noSuchMethod( Invocation.method( @@ -269,6 +291,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeUint32(int? value) => super.noSuchMethod( Invocation.method( @@ -277,6 +300,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeInt(int? value) => super.noSuchMethod( Invocation.method( @@ -285,6 +309,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeDouble(double? value) => super.noSuchMethod( Invocation.method( @@ -293,6 +318,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeBool(bool? value) => super.noSuchMethod( Invocation.method( @@ -301,6 +327,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeString( String? value, { @@ -318,6 +345,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeByteList( List? bytes, { @@ -331,6 +359,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeIntList( List? list, { @@ -344,6 +373,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeDoubleList( List? list, { @@ -357,6 +387,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeBoolList( List? list, { @@ -370,6 +401,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeStringList( List? list, { @@ -387,6 +419,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeList( List? list, { @@ -400,6 +433,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeMap( Map? map, { @@ -413,6 +447,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeHiveList( _i3.HiveList<_i1.HiveObjectMixin>? list, { @@ -426,6 +461,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void write( T? value, { diff --git a/test/models/type_adapter_tests/transactions_model_adapter_test.mocks.dart b/test/models/type_adapter_tests/transactions_model_adapter_test.mocks.dart index 53dd08255..ad9f995db 100644 --- a/test/models/type_adapter_tests/transactions_model_adapter_test.mocks.dart +++ b/test/models/type_adapter_tests/transactions_model_adapter_test.mocks.dart @@ -48,11 +48,13 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { Invocation.getter(#availableBytes), returnValue: 0, ) as int); + @override int get usedBytes => (super.noSuchMethod( Invocation.getter(#usedBytes), returnValue: 0, ) as int); + @override void skip(int? bytes) => super.noSuchMethod( Invocation.method( @@ -61,6 +63,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValueForMissingStub: null, ); + @override int readByte() => (super.noSuchMethod( Invocation.method( @@ -69,6 +72,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override _i4.Uint8List viewBytes(int? bytes) => (super.noSuchMethod( Invocation.method( @@ -77,6 +81,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override _i4.Uint8List peekBytes(int? bytes) => (super.noSuchMethod( Invocation.method( @@ -85,6 +90,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override int readWord() => (super.noSuchMethod( Invocation.method( @@ -93,6 +99,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readInt32() => (super.noSuchMethod( Invocation.method( @@ -101,6 +108,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readUint32() => (super.noSuchMethod( Invocation.method( @@ -109,6 +117,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readInt() => (super.noSuchMethod( Invocation.method( @@ -117,6 +126,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override double readDouble() => (super.noSuchMethod( Invocation.method( @@ -125,6 +135,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0.0, ) as double); + @override bool readBool() => (super.noSuchMethod( Invocation.method( @@ -133,6 +144,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: false, ) as bool); + @override String readString([ int? byteCount, @@ -157,6 +169,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), ), ) as String); + @override _i4.Uint8List readByteList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -165,6 +178,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override List readIntList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -173,6 +187,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readDoubleList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -181,6 +196,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readBoolList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -189,6 +205,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readStringList([ int? length, @@ -204,6 +221,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -212,6 +230,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override Map readMap([int? length]) => (super.noSuchMethod( Invocation.method( @@ -220,6 +239,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: {}, ) as Map); + @override _i3.HiveList<_i1.HiveObjectMixin> readHiveList([int? length]) => (super.noSuchMethod( @@ -253,6 +273,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeWord(int? value) => super.noSuchMethod( Invocation.method( @@ -261,6 +282,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeInt32(int? value) => super.noSuchMethod( Invocation.method( @@ -269,6 +291,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeUint32(int? value) => super.noSuchMethod( Invocation.method( @@ -277,6 +300,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeInt(int? value) => super.noSuchMethod( Invocation.method( @@ -285,6 +309,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeDouble(double? value) => super.noSuchMethod( Invocation.method( @@ -293,6 +318,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeBool(bool? value) => super.noSuchMethod( Invocation.method( @@ -301,6 +327,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeString( String? value, { @@ -318,6 +345,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeByteList( List? bytes, { @@ -331,6 +359,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeIntList( List? list, { @@ -344,6 +373,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeDoubleList( List? list, { @@ -357,6 +387,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeBoolList( List? list, { @@ -370,6 +401,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeStringList( List? list, { @@ -387,6 +419,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeList( List? list, { @@ -400,6 +433,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeMap( Map? map, { @@ -413,6 +447,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeHiveList( _i3.HiveList<_i1.HiveObjectMixin>? list, { @@ -426,6 +461,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void write( T? value, { diff --git a/test/models/type_adapter_tests/utxo_model_adapter_test.mocks.dart b/test/models/type_adapter_tests/utxo_model_adapter_test.mocks.dart index f2750cf2a..983ffb136 100644 --- a/test/models/type_adapter_tests/utxo_model_adapter_test.mocks.dart +++ b/test/models/type_adapter_tests/utxo_model_adapter_test.mocks.dart @@ -48,11 +48,13 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { Invocation.getter(#availableBytes), returnValue: 0, ) as int); + @override int get usedBytes => (super.noSuchMethod( Invocation.getter(#usedBytes), returnValue: 0, ) as int); + @override void skip(int? bytes) => super.noSuchMethod( Invocation.method( @@ -61,6 +63,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValueForMissingStub: null, ); + @override int readByte() => (super.noSuchMethod( Invocation.method( @@ -69,6 +72,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override _i4.Uint8List viewBytes(int? bytes) => (super.noSuchMethod( Invocation.method( @@ -77,6 +81,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override _i4.Uint8List peekBytes(int? bytes) => (super.noSuchMethod( Invocation.method( @@ -85,6 +90,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override int readWord() => (super.noSuchMethod( Invocation.method( @@ -93,6 +99,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readInt32() => (super.noSuchMethod( Invocation.method( @@ -101,6 +108,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readUint32() => (super.noSuchMethod( Invocation.method( @@ -109,6 +117,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override int readInt() => (super.noSuchMethod( Invocation.method( @@ -117,6 +126,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0, ) as int); + @override double readDouble() => (super.noSuchMethod( Invocation.method( @@ -125,6 +135,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: 0.0, ) as double); + @override bool readBool() => (super.noSuchMethod( Invocation.method( @@ -133,6 +144,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: false, ) as bool); + @override String readString([ int? byteCount, @@ -157,6 +169,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), ), ) as String); + @override _i4.Uint8List readByteList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -165,6 +178,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: _i4.Uint8List(0), ) as _i4.Uint8List); + @override List readIntList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -173,6 +187,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readDoubleList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -181,6 +196,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readBoolList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -189,6 +205,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readStringList([ int? length, @@ -204,6 +221,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override List readList([int? length]) => (super.noSuchMethod( Invocation.method( @@ -212,6 +230,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: [], ) as List); + @override Map readMap([int? length]) => (super.noSuchMethod( Invocation.method( @@ -220,6 +239,7 @@ class MockBinaryReader extends _i2.Mock implements _i3.BinaryReader { ), returnValue: {}, ) as Map); + @override _i3.HiveList<_i1.HiveObjectMixin> readHiveList([int? length]) => (super.noSuchMethod( @@ -253,6 +273,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeWord(int? value) => super.noSuchMethod( Invocation.method( @@ -261,6 +282,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeInt32(int? value) => super.noSuchMethod( Invocation.method( @@ -269,6 +291,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeUint32(int? value) => super.noSuchMethod( Invocation.method( @@ -277,6 +300,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeInt(int? value) => super.noSuchMethod( Invocation.method( @@ -285,6 +309,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeDouble(double? value) => super.noSuchMethod( Invocation.method( @@ -293,6 +318,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeBool(bool? value) => super.noSuchMethod( Invocation.method( @@ -301,6 +327,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeString( String? value, { @@ -318,6 +345,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeByteList( List? bytes, { @@ -331,6 +359,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeIntList( List? list, { @@ -344,6 +373,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeDoubleList( List? list, { @@ -357,6 +387,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeBoolList( List? list, { @@ -370,6 +401,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeStringList( List? list, { @@ -387,6 +419,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeList( List? list, { @@ -400,6 +433,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeMap( Map? map, { @@ -413,6 +447,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void writeHiveList( _i3.HiveList<_i1.HiveObjectMixin>? list, { @@ -426,6 +461,7 @@ class MockBinaryWriter extends _i2.Mock implements _i3.BinaryWriter { ), returnValueForMissingStub: null, ); + @override void write( T? value, { diff --git a/test/notifications/notification_card_test.mocks.dart b/test/notifications/notification_card_test.mocks.dart index 52f5ee6db..edff5e5f4 100644 --- a/test/notifications/notification_card_test.mocks.dart +++ b/test/notifications/notification_card_test.mocks.dart @@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#client), ), ) as _i2.HTTP); + @override set client(_i2.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i5.StackTheme>[], ) as List<_i5.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( @@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future>.value( <_i4.StackThemeMetaData>[]), ) as _i6.Future>); + @override _i6.Future<_i7.Uint8List> fetchTheme( {required _i4.StackThemeMetaData? themeMetaData}) => @@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), ) as _i6.Future<_i7.Uint8List>); + @override _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index 17887db35..fee6a0d7f 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -121,6 +121,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -129,6 +130,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -137,6 +139,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -145,11 +148,13 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -165,6 +170,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -173,6 +179,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override _i10.Future deleteWallet( _i11.WalletInfo? info, @@ -189,6 +196,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future load( _i12.Prefs? prefs, @@ -205,6 +213,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future loadAfterStackRestore( _i12.Prefs? prefs, @@ -241,21 +250,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i6.SecureStorageInterface); + @override List<_i13.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i13.NodeModel>[], ) as List<_i13.NodeModel>); + @override List<_i13.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i13.NodeModel>[], ) as List<_i13.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -265,6 +278,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future setPrimaryNodeFor({ required _i4.CryptoCurrency? coin, @@ -284,6 +298,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i13.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -291,6 +306,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#currency: currency}, )) as _i13.NodeModel?); + @override List<_i13.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -300,6 +316,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i13.NodeModel>[], ) as List<_i13.NodeModel>); + @override _i13.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -307,6 +324,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#id: id}, )) as _i13.NodeModel?); + @override List<_i13.NodeModel> failoverNodesFor( {required _i4.CryptoCurrency? currency}) => @@ -318,6 +336,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i13.NodeModel>[], ) as List<_i13.NodeModel>); + @override _i10.Future add( _i13.NodeModel? node, @@ -336,6 +355,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future delete( String? id, @@ -352,6 +372,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future setEnabledState( String? id, @@ -370,6 +391,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future edit( _i13.NodeModel? editedNode, @@ -388,6 +410,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -397,6 +420,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -405,6 +429,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -413,6 +438,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -421,6 +447,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -447,11 +474,13 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -462,6 +491,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -470,6 +500,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -478,6 +509,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -486,6 +518,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -512,6 +545,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { Invocation.getter(#client), ), ) as _i7.HTTP); + @override set client(_i7.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -520,6 +554,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -528,11 +563,13 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i18.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i18.StackTheme>[], ) as List<_i18.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -541,6 +578,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { ), returnValueForMissingStub: null, ); + @override _i10.Future install({required _i19.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -552,6 +590,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -562,6 +601,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -571,6 +611,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -581,6 +622,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { ), returnValue: _i10.Future.value(false), ) as _i10.Future); + @override _i10.Future> fetchThemes() => (super.noSuchMethod( @@ -591,6 +633,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValue: _i10.Future>.value( <_i17.StackThemeMetaData>[]), ) as _i10.Future>); + @override _i10.Future<_i19.Uint8List> fetchTheme( {required _i17.StackThemeMetaData? themeMetaData}) => @@ -602,6 +645,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { ), returnValue: _i10.Future<_i19.Uint8List>.value(_i19.Uint8List(0)), ) as _i10.Future<_i19.Uint8List>); + @override _i18.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( @@ -624,11 +668,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#isInitialized), returnValue: false, ) as bool); + @override int get lastUnlockedTimeout => (super.noSuchMethod( Invocation.getter(#lastUnlockedTimeout), returnValue: 0, ) as int); + @override set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod( Invocation.setter( @@ -637,11 +683,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get lastUnlocked => (super.noSuchMethod( Invocation.getter(#lastUnlocked), returnValue: 0, ) as int); + @override set lastUnlocked(int? lastUnlocked) => super.noSuchMethod( Invocation.setter( @@ -650,16 +698,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get currentNotificationId => (super.noSuchMethod( Invocation.getter(#currentNotificationId), returnValue: 0, ) as int); + @override List get walletIdsSyncOnStartup => (super.noSuchMethod( Invocation.getter(#walletIdsSyncOnStartup), returnValue: [], ) as List); + @override set walletIdsSyncOnStartup(List? walletIdsSyncOnStartup) => super.noSuchMethod( @@ -669,11 +720,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i20.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), returnValue: _i20.SyncingType.currentWalletOnly, ) as _i20.SyncingType); + @override set syncType(_i20.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( @@ -682,11 +735,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get wifiOnly => (super.noSuchMethod( Invocation.getter(#wifiOnly), returnValue: false, ) as bool); + @override set wifiOnly(bool? wifiOnly) => super.noSuchMethod( Invocation.setter( @@ -695,11 +750,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showFavoriteWallets => (super.noSuchMethod( Invocation.getter(#showFavoriteWallets), returnValue: false, ) as bool); + @override set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod( Invocation.setter( @@ -708,6 +765,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get language => (super.noSuchMethod( Invocation.getter(#language), @@ -716,6 +774,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#language), ), ) as String); + @override set language(String? newLanguage) => super.noSuchMethod( Invocation.setter( @@ -724,6 +783,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get currency => (super.noSuchMethod( Invocation.getter(#currency), @@ -732,6 +792,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#currency), ), ) as String); + @override set currency(String? newCurrency) => super.noSuchMethod( Invocation.setter( @@ -740,11 +801,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get randomizePIN => (super.noSuchMethod( Invocation.getter(#randomizePIN), returnValue: false, ) as bool); + @override set randomizePIN(bool? randomizePIN) => super.noSuchMethod( Invocation.setter( @@ -753,11 +816,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useBiometrics => (super.noSuchMethod( Invocation.getter(#useBiometrics), returnValue: false, ) as bool); + @override set useBiometrics(bool? useBiometrics) => super.noSuchMethod( Invocation.setter( @@ -766,11 +831,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hasPin => (super.noSuchMethod( Invocation.getter(#hasPin), returnValue: false, ) as bool); + @override set hasPin(bool? hasPin) => super.noSuchMethod( Invocation.setter( @@ -779,11 +846,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get familiarity => (super.noSuchMethod( Invocation.getter(#familiarity), returnValue: 0, ) as int); + @override set familiarity(int? familiarity) => super.noSuchMethod( Invocation.setter( @@ -792,11 +861,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get torKillSwitch => (super.noSuchMethod( Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); + @override set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( @@ -805,11 +876,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showTestNetCoins => (super.noSuchMethod( Invocation.getter(#showTestNetCoins), returnValue: false, ) as bool); + @override set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod( Invocation.setter( @@ -818,11 +891,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get isAutoBackupEnabled => (super.noSuchMethod( Invocation.getter(#isAutoBackupEnabled), returnValue: false, ) as bool); + @override set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod( Invocation.setter( @@ -831,6 +906,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod( Invocation.setter( @@ -839,11 +915,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i21.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), returnValue: _i21.BackupFrequencyType.everyTenMinutes, ) as _i21.BackupFrequencyType); + @override set backupFrequencyType(_i21.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( @@ -853,6 +931,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod( Invocation.setter( @@ -861,11 +940,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hideBlockExplorerWarning => (super.noSuchMethod( Invocation.getter(#hideBlockExplorerWarning), returnValue: false, ) as bool); + @override set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) => super.noSuchMethod( @@ -875,11 +956,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get gotoWalletOnStartup => (super.noSuchMethod( Invocation.getter(#gotoWalletOnStartup), returnValue: false, ) as bool); + @override set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod( Invocation.setter( @@ -888,6 +971,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set startupWalletId(String? startupWalletId) => super.noSuchMethod( Invocation.setter( @@ -896,11 +980,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get externalCalls => (super.noSuchMethod( Invocation.getter(#externalCalls), returnValue: false, ) as bool); + @override set externalCalls(bool? externalCalls) => super.noSuchMethod( Invocation.setter( @@ -909,11 +995,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableCoinControl => (super.noSuchMethod( Invocation.getter(#enableCoinControl), returnValue: false, ) as bool); + @override set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod( Invocation.setter( @@ -922,11 +1010,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableSystemBrightness => (super.noSuchMethod( Invocation.getter(#enableSystemBrightness), returnValue: false, ) as bool); + @override set enableSystemBrightness(bool? enableSystemBrightness) => super.noSuchMethod( @@ -936,6 +1026,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get themeId => (super.noSuchMethod( Invocation.getter(#themeId), @@ -944,6 +1035,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#themeId), ), ) as String); + @override set themeId(String? themeId) => super.noSuchMethod( Invocation.setter( @@ -952,6 +1044,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessLightThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessLightThemeId), @@ -960,6 +1053,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#systemBrightnessLightThemeId), ), ) as String); + @override set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) => super.noSuchMethod( @@ -969,6 +1063,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessDarkThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessDarkThemeId), @@ -977,6 +1072,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#systemBrightnessDarkThemeId), ), ) as String); + @override set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) => super.noSuchMethod( @@ -986,11 +1082,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useTor => (super.noSuchMethod( Invocation.getter(#useTor), returnValue: false, ) as bool); + @override set useTor(bool? useTor) => super.noSuchMethod( Invocation.setter( @@ -999,11 +1097,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get autoPin => (super.noSuchMethod( Invocation.getter(#autoPin), returnValue: false, ) as bool); + @override set autoPin(bool? autoPin) => super.noSuchMethod( Invocation.setter( @@ -1012,11 +1112,28 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + + @override + bool get enableExchange => (super.noSuchMethod( + Invocation.getter(#enableExchange), + returnValue: false, + ) as bool); + + @override + set enableExchange(bool? showExchange) => super.noSuchMethod( + Invocation.setter( + #enableExchange, + showExchange, + ), + returnValueForMissingStub: null, + ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future init() => (super.noSuchMethod( Invocation.method( @@ -1026,6 +1143,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( @@ -1035,6 +1153,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( @@ -1043,6 +1162,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: _i10.Future.value(false), ) as _i10.Future); + @override _i10.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( @@ -1052,6 +1172,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( @@ -1061,6 +1182,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i22.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -1069,6 +1191,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: _i22.AmountUnit.normal, ) as _i22.AmountUnit); + @override void updateAmountUnit({ required _i4.CryptoCurrency? coin, @@ -1085,6 +1208,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -1093,6 +1217,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: 0, ) as int); + @override void updateMaxDecimals({ required _i4.CryptoCurrency? coin, @@ -1109,6 +1234,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i8.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -1124,6 +1250,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), ), ) as _i8.FusionInfo); + @override void setFusionServerInfo( _i4.CryptoCurrency? coin, @@ -1139,6 +1266,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1147,6 +1275,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1155,6 +1284,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1163,6 +1293,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/price_test.mocks.dart b/test/price_test.mocks.dart index 8ba8c6d26..3689ebb89 100644 --- a/test/price_test.mocks.dart +++ b/test/price_test.mocks.dart @@ -70,6 +70,7 @@ class MockHTTP extends _i1.Mock implements _i2.HTTP { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future<_i2.Response> post({ required Uri? url, diff --git a/test/screen_tests/address_book_view/address_book_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/address_book_view_screen_test.mocks.dart index b7a88864d..dbbc39497 100644 --- a/test/screen_tests/address_book_view/address_book_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/address_book_view_screen_test.mocks.dart @@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock Invocation.getter(#contacts), returnValue: <_i2.ContactEntry>[], ) as List<_i2.ContactEntry>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i2.ContactEntry getContactById(String? id) => (super.noSuchMethod( Invocation.method( @@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock ), ), ) as _i2.ContactEntry); + @override _i4.Future> search(String? text) => (super.noSuchMethod( @@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future>.value(<_i2.ContactEntry>[]), ) as _i4.Future>); + @override bool matches( String? term, @@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: false, ) as bool); + @override _i4.Future addContact(_i2.ContactEntry? contact) => (super.noSuchMethod( Invocation.method( @@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future editContact(_i2.ContactEntry? editedContact) => (super.noSuchMethod( @@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future removeContact(String? id) => (super.noSuchMethod( Invocation.method( @@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart index 63bbc41c5..25bfa08e4 100644 --- a/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart @@ -88,11 +88,13 @@ class MockAddressBookService extends _i1.Mock Invocation.getter(#contacts), returnValue: <_i3.ContactEntry>[], ) as List<_i3.ContactEntry>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i3.ContactEntry getContactById(String? id) => (super.noSuchMethod( Invocation.method( @@ -107,6 +109,7 @@ class MockAddressBookService extends _i1.Mock ), ), ) as _i3.ContactEntry); + @override _i5.Future> search(String? text) => (super.noSuchMethod( @@ -117,6 +120,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i5.Future>.value(<_i3.ContactEntry>[]), ) as _i5.Future>); + @override bool matches( String? term, @@ -132,6 +136,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: false, ) as bool); + @override _i5.Future addContact(_i3.ContactEntry? contact) => (super.noSuchMethod( Invocation.method( @@ -140,6 +145,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i5.Future.value(false), ) as _i5.Future); + @override _i5.Future editContact(_i3.ContactEntry? editedContact) => (super.noSuchMethod( @@ -149,6 +155,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i5.Future.value(false), ) as _i5.Future); + @override _i5.Future removeContact(String? id) => (super.noSuchMethod( Invocation.method( @@ -158,6 +165,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -166,6 +174,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -174,6 +183,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -182,6 +192,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart index 97a359919..b2f02c854 100644 --- a/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart @@ -49,11 +49,13 @@ class MockAddressBookService extends _i1.Mock Invocation.getter(#contacts), returnValue: <_i2.ContactEntry>[], ) as List<_i2.ContactEntry>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i2.ContactEntry getContactById(String? id) => (super.noSuchMethod( Invocation.method( @@ -68,6 +70,7 @@ class MockAddressBookService extends _i1.Mock ), ), ) as _i2.ContactEntry); + @override _i4.Future> search(String? text) => (super.noSuchMethod( @@ -78,6 +81,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future>.value(<_i2.ContactEntry>[]), ) as _i4.Future>); + @override bool matches( String? term, @@ -93,6 +97,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: false, ) as bool); + @override _i4.Future addContact(_i2.ContactEntry? contact) => (super.noSuchMethod( Invocation.method( @@ -101,6 +106,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future editContact(_i2.ContactEntry? editedContact) => (super.noSuchMethod( @@ -110,6 +116,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future removeContact(String? id) => (super.noSuchMethod( Invocation.method( @@ -119,6 +126,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -127,6 +135,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -135,6 +144,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -143,6 +153,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -169,11 +180,13 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i4.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -184,6 +197,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -192,6 +206,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -200,6 +215,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -208,6 +224,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart index 1f195d5c3..2c93e063c 100644 --- a/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart @@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock Invocation.getter(#contacts), returnValue: <_i2.ContactEntry>[], ) as List<_i2.ContactEntry>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i2.ContactEntry getContactById(String? id) => (super.noSuchMethod( Invocation.method( @@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock ), ), ) as _i2.ContactEntry); + @override _i4.Future> search(String? text) => (super.noSuchMethod( @@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future>.value(<_i2.ContactEntry>[]), ) as _i4.Future>); + @override bool matches( String? term, @@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: false, ) as bool); + @override _i4.Future addContact(_i2.ContactEntry? contact) => (super.noSuchMethod( Invocation.method( @@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future editContact(_i2.ContactEntry? editedContact) => (super.noSuchMethod( @@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future removeContact(String? id) => (super.noSuchMethod( Invocation.method( @@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/exchange/exchange_view_test.mocks.dart b/test/screen_tests/exchange/exchange_view_test.mocks.dart index d883616bf..b7a8d49d5 100644 --- a/test/screen_tests/exchange/exchange_view_test.mocks.dart +++ b/test/screen_tests/exchange/exchange_view_test.mocks.dart @@ -97,11 +97,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { Invocation.getter(#isInitialized), returnValue: false, ) as bool); + @override int get lastUnlockedTimeout => (super.noSuchMethod( Invocation.getter(#lastUnlockedTimeout), returnValue: 0, ) as int); + @override set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod( Invocation.setter( @@ -110,11 +112,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override int get lastUnlocked => (super.noSuchMethod( Invocation.getter(#lastUnlocked), returnValue: 0, ) as int); + @override set lastUnlocked(int? lastUnlocked) => super.noSuchMethod( Invocation.setter( @@ -123,16 +127,19 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override int get currentNotificationId => (super.noSuchMethod( Invocation.getter(#currentNotificationId), returnValue: 0, ) as int); + @override List get walletIdsSyncOnStartup => (super.noSuchMethod( Invocation.getter(#walletIdsSyncOnStartup), returnValue: [], ) as List); + @override set walletIdsSyncOnStartup(List? walletIdsSyncOnStartup) => super.noSuchMethod( @@ -142,11 +149,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override _i6.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), returnValue: _i6.SyncingType.currentWalletOnly, ) as _i6.SyncingType); + @override set syncType(_i6.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( @@ -155,11 +164,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get wifiOnly => (super.noSuchMethod( Invocation.getter(#wifiOnly), returnValue: false, ) as bool); + @override set wifiOnly(bool? wifiOnly) => super.noSuchMethod( Invocation.setter( @@ -168,11 +179,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showFavoriteWallets => (super.noSuchMethod( Invocation.getter(#showFavoriteWallets), returnValue: false, ) as bool); + @override set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod( Invocation.setter( @@ -181,6 +194,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override String get language => (super.noSuchMethod( Invocation.getter(#language), @@ -189,6 +203,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { Invocation.getter(#language), ), ) as String); + @override set language(String? newLanguage) => super.noSuchMethod( Invocation.setter( @@ -197,6 +212,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override String get currency => (super.noSuchMethod( Invocation.getter(#currency), @@ -205,6 +221,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { Invocation.getter(#currency), ), ) as String); + @override set currency(String? newCurrency) => super.noSuchMethod( Invocation.setter( @@ -213,11 +230,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get randomizePIN => (super.noSuchMethod( Invocation.getter(#randomizePIN), returnValue: false, ) as bool); + @override set randomizePIN(bool? randomizePIN) => super.noSuchMethod( Invocation.setter( @@ -226,11 +245,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useBiometrics => (super.noSuchMethod( Invocation.getter(#useBiometrics), returnValue: false, ) as bool); + @override set useBiometrics(bool? useBiometrics) => super.noSuchMethod( Invocation.setter( @@ -239,11 +260,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hasPin => (super.noSuchMethod( Invocation.getter(#hasPin), returnValue: false, ) as bool); + @override set hasPin(bool? hasPin) => super.noSuchMethod( Invocation.setter( @@ -252,11 +275,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override int get familiarity => (super.noSuchMethod( Invocation.getter(#familiarity), returnValue: 0, ) as int); + @override set familiarity(int? familiarity) => super.noSuchMethod( Invocation.setter( @@ -265,11 +290,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get torKillSwitch => (super.noSuchMethod( Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); + @override set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( @@ -278,11 +305,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showTestNetCoins => (super.noSuchMethod( Invocation.getter(#showTestNetCoins), returnValue: false, ) as bool); + @override set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod( Invocation.setter( @@ -291,11 +320,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get isAutoBackupEnabled => (super.noSuchMethod( Invocation.getter(#isAutoBackupEnabled), returnValue: false, ) as bool); + @override set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod( Invocation.setter( @@ -304,6 +335,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod( Invocation.setter( @@ -312,11 +344,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override _i8.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), returnValue: _i8.BackupFrequencyType.everyTenMinutes, ) as _i8.BackupFrequencyType); + @override set backupFrequencyType(_i8.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( @@ -326,6 +360,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod( Invocation.setter( @@ -334,11 +369,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hideBlockExplorerWarning => (super.noSuchMethod( Invocation.getter(#hideBlockExplorerWarning), returnValue: false, ) as bool); + @override set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) => super.noSuchMethod( @@ -348,11 +385,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get gotoWalletOnStartup => (super.noSuchMethod( Invocation.getter(#gotoWalletOnStartup), returnValue: false, ) as bool); + @override set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod( Invocation.setter( @@ -361,6 +400,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override set startupWalletId(String? startupWalletId) => super.noSuchMethod( Invocation.setter( @@ -369,11 +409,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get externalCalls => (super.noSuchMethod( Invocation.getter(#externalCalls), returnValue: false, ) as bool); + @override set externalCalls(bool? externalCalls) => super.noSuchMethod( Invocation.setter( @@ -382,11 +424,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableCoinControl => (super.noSuchMethod( Invocation.getter(#enableCoinControl), returnValue: false, ) as bool); + @override set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod( Invocation.setter( @@ -395,11 +439,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableSystemBrightness => (super.noSuchMethod( Invocation.getter(#enableSystemBrightness), returnValue: false, ) as bool); + @override set enableSystemBrightness(bool? enableSystemBrightness) => super.noSuchMethod( @@ -409,6 +455,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override String get themeId => (super.noSuchMethod( Invocation.getter(#themeId), @@ -417,6 +464,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { Invocation.getter(#themeId), ), ) as String); + @override set themeId(String? themeId) => super.noSuchMethod( Invocation.setter( @@ -425,6 +473,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessLightThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessLightThemeId), @@ -433,6 +482,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { Invocation.getter(#systemBrightnessLightThemeId), ), ) as String); + @override set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) => super.noSuchMethod( @@ -442,6 +492,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessDarkThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessDarkThemeId), @@ -450,6 +501,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { Invocation.getter(#systemBrightnessDarkThemeId), ), ) as String); + @override set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) => super.noSuchMethod( @@ -459,11 +511,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useTor => (super.noSuchMethod( Invocation.getter(#useTor), returnValue: false, ) as bool); + @override set useTor(bool? useTor) => super.noSuchMethod( Invocation.setter( @@ -472,11 +526,13 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override bool get autoPin => (super.noSuchMethod( Invocation.getter(#autoPin), returnValue: false, ) as bool); + @override set autoPin(bool? autoPin) => super.noSuchMethod( Invocation.setter( @@ -485,11 +541,28 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + + @override + bool get enableExchange => (super.noSuchMethod( + Invocation.getter(#enableExchange), + returnValue: false, + ) as bool); + + @override + set enableExchange(bool? showExchange) => super.noSuchMethod( + Invocation.setter( + #enableExchange, + showExchange, + ), + returnValueForMissingStub: null, + ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i9.Future init() => (super.noSuchMethod( Invocation.method( @@ -499,6 +572,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( @@ -508,6 +582,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( @@ -516,6 +591,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValue: _i9.Future.value(false), ) as _i9.Future); + @override _i9.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( @@ -525,6 +601,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( @@ -534,6 +611,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i10.AmountUnit amountUnit(_i11.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -542,6 +620,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValue: _i10.AmountUnit.normal, ) as _i10.AmountUnit); + @override void updateAmountUnit({ required _i11.CryptoCurrency? coin, @@ -558,6 +637,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override int maxDecimals(_i11.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -566,6 +646,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValue: 0, ) as int); + @override void updateMaxDecimals({ required _i11.CryptoCurrency? coin, @@ -582,6 +663,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override _i2.FusionInfo getFusionServerInfo(_i11.CryptoCurrency? coin) => (super.noSuchMethod( @@ -597,6 +679,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), ), ) as _i2.FusionInfo); + @override void setFusionServerInfo( _i11.CryptoCurrency? coin, @@ -612,6 +695,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -620,6 +704,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -628,6 +713,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -636,6 +722,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -659,16 +746,19 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { Invocation.getter(#trades), returnValue: <_i14.Trade>[], ) as List<_i14.Trade>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i14.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method( #get, [tradeId], )) as _i14.Trade?); + @override _i9.Future add({ required _i14.Trade? trade, @@ -686,6 +776,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future edit({ required _i14.Trade? trade, @@ -703,6 +794,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future delete({ required _i14.Trade? trade, @@ -720,6 +812,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future deleteByUuid({ required String? uuid, @@ -737,6 +830,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -745,6 +839,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -753,6 +848,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -761,6 +857,7 @@ class MockTradesService extends _i1.Mock implements _i13.TradesService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -784,11 +881,13 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService { Invocation.getter(#all), returnValue: {}, ) as Map); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override String getNote({required String? tradeId}) => (super.noSuchMethod( Invocation.method( @@ -805,6 +904,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService { ), ), ) as String); + @override _i9.Future set({ required String? tradeId, @@ -822,6 +922,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future delete({required String? tradeId}) => (super.noSuchMethod( Invocation.method( @@ -832,6 +933,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -840,6 +942,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -848,6 +951,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -856,6 +960,7 @@ class MockTradeNotesService extends _i1.Mock implements _i15.TradeNotesService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -882,6 +987,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { Invocation.getter(#client), ), ) as _i3.HTTP); + @override _i9.Future<_i4.ExchangeResponse>> getAvailableCurrencies({ bool? fixedRate, @@ -910,6 +1016,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse>>); + @override _i9.Future<_i4.ExchangeResponse>> getCurrenciesV2() => (super.noSuchMethod( @@ -927,6 +1034,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse>>); + @override _i9.Future<_i4.ExchangeResponse>> getPairedCurrencies({ required String? ticker, @@ -955,6 +1063,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse>>); + @override _i9.Future<_i4.ExchangeResponse<_i18.Decimal>> getMinimalExchangeAmount({ required String? fromTicker, @@ -985,6 +1094,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i18.Decimal>>); + @override _i9.Future<_i4.ExchangeResponse<_i19.Range>> getRange({ required String? fromTicker, @@ -1018,6 +1128,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i19.Range>>); + @override _i9.Future<_i4.ExchangeResponse<_i20.Estimate>> getEstimatedExchangeAmount({ required String? fromTicker, @@ -1051,6 +1162,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i20.Estimate>>); + @override _i9.Future<_i4.ExchangeResponse<_i20.Estimate>> getEstimatedExchangeAmountFixedRate({ @@ -1091,6 +1203,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i20.Estimate>>); + @override _i9.Future<_i4.ExchangeResponse<_i21.CNExchangeEstimate>> getEstimatedExchangeAmountV2({ @@ -1138,6 +1251,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i21.CNExchangeEstimate>>); + @override _i9.Future<_i4.ExchangeResponse>> getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod( @@ -1157,6 +1271,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse>>); + @override _i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>> createStandardExchangeTransaction({ @@ -1210,6 +1325,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>>); + @override _i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>> createFixedRateExchangeTransaction({ @@ -1269,6 +1385,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i23.ExchangeTransaction>>); + @override _i9.Future< _i4 @@ -1299,6 +1416,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i16.ChangeNowAPI { ), )), ) as _i9.Future<_i4.ExchangeResponse<_i24.ExchangeTransactionStatus>>); + @override _i9.Future<_i4.ExchangeResponse>> getAvailableFloatingRatePairs({bool? includePartners = false}) => diff --git a/test/screen_tests/lockscreen_view_screen_test.mocks.dart b/test/screen_tests/lockscreen_view_screen_test.mocks.dart index 2a0844351..a3523a093 100644 --- a/test/screen_tests/lockscreen_view_screen_test.mocks.dart +++ b/test/screen_tests/lockscreen_view_screen_test.mocks.dart @@ -54,11 +54,13 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { returnValue: _i4.Future>.value( {}), ) as _i4.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -67,6 +69,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -75,6 +78,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -83,6 +87,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -109,21 +114,25 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i2.SecureStorageInterface); + @override List<_i7.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override List<_i7.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i4.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -133,6 +142,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future setPrimaryNodeFor({ required _i8.CryptoCurrency? coin, @@ -152,6 +162,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -159,6 +170,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { [], {#currency: currency}, )) as _i7.NodeModel?); + @override List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) => (super.noSuchMethod( @@ -168,6 +180,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override _i7.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -175,6 +188,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { [], {#id: id}, )) as _i7.NodeModel?); + @override List<_i7.NodeModel> failoverNodesFor( {required _i8.CryptoCurrency? currency}) => @@ -186,6 +200,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override _i4.Future add( _i7.NodeModel? node, @@ -204,6 +219,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future delete( String? id, @@ -220,6 +236,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future setEnabledState( String? id, @@ -238,6 +255,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future edit( _i7.NodeModel? editedNode, @@ -256,6 +274,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -265,6 +284,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -273,6 +293,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -281,6 +302,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -289,6 +311,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart index 9860ea5e7..3d96a2dcf 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart @@ -39,11 +39,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -52,6 +54,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -60,6 +63,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -68,6 +72,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -94,11 +99,13 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i3.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -109,6 +116,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -117,6 +125,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -125,6 +134,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -133,6 +143,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart index 2cc8ad83e..7cccdb73e 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart @@ -39,11 +39,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -52,6 +54,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -60,6 +63,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -68,6 +72,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -94,11 +99,13 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i3.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -109,6 +116,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -117,6 +125,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -125,6 +134,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -133,6 +143,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart index 2da39262c..9362ee778 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart @@ -39,11 +39,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -52,6 +54,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -60,6 +63,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -68,6 +72,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -94,11 +99,13 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i3.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -109,6 +116,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -117,6 +125,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -125,6 +134,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -133,6 +143,7 @@ class MockLocaleService extends _i1.Mock implements _i5.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart b/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart index 7544b767c..951e5306d 100644 --- a/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart @@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart index 5aed33644..4f9addbc7 100644 --- a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart @@ -54,11 +54,13 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { returnValue: _i4.Future>.value( {}), ) as _i4.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -67,6 +69,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -75,6 +78,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -83,6 +87,7 @@ class MockWalletsService extends _i1.Mock implements _i3.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -109,21 +114,25 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i2.SecureStorageInterface); + @override List<_i7.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override List<_i7.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i4.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -133,6 +142,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future setPrimaryNodeFor({ required _i8.CryptoCurrency? coin, @@ -152,6 +162,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -159,6 +170,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { [], {#currency: currency}, )) as _i7.NodeModel?); + @override List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) => (super.noSuchMethod( @@ -168,6 +180,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override _i7.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -175,6 +188,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { [], {#id: id}, )) as _i7.NodeModel?); + @override List<_i7.NodeModel> failoverNodesFor( {required _i8.CryptoCurrency? currency}) => @@ -186,6 +200,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); + @override _i4.Future add( _i7.NodeModel? node, @@ -204,6 +219,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future delete( String? id, @@ -220,6 +236,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future setEnabledState( String? id, @@ -238,6 +255,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future edit( _i7.NodeModel? editedNode, @@ -256,6 +274,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override _i4.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -265,6 +284,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -273,6 +293,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -281,6 +302,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -289,6 +311,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/onboarding/name_your_wallet_view_screen_test.mocks.dart b/test/screen_tests/onboarding/name_your_wallet_view_screen_test.mocks.dart index ea7cadff1..5983f2f41 100644 --- a/test/screen_tests/onboarding/name_your_wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/name_your_wallet_view_screen_test.mocks.dart @@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart index 7ce8c0b95..0603d61be 100644 --- a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart @@ -95,11 +95,13 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService { returnValue: _i5.Future>.value( {}), ) as _i5.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -108,6 +110,7 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -116,6 +119,7 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -124,6 +128,7 @@ class MockWalletsService extends _i1.Mock implements _i6.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -150,21 +155,25 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i3.SecureStorageInterface); + @override List<_i9.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i9.NodeModel>[], ) as List<_i9.NodeModel>); + @override List<_i9.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i9.NodeModel>[], ) as List<_i9.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i5.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -174,6 +183,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setPrimaryNodeFor({ required _i10.CryptoCurrency? coin, @@ -193,6 +203,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i9.NodeModel? getPrimaryNodeFor({required _i10.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -200,6 +211,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { [], {#currency: currency}, )) as _i9.NodeModel?); + @override List<_i9.NodeModel> getNodesFor(_i10.CryptoCurrency? coin) => (super.noSuchMethod( @@ -209,6 +221,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { ), returnValue: <_i9.NodeModel>[], ) as List<_i9.NodeModel>); + @override _i9.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -216,6 +229,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { [], {#id: id}, )) as _i9.NodeModel?); + @override List<_i9.NodeModel> failoverNodesFor( {required _i10.CryptoCurrency? currency}) => @@ -227,6 +241,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { ), returnValue: <_i9.NodeModel>[], ) as List<_i9.NodeModel>); + @override _i5.Future add( _i9.NodeModel? node, @@ -245,6 +260,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future delete( String? id, @@ -261,6 +277,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setEnabledState( String? id, @@ -279,6 +296,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future edit( _i9.NodeModel? editedNode, @@ -297,6 +315,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -306,6 +325,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -314,6 +334,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -322,6 +343,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -330,6 +352,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart index 6216d4e86..75a10f43e 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart @@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i2.SecureStorageInterface); + @override List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override List<_i4.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i5.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setPrimaryNodeFor({ required _i6.CryptoCurrency? coin, @@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#currency: currency}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => (super.noSuchMethod( @@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i4.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#id: id}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> failoverNodesFor( {required _i6.CryptoCurrency? currency}) => @@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i5.Future add( _i4.NodeModel? node, @@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future delete( String? id, @@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setEnabledState( String? id, @@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future edit( _i4.NodeModel? editedNode, @@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart index f1948fa9a..fb159cea3 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart @@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i2.SecureStorageInterface); + @override List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override List<_i4.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i5.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setPrimaryNodeFor({ required _i6.CryptoCurrency? coin, @@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#currency: currency}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => (super.noSuchMethod( @@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i4.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#id: id}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> failoverNodesFor( {required _i6.CryptoCurrency? currency}) => @@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i5.Future add( _i4.NodeModel? node, @@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future delete( String? id, @@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setEnabledState( String? id, @@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future edit( _i4.NodeModel? editedNode, @@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart index 4adf647f0..c60df280d 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart @@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i2.SecureStorageInterface); + @override List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override List<_i4.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i5.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setPrimaryNodeFor({ required _i6.CryptoCurrency? coin, @@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#currency: currency}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => (super.noSuchMethod( @@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i4.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#id: id}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> failoverNodesFor( {required _i6.CryptoCurrency? currency}) => @@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i5.Future add( _i4.NodeModel? node, @@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future delete( String? id, @@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setEnabledState( String? id, @@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future edit( _i4.NodeModel? editedNode, @@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/change_pin_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/change_pin_view_screen_test.mocks.dart index b9014e5fe..93c8ef6ec 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/change_pin_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/change_pin_view_screen_test.mocks.dart @@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rename_wallet_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rename_wallet_view_screen_test.mocks.dart index e35762cce..2803819b6 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rename_wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rename_wallet_view_screen_test.mocks.dart @@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart index 7855c17d8..63ddd796c 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart @@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart index e4c45b863..40a295640 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart @@ -4,16 +4,18 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; -import 'dart:ui' as _i11; +import 'dart:ui' as _i13; -import 'package:local_auth/auth_strings.dart' as _i8; import 'package:local_auth/local_auth.dart' as _i7; +import 'package:local_auth_android/local_auth_android.dart' as _i8; +import 'package:local_auth_darwin/local_auth_darwin.dart' as _i9; +import 'package:local_auth_windows/local_auth_windows.dart' as _i10; import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i6; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i3; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i2; -import 'package:stackwallet/services/wallets_service.dart' as _i10; -import 'package:stackwallet/utilities/biometrics.dart' as _i9; +import 'package:stackwallet/services/wallets_service.dart' as _i12; +import 'package:stackwallet/utilities/biometrics.dart' as _i11; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i5; @@ -58,6 +60,7 @@ class MockCachedElectrumXClient extends _i1.Mock Invocation.getter(#electrumXClient), ), ) as _i2.ElectrumXClient); + @override _i4.Future> getAnonymitySet({ required String? groupId, @@ -77,6 +80,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i4.Future>.value({}), ) as _i4.Future>); + @override String base64ToHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -91,6 +95,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override String base64ToReverseHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -105,6 +110,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override _i4.Future> getTransaction({ required String? txHash, @@ -124,6 +130,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i4.Future>.value({}), ) as _i4.Future>); + @override _i4.Future> getUsedCoinSerials({ required _i5.CryptoCurrency? cryptoCurrency, @@ -140,6 +147,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), returnValue: _i4.Future>.value([]), ) as _i4.Future>); + @override _i4.Future clearSharedTransactionCache( {required _i5.CryptoCurrency? cryptoCurrency}) => @@ -168,41 +176,16 @@ class MockLocalAuthentication extends _i1.Mock Invocation.getter(#canCheckBiometrics), returnValue: _i4.Future.value(false), ) as _i4.Future); - @override - _i4.Future authenticateWithBiometrics({ - required String? localizedReason, - bool? useErrorDialogs = true, - bool? stickyAuth = false, - _i8.AndroidAuthMessages? androidAuthStrings = - const _i8.AndroidAuthMessages(), - _i8.IOSAuthMessages? iOSAuthStrings = const _i8.IOSAuthMessages(), - bool? sensitiveTransaction = true, - }) => - (super.noSuchMethod( - Invocation.method( - #authenticateWithBiometrics, - [], - { - #localizedReason: localizedReason, - #useErrorDialogs: useErrorDialogs, - #stickyAuth: stickyAuth, - #androidAuthStrings: androidAuthStrings, - #iOSAuthStrings: iOSAuthStrings, - #sensitiveTransaction: sensitiveTransaction, - }, - ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); + @override _i4.Future authenticate({ required String? localizedReason, - bool? useErrorDialogs = true, - bool? stickyAuth = false, - _i8.AndroidAuthMessages? androidAuthStrings = - const _i8.AndroidAuthMessages(), - _i8.IOSAuthMessages? iOSAuthStrings = const _i8.IOSAuthMessages(), - bool? sensitiveTransaction = true, - bool? biometricOnly = false, + Iterable<_i8.AuthMessages>? authMessages = const [ + _i9.IOSAuthMessages(), + _i8.AndroidAuthMessages(), + _i10.WindowsAuthMessages(), + ], + _i8.AuthenticationOptions? options = const _i8.AuthenticationOptions(), }) => (super.noSuchMethod( Invocation.method( @@ -210,16 +193,13 @@ class MockLocalAuthentication extends _i1.Mock [], { #localizedReason: localizedReason, - #useErrorDialogs: useErrorDialogs, - #stickyAuth: stickyAuth, - #androidAuthStrings: androidAuthStrings, - #iOSAuthStrings: iOSAuthStrings, - #sensitiveTransaction: sensitiveTransaction, - #biometricOnly: biometricOnly, + #authMessages: authMessages, + #options: options, }, ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future stopAuthentication() => (super.noSuchMethod( Invocation.method( @@ -228,6 +208,7 @@ class MockLocalAuthentication extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future isDeviceSupported() => (super.noSuchMethod( Invocation.method( @@ -236,22 +217,23 @@ class MockLocalAuthentication extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override - _i4.Future> getAvailableBiometrics() => + _i4.Future> getAvailableBiometrics() => (super.noSuchMethod( Invocation.method( #getAvailableBiometrics, [], ), returnValue: - _i4.Future>.value(<_i7.BiometricType>[]), - ) as _i4.Future>); + _i4.Future>.value(<_i8.BiometricType>[]), + ) as _i4.Future>); } /// A class which mocks [Biometrics]. /// /// See the documentation for Mockito's code generation for more information. -class MockBiometrics extends _i1.Mock implements _i9.Biometrics { +class MockBiometrics extends _i1.Mock implements _i11.Biometrics { MockBiometrics() { _i1.throwOnMissingStub(this); } @@ -279,39 +261,43 @@ class MockBiometrics extends _i1.Mock implements _i9.Biometrics { /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i10.WalletsService { +class MockWalletsService extends _i1.Mock implements _i12.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i4.Future> get walletNames => + _i4.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i4.Future>.value( - {}), - ) as _i4.Future>); + returnValue: _i4.Future>.value( + {}), + ) as _i4.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override - void addListener(_i11.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i13.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], ), returnValueForMissingStub: null, ); + @override - void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -320,6 +306,7 @@ class MockWalletsService extends _i1.Mock implements _i10.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart index 21c907eb7..2f8346004 100644 --- a/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart @@ -37,11 +37,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: _i3.Future>.value( {}), ) as _i3.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -50,6 +52,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -58,6 +61,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -66,6 +70,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart b/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart index 7c8355a96..531417e9d 100644 --- a/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart +++ b/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart @@ -49,11 +49,13 @@ class MockAddressBookService extends _i1.Mock Invocation.getter(#contacts), returnValue: <_i2.ContactEntry>[], ) as List<_i2.ContactEntry>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i2.ContactEntry getContactById(String? id) => (super.noSuchMethod( Invocation.method( @@ -68,6 +70,7 @@ class MockAddressBookService extends _i1.Mock ), ), ) as _i2.ContactEntry); + @override _i4.Future> search(String? text) => (super.noSuchMethod( @@ -78,6 +81,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future>.value(<_i2.ContactEntry>[]), ) as _i4.Future>); + @override bool matches( String? term, @@ -93,6 +97,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: false, ) as bool); + @override _i4.Future addContact(_i2.ContactEntry? contact) => (super.noSuchMethod( Invocation.method( @@ -101,6 +106,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future editContact(_i2.ContactEntry? editedContact) => (super.noSuchMethod( @@ -110,6 +116,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future removeContact(String? id) => (super.noSuchMethod( Invocation.method( @@ -119,6 +126,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -127,6 +135,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -135,6 +144,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -143,6 +153,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -169,11 +180,13 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i4.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -184,6 +197,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -192,6 +206,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -200,6 +215,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -208,6 +224,7 @@ class MockLocaleService extends _i1.Mock implements _i6.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart b/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart index c4aad0a14..ff1557434 100644 --- a/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart +++ b/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart @@ -39,11 +39,13 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i4.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -54,6 +56,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -62,6 +65,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -70,6 +74,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -78,6 +83,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart b/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart index 6fd708af7..a236a0b41 100644 --- a/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart +++ b/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart @@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock Invocation.getter(#contacts), returnValue: <_i2.ContactEntry>[], ) as List<_i2.ContactEntry>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i2.ContactEntry getContactById(String? id) => (super.noSuchMethod( Invocation.method( @@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock ), ), ) as _i2.ContactEntry); + @override _i4.Future> search(String? text) => (super.noSuchMethod( @@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future>.value(<_i2.ContactEntry>[]), ) as _i4.Future>); + @override bool matches( String? term, @@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: false, ) as bool); + @override _i4.Future addContact(_i2.ContactEntry? contact) => (super.noSuchMethod( Invocation.method( @@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future editContact(_i2.ContactEntry? editedContact) => (super.noSuchMethod( @@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future removeContact(String? id) => (super.noSuchMethod( Invocation.method( @@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart index b85201783..cf011b7c6 100644 --- a/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart @@ -39,11 +39,13 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i4.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -54,6 +56,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -62,6 +65,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -70,6 +74,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -78,6 +83,7 @@ class MockLocaleService extends _i1.Mock implements _i2.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/services/change_now/change_now_test.mocks.dart b/test/services/change_now/change_now_test.mocks.dart index 1ee496d32..8134b6449 100644 --- a/test/services/change_now/change_now_test.mocks.dart +++ b/test/services/change_now/change_now_test.mocks.dart @@ -70,6 +70,7 @@ class MockHTTP extends _i1.Mock implements _i2.HTTP { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future<_i2.Response> post({ required Uri? url, diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart index 474c6e622..e38af7ce9 100644 --- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart +++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart @@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#cryptoCurrency), ), ) as _i2.CryptoCurrency); + @override set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod( Invocation.setter( @@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override int get currentFailoverIndex => (super.noSuchMethod( Invocation.getter(#currentFailoverIndex), returnValue: 0, ) as int); + @override set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod( Invocation.setter( @@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override Duration get connectionTimeoutForSpecialCaseJsonRPCClients => (super.noSuchMethod( @@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), ), ) as Duration); + @override String get host => (super.noSuchMethod( Invocation.getter(#host), @@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#host), ), ) as String); + @override int get port => (super.noSuchMethod( Invocation.getter(#port), returnValue: 0, ) as int); + @override bool get useSSL => (super.noSuchMethod( Invocation.getter(#useSSL), returnValue: false, ) as bool); + @override _i6.Future closeAdapter() => (super.noSuchMethod( Invocation.method( @@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkElectrumAdapter() => (super.noSuchMethod( Invocation.method( @@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future request({ required String? command, @@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> batchRequest({ required String? command, @@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future ping({ String? requestID, @@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getBlockHeadTip({String? requestID}) => (super.noSuchMethod( @@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getServerFeatures({String? requestID}) => (super.noSuchMethod( @@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future broadcastTransaction({ required String? rawTx, @@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future); + @override _i6.Future> getBalance({ required String? scripthash, @@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getHistory({ required String? scripthash, @@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchHistory( {required List? args}) => @@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future>> getUTXOs({ required String? scripthash, @@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchUTXOs( {required List? args}) => @@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future> getTransaction({ required String? txHash, @@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getLelantusAnonymitySet({ String? groupId = r'1', @@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusMintData({ dynamic mints, @@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> getLelantusUsedCoinSerials({ String? requestID, @@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getSparkAnonymitySet({ String? coinGroupId = r'1', @@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getSparkMintMetaData({ String? requestID, @@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getMempoolTxids({String? requestID}) => (super.noSuchMethod( @@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future< List< @@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { List serialContext, String txid })>>); + @override _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ String? requestID, @@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>>.value(>[]), ) as _i6.Future>>); + @override _i6.Future isMasterNodeCollateral({ String? requestID, @@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( @@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future<_i3.Decimal> estimateFee({ String? requestID, @@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future<_i3.Decimal>); + @override _i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod( Invocation.method( @@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock Invocation.getter(#electrumXClient), ), ) as _i4.ElectrumXClient); + @override _i6.Future> getAnonymitySet({ required String? groupId, @@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override String base64ToHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override String base64ToReverseHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override _i6.Future> getTransaction({ required String? txHash, @@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getUsedCoinSerials({ required _i2.CryptoCurrency? cryptoCurrency, @@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future clearSharedTransactionCache( {required _i2.CryptoCurrency? cryptoCurrency}) => @@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock Invocation.getter(#walletId), ), ) as String); + @override List get pendings => (super.noSuchMethod( Invocation.getter(#pendings), returnValue: [], ) as List); + @override List get confirmeds => (super.noSuchMethod( Invocation.getter(#confirmeds), returnValue: [], ) as List); + @override bool wasNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future deleteTransaction(String? txid) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart index 00b2be75f..edbb3c632 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart @@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#cryptoCurrency), ), ) as _i2.CryptoCurrency); + @override set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod( Invocation.setter( @@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override int get currentFailoverIndex => (super.noSuchMethod( Invocation.getter(#currentFailoverIndex), returnValue: 0, ) as int); + @override set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod( Invocation.setter( @@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override Duration get connectionTimeoutForSpecialCaseJsonRPCClients => (super.noSuchMethod( @@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), ), ) as Duration); + @override String get host => (super.noSuchMethod( Invocation.getter(#host), @@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#host), ), ) as String); + @override int get port => (super.noSuchMethod( Invocation.getter(#port), returnValue: 0, ) as int); + @override bool get useSSL => (super.noSuchMethod( Invocation.getter(#useSSL), returnValue: false, ) as bool); + @override _i6.Future closeAdapter() => (super.noSuchMethod( Invocation.method( @@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkElectrumAdapter() => (super.noSuchMethod( Invocation.method( @@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future request({ required String? command, @@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> batchRequest({ required String? command, @@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future ping({ String? requestID, @@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getBlockHeadTip({String? requestID}) => (super.noSuchMethod( @@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getServerFeatures({String? requestID}) => (super.noSuchMethod( @@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future broadcastTransaction({ required String? rawTx, @@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future); + @override _i6.Future> getBalance({ required String? scripthash, @@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getHistory({ required String? scripthash, @@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchHistory( {required List? args}) => @@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future>> getUTXOs({ required String? scripthash, @@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchUTXOs( {required List? args}) => @@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future> getTransaction({ required String? txHash, @@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getLelantusAnonymitySet({ String? groupId = r'1', @@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusMintData({ dynamic mints, @@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> getLelantusUsedCoinSerials({ String? requestID, @@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getSparkAnonymitySet({ String? coinGroupId = r'1', @@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getSparkMintMetaData({ String? requestID, @@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getMempoolTxids({String? requestID}) => (super.noSuchMethod( @@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future< List< @@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { List serialContext, String txid })>>); + @override _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ String? requestID, @@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>>.value(>[]), ) as _i6.Future>>); + @override _i6.Future isMasterNodeCollateral({ String? requestID, @@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( @@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future<_i3.Decimal> estimateFee({ String? requestID, @@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future<_i3.Decimal>); + @override _i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod( Invocation.method( @@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock Invocation.getter(#electrumXClient), ), ) as _i4.ElectrumXClient); + @override _i6.Future> getAnonymitySet({ required String? groupId, @@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override String base64ToHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override String base64ToReverseHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override _i6.Future> getTransaction({ required String? txHash, @@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getUsedCoinSerials({ required _i2.CryptoCurrency? cryptoCurrency, @@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future clearSharedTransactionCache( {required _i2.CryptoCurrency? cryptoCurrency}) => @@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock Invocation.getter(#walletId), ), ) as String); + @override List get pendings => (super.noSuchMethod( Invocation.getter(#pendings), returnValue: [], ) as List); + @override List get confirmeds => (super.noSuchMethod( Invocation.getter(#confirmeds), returnValue: [], ) as List); + @override bool wasNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future deleteTransaction(String? txid) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart index 45316c474..c5c167366 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart @@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#cryptoCurrency), ), ) as _i2.CryptoCurrency); + @override set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod( Invocation.setter( @@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override int get currentFailoverIndex => (super.noSuchMethod( Invocation.getter(#currentFailoverIndex), returnValue: 0, ) as int); + @override set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod( Invocation.setter( @@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override Duration get connectionTimeoutForSpecialCaseJsonRPCClients => (super.noSuchMethod( @@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), ), ) as Duration); + @override String get host => (super.noSuchMethod( Invocation.getter(#host), @@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#host), ), ) as String); + @override int get port => (super.noSuchMethod( Invocation.getter(#port), returnValue: 0, ) as int); + @override bool get useSSL => (super.noSuchMethod( Invocation.getter(#useSSL), returnValue: false, ) as bool); + @override _i6.Future closeAdapter() => (super.noSuchMethod( Invocation.method( @@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkElectrumAdapter() => (super.noSuchMethod( Invocation.method( @@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future request({ required String? command, @@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> batchRequest({ required String? command, @@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future ping({ String? requestID, @@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getBlockHeadTip({String? requestID}) => (super.noSuchMethod( @@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getServerFeatures({String? requestID}) => (super.noSuchMethod( @@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future broadcastTransaction({ required String? rawTx, @@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future); + @override _i6.Future> getBalance({ required String? scripthash, @@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getHistory({ required String? scripthash, @@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchHistory( {required List? args}) => @@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future>> getUTXOs({ required String? scripthash, @@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchUTXOs( {required List? args}) => @@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future> getTransaction({ required String? txHash, @@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getLelantusAnonymitySet({ String? groupId = r'1', @@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusMintData({ dynamic mints, @@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> getLelantusUsedCoinSerials({ String? requestID, @@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getSparkAnonymitySet({ String? coinGroupId = r'1', @@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getSparkMintMetaData({ String? requestID, @@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getMempoolTxids({String? requestID}) => (super.noSuchMethod( @@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future< List< @@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { List serialContext, String txid })>>); + @override _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ String? requestID, @@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>>.value(>[]), ) as _i6.Future>>); + @override _i6.Future isMasterNodeCollateral({ String? requestID, @@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( @@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future<_i3.Decimal> estimateFee({ String? requestID, @@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future<_i3.Decimal>); + @override _i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod( Invocation.method( @@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock Invocation.getter(#electrumXClient), ), ) as _i4.ElectrumXClient); + @override _i6.Future> getAnonymitySet({ required String? groupId, @@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override String base64ToHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override String base64ToReverseHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override _i6.Future> getTransaction({ required String? txHash, @@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getUsedCoinSerials({ required _i2.CryptoCurrency? cryptoCurrency, @@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future clearSharedTransactionCache( {required _i2.CryptoCurrency? cryptoCurrency}) => @@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock Invocation.getter(#walletId), ), ) as String); + @override List get pendings => (super.noSuchMethod( Invocation.getter(#pendings), returnValue: [], ) as List); + @override List get confirmeds => (super.noSuchMethod( Invocation.getter(#confirmeds), returnValue: [], ) as List); + @override bool wasNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future deleteTransaction(String? txid) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart index 163972e97..80e8c8922 100644 --- a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart +++ b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart @@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#cryptoCurrency), ), ) as _i2.CryptoCurrency); + @override set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod( Invocation.setter( @@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override int get currentFailoverIndex => (super.noSuchMethod( Invocation.getter(#currentFailoverIndex), returnValue: 0, ) as int); + @override set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod( Invocation.setter( @@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override Duration get connectionTimeoutForSpecialCaseJsonRPCClients => (super.noSuchMethod( @@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), ), ) as Duration); + @override String get host => (super.noSuchMethod( Invocation.getter(#host), @@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#host), ), ) as String); + @override int get port => (super.noSuchMethod( Invocation.getter(#port), returnValue: 0, ) as int); + @override bool get useSSL => (super.noSuchMethod( Invocation.getter(#useSSL), returnValue: false, ) as bool); + @override _i6.Future closeAdapter() => (super.noSuchMethod( Invocation.method( @@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkElectrumAdapter() => (super.noSuchMethod( Invocation.method( @@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future request({ required String? command, @@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> batchRequest({ required String? command, @@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future ping({ String? requestID, @@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getBlockHeadTip({String? requestID}) => (super.noSuchMethod( @@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getServerFeatures({String? requestID}) => (super.noSuchMethod( @@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future broadcastTransaction({ required String? rawTx, @@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future); + @override _i6.Future> getBalance({ required String? scripthash, @@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getHistory({ required String? scripthash, @@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchHistory( {required List? args}) => @@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future>> getUTXOs({ required String? scripthash, @@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchUTXOs( {required List? args}) => @@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future> getTransaction({ required String? txHash, @@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getLelantusAnonymitySet({ String? groupId = r'1', @@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusMintData({ dynamic mints, @@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> getLelantusUsedCoinSerials({ String? requestID, @@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getSparkAnonymitySet({ String? coinGroupId = r'1', @@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getSparkMintMetaData({ String? requestID, @@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getMempoolTxids({String? requestID}) => (super.noSuchMethod( @@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future< List< @@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { List serialContext, String txid })>>); + @override _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ String? requestID, @@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>>.value(>[]), ) as _i6.Future>>); + @override _i6.Future isMasterNodeCollateral({ String? requestID, @@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( @@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future<_i3.Decimal> estimateFee({ String? requestID, @@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future<_i3.Decimal>); + @override _i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod( Invocation.method( @@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock Invocation.getter(#electrumXClient), ), ) as _i4.ElectrumXClient); + @override _i6.Future> getAnonymitySet({ required String? groupId, @@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override String base64ToHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override String base64ToReverseHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override _i6.Future> getTransaction({ required String? txHash, @@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getUsedCoinSerials({ required _i2.CryptoCurrency? cryptoCurrency, @@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future clearSharedTransactionCache( {required _i2.CryptoCurrency? cryptoCurrency}) => @@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock Invocation.getter(#walletId), ), ) as String); + @override List get pendings => (super.noSuchMethod( Invocation.getter(#pendings), returnValue: [], ) as List); + @override List get confirmeds => (super.noSuchMethod( Invocation.getter(#confirmeds), returnValue: [], ) as List); + @override bool wasNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future deleteTransaction(String? txid) => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/particl/particl_wallet_test.mocks.dart b/test/services/coins/particl/particl_wallet_test.mocks.dart index 44f0da5ad..0fde0b645 100644 --- a/test/services/coins/particl/particl_wallet_test.mocks.dart +++ b/test/services/coins/particl/particl_wallet_test.mocks.dart @@ -86,6 +86,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#cryptoCurrency), ), ) as _i2.CryptoCurrency); + @override set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod( Invocation.setter( @@ -94,11 +95,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override int get currentFailoverIndex => (super.noSuchMethod( Invocation.getter(#currentFailoverIndex), returnValue: 0, ) as int); + @override set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod( Invocation.setter( @@ -107,6 +110,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValueForMissingStub: null, ); + @override Duration get connectionTimeoutForSpecialCaseJsonRPCClients => (super.noSuchMethod( @@ -116,6 +120,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), ), ) as Duration); + @override String get host => (super.noSuchMethod( Invocation.getter(#host), @@ -124,16 +129,19 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { Invocation.getter(#host), ), ) as String); + @override int get port => (super.noSuchMethod( Invocation.getter(#port), returnValue: 0, ) as int); + @override bool get useSSL => (super.noSuchMethod( Invocation.getter(#useSSL), returnValue: false, ) as bool); + @override _i6.Future closeAdapter() => (super.noSuchMethod( Invocation.method( @@ -143,6 +151,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkElectrumAdapter() => (super.noSuchMethod( Invocation.method( @@ -152,6 +161,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future request({ required String? command, @@ -174,6 +184,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> batchRequest({ required String? command, @@ -194,6 +205,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future ping({ String? requestID, @@ -210,6 +222,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getBlockHeadTip({String? requestID}) => (super.noSuchMethod( @@ -221,6 +234,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getServerFeatures({String? requestID}) => (super.noSuchMethod( @@ -232,6 +246,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future broadcastTransaction({ required String? rawTx, @@ -258,6 +273,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future); + @override _i6.Future> getBalance({ required String? scripthash, @@ -275,6 +291,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getHistory({ required String? scripthash, @@ -292,6 +309,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchHistory( {required List? args}) => @@ -304,6 +322,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future>> getUTXOs({ required String? scripthash, @@ -321,6 +340,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future>>> getBatchUTXOs( {required List? args}) => @@ -333,6 +353,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>>.value( >>[]), ) as _i6.Future>>>); + @override _i6.Future> getTransaction({ required String? txHash, @@ -352,6 +373,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getLelantusAnonymitySet({ String? groupId = r'1', @@ -371,6 +393,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusMintData({ dynamic mints, @@ -387,6 +410,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future> getLelantusUsedCoinSerials({ String? requestID, @@ -404,6 +428,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future getLelantusLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -414,6 +439,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getSparkAnonymitySet({ String? coinGroupId = r'1', @@ -433,6 +459,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future>> getSparkMintMetaData({ String? requestID, @@ -450,6 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>>.value( >[]), ) as _i6.Future>>); + @override _i6.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( @@ -460,6 +488,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(0), ) as _i6.Future); + @override _i6.Future> getMempoolTxids({String? requestID}) => (super.noSuchMethod( @@ -470,6 +499,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future< List< @@ -512,6 +542,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { List serialContext, String txid })>>); + @override _i6.Future>> getSparkUnhashedUsedCoinsTagsWithTxHashes({ String? requestID, @@ -528,6 +559,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future>>.value(>[]), ) as _i6.Future>>); + @override _i6.Future isMasterNodeCollateral({ String? requestID, @@ -546,6 +578,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> getFeeRate({String? requestID}) => (super.noSuchMethod( @@ -557,6 +590,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future<_i3.Decimal> estimateFee({ String? requestID, @@ -583,6 +617,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { ), )), ) as _i6.Future<_i3.Decimal>); + @override _i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod( Invocation.method( @@ -618,6 +653,7 @@ class MockCachedElectrumXClient extends _i1.Mock Invocation.getter(#electrumXClient), ), ) as _i4.ElectrumXClient); + @override _i6.Future> getAnonymitySet({ required String? groupId, @@ -637,6 +673,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override String base64ToHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -651,6 +688,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override String base64ToReverseHex(String? source) => (super.noSuchMethod( Invocation.method( @@ -665,6 +703,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), ), ) as String); + @override _i6.Future> getTransaction({ required String? txHash, @@ -684,6 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock returnValue: _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> getUsedCoinSerials({ required _i2.CryptoCurrency? cryptoCurrency, @@ -700,6 +740,7 @@ class MockCachedElectrumXClient extends _i1.Mock ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future clearSharedTransactionCache( {required _i2.CryptoCurrency? cryptoCurrency}) => @@ -731,16 +772,19 @@ class MockTransactionNotificationTracker extends _i1.Mock Invocation.getter(#walletId), ), ) as String); + @override List get pendings => (super.noSuchMethod( Invocation.getter(#pendings), returnValue: [], ) as List); + @override List get confirmeds => (super.noSuchMethod( Invocation.getter(#confirmeds), returnValue: [], ) as List); + @override bool wasNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -749,6 +793,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedPending(String? txid) => (super.noSuchMethod( Invocation.method( @@ -758,6 +803,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -766,6 +812,7 @@ class MockTransactionNotificationTracker extends _i1.Mock ), returnValue: false, ) as bool); + @override _i6.Future addNotifiedConfirmed(String? txid) => (super.noSuchMethod( Invocation.method( @@ -775,6 +822,7 @@ class MockTransactionNotificationTracker extends _i1.Mock returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future deleteTransaction(String? txid) => (super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/address_book_card_test.mocks.dart b/test/widget_tests/address_book_card_test.mocks.dart index cfb056577..220d5cd66 100644 --- a/test/widget_tests/address_book_card_test.mocks.dart +++ b/test/widget_tests/address_book_card_test.mocks.dart @@ -47,11 +47,13 @@ class MockAddressBookService extends _i1.Mock Invocation.getter(#contacts), returnValue: <_i2.ContactEntry>[], ) as List<_i2.ContactEntry>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i2.ContactEntry getContactById(String? id) => (super.noSuchMethod( Invocation.method( @@ -66,6 +68,7 @@ class MockAddressBookService extends _i1.Mock ), ), ) as _i2.ContactEntry); + @override _i4.Future> search(String? text) => (super.noSuchMethod( @@ -76,6 +79,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future>.value(<_i2.ContactEntry>[]), ) as _i4.Future>); + @override bool matches( String? term, @@ -91,6 +95,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: false, ) as bool); + @override _i4.Future addContact(_i2.ContactEntry? contact) => (super.noSuchMethod( Invocation.method( @@ -99,6 +104,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future editContact(_i2.ContactEntry? editedContact) => (super.noSuchMethod( @@ -108,6 +114,7 @@ class MockAddressBookService extends _i1.Mock ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future removeContact(String? id) => (super.noSuchMethod( Invocation.method( @@ -117,6 +124,7 @@ class MockAddressBookService extends _i1.Mock returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); + @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -125,6 +133,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -133,6 +142,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -141,6 +151,7 @@ class MockAddressBookService extends _i1.Mock ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart b/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart index 9463dccb8..a7d302709 100644 --- a/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart +++ b/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart @@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#client), ), ) as _i2.HTTP); + @override set client(_i2.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i5.StackTheme>[], ) as List<_i5.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( @@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future>.value( <_i4.StackThemeMetaData>[]), ) as _i6.Future>); + @override _i6.Future<_i7.Uint8List> fetchTheme( {required _i4.StackThemeMetaData? themeMetaData}) => @@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), ) as _i6.Future<_i7.Uint8List>); + @override _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( diff --git a/test/widget_tests/custom_loading_overlay_test.mocks.dart b/test/widget_tests/custom_loading_overlay_test.mocks.dart index 6848da7ee..996bcf94c 100644 --- a/test/widget_tests/custom_loading_overlay_test.mocks.dart +++ b/test/widget_tests/custom_loading_overlay_test.mocks.dart @@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#client), ), ) as _i2.HTTP); + @override set client(_i2.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i5.StackTheme>[], ) as List<_i5.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( @@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future>.value( <_i4.StackThemeMetaData>[]), ) as _i6.Future>); + @override _i6.Future<_i7.Uint8List> fetchTheme( {required _i4.StackThemeMetaData? themeMetaData}) => @@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), ) as _i6.Future<_i7.Uint8List>); + @override _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( diff --git a/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart b/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart index 046da5ebf..802731670 100644 --- a/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart +++ b/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart @@ -61,6 +61,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#client), ), ) as _i2.HTTP); + @override set client(_i2.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -69,6 +70,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -77,11 +79,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i5.StackTheme>[], ) as List<_i5.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -90,6 +94,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -101,6 +106,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -111,6 +117,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -120,6 +127,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -130,6 +138,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( @@ -139,6 +148,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future>.value( <_i4.StackThemeMetaData>[]), ) as _i6.Future>); + @override _i6.Future<_i7.Uint8List> fetchTheme( {required _i4.StackThemeMetaData? themeMetaData}) => @@ -150,6 +160,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), ) as _i6.Future<_i7.Uint8List>); + @override _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index 42529c1a4..c2bc00d2c 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -121,6 +121,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -129,6 +130,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -137,6 +139,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -145,11 +148,13 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -165,6 +170,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -173,6 +179,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override _i10.Future deleteWallet( _i11.WalletInfo? info, @@ -189,6 +196,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future load( _i12.Prefs? prefs, @@ -205,6 +213,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future loadAfterStackRestore( _i12.Prefs? prefs, @@ -241,6 +250,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { Invocation.getter(#client), ), ) as _i6.HTTP); + @override set client(_i6.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -249,6 +259,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -257,11 +268,13 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i14.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i14.StackTheme>[], ) as List<_i14.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -270,6 +283,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { ), returnValueForMissingStub: null, ); + @override _i10.Future install({required _i15.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -281,6 +295,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -291,6 +306,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -300,6 +316,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -310,6 +327,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { ), returnValue: _i10.Future.value(false), ) as _i10.Future); + @override _i10.Future> fetchThemes() => (super.noSuchMethod( @@ -320,6 +338,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { returnValue: _i10.Future>.value( <_i13.StackThemeMetaData>[]), ) as _i10.Future>); + @override _i10.Future<_i15.Uint8List> fetchTheme( {required _i13.StackThemeMetaData? themeMetaData}) => @@ -331,6 +350,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { ), returnValue: _i10.Future<_i15.Uint8List>.value(_i15.Uint8List(0)), ) as _i10.Future<_i15.Uint8List>); + @override _i14.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( @@ -353,11 +373,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#isInitialized), returnValue: false, ) as bool); + @override int get lastUnlockedTimeout => (super.noSuchMethod( Invocation.getter(#lastUnlockedTimeout), returnValue: 0, ) as int); + @override set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod( Invocation.setter( @@ -366,11 +388,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get lastUnlocked => (super.noSuchMethod( Invocation.getter(#lastUnlocked), returnValue: 0, ) as int); + @override set lastUnlocked(int? lastUnlocked) => super.noSuchMethod( Invocation.setter( @@ -379,16 +403,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get currentNotificationId => (super.noSuchMethod( Invocation.getter(#currentNotificationId), returnValue: 0, ) as int); + @override List get walletIdsSyncOnStartup => (super.noSuchMethod( Invocation.getter(#walletIdsSyncOnStartup), returnValue: [], ) as List); + @override set walletIdsSyncOnStartup(List? walletIdsSyncOnStartup) => super.noSuchMethod( @@ -398,11 +425,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i16.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), returnValue: _i16.SyncingType.currentWalletOnly, ) as _i16.SyncingType); + @override set syncType(_i16.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( @@ -411,11 +440,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get wifiOnly => (super.noSuchMethod( Invocation.getter(#wifiOnly), returnValue: false, ) as bool); + @override set wifiOnly(bool? wifiOnly) => super.noSuchMethod( Invocation.setter( @@ -424,11 +455,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showFavoriteWallets => (super.noSuchMethod( Invocation.getter(#showFavoriteWallets), returnValue: false, ) as bool); + @override set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod( Invocation.setter( @@ -437,6 +470,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get language => (super.noSuchMethod( Invocation.getter(#language), @@ -445,6 +479,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#language), ), ) as String); + @override set language(String? newLanguage) => super.noSuchMethod( Invocation.setter( @@ -453,6 +488,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get currency => (super.noSuchMethod( Invocation.getter(#currency), @@ -461,6 +497,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#currency), ), ) as String); + @override set currency(String? newCurrency) => super.noSuchMethod( Invocation.setter( @@ -469,11 +506,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get randomizePIN => (super.noSuchMethod( Invocation.getter(#randomizePIN), returnValue: false, ) as bool); + @override set randomizePIN(bool? randomizePIN) => super.noSuchMethod( Invocation.setter( @@ -482,11 +521,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useBiometrics => (super.noSuchMethod( Invocation.getter(#useBiometrics), returnValue: false, ) as bool); + @override set useBiometrics(bool? useBiometrics) => super.noSuchMethod( Invocation.setter( @@ -495,11 +536,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hasPin => (super.noSuchMethod( Invocation.getter(#hasPin), returnValue: false, ) as bool); + @override set hasPin(bool? hasPin) => super.noSuchMethod( Invocation.setter( @@ -508,11 +551,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get familiarity => (super.noSuchMethod( Invocation.getter(#familiarity), returnValue: 0, ) as int); + @override set familiarity(int? familiarity) => super.noSuchMethod( Invocation.setter( @@ -521,11 +566,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get torKillSwitch => (super.noSuchMethod( Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); + @override set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( @@ -534,11 +581,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showTestNetCoins => (super.noSuchMethod( Invocation.getter(#showTestNetCoins), returnValue: false, ) as bool); + @override set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod( Invocation.setter( @@ -547,11 +596,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get isAutoBackupEnabled => (super.noSuchMethod( Invocation.getter(#isAutoBackupEnabled), returnValue: false, ) as bool); + @override set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod( Invocation.setter( @@ -560,6 +611,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod( Invocation.setter( @@ -568,11 +620,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i18.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), returnValue: _i18.BackupFrequencyType.everyTenMinutes, ) as _i18.BackupFrequencyType); + @override set backupFrequencyType(_i18.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( @@ -582,6 +636,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod( Invocation.setter( @@ -590,11 +645,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hideBlockExplorerWarning => (super.noSuchMethod( Invocation.getter(#hideBlockExplorerWarning), returnValue: false, ) as bool); + @override set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) => super.noSuchMethod( @@ -604,11 +661,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get gotoWalletOnStartup => (super.noSuchMethod( Invocation.getter(#gotoWalletOnStartup), returnValue: false, ) as bool); + @override set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod( Invocation.setter( @@ -617,6 +676,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set startupWalletId(String? startupWalletId) => super.noSuchMethod( Invocation.setter( @@ -625,11 +685,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get externalCalls => (super.noSuchMethod( Invocation.getter(#externalCalls), returnValue: false, ) as bool); + @override set externalCalls(bool? externalCalls) => super.noSuchMethod( Invocation.setter( @@ -638,11 +700,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableCoinControl => (super.noSuchMethod( Invocation.getter(#enableCoinControl), returnValue: false, ) as bool); + @override set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod( Invocation.setter( @@ -651,11 +715,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableSystemBrightness => (super.noSuchMethod( Invocation.getter(#enableSystemBrightness), returnValue: false, ) as bool); + @override set enableSystemBrightness(bool? enableSystemBrightness) => super.noSuchMethod( @@ -665,6 +731,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get themeId => (super.noSuchMethod( Invocation.getter(#themeId), @@ -673,6 +740,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#themeId), ), ) as String); + @override set themeId(String? themeId) => super.noSuchMethod( Invocation.setter( @@ -681,6 +749,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessLightThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessLightThemeId), @@ -689,6 +758,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#systemBrightnessLightThemeId), ), ) as String); + @override set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) => super.noSuchMethod( @@ -698,6 +768,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessDarkThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessDarkThemeId), @@ -706,6 +777,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#systemBrightnessDarkThemeId), ), ) as String); + @override set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) => super.noSuchMethod( @@ -715,11 +787,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useTor => (super.noSuchMethod( Invocation.getter(#useTor), returnValue: false, ) as bool); + @override set useTor(bool? useTor) => super.noSuchMethod( Invocation.setter( @@ -728,11 +802,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get autoPin => (super.noSuchMethod( Invocation.getter(#autoPin), returnValue: false, ) as bool); + @override set autoPin(bool? autoPin) => super.noSuchMethod( Invocation.setter( @@ -741,11 +817,28 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + + @override + bool get enableExchange => (super.noSuchMethod( + Invocation.getter(#enableExchange), + returnValue: false, + ) as bool); + + @override + set enableExchange(bool? showExchange) => super.noSuchMethod( + Invocation.setter( + #enableExchange, + showExchange, + ), + returnValueForMissingStub: null, + ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future init() => (super.noSuchMethod( Invocation.method( @@ -755,6 +848,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( @@ -764,6 +858,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( @@ -772,6 +867,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: _i10.Future.value(false), ) as _i10.Future); + @override _i10.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( @@ -781,6 +877,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( @@ -790,6 +887,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i19.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -798,6 +896,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: _i19.AmountUnit.normal, ) as _i19.AmountUnit); + @override void updateAmountUnit({ required _i4.CryptoCurrency? coin, @@ -814,6 +913,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -822,6 +922,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: 0, ) as int); + @override void updateMaxDecimals({ required _i4.CryptoCurrency? coin, @@ -838,6 +939,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i7.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -853,6 +955,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), ), ) as _i7.FusionInfo); + @override void setFusionServerInfo( _i4.CryptoCurrency? coin, @@ -868,6 +971,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -876,6 +980,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -884,6 +989,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -892,6 +998,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -918,11 +1025,13 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -933,6 +1042,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -941,6 +1051,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -949,6 +1060,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -957,6 +1069,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -983,21 +1096,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i8.SecureStorageInterface); + @override List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i22.NodeModel>[], ) as List<_i22.NodeModel>); + @override List<_i22.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i22.NodeModel>[], ) as List<_i22.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -1007,6 +1124,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future setPrimaryNodeFor({ required _i4.CryptoCurrency? coin, @@ -1026,6 +1144,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i22.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -1033,6 +1152,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#currency: currency}, )) as _i22.NodeModel?); + @override List<_i22.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -1042,6 +1162,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i22.NodeModel>[], ) as List<_i22.NodeModel>); + @override _i22.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -1049,6 +1170,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#id: id}, )) as _i22.NodeModel?); + @override List<_i22.NodeModel> failoverNodesFor( {required _i4.CryptoCurrency? currency}) => @@ -1060,6 +1182,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i22.NodeModel>[], ) as List<_i22.NodeModel>); + @override _i10.Future add( _i22.NodeModel? node, @@ -1078,6 +1201,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future delete( String? id, @@ -1094,6 +1218,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future setEnabledState( String? id, @@ -1112,6 +1237,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future edit( _i22.NodeModel? editedNode, @@ -1130,6 +1256,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -1139,6 +1266,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1147,6 +1275,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1155,6 +1284,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1163,6 +1293,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/node_card_test.mocks.dart b/test/widget_tests/node_card_test.mocks.dart index c34b5b77f..441edcdbf 100644 --- a/test/widget_tests/node_card_test.mocks.dart +++ b/test/widget_tests/node_card_test.mocks.dart @@ -54,21 +54,25 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i2.SecureStorageInterface); + @override List<_i4.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override List<_i4.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i5.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -78,6 +82,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setPrimaryNodeFor({ required _i6.CryptoCurrency? coin, @@ -97,6 +102,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -104,6 +110,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#currency: currency}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => (super.noSuchMethod( @@ -113,6 +120,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i4.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -120,6 +128,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { [], {#id: id}, )) as _i4.NodeModel?); + @override List<_i4.NodeModel> failoverNodesFor( {required _i6.CryptoCurrency? currency}) => @@ -131,6 +140,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); + @override _i5.Future add( _i4.NodeModel? node, @@ -149,6 +159,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future delete( String? id, @@ -165,6 +176,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setEnabledState( String? id, @@ -183,6 +195,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future edit( _i4.NodeModel? editedNode, @@ -201,6 +214,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -210,6 +224,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -218,6 +233,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -226,6 +242,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -234,6 +251,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart index 46678d619..5e878015f 100644 --- a/test/widget_tests/node_options_sheet_test.mocks.dart +++ b/test/widget_tests/node_options_sheet_test.mocks.dart @@ -122,6 +122,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -130,6 +131,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -138,6 +140,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -146,11 +149,13 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -166,6 +171,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -174,6 +180,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ), returnValueForMissingStub: null, ); + @override _i10.Future deleteWallet( _i11.WalletInfo? info, @@ -190,6 +197,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future load( _i12.Prefs? prefs, @@ -206,6 +214,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future loadAfterStackRestore( _i12.Prefs? prefs, @@ -239,11 +248,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#isInitialized), returnValue: false, ) as bool); + @override int get lastUnlockedTimeout => (super.noSuchMethod( Invocation.getter(#lastUnlockedTimeout), returnValue: 0, ) as int); + @override set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod( Invocation.setter( @@ -252,11 +263,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get lastUnlocked => (super.noSuchMethod( Invocation.getter(#lastUnlocked), returnValue: 0, ) as int); + @override set lastUnlocked(int? lastUnlocked) => super.noSuchMethod( Invocation.setter( @@ -265,16 +278,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get currentNotificationId => (super.noSuchMethod( Invocation.getter(#currentNotificationId), returnValue: 0, ) as int); + @override List get walletIdsSyncOnStartup => (super.noSuchMethod( Invocation.getter(#walletIdsSyncOnStartup), returnValue: [], ) as List); + @override set walletIdsSyncOnStartup(List? walletIdsSyncOnStartup) => super.noSuchMethod( @@ -284,11 +300,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i13.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), returnValue: _i13.SyncingType.currentWalletOnly, ) as _i13.SyncingType); + @override set syncType(_i13.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( @@ -297,11 +315,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get wifiOnly => (super.noSuchMethod( Invocation.getter(#wifiOnly), returnValue: false, ) as bool); + @override set wifiOnly(bool? wifiOnly) => super.noSuchMethod( Invocation.setter( @@ -310,11 +330,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showFavoriteWallets => (super.noSuchMethod( Invocation.getter(#showFavoriteWallets), returnValue: false, ) as bool); + @override set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod( Invocation.setter( @@ -323,6 +345,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get language => (super.noSuchMethod( Invocation.getter(#language), @@ -331,6 +354,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#language), ), ) as String); + @override set language(String? newLanguage) => super.noSuchMethod( Invocation.setter( @@ -339,6 +363,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get currency => (super.noSuchMethod( Invocation.getter(#currency), @@ -347,6 +372,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#currency), ), ) as String); + @override set currency(String? newCurrency) => super.noSuchMethod( Invocation.setter( @@ -355,11 +381,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get randomizePIN => (super.noSuchMethod( Invocation.getter(#randomizePIN), returnValue: false, ) as bool); + @override set randomizePIN(bool? randomizePIN) => super.noSuchMethod( Invocation.setter( @@ -368,11 +396,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useBiometrics => (super.noSuchMethod( Invocation.getter(#useBiometrics), returnValue: false, ) as bool); + @override set useBiometrics(bool? useBiometrics) => super.noSuchMethod( Invocation.setter( @@ -381,11 +411,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hasPin => (super.noSuchMethod( Invocation.getter(#hasPin), returnValue: false, ) as bool); + @override set hasPin(bool? hasPin) => super.noSuchMethod( Invocation.setter( @@ -394,11 +426,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int get familiarity => (super.noSuchMethod( Invocation.getter(#familiarity), returnValue: 0, ) as int); + @override set familiarity(int? familiarity) => super.noSuchMethod( Invocation.setter( @@ -407,11 +441,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get torKillSwitch => (super.noSuchMethod( Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); + @override set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( @@ -420,11 +456,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showTestNetCoins => (super.noSuchMethod( Invocation.getter(#showTestNetCoins), returnValue: false, ) as bool); + @override set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod( Invocation.setter( @@ -433,11 +471,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get isAutoBackupEnabled => (super.noSuchMethod( Invocation.getter(#isAutoBackupEnabled), returnValue: false, ) as bool); + @override set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod( Invocation.setter( @@ -446,6 +486,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod( Invocation.setter( @@ -454,11 +495,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i15.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), returnValue: _i15.BackupFrequencyType.everyTenMinutes, ) as _i15.BackupFrequencyType); + @override set backupFrequencyType(_i15.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( @@ -468,6 +511,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod( Invocation.setter( @@ -476,11 +520,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hideBlockExplorerWarning => (super.noSuchMethod( Invocation.getter(#hideBlockExplorerWarning), returnValue: false, ) as bool); + @override set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) => super.noSuchMethod( @@ -490,11 +536,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get gotoWalletOnStartup => (super.noSuchMethod( Invocation.getter(#gotoWalletOnStartup), returnValue: false, ) as bool); + @override set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod( Invocation.setter( @@ -503,6 +551,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override set startupWalletId(String? startupWalletId) => super.noSuchMethod( Invocation.setter( @@ -511,11 +560,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get externalCalls => (super.noSuchMethod( Invocation.getter(#externalCalls), returnValue: false, ) as bool); + @override set externalCalls(bool? externalCalls) => super.noSuchMethod( Invocation.setter( @@ -524,11 +575,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableCoinControl => (super.noSuchMethod( Invocation.getter(#enableCoinControl), returnValue: false, ) as bool); + @override set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod( Invocation.setter( @@ -537,11 +590,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableSystemBrightness => (super.noSuchMethod( Invocation.getter(#enableSystemBrightness), returnValue: false, ) as bool); + @override set enableSystemBrightness(bool? enableSystemBrightness) => super.noSuchMethod( @@ -551,6 +606,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get themeId => (super.noSuchMethod( Invocation.getter(#themeId), @@ -559,6 +615,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#themeId), ), ) as String); + @override set themeId(String? themeId) => super.noSuchMethod( Invocation.setter( @@ -567,6 +624,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessLightThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessLightThemeId), @@ -575,6 +633,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#systemBrightnessLightThemeId), ), ) as String); + @override set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) => super.noSuchMethod( @@ -584,6 +643,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessDarkThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessDarkThemeId), @@ -592,6 +652,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { Invocation.getter(#systemBrightnessDarkThemeId), ), ) as String); + @override set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) => super.noSuchMethod( @@ -601,11 +662,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useTor => (super.noSuchMethod( Invocation.getter(#useTor), returnValue: false, ) as bool); + @override set useTor(bool? useTor) => super.noSuchMethod( Invocation.setter( @@ -614,11 +677,13 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override bool get autoPin => (super.noSuchMethod( Invocation.getter(#autoPin), returnValue: false, ) as bool); + @override set autoPin(bool? autoPin) => super.noSuchMethod( Invocation.setter( @@ -627,11 +692,28 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + + @override + bool get enableExchange => (super.noSuchMethod( + Invocation.getter(#enableExchange), + returnValue: false, + ) as bool); + + @override + set enableExchange(bool? showExchange) => super.noSuchMethod( + Invocation.setter( + #enableExchange, + showExchange, + ), + returnValueForMissingStub: null, + ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future init() => (super.noSuchMethod( Invocation.method( @@ -641,6 +723,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( @@ -650,6 +733,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( @@ -658,6 +742,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: _i10.Future.value(false), ) as _i10.Future); + @override _i10.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( @@ -667,6 +752,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( @@ -676,6 +762,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i16.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -684,6 +771,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: _i16.AmountUnit.normal, ) as _i16.AmountUnit); + @override void updateAmountUnit({ required _i4.CryptoCurrency? coin, @@ -700,6 +788,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -708,6 +797,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValue: 0, ) as int); + @override void updateMaxDecimals({ required _i4.CryptoCurrency? coin, @@ -724,6 +814,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override _i6.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -739,6 +830,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), ), ) as _i6.FusionInfo); + @override void setFusionServerInfo( _i4.CryptoCurrency? coin, @@ -754,6 +846,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -762,6 +855,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -770,6 +864,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -778,6 +873,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -804,21 +900,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i7.SecureStorageInterface); + @override List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i18.NodeModel>[], ) as List<_i18.NodeModel>); + @override List<_i18.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i18.NodeModel>[], ) as List<_i18.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -828,6 +928,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future setPrimaryNodeFor({ required _i4.CryptoCurrency? coin, @@ -847,6 +948,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i18.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -854,6 +956,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#currency: currency}, )) as _i18.NodeModel?); + @override List<_i18.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -863,6 +966,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i18.NodeModel>[], ) as List<_i18.NodeModel>); + @override _i18.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -870,6 +974,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#id: id}, )) as _i18.NodeModel?); + @override List<_i18.NodeModel> failoverNodesFor( {required _i4.CryptoCurrency? currency}) => @@ -881,6 +986,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i18.NodeModel>[], ) as List<_i18.NodeModel>); + @override _i10.Future add( _i18.NodeModel? node, @@ -899,6 +1005,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future delete( String? id, @@ -915,6 +1022,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future setEnabledState( String? id, @@ -933,6 +1041,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future edit( _i18.NodeModel? editedNode, @@ -951,6 +1060,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -960,6 +1070,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -968,6 +1079,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -976,6 +1088,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -984,6 +1097,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -1007,6 +1121,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService { Invocation.getter(#status), returnValue: _i20.TorConnectionStatus.disconnected, ) as _i20.TorConnectionStatus); + @override ({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod( Invocation.method( @@ -1024,6 +1139,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService { port: 0 ), ) as ({_i8.InternetAddress host, int port})); + @override void init({ required String? torDataDirPath, @@ -1040,6 +1156,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService { ), returnValueForMissingStub: null, ); + @override _i10.Future start() => (super.noSuchMethod( Invocation.method( @@ -1049,6 +1166,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future disable() => (super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/table_view/table_view_row_test.mocks.dart b/test/widget_tests/table_view/table_view_row_test.mocks.dart index 09791d1f0..9393a5730 100644 --- a/test/widget_tests/table_view/table_view_row_test.mocks.dart +++ b/test/widget_tests/table_view/table_view_row_test.mocks.dart @@ -91,6 +91,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -99,6 +100,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -107,6 +109,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -115,11 +118,13 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -135,6 +140,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -143,6 +149,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override _i8.Future deleteWallet( _i9.WalletInfo? info, @@ -159,6 +166,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future load( _i11.Prefs? prefs, @@ -175,6 +183,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future loadAfterStackRestore( _i11.Prefs? prefs, @@ -211,6 +220,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { Invocation.getter(#client), ), ) as _i6.HTTP); + @override set client(_i6.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -219,6 +229,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -227,11 +238,13 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i13.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i13.StackTheme>[], ) as List<_i13.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -240,6 +253,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValueForMissingStub: null, ); + @override _i8.Future install({required _i14.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -251,6 +265,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -261,6 +276,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -270,6 +286,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -280,6 +297,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValue: _i8.Future.value(false), ) as _i8.Future); + @override _i8.Future> fetchThemes() => (super.noSuchMethod( @@ -290,6 +308,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i8.Future>.value( <_i12.StackThemeMetaData>[]), ) as _i8.Future>); + @override _i8.Future<_i14.Uint8List> fetchTheme( {required _i12.StackThemeMetaData? themeMetaData}) => @@ -301,6 +320,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValue: _i8.Future<_i14.Uint8List>.value(_i14.Uint8List(0)), ) as _i8.Future<_i14.Uint8List>); + @override _i13.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( diff --git a/test/widget_tests/trade_card_test.mocks.dart b/test/widget_tests/trade_card_test.mocks.dart index 0f62658a4..a8080d990 100644 --- a/test/widget_tests/trade_card_test.mocks.dart +++ b/test/widget_tests/trade_card_test.mocks.dart @@ -62,6 +62,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#client), ), ) as _i2.HTTP); + @override set client(_i2.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -70,6 +71,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -78,11 +80,13 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i5.StackTheme>[], ) as List<_i5.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -91,6 +95,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValueForMissingStub: null, ); + @override _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -102,6 +107,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -112,6 +118,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -121,6 +128,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -131,6 +139,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future.value(false), ) as _i6.Future); + @override _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( @@ -140,6 +149,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { returnValue: _i6.Future>.value( <_i4.StackThemeMetaData>[]), ) as _i6.Future>); + @override _i6.Future<_i7.Uint8List> fetchTheme( {required _i4.StackThemeMetaData? themeMetaData}) => @@ -151,6 +161,7 @@ class MockThemeService extends _i1.Mock implements _i4.ThemeService { ), returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), ) as _i6.Future<_i7.Uint8List>); + @override _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( @@ -176,6 +187,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#bellNew), ), ) as String); + @override String get buy => (super.noSuchMethod( Invocation.getter(#buy), @@ -184,6 +196,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#buy), ), ) as String); + @override String get exchange => (super.noSuchMethod( Invocation.getter(#exchange), @@ -192,6 +205,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#exchange), ), ) as String); + @override String get personaIncognito => (super.noSuchMethod( Invocation.getter(#personaIncognito), @@ -200,6 +214,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#personaIncognito), ), ) as String); + @override String get personaEasy => (super.noSuchMethod( Invocation.getter(#personaEasy), @@ -208,6 +223,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#personaEasy), ), ) as String); + @override String get stack => (super.noSuchMethod( Invocation.getter(#stack), @@ -216,6 +232,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#stack), ), ) as String); + @override String get stackIcon => (super.noSuchMethod( Invocation.getter(#stackIcon), @@ -224,6 +241,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#stackIcon), ), ) as String); + @override String get receive => (super.noSuchMethod( Invocation.getter(#receive), @@ -232,6 +250,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#receive), ), ) as String); + @override String get receivePending => (super.noSuchMethod( Invocation.getter(#receivePending), @@ -240,6 +259,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#receivePending), ), ) as String); + @override String get receiveCancelled => (super.noSuchMethod( Invocation.getter(#receiveCancelled), @@ -248,6 +268,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#receiveCancelled), ), ) as String); + @override String get send => (super.noSuchMethod( Invocation.getter(#send), @@ -256,6 +277,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#send), ), ) as String); + @override String get sendPending => (super.noSuchMethod( Invocation.getter(#sendPending), @@ -264,6 +286,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#sendPending), ), ) as String); + @override String get sendCancelled => (super.noSuchMethod( Invocation.getter(#sendCancelled), @@ -272,6 +295,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#sendCancelled), ), ) as String); + @override String get themeSelector => (super.noSuchMethod( Invocation.getter(#themeSelector), @@ -280,6 +304,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#themeSelector), ), ) as String); + @override String get themePreview => (super.noSuchMethod( Invocation.getter(#themePreview), @@ -288,6 +313,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#themePreview), ), ) as String); + @override String get txExchange => (super.noSuchMethod( Invocation.getter(#txExchange), @@ -296,6 +322,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#txExchange), ), ) as String); + @override String get txExchangePending => (super.noSuchMethod( Invocation.getter(#txExchangePending), @@ -304,6 +331,7 @@ class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { Invocation.getter(#txExchangePending), ), ) as String); + @override String get txExchangeFailed => (super.noSuchMethod( Invocation.getter(#txExchangeFailed), diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index beca96c89..a5816bdcb 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -160,6 +160,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -168,6 +169,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -176,6 +178,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -184,11 +187,13 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -204,6 +209,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -212,6 +218,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ), returnValueForMissingStub: null, ); + @override _i11.Future deleteWallet( _i12.WalletInfo? info, @@ -228,6 +235,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future load( _i14.Prefs? prefs, @@ -244,6 +252,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future loadAfterStackRestore( _i14.Prefs? prefs, @@ -280,11 +289,13 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i11.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -295,6 +306,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -303,6 +315,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -311,6 +324,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -319,6 +333,7 @@ class MockLocaleService extends _i1.Mock implements _i15.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -342,11 +357,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { Invocation.getter(#isInitialized), returnValue: false, ) as bool); + @override int get lastUnlockedTimeout => (super.noSuchMethod( Invocation.getter(#lastUnlockedTimeout), returnValue: 0, ) as int); + @override set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod( Invocation.setter( @@ -355,11 +372,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override int get lastUnlocked => (super.noSuchMethod( Invocation.getter(#lastUnlocked), returnValue: 0, ) as int); + @override set lastUnlocked(int? lastUnlocked) => super.noSuchMethod( Invocation.setter( @@ -368,16 +387,19 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override int get currentNotificationId => (super.noSuchMethod( Invocation.getter(#currentNotificationId), returnValue: 0, ) as int); + @override List get walletIdsSyncOnStartup => (super.noSuchMethod( Invocation.getter(#walletIdsSyncOnStartup), returnValue: [], ) as List); + @override set walletIdsSyncOnStartup(List? walletIdsSyncOnStartup) => super.noSuchMethod( @@ -387,11 +409,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override _i18.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), returnValue: _i18.SyncingType.currentWalletOnly, ) as _i18.SyncingType); + @override set syncType(_i18.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( @@ -400,11 +424,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get wifiOnly => (super.noSuchMethod( Invocation.getter(#wifiOnly), returnValue: false, ) as bool); + @override set wifiOnly(bool? wifiOnly) => super.noSuchMethod( Invocation.setter( @@ -413,11 +439,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showFavoriteWallets => (super.noSuchMethod( Invocation.getter(#showFavoriteWallets), returnValue: false, ) as bool); + @override set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod( Invocation.setter( @@ -426,6 +454,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override String get language => (super.noSuchMethod( Invocation.getter(#language), @@ -434,6 +463,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { Invocation.getter(#language), ), ) as String); + @override set language(String? newLanguage) => super.noSuchMethod( Invocation.setter( @@ -442,6 +472,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override String get currency => (super.noSuchMethod( Invocation.getter(#currency), @@ -450,6 +481,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { Invocation.getter(#currency), ), ) as String); + @override set currency(String? newCurrency) => super.noSuchMethod( Invocation.setter( @@ -458,11 +490,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get randomizePIN => (super.noSuchMethod( Invocation.getter(#randomizePIN), returnValue: false, ) as bool); + @override set randomizePIN(bool? randomizePIN) => super.noSuchMethod( Invocation.setter( @@ -471,11 +505,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useBiometrics => (super.noSuchMethod( Invocation.getter(#useBiometrics), returnValue: false, ) as bool); + @override set useBiometrics(bool? useBiometrics) => super.noSuchMethod( Invocation.setter( @@ -484,11 +520,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hasPin => (super.noSuchMethod( Invocation.getter(#hasPin), returnValue: false, ) as bool); + @override set hasPin(bool? hasPin) => super.noSuchMethod( Invocation.setter( @@ -497,11 +535,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override int get familiarity => (super.noSuchMethod( Invocation.getter(#familiarity), returnValue: 0, ) as int); + @override set familiarity(int? familiarity) => super.noSuchMethod( Invocation.setter( @@ -510,11 +550,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get torKillSwitch => (super.noSuchMethod( Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); + @override set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( @@ -523,11 +565,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get showTestNetCoins => (super.noSuchMethod( Invocation.getter(#showTestNetCoins), returnValue: false, ) as bool); + @override set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod( Invocation.setter( @@ -536,11 +580,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get isAutoBackupEnabled => (super.noSuchMethod( Invocation.getter(#isAutoBackupEnabled), returnValue: false, ) as bool); + @override set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod( Invocation.setter( @@ -549,6 +595,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod( Invocation.setter( @@ -557,11 +604,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override _i19.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), returnValue: _i19.BackupFrequencyType.everyTenMinutes, ) as _i19.BackupFrequencyType); + @override set backupFrequencyType(_i19.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( @@ -571,6 +620,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override set lastAutoBackup(DateTime? lastAutoBackup) => super.noSuchMethod( Invocation.setter( @@ -579,11 +629,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get hideBlockExplorerWarning => (super.noSuchMethod( Invocation.getter(#hideBlockExplorerWarning), returnValue: false, ) as bool); + @override set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) => super.noSuchMethod( @@ -593,11 +645,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get gotoWalletOnStartup => (super.noSuchMethod( Invocation.getter(#gotoWalletOnStartup), returnValue: false, ) as bool); + @override set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod( Invocation.setter( @@ -606,6 +660,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override set startupWalletId(String? startupWalletId) => super.noSuchMethod( Invocation.setter( @@ -614,11 +669,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get externalCalls => (super.noSuchMethod( Invocation.getter(#externalCalls), returnValue: false, ) as bool); + @override set externalCalls(bool? externalCalls) => super.noSuchMethod( Invocation.setter( @@ -627,11 +684,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableCoinControl => (super.noSuchMethod( Invocation.getter(#enableCoinControl), returnValue: false, ) as bool); + @override set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod( Invocation.setter( @@ -640,11 +699,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get enableSystemBrightness => (super.noSuchMethod( Invocation.getter(#enableSystemBrightness), returnValue: false, ) as bool); + @override set enableSystemBrightness(bool? enableSystemBrightness) => super.noSuchMethod( @@ -654,6 +715,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override String get themeId => (super.noSuchMethod( Invocation.getter(#themeId), @@ -662,6 +724,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { Invocation.getter(#themeId), ), ) as String); + @override set themeId(String? themeId) => super.noSuchMethod( Invocation.setter( @@ -670,6 +733,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessLightThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessLightThemeId), @@ -678,6 +742,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { Invocation.getter(#systemBrightnessLightThemeId), ), ) as String); + @override set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) => super.noSuchMethod( @@ -687,6 +752,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override String get systemBrightnessDarkThemeId => (super.noSuchMethod( Invocation.getter(#systemBrightnessDarkThemeId), @@ -695,6 +761,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { Invocation.getter(#systemBrightnessDarkThemeId), ), ) as String); + @override set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) => super.noSuchMethod( @@ -704,11 +771,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get useTor => (super.noSuchMethod( Invocation.getter(#useTor), returnValue: false, ) as bool); + @override set useTor(bool? useTor) => super.noSuchMethod( Invocation.setter( @@ -717,11 +786,13 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override bool get autoPin => (super.noSuchMethod( Invocation.getter(#autoPin), returnValue: false, ) as bool); + @override set autoPin(bool? autoPin) => super.noSuchMethod( Invocation.setter( @@ -730,11 +801,28 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + + @override + bool get enableExchange => (super.noSuchMethod( + Invocation.getter(#enableExchange), + returnValue: false, + ) as bool); + + @override + set enableExchange(bool? showExchange) => super.noSuchMethod( + Invocation.setter( + #enableExchange, + showExchange, + ), + returnValueForMissingStub: null, + ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i11.Future init() => (super.noSuchMethod( Invocation.method( @@ -744,6 +832,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( @@ -753,6 +842,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( @@ -761,6 +851,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValue: _i11.Future.value(false), ) as _i11.Future); + @override _i11.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( @@ -770,6 +861,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( @@ -779,6 +871,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i20.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -787,6 +880,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValue: _i20.AmountUnit.normal, ) as _i20.AmountUnit); + @override void updateAmountUnit({ required _i4.CryptoCurrency? coin, @@ -803,6 +897,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( @@ -811,6 +906,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValue: 0, ) as int); + @override void updateMaxDecimals({ required _i4.CryptoCurrency? coin, @@ -827,6 +923,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override _i6.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -842,6 +939,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), ), ) as _i6.FusionInfo); + @override void setFusionServerInfo( _i4.CryptoCurrency? coin, @@ -857,6 +955,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -865,6 +964,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -873,6 +973,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -881,6 +982,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -907,6 +1009,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { Invocation.getter(#baseTicker), ), ) as String); + @override set baseTicker(String? _baseTicker) => super.noSuchMethod( Invocation.setter( @@ -915,6 +1018,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), returnValueForMissingStub: null, ); + @override Duration get updateInterval => (super.noSuchMethod( Invocation.getter(#updateInterval), @@ -923,17 +1027,20 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { Invocation.getter(#updateInterval), ), ) as Duration); + @override _i11.Future> get tokenContractAddressesToCheck => (super.noSuchMethod( Invocation.getter(#tokenContractAddressesToCheck), returnValue: _i11.Future>.value({}), ) as _i11.Future>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i7.Tuple2<_i22.Decimal, double> getPrice(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -949,6 +1056,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), ), ) as _i7.Tuple2<_i22.Decimal, double>); + @override _i7.Tuple2<_i22.Decimal, double> getTokenPrice(String? contractAddress) => (super.noSuchMethod( @@ -964,6 +1072,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), ), ) as _i7.Tuple2<_i22.Decimal, double>); + @override _i11.Future updatePrice() => (super.noSuchMethod( Invocation.method( @@ -973,6 +1082,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override void cancel() => super.noSuchMethod( Invocation.method( @@ -981,6 +1091,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), returnValueForMissingStub: null, ); + @override void start(bool? rightAway) => super.noSuchMethod( Invocation.method( @@ -989,6 +1100,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -997,6 +1109,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), returnValueForMissingStub: null, ); + @override void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1005,6 +1118,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1013,6 +1127,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -1039,6 +1154,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { Invocation.getter(#client), ), ) as _i8.HTTP); + @override set client(_i8.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -1047,6 +1163,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -1055,11 +1172,13 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i24.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i24.StackTheme>[], ) as List<_i24.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -1068,6 +1187,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { ), returnValueForMissingStub: null, ); + @override _i11.Future install({required _i25.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -1079,6 +1199,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -1089,6 +1210,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -1098,6 +1220,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -1108,6 +1231,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { ), returnValue: _i11.Future.value(false), ) as _i11.Future); + @override _i11.Future> fetchThemes() => (super.noSuchMethod( @@ -1118,6 +1242,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { returnValue: _i11.Future>.value( <_i23.StackThemeMetaData>[]), ) as _i11.Future>); + @override _i11.Future<_i25.Uint8List> fetchTheme( {required _i23.StackThemeMetaData? themeMetaData}) => @@ -1129,6 +1254,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { ), returnValue: _i11.Future<_i25.Uint8List>.value(_i25.Uint8List(0)), ) as _i11.Future<_i25.Uint8List>); + @override _i24.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( @@ -1154,6 +1280,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { Invocation.getter(#isar), ), ) as _i9.Isar); + @override _i11.Future initMainDB({_i9.Isar? mock}) => (super.noSuchMethod( Invocation.method( @@ -1163,6 +1290,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(false), ) as _i11.Future); + @override _i11.Future putWalletInfo(_i12.WalletInfo? walletInfo) => (super.noSuchMethod( @@ -1173,6 +1301,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future updateWalletInfo(_i12.WalletInfo? walletInfo) => (super.noSuchMethod( @@ -1183,6 +1312,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override List<_i26.ContactEntry> getContactEntries() => (super.noSuchMethod( Invocation.method( @@ -1191,6 +1321,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: <_i26.ContactEntry>[], ) as List<_i26.ContactEntry>); + @override _i11.Future deleteContactEntry({required String? id}) => (super.noSuchMethod( @@ -1201,6 +1332,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(false), ) as _i11.Future); + @override _i11.Future isContactEntryExists({required String? id}) => (super.noSuchMethod( @@ -1211,6 +1343,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(false), ) as _i11.Future); + @override _i26.ContactEntry? getContactEntry({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -1218,6 +1351,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [], {#id: id}, )) as _i26.ContactEntry?); + @override _i11.Future putContactEntry( {required _i26.ContactEntry? contactEntry}) => @@ -1229,6 +1363,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(false), ) as _i11.Future); + @override _i27.TransactionBlockExplorer? getTransactionBlockExplorer( {required _i4.CryptoCurrency? cryptoCurrency}) => @@ -1237,6 +1372,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [], {#cryptoCurrency: cryptoCurrency}, )) as _i27.TransactionBlockExplorer?); + @override _i11.Future putTransactionBlockExplorer( _i27.TransactionBlockExplorer? explorer) => @@ -1247,6 +1383,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(0), ) as _i11.Future); + @override _i9.QueryBuilder<_i28.Address, _i28.Address, _i9.QAfterWhereClause> getAddresses(String? walletId) => (super.noSuchMethod( @@ -1264,6 +1401,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ) as _i9 .QueryBuilder<_i28.Address, _i28.Address, _i9.QAfterWhereClause>); + @override _i11.Future putAddress(_i28.Address? address) => (super.noSuchMethod( Invocation.method( @@ -1272,6 +1410,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(0), ) as _i11.Future); + @override _i11.Future> putAddresses(List<_i28.Address>? addresses) => (super.noSuchMethod( @@ -1281,6 +1420,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future>.value([]), ) as _i11.Future>); + @override _i11.Future> updateOrPutAddresses(List<_i28.Address>? addresses) => (super.noSuchMethod( @@ -1290,6 +1430,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future>.value([]), ) as _i11.Future>); + @override _i11.Future<_i28.Address?> getAddress( String? walletId, @@ -1305,6 +1446,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future<_i28.Address?>.value(), ) as _i11.Future<_i28.Address?>); + @override _i11.Future updateAddress( _i28.Address? oldAddress, @@ -1320,6 +1462,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(0), ) as _i11.Future); + @override _i9.QueryBuilder<_i28.Transaction, _i28.Transaction, _i9.QAfterWhereClause> getTransactions(String? walletId) => (super.noSuchMethod( @@ -1337,6 +1480,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ) as _i9.QueryBuilder<_i28.Transaction, _i28.Transaction, _i9.QAfterWhereClause>); + @override _i11.Future putTransaction(_i28.Transaction? transaction) => (super.noSuchMethod( @@ -1346,6 +1490,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(0), ) as _i11.Future); + @override _i11.Future> putTransactions( List<_i28.Transaction>? transactions) => @@ -1356,6 +1501,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future>.value([]), ) as _i11.Future>); + @override _i11.Future<_i28.Transaction?> getTransaction( String? walletId, @@ -1371,6 +1517,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future<_i28.Transaction?>.value(), ) as _i11.Future<_i28.Transaction?>); + @override _i11.Stream<_i28.Transaction?> watchTransaction({ required int? id, @@ -1387,6 +1534,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Stream<_i28.Transaction?>.empty(), ) as _i11.Stream<_i28.Transaction?>); + @override _i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause> getUTXOs( String? walletId) => @@ -1404,6 +1552,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ), ) as _i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause>); + @override _i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterFilterCondition> getUTXOsByAddress( @@ -1431,6 +1580,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ) as _i9 .QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterFilterCondition>); + @override _i11.Future putUTXO(_i28.UTXO? utxo) => (super.noSuchMethod( Invocation.method( @@ -1440,6 +1590,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future putUTXOs(List<_i28.UTXO>? utxos) => (super.noSuchMethod( Invocation.method( @@ -1449,6 +1600,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future updateUTXOs( String? walletId, @@ -1464,6 +1616,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(false), ) as _i11.Future); + @override _i11.Stream<_i28.UTXO?> watchUTXO({ required int? id, @@ -1480,6 +1633,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Stream<_i28.UTXO?>.empty(), ) as _i11.Stream<_i28.UTXO?>); + @override _i9.QueryBuilder<_i28.TransactionNote, _i28.TransactionNote, _i9.QAfterWhereClause> getTransactionNotes( @@ -1499,6 +1653,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ) as _i9.QueryBuilder<_i28.TransactionNote, _i28.TransactionNote, _i9.QAfterWhereClause>); + @override _i11.Future putTransactionNote(_i28.TransactionNote? transactionNote) => (super.noSuchMethod( @@ -1509,6 +1664,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future putTransactionNotes( List<_i28.TransactionNote>? transactionNotes) => @@ -1520,6 +1676,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future<_i28.TransactionNote?> getTransactionNote( String? walletId, @@ -1535,6 +1692,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future<_i28.TransactionNote?>.value(), ) as _i11.Future<_i28.TransactionNote?>); + @override _i11.Stream<_i28.TransactionNote?> watchTransactionNote({ required int? id, @@ -1551,6 +1709,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Stream<_i28.TransactionNote?>.empty(), ) as _i11.Stream<_i28.TransactionNote?>); + @override _i9.QueryBuilder<_i28.AddressLabel, _i28.AddressLabel, _i9.QAfterWhereClause> getAddressLabels(String? walletId) => (super.noSuchMethod( @@ -1568,6 +1727,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ) as _i9.QueryBuilder<_i28.AddressLabel, _i28.AddressLabel, _i9.QAfterWhereClause>); + @override _i11.Future putAddressLabel(_i28.AddressLabel? addressLabel) => (super.noSuchMethod( @@ -1577,6 +1737,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(0), ) as _i11.Future); + @override int putAddressLabelSync(_i28.AddressLabel? addressLabel) => (super.noSuchMethod( @@ -1586,6 +1747,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: 0, ) as int); + @override _i11.Future putAddressLabels(List<_i28.AddressLabel>? addressLabels) => (super.noSuchMethod( @@ -1596,6 +1758,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future<_i28.AddressLabel?> getAddressLabel( String? walletId, @@ -1611,6 +1774,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future<_i28.AddressLabel?>.value(), ) as _i11.Future<_i28.AddressLabel?>); + @override _i28.AddressLabel? getAddressLabelSync( String? walletId, @@ -1623,6 +1787,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { addressString, ], )) as _i28.AddressLabel?); + @override _i11.Stream<_i28.AddressLabel?> watchAddressLabel({ required int? id, @@ -1639,6 +1804,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Stream<_i28.AddressLabel?>.empty(), ) as _i11.Stream<_i28.AddressLabel?>); + @override _i11.Future updateAddressLabel(_i28.AddressLabel? addressLabel) => (super.noSuchMethod( @@ -1648,6 +1814,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(0), ) as _i11.Future); + @override _i11.Future deleteWalletBlockchainData(String? walletId) => (super.noSuchMethod( @@ -1658,6 +1825,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future deleteAddressLabels(String? walletId) => (super.noSuchMethod( @@ -1668,6 +1836,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future deleteTransactionNotes(String? walletId) => (super.noSuchMethod( @@ -1678,6 +1847,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future addNewTransactionData( List<_i7.Tuple2<_i28.Transaction, _i28.Address?>>? transactionsData, @@ -1694,6 +1864,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future> updateOrPutTransactionV2s( List<_i29.TransactionV2>? transactions) => @@ -1704,6 +1875,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future>.value([]), ) as _i11.Future>); + @override _i9.QueryBuilder<_i28.EthContract, _i28.EthContract, _i9.QWhere> getEthContracts() => (super.noSuchMethod( @@ -1721,6 +1893,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ) as _i9 .QueryBuilder<_i28.EthContract, _i28.EthContract, _i9.QWhere>); + @override _i11.Future<_i28.EthContract?> getEthContract(String? contractAddress) => (super.noSuchMethod( @@ -1730,12 +1903,14 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future<_i28.EthContract?>.value(), ) as _i11.Future<_i28.EthContract?>); + @override _i28.EthContract? getEthContractSync(String? contractAddress) => (super.noSuchMethod(Invocation.method( #getEthContractSync, [contractAddress], )) as _i28.EthContract?); + @override _i11.Future putEthContract(_i28.EthContract? contract) => (super.noSuchMethod( @@ -1745,6 +1920,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), returnValue: _i11.Future.value(0), ) as _i11.Future); + @override _i11.Future putEthContracts(List<_i28.EthContract>? contracts) => (super.noSuchMethod( @@ -1755,6 +1931,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); + @override _i11.Future getHighestUsedMintIndex({required String? walletId}) => (super.noSuchMethod( @@ -1783,6 +1960,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#bellNew), ), ) as String); + @override String get buy => (super.noSuchMethod( Invocation.getter(#buy), @@ -1791,6 +1969,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#buy), ), ) as String); + @override String get exchange => (super.noSuchMethod( Invocation.getter(#exchange), @@ -1799,6 +1978,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#exchange), ), ) as String); + @override String get personaIncognito => (super.noSuchMethod( Invocation.getter(#personaIncognito), @@ -1807,6 +1987,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#personaIncognito), ), ) as String); + @override String get personaEasy => (super.noSuchMethod( Invocation.getter(#personaEasy), @@ -1815,6 +1996,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#personaEasy), ), ) as String); + @override String get stack => (super.noSuchMethod( Invocation.getter(#stack), @@ -1823,6 +2005,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#stack), ), ) as String); + @override String get stackIcon => (super.noSuchMethod( Invocation.getter(#stackIcon), @@ -1831,6 +2014,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#stackIcon), ), ) as String); + @override String get receive => (super.noSuchMethod( Invocation.getter(#receive), @@ -1839,6 +2023,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#receive), ), ) as String); + @override String get receivePending => (super.noSuchMethod( Invocation.getter(#receivePending), @@ -1847,6 +2032,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#receivePending), ), ) as String); + @override String get receiveCancelled => (super.noSuchMethod( Invocation.getter(#receiveCancelled), @@ -1855,6 +2041,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#receiveCancelled), ), ) as String); + @override String get send => (super.noSuchMethod( Invocation.getter(#send), @@ -1863,6 +2050,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#send), ), ) as String); + @override String get sendPending => (super.noSuchMethod( Invocation.getter(#sendPending), @@ -1871,6 +2059,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#sendPending), ), ) as String); + @override String get sendCancelled => (super.noSuchMethod( Invocation.getter(#sendCancelled), @@ -1879,6 +2068,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#sendCancelled), ), ) as String); + @override String get themeSelector => (super.noSuchMethod( Invocation.getter(#themeSelector), @@ -1887,6 +2077,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#themeSelector), ), ) as String); + @override String get themePreview => (super.noSuchMethod( Invocation.getter(#themePreview), @@ -1895,6 +2086,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#themePreview), ), ) as String); + @override String get txExchange => (super.noSuchMethod( Invocation.getter(#txExchange), @@ -1903,6 +2095,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#txExchange), ), ) as String); + @override String get txExchangePending => (super.noSuchMethod( Invocation.getter(#txExchangePending), @@ -1911,6 +2104,7 @@ class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { Invocation.getter(#txExchangePending), ), ) as String); + @override String get txExchangeFailed => (super.noSuchMethod( Invocation.getter(#txExchangeFailed), diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index 1c8afe8db..80c03af35 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -94,6 +94,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -102,6 +103,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -110,6 +112,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -118,11 +121,13 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -138,6 +143,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -146,6 +152,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override _i8.Future deleteWallet( _i9.WalletInfo? info, @@ -162,6 +169,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future load( _i11.Prefs? prefs, @@ -178,6 +186,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future loadAfterStackRestore( _i11.Prefs? prefs, @@ -214,11 +223,13 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService { Invocation.getter(#locale), ), ) as String); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i8.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( @@ -229,6 +240,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -237,6 +249,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -245,6 +258,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -253,6 +267,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -279,6 +294,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { Invocation.getter(#client), ), ) as _i6.HTTP); + @override set client(_i6.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -287,6 +303,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -295,11 +312,13 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i16.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i16.StackTheme>[], ) as List<_i16.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -308,6 +327,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { ), returnValueForMissingStub: null, ); + @override _i8.Future install({required _i17.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -319,6 +339,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -329,6 +350,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -338,6 +360,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -348,6 +371,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { ), returnValue: _i8.Future.value(false), ) as _i8.Future); + @override _i8.Future> fetchThemes() => (super.noSuchMethod( @@ -358,6 +382,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { returnValue: _i8.Future>.value( <_i15.StackThemeMetaData>[]), ) as _i8.Future>); + @override _i8.Future<_i17.Uint8List> fetchTheme( {required _i15.StackThemeMetaData? themeMetaData}) => @@ -369,6 +394,7 @@ class MockThemeService extends _i1.Mock implements _i15.ThemeService { ), returnValue: _i8.Future<_i17.Uint8List>.value(_i17.Uint8List(0)), ) as _i8.Future<_i17.Uint8List>); + @override _i16.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( diff --git a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart index 2084bd833..d7fea45d4 100644 --- a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart +++ b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart @@ -90,6 +90,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -98,6 +99,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -106,6 +108,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -114,11 +117,13 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -134,6 +139,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -142,6 +148,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ), returnValueForMissingStub: null, ); + @override _i8.Future deleteWallet( _i9.WalletInfo? info, @@ -158,6 +165,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future load( _i10.Prefs? prefs, @@ -174,6 +182,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future loadAfterStackRestore( _i10.Prefs? prefs, @@ -210,21 +219,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i6.SecureStorageInterface); + @override List<_i11.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i11.NodeModel>[], ) as List<_i11.NodeModel>); + @override List<_i11.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i11.NodeModel>[], ) as List<_i11.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i8.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -234,6 +247,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future setPrimaryNodeFor({ required _i4.CryptoCurrency? coin, @@ -253,6 +267,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i11.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -260,6 +275,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#currency: currency}, )) as _i11.NodeModel?); + @override List<_i11.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -269,6 +285,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i11.NodeModel>[], ) as List<_i11.NodeModel>); + @override _i11.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -276,6 +293,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#id: id}, )) as _i11.NodeModel?); + @override List<_i11.NodeModel> failoverNodesFor( {required _i4.CryptoCurrency? currency}) => @@ -287,6 +305,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i11.NodeModel>[], ) as List<_i11.NodeModel>); + @override _i8.Future add( _i11.NodeModel? node, @@ -305,6 +324,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future delete( String? id, @@ -321,6 +341,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future setEnabledState( String? id, @@ -339,6 +360,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future edit( _i11.NodeModel? editedNode, @@ -357,6 +379,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -366,6 +389,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -374,6 +398,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -382,6 +407,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -390,6 +416,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart b/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart index 057284d51..88f854589 100644 --- a/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart +++ b/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart @@ -104,6 +104,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { Invocation.getter(#nodeService), ), ) as _i2.NodeService); + @override set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod( Invocation.setter( @@ -112,6 +113,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get mainDB => (super.noSuchMethod( Invocation.getter(#mainDB), @@ -120,6 +122,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { Invocation.getter(#mainDB), ), ) as _i3.MainDB); + @override set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod( Invocation.setter( @@ -128,11 +131,13 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { ), returnValueForMissingStub: null, ); + @override List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod( Invocation.getter(#wallets), returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); + @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -148,6 +153,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { ), ), ) as _i5.Wallet<_i4.CryptoCurrency>); + @override void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod( Invocation.method( @@ -156,6 +162,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { ), returnValueForMissingStub: null, ); + @override _i9.Future deleteWallet( _i10.WalletInfo? info, @@ -172,6 +179,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future load( _i11.Prefs? prefs, @@ -188,6 +196,7 @@ class MockWallets extends _i1.Mock implements _i8.Wallets { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future loadAfterStackRestore( _i11.Prefs? prefs, @@ -224,6 +233,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { Invocation.getter(#client), ), ) as _i6.HTTP); + @override set client(_i6.HTTP? _client) => super.noSuchMethod( Invocation.setter( @@ -232,6 +242,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValueForMissingStub: null, ); + @override _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -240,11 +251,13 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { Invocation.getter(#db), ), ) as _i3.MainDB); + @override List<_i13.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), returnValue: <_i13.StackTheme>[], ) as List<_i13.StackTheme>); + @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -253,6 +266,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValueForMissingStub: null, ); + @override _i9.Future install({required _i14.Uint8List? themeArchiveData}) => (super.noSuchMethod( @@ -264,6 +278,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( @@ -274,6 +289,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( @@ -283,6 +299,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( @@ -293,6 +310,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValue: _i9.Future.value(false), ) as _i9.Future); + @override _i9.Future> fetchThemes() => (super.noSuchMethod( @@ -303,6 +321,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { returnValue: _i9.Future>.value( <_i12.StackThemeMetaData>[]), ) as _i9.Future>); + @override _i9.Future<_i14.Uint8List> fetchTheme( {required _i12.StackThemeMetaData? themeMetaData}) => @@ -314,6 +333,7 @@ class MockThemeService extends _i1.Mock implements _i12.ThemeService { ), returnValue: _i9.Future<_i14.Uint8List>.value(_i14.Uint8List(0)), ) as _i9.Future<_i14.Uint8List>); + @override _i13.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( @@ -339,21 +359,25 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { Invocation.getter(#secureStorageInterface), ), ) as _i7.SecureStorageInterface); + @override List<_i15.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), returnValue: <_i15.NodeModel>[], ) as List<_i15.NodeModel>); + @override List<_i15.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), returnValue: <_i15.NodeModel>[], ) as List<_i15.NodeModel>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i9.Future updateDefaults() => (super.noSuchMethod( Invocation.method( @@ -363,6 +387,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future setPrimaryNodeFor({ required _i4.CryptoCurrency? coin, @@ -382,6 +407,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i15.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( @@ -389,6 +415,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#currency: currency}, )) as _i15.NodeModel?); + @override List<_i15.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => (super.noSuchMethod( @@ -398,6 +425,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i15.NodeModel>[], ) as List<_i15.NodeModel>); + @override _i15.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( @@ -405,6 +433,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { [], {#id: id}, )) as _i15.NodeModel?); + @override List<_i15.NodeModel> failoverNodesFor( {required _i4.CryptoCurrency? currency}) => @@ -416,6 +445,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValue: <_i15.NodeModel>[], ) as List<_i15.NodeModel>); + @override _i9.Future add( _i15.NodeModel? node, @@ -434,6 +464,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future delete( String? id, @@ -450,6 +481,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future setEnabledState( String? id, @@ -468,6 +500,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future edit( _i15.NodeModel? editedNode, @@ -486,6 +519,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override _i9.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( @@ -495,6 +529,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -503,6 +538,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -511,6 +547,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -519,6 +556,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index bf62d9b0c..bc627d626 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -32,6 +33,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { registry->GetRegistrarForPlugin("FlutterSecureStorageWindowsPlugin")); IsarFlutterLibsPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("IsarFlutterLibsPlugin")); + LocalAuthPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("LocalAuthPlugin")); PermissionHandlerWindowsPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); SharePlusWindowsPluginCApiRegisterWithRegistrar( diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index d5305699e..d25497442 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST flutter_libepiccash flutter_secure_storage_windows isar_flutter_libs + local_auth_windows permission_handler_windows share_plus sqlite3_flutter_libs