wallet_core 0.0.1+55

  • Readme
  • Changelog
  • Example
  • Installing
  • 80

Fuse Wallet Core #

Fuse wallet core library for Ethereum based networks, developed in Dart, can be used in Flutter framework.

What's in here #

  • Web3
    • Using web3dart library in a simplified way
    • Initialized with any Ethereum based network (and custom network id)
    • BIP 39 mnemonic - generate, extract private key from
    • Native - get balance, send, sign off-chain transactions to transfer using relay
    • ERC20 based tokens - get balance, send, sign off-chain transactions to transfer using relay
    • Contracts - read/write
  • API
  • GraphQL
    • Interact with The Graph for easier blockchain data reads

Install #

See pub.dev

Usage #

See example folder

License #

Fuse Wallet Core is available under the MIT license. See the LICENSE file for more info.

work in progress #

example/README.md

examples #

onboarding #

dart example/onboarding.dart

pro mode #

native #

dart example/pro.native.dart

tokens #

dart example/pro.token.dart

cash mode #

native #

dart example/cash.native.dart

tokens #

dart example/cash.token.dart

Use this package as a library

1. Depend on it

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


dependencies:
  wallet_core: ^0.0.1+55

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:wallet_core/wallet_core.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
72
Health:
Code health derived from static analysis. [more]
94
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
80
Learn more about scoring.

We analyzed this package on Jan 21, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health issues and suggestions

Document public APIs. (-1 points)

59 out of 59 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

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

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

line 12 col 17: The value of the field '_clientRopsten' isn't used.

line 13 col 17: The value of the field '_clientMainnet' isn't used.

line 186 col 19: Avoid using null in if null operators.

line 265 col 19: Avoid using null in if null operators.

line 281 col 19: Avoid using null in if null operators.

Fix lib/src/web3.dart. (-1.99 points)

Analysis of lib/src/web3.dart reported 4 hints:

line 49 col 15: Unnecessary new keyword.

line 49 col 46: Unnecessary new keyword.

line 97 col 28: Unnecessary new keyword.

line 225 col 36: Unnecessary new keyword.

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

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

line 21 col 17: Avoid using null in if null operators.

line 22 col 15: Unnecessary new keyword.

Format lib/src/graph_queries.dart.

Run dartfmt to format lib/src/graph_queries.dart.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (graphql).

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
bip32 ^1.0.5 1.0.5
bip39 ^1.0.3 1.0.3
decimal ^0.3.5 0.3.5
graphql ^2.0.0 2.1.0 3.0.0
hex ^0.1.2 0.1.2
http ^0.12.0 0.12.0+4
resource ^2.1.6 2.1.6
web3dart ^1.2.1 1.2.3
Transitive dependencies
async 2.4.0
bs58check 1.0.1
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.4
graphql_parser 1.1.4
http_parser 3.1.3
isolate 2.0.2
json_rpc_2 2.1.0
meta 1.1.8
mime 0.9.6+3
path 1.6.4
pedantic 1.9.0
pointycastle 1.0.2
rational 0.3.7
rxdart 0.22.6 0.23.1
source_span 1.6.0
stack_trace 1.9.3
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
uuid 2.0.4
uuid_enhanced 3.0.2
websocket 0.0.5