Skip to content

Commit

Permalink
add tx_set_operation_count to ledger response, prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rogobete committed Jul 6, 2020
1 parent 7b60d88 commit 667e99d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.0.0] - 06.Jul.2020.
- update documentation
- improve tests and examples
- add tx_set_operation_count to ledger response
- finish beta testing phase

## [0.8.6] - 04.Jul.2020.
- improve path finding
- improve trades query
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
# [Stellar SDK for Flutter](https://github.com/Soneso/stellar_flutter_sdk)

![Beta Version](https://img.shields.io/badge/Beta-v0.8.6-yellow.svg)
![Dart](https://img.shields.io/badge/Dart-green.svg)
![Flutter](https://img.shields.io/badge/Flutter-blue.svg)
![Supports Stellar Horizon v1.4.0](https://img.shields.io/badge/Horizon-v1.4.0-blue.svg)
![Supports Stellar Horizon v1.5.0](https://img.shields.io/badge/Horizon-v1.5.0-blue.svg)
![Supports Stellar Core v13](https://img.shields.io/badge/Core-v13-blue.svg)

The Soneso open source Stellar SDK for Flutter is build with Dart and provides APIs to build and sign transactions, connect and query [Horizon](https://github.com/stellar/horizon).

The SDK is currently in beta stage - v. 0.8.6.

## Installation

### From pub.dev
1. Add the dependency to your pubspec.yaml file:
```
dependencies:
stellar_flutter_sdk: ^0.8.6
stellar_flutter_sdk: ^1.0.0
```
2. Install it (command line or IDE):
```
Expand Down
Binary file modified documentation/sdk_api_doc.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions lib/src/responses/ledger_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class LedgerResponse extends Response {
int successfulTransactionCount;
int failedTransactionCount;
int operationCount;
int txSetOperationCount;
String closedAt;
String totalCoins;
String feePool;
Expand All @@ -36,6 +37,7 @@ class LedgerResponse extends Response {
this.successfulTransactionCount,
this.failedTransactionCount,
this.operationCount,
this.txSetOperationCount,
this.closedAt,
this.totalCoins,
this.feePool,
Expand All @@ -58,6 +60,9 @@ class LedgerResponse extends Response {
convertInt(json['successful_transaction_count']),
convertInt(json['failed_transaction_count']),
convertInt(json['operation_count']),
json['tx_set_operation_count'] == null
? null
: convertInt(json['tx_set_operation_count']),
json['closed_at'] as String,
json['total_coins'] as String,
json['fee_pool'] as String,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/stellar_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import 'requests/trades_request_builder.dart';

/// Main class of the flutter stellar sdk.
class StellarSDK {
static const versionNumber = "0.8.6";
static const versionNumber = "1.0.0";

static final StellarSDK PUBLIC =
new StellarSDK("https://horizon.stellar.org");
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: stellar_flutter_sdk
description: A stellar blockchain sdk that query's horizon, build, signs and submits transactions to the stellar netweok.
version: 0.8.6
version: 1.0.0
homepage: https://github.com/Soneso/stellar_flutter_sdk

environment:
Expand Down
1 change: 1 addition & 0 deletions test/query_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ void main() {
await sdk.ledgers.limit(1).order(RequestBuilderOrder.DESC).execute();
assert(ledgersPage.records.length == 1);
LedgerResponse ledger = ledgersPage.records.first;
// print("tx_set_operation_count: ${ledger.txSetOperationCount}");

LedgerResponse ledger2 = await sdk.ledgers.ledger(ledger.sequence);
assert(ledger.sequence == ledger2.sequence);
Expand Down

0 comments on commit 667e99d

Please sign in to comment.