Skip to content

Commit 01d00bb

Browse files
committed
clean unused import
1 parent 33cec2b commit 01d00bb

7 files changed

Lines changed: 42 additions & 68 deletions

File tree

analysis_options.yaml

Lines changed: 27 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,29 @@
1-
include: package:lints/recommended.yaml
2-
# include: package:flutter_lints/flutter.yaml
3-
# Additional information about this file can be found at
4-
# https://dart.dev/guides/language/analysis-options
5-
# Uncomment the following section to specify additional rules.
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
612
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
723
rules:
8-
# - always_declare_return_types
9-
# - annotate_overrides
10-
# - avoid_init_to_null
11-
# - avoid_null_checks_in_equality_operators
12-
# - avoid_relative_lib_imports
13-
# - avoid_return_types_on_setters
14-
# - avoid_shadowing_type_parameters
15-
# - avoid_single_cascade_in_expression_statements
16-
# - avoid_types_as_parameter_names
17-
# - await_only_futures
18-
# - camel_case_extensions
19-
# - curly_braces_in_flow_control_structures
20-
# - empty_catches
21-
# - empty_constructor_bodies
22-
# - library_names
23-
# - library_prefixes
24-
# - no_duplicate_case_values
25-
# - null_closures
26-
# - omit_local_variable_types
27-
# - prefer_adjacent_string_concatenation
28-
# - prefer_collection_literals
29-
# - prefer_conditional_assignment
30-
# - prefer_contains
31-
# - prefer_equal_for_default_values
32-
# - prefer_final_fields
33-
# - prefer_for_elements_to_map_fromIterable
34-
# - prefer_generic_function_type_aliases
35-
# - prefer_if_null_operators
36-
# - prefer_inlined_adds
37-
# - prefer_is_empty
38-
# - prefer_is_not_empty
39-
# - prefer_iterable_whereType
40-
# - prefer_single_quotes
41-
# - prefer_spread_collections
42-
# - recursive_getters
43-
# - slash_for_doc_comments
44-
# - sort_child_properties_last
45-
# - type_init_formals
46-
# - unawaited_futures
47-
# - unnecessary_brace_in_string_interps
48-
# - unnecessary_const
49-
# - unnecessary_getters_setters
50-
# - unnecessary_new
51-
# - unnecessary_null_in_if_null_operators
52-
# - unnecessary_this
53-
# - unrelated_type_equality_checks
54-
# - use_function_type_syntax_for_parameters
55-
# - use_rethrow_when_possible
56-
# - valid_regexps
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options
29+

example/pubspec.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
8+
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.12.0"
11+
version: "2.13.0"
1212
bitcoin_base:
1313
dependency: "direct main"
1414
description:
1515
path: ".."
1616
relative: true
1717
source: path
18-
version: "6.3.0"
18+
version: "6.5.0"
1919
blockchain_utils:
2020
dependency: "direct main"
2121
description:
@@ -68,10 +68,10 @@ packages:
6868
dependency: transitive
6969
description:
7070
name: fake_async
71-
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
71+
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
7272
url: "https://pub.dev"
7373
source: hosted
74-
version: "1.3.2"
74+
version: "1.3.3"
7575
flutter:
7676
dependency: "direct main"
7777
description: flutter
@@ -110,10 +110,10 @@ packages:
110110
dependency: transitive
111111
description:
112112
name: leak_tracker
113-
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
113+
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
114114
url: "https://pub.dev"
115115
source: hosted
116-
version: "10.0.8"
116+
version: "10.0.9"
117117
leak_tracker_flutter_testing:
118118
dependency: transitive
119119
description:
@@ -243,10 +243,10 @@ packages:
243243
dependency: transitive
244244
description:
245245
name: vm_service
246-
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
246+
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
247247
url: "https://pub.dev"
248248
source: hosted
249-
version: "14.3.1"
249+
version: "15.0.0"
250250
web:
251251
dependency: transitive
252252
description:

lib/src/bitcoin_cash/bcmr.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import 'package:bitcoin_base/bitcoin_base.dart';
1+
import 'package:bitcoin_base/src/bitcoin/script/scripts.dart';
2+
import 'package:bitcoin_base/src/cash_token/cash_token.dart';
3+
import 'package:bitcoin_base/src/provider/models/utxo_details.dart';
24
import 'package:blockchain_utils/blockchain_utils.dart';
35

46
/// Bitcoin Cash Metadata Registries Script to convert uris and content hash to bitcoin output script

lib/src/provider/electrum_methods/methods/get_verbose_transaction.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import 'package:bitcoin_base/bitcoin_base.dart';
21
import 'package:bitcoin_base/src/provider/core/methods.dart';
32
import 'package:bitcoin_base/src/provider/core/params.dart';
3+
import 'package:bitcoin_base/src/provider/models/electrum/models.dart';
44

55
/// Return a raw transaction.
66
/// https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-methods.html

lib/src/provider/electrum_methods/methods/headers_subscribe.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import 'package:bitcoin_base/src/provider/models/electrum/models.dart';
66
/// https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-methods.html
77
class ElectrumRequestHeaderSubscribe extends ElectrumRequest<
88
ElectrumHeaderSubscribeResponse, Map<String, dynamic>> {
9-
/// blockchain.headers.subscribe
109
@override
1110
String get method => ElectrumRequestMethods.headersSubscribe.method;
1211

lib/src/provider/models/block_cypher/block_cypher_models.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:bitcoin_base/src/bitcoin/address/address.dart';
22
import 'package:bitcoin_base/src/provider/models/utxo_details.dart';
33
import 'package:blockchain_utils/utils/numbers/numbers.dart';
4-
import 'package:blockchain_utils/utils/numbers/utils/bigint_utils.dart';
54

65
class TxRef implements UTXO {
76
final String txHash;

lib/src/transaction_builder/core.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import 'package:bitcoin_base/bitcoin_base.dart';
1+
import 'package:bitcoin_base/src/bitcoin/script/scripts.dart';
2+
import 'package:bitcoin_base/src/provider/models/utxo_details.dart';
23

34
typedef BitcoinSignerCallBack = String Function(
45
List<int> trDigest, UtxoWithAddress utxo, String publicKey, int sighash);

0 commit comments

Comments
 (0)