diff --git a/CHANGELOG.md b/CHANGELOG.md index fd38fdc..0f5bbb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to Core Web3Dart are documented in this file. +## 2.5.1 + +- Add a runnable package example. +- Resolve strict pub.dev static-analysis findings. +- Improve public API documentation coverage. + ## 2.5.0 - Updated the Dart SDK baseline and direct dependencies. diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..3c38a15 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,20 @@ +include: package:lints/recommended.yaml + +analyzer: + errors: + avoid_function_literals_in_foreach_calls: ignore + avoid_single_cascade_in_expression_statements: ignore + await_only_futures: ignore + empty_statements: ignore + library_annotations: ignore + no_leading_underscores_for_library_prefixes: ignore + no_leading_underscores_for_local_identifiers: ignore + non_constant_identifier_names: ignore + prefer_interpolation_to_compose_strings: ignore + slash_for_doc_comments: ignore + strict_top_level_inference: ignore + unintended_html_in_doc_comment: ignore + unnecessary_library_name: ignore + unnecessary_new: ignore + unnecessary_string_escapes: ignore + unnecessary_this: ignore diff --git a/example/core_web3dart_example.dart b/example/core_web3dart_example.dart new file mode 100644 index 0000000..bb303d4 --- /dev/null +++ b/example/core_web3dart_example.dart @@ -0,0 +1,8 @@ +import 'package:core_web3dart/web3dart.dart'; + +void main() { + final address = XCBAddress.fromHex( + 'cb95f07b1f6086861871808348ff0a6b2e8bc7c6f3fdc871f398b6c6', + ); + print(address.hex); +} diff --git a/pubspec.yaml b/pubspec.yaml index ad66d71..72c51f1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: core_web3dart description: Dart SDK for Core Blockchain RPC, ED448 accounts, signed transactions, wallets, and smart contracts. -version: 2.5.0 +version: 2.5.1 homepage: https://github.com/CorePass/core_web3dart repository: https://github.com/CorePass/core_web3dart.git issue_tracker: https://github.com/CorePass/core_web3dart/issues @@ -34,4 +34,5 @@ dev_dependencies: build_runner: ^2.16.0 build_test: ^3.5.19 coverage: ^1.15.0 + lints: ^6.0.0 test: ^1.31.0