Skip to content

Commit

Permalink
Merge pull request #5 from proximax-storage/development
Browse files Browse the repository at this point in the history
update version 0.0.3+1
  • Loading branch information
slackve authored Jun 20, 2019
2 parents 9fcc227 + b0a5307 commit af3143f
Show file tree
Hide file tree
Showing 80 changed files with 1,242 additions and 1,887 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## 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.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Add this to your package's pubspec.yaml file:

```dart
dependencies:
xpx_chain_sdk: ^0.0.3
xpx_chain_sdk: 0.0.3+1
```

**2. Install it**
Expand Down
16 changes: 16 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
include: package:pedantic/analysis_options.yaml
linter:
rules:
- always_declare_return_types
- camel_case_types
- empty_constructor_bodies
- annotate_overrides
- avoid_init_to_null
- constant_identifier_names
- one_member_abstracts
- slash_for_doc_comments
- sort_constructors_first
- unnecessary_brace_in_string_interps
- prefer_generic_function_type_aliases
- unnecessary_const
- unnecessary_new
19 changes: 19 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Examples

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

a) example for get info: [example_account.dart](https://github.com/proximax-storage/dart-xpx-chain-sdk/blob/master/example/example_account.dart)

b) example for announces transactions: [example_transfer.dart](https://github.com/proximax-storage/dart-xpx-chain-sdk/blob/master/example/announces/example_transfer.dart)

* For more information, see the [wiki](https://github.com/proximax-storage/dart-xpx-chain-sdk/wiki) section of the package.

* For use cases consult: [Xpx-Dart-Flutter](https://github.com/proximax-storage/xpx-dart-flutter-example)

## 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
Copyright (c) 2019 ProximaX Limited
62 changes: 0 additions & 62 deletions example/announces/example_ aggregate_complete.dart

This file was deleted.

54 changes: 0 additions & 54 deletions example/announces/example_ create_mosaic_aggregate_complete.dart

This file was deleted.

36 changes: 0 additions & 36 deletions example/announces/example_mosaic_definition.dart

This file was deleted.

34 changes: 0 additions & 34 deletions example/announces/example_mosaic_supply_change.dart

This file was deleted.

49 changes: 0 additions & 49 deletions example/announces/example_register_namespace.dart

This file was deleted.

12 changes: 6 additions & 6 deletions example/example_account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ const networkType = publicTest;

/// Simple Account API request
void main() async {
var config = new NewConfig(baseUrl, networkType);
var config = NewConfig(baseUrl, networkType);

/// Creating a client instance
/// xpx_chain_sdk uses the Dart's native HttpClient.
/// Depending on the platform, you may want to use either
/// the one which comes from dart:io or the BrowserClient
/// example:
/// 1- import 'package:http/browser_client.dart';
/// 2- var client = NewClient(config, new BrowserClient());
/// 2- var client = NewClient(config, BrowserClient());
var client = NewClient(config, null);

/// Create an Address from a given public key.
var addressOne = new Address.fromPublicKey(
"95DE2FFDCC397BB9688DA28A18A70FDD23F4CE2EF4240A4A7B6BAF5DFA07E5DC",
var addressOne = Address.fromPublicKey(
"16DBE8DC29CF06338133DEE64FC49B461CE489BF9588BE3B9670B5CB19C89368",
networkType);

var addressTwo = new Address.fromPublicKey(
var addressTwo = Address.fromPublicKey(
"C64FA80DB046F488CC1C480454834D4CAE8284DDC14D6E93332AD02E345FF2C5",
networkType);

try {
/// Get AccountInfo for an account.
/// Param address - A Address object.
var result = await client.Account.GetAccountInfo(addressOne);
var result = await client.Account.GetAccountMultisigGraph(addressOne);
print(result);
} catch (e) {
print("Exception when calling Account->GetAccountInfo: $e\n");
Expand Down
25 changes: 0 additions & 25 deletions example/example_basic.dart

This file was deleted.

Loading

0 comments on commit af3143f

Please sign in to comment.