Reference implementation for the Zenon SDK for Dart and Flutter apps compatible

Overview

Zenon Dart SDK

Reference implementation for the Zenon SDK for Dart and Flutter apps compatible with the Zenon Alphanet - Network of Momentum Phase 0. It provides a simple integration with any Dart or Flutter based projects.

Setup

To start using this library, edit the pubspec.yaml by adding the following lines:

dependencies:
  znn_sdk_dart: ^latest_version

Notice: znn_sdk_dart requires Dart version >=2.14.0

You can also use a specific GitHub tag or branch:

dependencies:
  znn_sdk_dart:
    git:
      url: git://github.com/zenon-network/znn_sdk_dart.git
      ref: <tag_or_branch>

Contributing

Please check CONTRIBUTING for more details.

License

The MIT License (MIT). Please check LICENSE for more information.

You might also like...

Flutter's sync log component implementation by DartNative.

Flutter's sync log component implementation by DartNative

Apr 30, 2022

Provides null-safety implementation to simplify JSON data handling by adding extension method to JSON object

Lazy JSON Provides null-safety implementation to simplify JSON data handling by adding extension method to JSON object and JSON array. Getting started

Oct 27, 2021

A Dart build script that downloads the Protobuf compiler and Dart plugin to streamline .proto to .dart compilation.

A Dart build script that downloads the Protobuf compiler and Dart plugin to streamline .proto to .dart compilation.

Oct 26, 2022

🔥FlutterFire is a set of Flutter plugins that enable Flutter apps to use Firebase services.

🔥FlutterFire is a set of Flutter plugins that enable Flutter apps to use Firebase services.

FlutterFire is a set of Flutter plugins that enable Flutter apps to use Firebase services. You can follow an example that shows how to use these plugins in the Firebase for Flutter codelab.

Jan 2, 2023

apps random

flutter_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Oct 21, 2021

Quiver is a set of utility libraries for Dart that makes using many Dart libraries easier and more convenient, or adds additional functionality.

Quiver is a set of utility libraries for Dart that makes using many Dart libraries easier and more convenient, or adds additional functionality.

Jan 2, 2023

Dart wrapper via dart:ffi for https://github.com/libusb/libusb

libusb Dart wrapper via dart:ffi for https://github.com/libusb/libusb Environment Windows(10) macOS Linux(Ubuntu 18.04 LTS) Usage Checkout example Fea

Dec 20, 2022

Extensible Dart interpreter for Dart with full interop

dart_eval is an extensible interpreter for the Dart language, written in Dart. It's powered under the hood by the Dart analyzer, so it achieves 100% c

Dec 28, 2022

The Dart Time Machine is a date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.

The Dart Time Machine is a date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.

The Dart Time Machine is a date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.

