Skip to content

Commit

Permalink
feat(daemon): extractKeyFromAddress RPC method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ez3kiel-dev committed Jul 30, 2024
1 parent e69e4f8 commit d2a7c48
Show file tree
Hide file tree
Showing 9 changed files with 517 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/src/data_transfer_objects/dtos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export 'asset/asset_with_data.dart';
export 'block/block.dart';
export 'block_ordered_event/block_ordered_event.dart';
export 'block_orphaned_event/block_orphaned_event.dart';
export 'extract_key_from_address/extract_key_from_address_params.dart';
export 'extract_key_from_address/extract_key_from_address_result.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';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

part 'extract_key_from_address_params.freezed.dart';

part 'extract_key_from_address_params.g.dart';

/// @nodoc
@freezed
class ExtractKeyFromAddressParams with _$ExtractKeyFromAddressParams {
/// @nodoc
const factory ExtractKeyFromAddressParams({
@JsonKey(name: 'address') required String address,
@JsonKey(name: 'as_hex') bool? asHex,
}) = _ExtractKeyFromAddressParams;

/// @nodoc
factory ExtractKeyFromAddressParams.fromJson(Map<String, dynamic> json) =>
_$ExtractKeyFromAddressParamsFromJson(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
@@ -0,0 +1,21 @@
// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

part 'extract_key_from_address_result.freezed.dart';

part 'extract_key_from_address_result.g.dart';

/// @nodoc
@freezed
class ExtractKeyFromAddressResult with _$ExtractKeyFromAddressResult {
/// @nodoc
const factory ExtractKeyFromAddressResult({
@JsonKey(name: 'bytes') dynamic bytes,
@JsonKey(name: 'hex') String? hex,
}) = _ExtractKeyFromAddressResult;

/// @nodoc
factory ExtractKeyFromAddressResult.fromJson(Map<String, dynamic> json) =>
_$ExtractKeyFromAddressResultFromJson(json);
}
Loading

0 comments on commit d2a7c48

Please sign in to comment.