-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(daemon): extractKeyFromAddress RPC method
- Loading branch information
1 parent
e69e4f8
commit d2a7c48
Showing
9 changed files
with
517 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
lib/src/data_transfer_objects/extract_key_from_address/extract_key_from_address_params.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
206 changes: 206 additions & 0 deletions
206
...ta_transfer_objects/extract_key_from_address/extract_key_from_address_params.freezed.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...src/data_transfer_objects/extract_key_from_address/extract_key_from_address_params.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
lib/src/data_transfer_objects/extract_key_from_address/extract_key_from_address_result.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.