moca_chains 1.4.2 copy "moca_chains: ^1.4.2" to clipboard
moca_chains: ^1.4.2 copied to clipboard

Chains package for Moca App. This library gives the developer common methods for interacting with chains.

1
likes
130/ 140
pub points
65%
popularity

We analyzed this package 25 hours ago, and awarded it 130 pub points (of a possible 140):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

490 out of 1243 API elements (39.4 %) have documentation comments.

Some symbols that are missing documentation: moca_chains.APIConfig, moca_chains.APIConfig.APIConfig, moca_chains.APIConfig.apiType, moca_chains.APIConfig.feeRate, moca_chains.APIConfig.APIConfig.fromBlockCypher.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

SDK issues found:

Package is not compatible with the Dart SDK.

Because:

  • moca_chains that depends on:
  • blake2b that is a package requiring flutter.
  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 46 issues. Showing the first 2:

INFO: Statements in an if should be enclosed in a block.

lib/src/chains/bitcoin/bitcoin.dart:33:7

   ╷
33 │       throw 'Error getting balance: ${response.data}';
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/chains/bitcoin/bitcoin.dart

INFO: The variable name 'L2Specs' isn't a lowerCamelCase identifier.

lib/src/chains/evm/erc20.dart:20:22

   ╷
20 │   late EvmChainSpecs L2Specs;
   │                      ^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/chains/evm/erc20.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
bech32 ^0.2.2 0.2.2 0.2.2
bitcoin_base ^4.2.0 4.2.1 4.2.1
blake2b ^0.2.3 0.2.3 0.2.3
blockchain_utils ^2.1.1 2.1.2 2.1.2
convert ^3.1.1 3.1.1 3.1.1
cosmos_sdk ^0.0.5 0.0.10 0.1.0
cryptography ^2.7.0 2.7.0 2.7.0
dio ^5.4.2+1 5.4.3+1 5.4.3+1
flutter_bitcoin ^1.0.1 1.0.1 1.0.1
http ^1.2.1 1.2.1 1.2.1
on_chain ^3.0.1 3.2.0 3.2.0
pointycastle ^3.7.3 3.9.1 3.9.1
uuid ^4.2.1 4.4.0 4.4.0
web_socket_channel ^2.4.3 2.4.5 3.0.0
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
bip32 - 2.0.0 2.0.0
bip39 - 1.0.6 1.0.6
bs58check - 1.0.2 1.0.2
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
ffi - 2.1.2 2.1.2
fixnum - 1.1.0 1.1.0
hex - 0.2.0 0.2.0
http_parser - 4.0.2 4.0.2
js - 0.6.7 0.7.1
meta - 1.15.0 1.15.0
path - 1.9.0 1.9.0
source_span - 1.10.0 1.10.0
sprintf - 7.0.0 7.0.0
stream_channel - 2.1.2 2.1.2
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
web - 0.5.1 0.5.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.0.5` on cosmos_sdk does not support the stable version `0.1.0`, that was published 15 days ago.

When cosmos_sdk is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions cosmos_sdk to update the constraint.

The constraint `^2.4.3` on web_socket_channel does not support the stable version `3.0.0`, that was published 16 days ago.

When web_socket_channel is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions web_socket_channel to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.4.0.

Check the analysis log for details.

1
likes
130
pub points
65%
popularity

Publisher

unverified uploader

Chains package for Moca App. This library gives the developer common methods for interacting with chains.

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

bech32, bitcoin_base, blake2b, blockchain_utils, convert, cosmos_sdk, cryptography, dio, flutter_bitcoin, http, on_chain, pointycastle, uuid, web_socket_channel

More

Packages that depend on moca_chains