xpx_chain_sdk 0.0.5+1

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.5+1

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.5+1 #

New Features #

[ADD] AddExchangeOfferTransaction model.

[ADD] Extension AliasTypeToInt and AliasActionTypeToInt.

[ADD] ExchangeOfferTransaction class.

[ADD] RemoveExchangeOfferTransaction class.

[ADD] RemoveExchangeOfferTransaction class.

[ADD] ExchangeRoutes Api.

Updates #

[UPDATE] BigInt method.

[UPDATE] Buffer Endian.

[UPDATE] Unnecessary new keyword.

0.0.4+1 #

New Features #

[UPDATE] Update Sirius chain 0.5.0

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.

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.5+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:xpx_chain_sdk/imp/buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/aggregate_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/alias_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/exchange_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/lock_funds_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/modify_contract_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/modify_metadata_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/modify_multisig_account_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/mosaic_alias_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/mosaic_definition_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/mosaic_supply_change_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/register_namespace_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/secret_lock_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/secret_proof_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/transactions_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/model/transfer_transaction_buffer.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema.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_alias.dart';
import 'package:xpx_chain_sdk/imp/buffer/schema/buffer_schema_exchange.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/xpx_sdk.dart';
import 'package:xpx_chain_sdk/xpx_sdk_all_errors.dart';
import 'package:xpx_chain_sdk/xpx_sdk_consts.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
31
Health:
Code health derived from static analysis. [more]
75
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
56
Learn more about scoring.

We analyzed this package on Feb 12, 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 suggestions

Fix lib/imp/buffer/model/exchange_transaction_buffer.dart. (-20.19 points)

Analysis of lib/imp/buffer/model/exchange_transaction_buffer.dart reported 45 hints, including:

line 5 col 38: Unnecessary new keyword.

line 12 col 7: Avoid const keyword.

line 18 col 55: Avoid const keyword.

line 20 col 52: Avoid const keyword.

line 24 col 52: Avoid const keyword.

Fix lib/imp/buffer/model/transfer_transaction_buffer.dart. (-4.41 points)

Analysis of lib/imp/buffer/model/transfer_transaction_buffer.dart reported 9 hints, including:

line 97 col 49: Avoid const keyword.

line 102 col 48: Avoid const keyword.

line 104 col 52: Avoid const keyword.

line 188 col 7: Avoid const keyword.

line 194 col 55: Avoid const keyword.

Fix lib/imp/buffer/model/mosaic_definition_transaction_buffer.dart. (-2.96 points)

Analysis of lib/imp/buffer/model/mosaic_definition_transaction_buffer.dart reported 6 hints, including:

line 99 col 7: Avoid const keyword.

line 105 col 55: Avoid const keyword.

line 107 col 52: Avoid const keyword.

line 111 col 52: Avoid const keyword.

line 113 col 54: Avoid const keyword.

Fix lib/src/model/mosaic/mosaic_internal.dart. (-1 points)

Analysis of lib/src/model/mosaic/mosaic_internal.dart reported 2 hints:

line 25 col 11: Unnecessary new keyword.

line 32 col 11: Unnecessary new keyword.

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

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

line 11 col 13: Unnecessary new keyword.

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 xpx_chain_sdk.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.6.1 <3.0.0
base32 ^1.0.1 1.1.1
convert ^2.1.1 2.1.1
fixnum ^0.10.9 0.10.11
flat_buffers ^1.11.0 1.11.0
http ^0.12.0+2 0.12.0+4
xpx_crypto ^0.0.2+2 0.0.2+2
Transitive dependencies
async 2.4.0
charcode 1.1.3
collection 1.14.12
http_parser 3.1.3
meta 1.1.8
path 1.6.4
pedantic 1.9.0
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 any
build_test any