Oct 8, 2021
Comments
  • JSON-RPC method 'embedded.plasma.getRequiredFusionAmount' does not exist.

    JSON-RPC method 'embedded.plasma.getRequiredFusionAmount' does not exist.

    The PlasmaApi.getRequiredFusionAmount method calls a JSON-RPC method that does not exist.

    https://github.com/zenon-network/znn_sdk_dart/blob/367ddc7fbfefb6484d7553d9ac7e4532003a7008/lib/src/api/embedded/plasma.dart#L32

    opened by KingGorrin 0
  • HashType decodes incorrectly

    HashType decodes incorrectly

    When decoding the HashType, it does another digest on the already digested bytes causing the decoded bytes to differ from the original encoded bytes.

    Below a snippet to reproduce the issue.

    import 'package:znn_sdk_dart/znn_sdk_dart.dart';
    import 'package:znn_sdk_dart/src/abi/abi_types.dart';
    
    Future<void> main() async {
      var hash = Hash.parse('05a0fef85008e63f0680b68d11743ba5caf199994d642590febe570b2a84b612');
    
      var ht = AbiType.getType('hash');
    
      var encodedHash = ht.encode(hash.getBytes());
      var decodedHash = ht.decode(encodedHash);
    
      assert(hash == decodedHash);
    }
    

    Possible solution

    Replace the following line: https://github.com/zenon-network/znn_sdk_dart/blob/367ddc7fbfefb6484d7553d9ac7e4532003a7008/lib/src/abi/abi_types.dart#L328 with:

    return Hash.fromBytes(l);
    
    opened by KingGorrin 0
  • SentinelInfo - toJson returns incorrect owner address

    SentinelInfo - toJson returns incorrect owner address

    The toJson method in the SentinelInfo class incorrectly uses stakeAddress as the owner address. https://github.com/zenon-network/znn_sdk_dart/blob/367ddc7fbfefb6484d7553d9ac7e4532003a7008/lib/src/model/embedded/sentinel.dart#L18

    opened by vilkris4 0
  • Fixed WsClient forever retrying to initialize() issue

    Fixed WsClient forever retrying to initialize() issue

    Closes #1

    This added a max retry feature where it returns false when it reaches the maximum retries.

    Also added a setConfig() function for WsClient and set optional default values. Example usage for setConfig() below

    final zenon = Zenon();
    
    zenon.wsClient.setConfig(
          url: 'ws://peers.zenon.network:35998',
          maxRestarts: 5,
          maxTimeouts: 5,
          pingIntervalDuration: const Duration(seconds: 5),
          timeoutDuration: const Duration(seconds: 5),
          restartDelayDuration: const Duration(seconds: 5),
    );
    
    opened by oliverbytes 0
Owner
null
Sentry SDK for Dart and Flutter

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoy

Sentry 606 Dec 31, 2022
Library for help you make userbot or bot telegram and support tdlib telegram database and only support nodejs dart and google-apps-script

To-Do telegram client dart ✅️ support multi token ( bot / userbot ) ✅️ support bot and userbot ✅️ support telegram-bot-api local server ✅️ support tel

Azka Full Snack Developer:) 73 Jan 7, 2023
A Gura parser implementation for Dart

Gura Dart parser This repository contains the implementation of a Gura configuration format parser for Dart, written in pure Dart. (Compliant with spe

Zack Campbell 4 Aug 2, 2021
A pure Dart implementation of the Pusher Channels Client

pusher_channels is a pure Dart pusher channels client. This client is work in progress and it is unstable. Usage A simple usage example: import 'packa

Indaband 7 Nov 6, 2022
Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques

Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques. The use of dynamic reflection is constrained in order to ensure that the specialized code can be generated and will have a reasonable size.

Google 318 Dec 31, 2022
A tool to easily install the Android SDK command-line and platform tools.

gibadb A tool to easily install the Android SDK command-line and platform tools. For developers: This README describes the CLI tool that ships with th

null 3 Sep 22, 2022
Open source SDK to quickly integrate subscriptions, stop worring about code maintenance, and getting advanced real-time data

Open source SDK to quickly integrate subscriptions, stop worring about code maintenance, and getting advanced real-time data. Javascript / iOS glue framework

glassfy 8 Oct 31, 2022
Flutter Version Management: A simple CLI to manage Flutter SDK versions.

fvm Flutter Version Management: A simple cli to manage Flutter SDK versions. FVM helps with the need for a consistent app builds by allowing to refere

Leo Farias 3.2k Jan 8, 2023
An extension to the Flutter SDK for building Flutter applications for Tizen devices.

Flutter for Tizen An extension to the Flutter SDK for building Flutter applications for Tizen devices. Flutter and the related logo are trademarks of

null 356 Dec 16, 2022
Flutter implementation of Clean Architecture, inspired on the guidelines created by Uncle Bob.

clean_framework Flutter implementation of Clean Architecture, inspired on the guidelines created by Uncle Bob. see http://www.amazon.com/dp/0134494164

Acme Software 21 Dec 13, 2022