Skip to content

Commit

Permalink
fix: add devFee to GetAccountHistoryResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Ez3kiel-dev committed Mar 26, 2024
1 parent b257bc8 commit 257acd8
Show file tree
Hide file tree
Showing 8 changed files with 258 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.16.1

- difficulty member type changed in GetInfoResult.
- "owner" became "source" in TransactionResponse.
- add DevFee in GetAccountHistoryResult

## 0.16.0

Daemon API upgrade :
Expand Down
1 change: 1 addition & 0 deletions lib/src/data_transfer_objects/dtos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export 'block_orphaned_event/block_orphaned_event.dart';
export 'get_account_assets/get_account_assets_params.dart';
export 'get_account_assets/get_account_assets_result.dart';
export 'get_account_history/burn_history.dart';
export 'get_account_history/dev_fee_history.dart';
export 'get_account_history/get_account_history_params.dart';
export 'get_account_history/get_account_history_result.dart';
export 'get_account_history/incoming_history.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// ignore_for_file: public_member_api_docs, invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

part 'dev_fee_history.freezed.dart';
part 'dev_fee_history.g.dart';

@freezed
class DevFeeHistory with _$DevFeeHistory {
const factory DevFeeHistory({
@JsonKey(name: 'reward') required int reward,
}) = _DevFeeHistory;

factory DevFeeHistory.fromJson(Map<String, dynamic> json) =>
_$DevFeeHistoryFromJson(json);
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class GetAccountHistoryResult with _$GetAccountHistoryResult {
@JsonKey(name: 'mining') MiningHistory? miningHistory,
@JsonKey(name: 'outgoing') OutgoingHistory? outgoingHistory,
@JsonKey(name: 'incoming') IncomingHistory? incomingHistory,
@JsonKey(name: 'dev_fee') DevFeeHistory? devFeeHistory,
}) = _GetAccountHistoryResult;

factory GetAccountHistoryResult.fromJson(Map<String, dynamic> json) =>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 257acd8

Please sign in to comment.