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

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

140/ 160
pub points
57
downloads

We analyzed this package 3 days ago, and awarded it 140 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

510 out of 1460 API elements (34.9 %) have documentation comments.

Some symbols that are missing documentation: moca_chains.APIConfig, moca_chains.APIConfig.APIConfig.fromBlockCypher, moca_chains.APIConfig.APIConfig.mempool, moca_chains.APIConfig.APIConfig.new, moca_chains.APIConfig.APIConfig.selectApi.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:moca_chains/moca_chains.dart that declares support for platforms: iOS, Windows, Linux.
Package does not support platform `macOS`.

Because:

  • package:moca_chains/moca_chains.dart that declares support for platforms: iOS, Windows, Linux.
Package does not support platform `Web`.

Because:

  • package:moca_chains/moca_chains.dart that declares support for platforms: iOS, Windows, Linux.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:moca_chains/moca_chains.dart that imports:
  • package:moca_chains/src/swaps/index.dart that imports:
  • package:moca_chains/src/swaps/swapper.dart that imports:
  • package:dio/dio.dart that imports:
  • package:dio/src/transformers/sync_transformer.dart that imports:
  • package:dio/src/utils.dart that imports:
  • package:dio/src/parameter.dart that imports:
  • package:dio/src/options.dart that imports:
  • package:dio/src/transformer.dart that imports:
  • package:dio/src/adapter.dart that imports:
  • package:dio/src/adapters/io_adapter.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

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

Found 42 issues. Showing the first 2:

INFO: Uses 'await' on an instance of 'String', which is not a subtype of 'Future'.

lib/src/chains/cardano/cardano.dart:91:12

   ╷
91 │     return await calculateTransactionFee().toString();
   │            ^^^^^
   ╵

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

INFO: Empty catch block.

lib/src/chains/cosmos/maya.dart:84:19

   ╷
84 │       } catch (e) {}
   │                   ^^
   ╵

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

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
bech32 0.2.2 0.2.2 0.2.2
bitcoin_base 4.2.1 4.2.1 7.0.0
blake2b 0.2.3 0.2.3 0.2.3
blockchain_utils 2.1.2 2.1.2 5.4.0
convert 3.1.1 3.1.1 3.1.2
cosmos_sdk 0.0.10 0.0.10 3.0.0
cryptography 2.7.0 2.7.0 2.7.0
dart_jsonwebtoken 2.14.0 2.14.0 3.3.1
dio 5.4.3+1 5.4.3+1 5.9.0
flutter_bitcoin 1.0.1 1.0.1 1.0.1
flutter_rust_bridge 2.3.0 2.3.0 2.11.1
http 1.2.2 1.2.2 1.6.0
on_chain 3.0.1 3.0.1 7.1.0
pointycastle 3.9.1 3.9.1 4.0.0
tuple ^2.0.2 2.0.2 2.0.2
uuid 4.5.0 4.5.0 4.5.2
web_socket_channel 3.0.2 3.0.2 3.0.3
Transitive dependencies
Package Constraint Compatible Latest Notes
adaptive_number - 1.0.0 1.0.0
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
bip32 - 2.0.0 2.0.0
bip39 - 1.0.6 1.0.6
bs58check - 1.0.2 1.0.2
build_cli_annotations - 2.1.1 2.1.1
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
ed25519_edwards - 0.3.1 0.3.1
ffi - 2.1.4 2.1.4
fixnum - 1.1.1 1.1.1
hex - 0.2.0 0.2.0
http_parser - 4.1.2 4.1.2
js - 0.6.7 0.7.2 Discontinued
meta - 1.17.0 1.17.0
path - 1.9.1 1.9.1
source_span - 1.10.1 1.10.1
sprintf - 7.0.0 7.0.0
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
web - 1.1.1 1.1.1
web_socket - 0.1.6 1.0.1

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

Found 12 issues. Showing the first 2:

The constraint `4.2.1` on bitcoin_base does not support the stable version `4.3.0`.

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

The constraint `2.1.2` on blockchain_utils does not support the stable version `3.0.0`.

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.1, Flutter 3.38.0, Dart 3.10.0-290.4.beta.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
140
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

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, dart_jsonwebtoken, dio, flutter_bitcoin, flutter_rust_bridge, http, on_chain, pointycastle, tuple, uuid, web_socket_channel

More

Packages that depend on moca_chains

Packages that implement moca_chains