ethereum_util 1.2.0

ethereum_util #

This project is a work in progress.

Porting Ethereum utilities from Javascript to Dart:

Check test folder for usage.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  ethereum_util: ^1.2.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:ethereum_util/ethereum_util.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
46
Health:
Code health derived from static analysis. [more]
91
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
26
Overall:
Weighted score of the above. [more]
56
Learn more about scoring.

We analyzed this package on Jul 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:ethereum_util/ethereum_util.dart.

Health suggestions

Fix lib/src/typed_data.dart. (-3.45 points)

Analysis of lib/src/typed_data.dart reported 7 hints, including:

line 6 col 48: Use lowercase_with_underscores when specifying a library prefix.

line 94 col 24: Method doesn't override an inherited method.

line 108 col 24: Method doesn't override an inherited method.

line 139 col 24: Method doesn't override an inherited method.

line 226 col 3: Prefer using /// for doc comments.

Fix lib/src/signature.dart. (-2.48 points)

Analysis of lib/src/signature.dart reported 5 hints:

line 79 col 6: Don't explicitly initialize variables to null.

line 126 col 36: Don't explicitly initialize variables to null.

line 155 col 6: Don't explicitly initialize variables to null.

line 196 col 35: Don't explicitly initialize variables to null.

line 248 col 45: Don't explicitly initialize variables to null.

Fix lib/src/hash.dart. (-1.49 points)

Analysis of lib/src/hash.dart reported 3 hints:

line 4 col 48: Use lowercase_with_underscores when specifying a library prefix.

line 10 col 38: Use = to separate a named parameter from its default value.

line 35 col 44: Use = to separate a named parameter from its default value.

Fix lib/src/utils.dart. (-1 points)

Analysis of lib/src/utils.dart reported 2 hints:

line 55 col 63: Use = to separate a named parameter from its default value.

line 60 col 12: Use isNotEmpty instead of length

Fix lib/src/abi.dart. (-0.50 points)

Analysis of lib/src/abi.dart reported 1 hint:

line 61 col 13: The value of the local variable 'i' isn't used.

Maintenance issues and suggestions

Support latest dependencies. (-30 points)

The version constraint in pubspec.yaml does not support the latest published versions for 3 dependencies (equatable, json_annotation, json_serializable).

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-14 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and ethereum_util.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
buffer ^1.0.6 1.0.6
collection ^1.14.11 1.14.11
convert ^2.1.1 2.1.1
equatable ^0.2.3 0.2.6 0.3.0
json_annotation ^2.0.0 2.3.0 2.4.0
json_schema ^2.2.0 2.2.1
json_serializable ^2.0.0 2.3.0 3.0.0
meta ^1.1.6 1.1.7
pointycastle ^1.0.1 1.0.1
quiver >=2.0.0 <3.0.0 2.0.3
Transitive dependencies
analyzer 0.36.4 0.37.0
args 1.5.2
async 2.2.0
build 1.1.5
build_config 0.4.1
charcode 1.1.2
checked_yaml 1.0.1
cli_repl 0.2.0+1
colorize 2.0.0
crypto 2.0.6
csslib 0.16.1
dart2_constant 1.0.2+dart2
dart_style 1.2.9
fluri 1.2.5
front_end 0.1.19 0.1.20
glob 1.1.7
html 0.14.0+2
http 0.12.0+2
http_parser 3.1.3
intl 0.15.8
js 0.6.1+1
kernel 0.3.19 0.3.20
logging 0.11.3+2
matcher 0.12.5
mime 0.9.6+3
package_config 1.0.5
package_resolver 1.0.10
pedantic 1.8.0+1
pub_semver 1.4.2
pubspec_parse 0.1.4
sass 1.22.5
sockjs_client 0.3.5
sockjs_client_wrapper 1.0.8
source_gen 0.9.4+2
source_maps 0.10.8
source_span 1.5.5
stack_trace 1.9.3
stream_transform 0.0.19
string_scanner 1.0.4
term_glyph 1.1.0
tuple 1.0.2
typed_data 1.1.6
uri 0.11.3+1
utf 0.9.0+5
w_common 1.20.0
w_transport 3.2.8
watcher 0.9.7+12
yaml 2.1.16
Dev dependencies
build_runner ^1.3.0
path ^1.6.2 1.6.2
test ^1.6.2

Admin