Skip to content

Commit

Permalink
feat: new RPC methods (getPeers, getAccountHistory, getAccountAssets)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ez3kiel-dev committed Oct 18, 2023
1 parent 03773fb commit 0c7f5e3
Show file tree
Hide file tree
Showing 35 changed files with 2,523 additions and 60 deletions.
20 changes: 16 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
## 0.9.0

Daemon API upgrade :

- new getPeers RPC method.
- new getAccountHistory RPC method.
- new getAccountAssets RPC method.

## 0.8.0

- feat: getAsset RPC method.
- feat: countAccounts RPC method.
Daemon API upgrade :

- new getAsset RPC method.
- new countAccounts RPC method.

## 0.7.0

- feat: getAccounts RPC method.
Daemon API upgrade :

- new getAccounts RPC method.

## 0.6.0

Expand All @@ -16,7 +28,7 @@ Daemon API upgrade :

## 0.5.0

- feat: getBlocksRangeByTopoHeight and getBlocksRangeByHeight RPC methods.
- new getBlocksRangeByTopoHeight and getBlocksRangeByHeight RPC methods.

## 0.4.7

Expand Down
9 changes: 0 additions & 9 deletions lib/src/data_transfer_objects/asset/asset.freezed.dart

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

39 changes: 0 additions & 39 deletions lib/src/data_transfer_objects/block/block.freezed.dart

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

9 changes: 9 additions & 0 deletions lib/src/data_transfer_objects/dtos.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
export 'asset/asset.dart';
export 'block/block.dart';
export 'block_ordered_event/block_ordered_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/get_account_history_params.dart';
export 'get_account_history/get_account_history_result.dart';
export 'get_account_history/incoming_history.dart';
export 'get_account_history/mining_history.dart';
export 'get_account_history/outgoing_history.dart';
export 'get_accounts/get_accounts_params.dart';
export 'get_accounts/get_accounts_result.dart';
export 'get_asset/get_asset_params.dart';
Expand All @@ -17,6 +25,7 @@ export 'get_info/network.dart';
export 'get_last_balance/get_last_balance_params.dart';
export 'get_last_balance/get_last_balance_result.dart';
export 'get_nonce/get_nonce_params.dart';
export 'get_peers/peer.dart';
export 'get_range/get_height_range_params.dart';
export 'get_range/get_topoheight_range_params.dart';
export 'get_top_block/get_top_block_params.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ignore_for_file: public_member_api_docs, invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

part 'get_account_assets_params.freezed.dart';

part 'get_account_assets_params.g.dart';

@freezed
class GetAccountAssetsParams with _$GetAccountAssetsParams {
const factory GetAccountAssetsParams({
@JsonKey(name: 'address') required String address,
}) = _GetAccountAssetsParams;

factory GetAccountAssetsParams.fromJson(Map<String, dynamic> json) =>
_$GetAccountAssetsParamsFromJson(json);
}
Loading

0 comments on commit 0c7f5e3

Please sign in to comment.