xpx_chain_sdk 0.0.3+5

  • Readme
  • Changelog
  • Example
  • Installing
  • 49

Vue logo

ProximaX Sirius Blockchain Dart SDK

Official ProximaX Sirius Blockchain SDK Library in Dart.

The ProximaX Sirius Chain Dart SDK works as a lightweight Dart library for interacting with the Sirius Blockchain. It provides a complete library set coverage, and supports synchronous and asynchronous requests.

1. Depend on it

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

dependencies:
  xpx_chain_sdk: 0.0.3+4

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:xpx_chain_sdk/xpx_sdk.dart';

Wiki and Examples #

Examples are in the examples folder

For more examples, go to our wiki

Contribution #

We'd love to get more people involved in the project. Please feel free to raise any issues or PR and we'll review your contribution.

Copyright (c) 2019 ProximaX Limited

0.0.3+5 #

New Features #

[ADD] ModifyMultisigAccountTransaction support.

[ADD] Get ModifyMultisigInfo.

[ADD] LockFunds support.

[ADD] Get LockFundsTransactionInfo.

[ADD] Getter publicKey and address from Account class.

[ADD] Get aggregateBondedTransactions.

[ADD] AnnounceAggregateBonded and AnnounceAggregateBondedCosignature.

[ADD] CosignatureTransaction class.

Updates #

[UPDATE] Reformat style.

[UPDATE] Update example.

[UPDATE] refactor AggregateTransaction class.

[UPDATE] rename AccountPropertyDTO to _AccountPropertyDTO.

[UPDATE] xpx_crypto to 0.0.2+2.

Fixed bugs #

[UPDATE] fixed bug in TableArrayAttribute.

0.0.3+4 #

Updates #

[UPDATE] latest published versions for http dependency.

0.0.3+3 #

Updates #

[UPDATE] Reformat style.

[UPDATE] Update example.

Fixed bugs #

[FIXED] fixed bug in Deadline null

[FIXED] fixed bug in MosaicSupplyChangeTransaction

[FIXED] fixed bug in duration MosaicDefinition

[FIXED] fixed bug in duration namespace

[FIXED] fixed bug in _MessageDTO null

[FIXED] fixed bug in parentId null

[FIXED] fixed bug in List _MosaicNameDTO

[FIXED] fixed bug in List _MosaicInfoDTO

[FIXED] fixed bug in List _BlockInfoDTO

[FIXED] fixed bug in BlockInfoDTO

0.0.3+2 #

Updates #

[UPDATE] Reformat style.

[UPDATE] rename Config Class.

[UPDATE] refactor Client Class to ApiClient.

[UPDATE] examples.

0.0.3+1 #

  • Initial version, created by Eleazar Garrido.

New Features #

[ADD] Get Account MultiSig Info.

[ADD] Get Account MultiSign Graph Info.

[ADD] Get Transaction Status.

[ADD] Get Transactions Statuses.

Updates #

[UPDATE] Documentation fixes.

[UPDATE] Reformat style.

[UPDATE] dependencies.

[UPDATE] examples.

Fixed bugs #

[FIXED] Undefined name 'HEX'.

[DELETED] removed unused functions.

example/README.md

Examples #

this directory contains some basic examples of Dart's xpx-chain-SDK

a) example for get info: example_account.dart

b) example for announces transactions: example_transfer.dart

  • For more information, see the wiki section of the package.

  • For use cases consult: Xpx-Dart-Flutter

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Copyright (c) 2019 ProximaX Limited

Use this package as a library

1. Depend on it

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


dependencies:
  xpx_chain_sdk: ^0.0.3+5

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:xpx_chain_sdk/imp/buffer/buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_aggregate.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_lockFunds.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_mosaic_definition.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_mosaic_supply_change.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_multisig.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_register_namespace.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_transfer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/aggregate_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/alias_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/lock_funds_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/modify_contract_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/modify_metadata_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/modify_multisig_account_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/mosaic_alias_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/mosaic_definition_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/mosaic_supply_change_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/register_namespace_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/secret_lock_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/secret_proof_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/transactions_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/transactions/transfer_transaction_buffer.dart';
import 'package:xpx_chain_sdk/xpx_sdk.dart';
import 'package:xpx_chain_sdk/xpx_sdk_all_errors.dart';
import 'package:xpx_chain_sdk/xpx_sdk_consts.dart';
import 'package:xpx_chain_sdk/xpx_sdk_endian.dart';
import 'package:xpx_chain_sdk/xpx_sdk_helper.dart';
import 'package:xpx_chain_sdk/xpx_sdk_utils.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
3
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
49
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Health suggestions

Fix lib/src/model/mosaic_dto.dart. (-0.50 points)

Analysis of lib/src/model/mosaic_dto.dart reported 1 hint:

line 118 col 10: The value of the field '_levy' isn't used.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
base32 ^1.0.1 1.0.1
convert ^2.1.1 2.1.1
fixnum ^0.10.9 0.10.9
flat_buffers ^1.11.0 1.11.0
http ^0.12.0+2 0.12.0+2
xpx_crypto ^0.0.2+2 0.0.2+2
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
http_parser 3.1.3
meta 1.1.7
path 1.6.4
pedantic 1.8.0+1
pointycastle 1.0.1
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_runner >=0.8.10 <2.0.0
build_web_compilers >=0.3.6 <2.0.0