eosdart_hyperion 0.0.1

  • Readme
  • Changelog
  • Installing
  • new71

eosdart_hyperion #

EOSIO-based blockchain Hyperion API client for Dart and Flutter applications.

What's Hyperion? #

Hyperion is a Scalable Full History API Solution for EOSIO based blockchains developed by EOS Rio.

Usage #

This library is powered by Chopper. This means that you need to create an instance of the ChopperService you want to query, i.e. ActionsHyperionService, and inject an instance of HyperionClient to it.

HyperionClient is flexible. You can customize it the same way you would do with a ChopperClient, for example by adding your own interceptors such as HttpLoggingInterceptor or CurlInterceptor, although it works fine out of box by specifying a nodeUrl.

Here's an example of the basic usage:

  eosdart_hyperion: ^[latest version]
import 'package:eosdart_hyperion/eosdart_hyperion.dart';

void main() {
  final hyperionClient = HyperionClient(nodeURL: 'https://api.eossweden.org');

  final actionsHyperionService =
      ActionsHyperionService.create(client: hyperionClient);

      .getActions(account: 'eosswedenorg', simple: true, limit: 5)
      .then((response) => print(response.body));

Contributing #

If you have a feature request or found a bug please file it at the issues tracker.


[0.0.1] - Initial release #

  • Contains the foundation for the Hyperion API client
  • Implements the endpoint to fetch (simple) actions

Use this package as a library

1. Depend on it

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

  eosdart_hyperion: ^0.0.1

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

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

  • Dart: 2.7.1
  • pana: 0.13.5

Health issues and suggestions

Document public APIs. (-0.30 points)

41 out of 42 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.

Maintenance suggestions

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.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

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

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
chopper ^3.0.1+1 3.0.1+1
eosdart_ecc ^0.4.0 0.4.1
json_annotation ^3.0.1 3.0.1
Transitive dependencies
async 2.4.0
bs58check 1.0.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
hex 0.1.2
http 0.12.0+4
http_parser 3.1.3
logging 0.11.4
meta 1.1.8
path 1.6.4
pointycastle 1.0.2
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_runner ^1.7.4
chopper_generator ^3.0.3
json_serializable ^3.2.3
pedantic ^1.9.0 1.9.0
test ^1.12.0