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

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

2
likes
140/ 160
pub points
76%
popularity

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

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

508 out of 1383 API elements (36.7 %) have documentation comments.

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

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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.

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.

0/0 points: Swift Package Manager support

Package does not support the Swift Package Manager on iOS

It does not contain ios/moca_chains/Package.swift.

This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.

See https://docs.flutter.dev/to/spm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 30 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
Support up-to-date dependencies
30 / 40trigger folding of the section

0/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.1 4.2.1 4.9.1
blake2b 0.2.3 0.2.3 0.2.3
blockchain_utils 2.1.2 2.1.2 3.4.0
convert 3.1.1 3.1.1 3.1.2
cosmos_sdk 0.0.10 0.0.10 1.4.1
cryptography 2.7.0 2.7.0 2.7.0
dart_jsonwebtoken 2.14.0 2.14.0 2.14.1
dio 5.4.3+1 5.4.3+1 5.7.0
flutter_bitcoin 1.0.1 1.0.1 1.0.1
flutter_rust_bridge 2.3.0 2.3.0 2.6.0
http 1.2.1 1.2.1 1.2.2
on_chain 3.0.1 3.0.1 4.3.0
pointycastle 3.9.1 3.9.1 3.9.1
tuple ^2.0.2 2.0.2 2.0.2
uuid 4.4.0 4.4.0 4.5.1
web_socket_channel 2.4.5 2.4.5 3.0.1
Transitive dependencies
Package Constraint Compatible Latest
adaptive_number - 1.0.0 1.0.0
args - 2.6.0 2.6.0
async - 2.12.0 2.12.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.0 2.1.0
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
crypto - 3.0.6 3.0.6
ed25519_edwards - 0.3.1 0.3.1
ffi - 2.1.3 2.1.3
fixnum - 1.1.1 1.1.1
hex - 0.2.0 0.2.0
http_parser - 4.1.1 4.1.1
js - 0.6.7 0.7.1
meta - 1.16.0 1.16.0
path - 1.9.1 1.9.1
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.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.4.0 1.4.0
web - 0.5.1 1.1.0

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

Found 11 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.

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.

2
likes
140
pub points
76%
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, dart_jsonwebtoken, dio, flutter_bitcoin, flutter_rust_bridge, http, on_chain, pointycastle, tuple, uuid, web_socket_channel

More

Packages that depend on moca_chains