-
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): GetHardForks RPC method
- Loading branch information
1 parent
637adb2
commit 46cec04
Showing
7 changed files
with
309 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
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
23 changes: 23 additions & 0 deletions
23
lib/src/data_transfer_objects/get_hard_forks/get_hard_forks_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,23 @@ | ||
// ignore_for_file: invalid_annotation_target | ||
|
||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'get_hard_forks_result.freezed.dart'; | ||
|
||
part 'get_hard_forks_result.g.dart'; | ||
|
||
/// @nodoc | ||
@freezed | ||
class GetHardForksResult with _$GetHardForksResult { | ||
/// @nodoc | ||
const factory GetHardForksResult({ | ||
@JsonKey(name: 'height') required int height, | ||
@JsonKey(name: 'version') required int version, | ||
@JsonKey(name: 'changelog') required String changelog, | ||
@JsonKey(name: 'version_requirement') String? versionRequirement, | ||
}) = _GetHardForksResult; | ||
|
||
/// @nodoc | ||
factory GetHardForksResult.fromJson(Map<String, dynamic> json) => | ||
_$GetHardForksResultFromJson(json); | ||
} |
245 changes: 245 additions & 0 deletions
245
lib/src/data_transfer_objects/get_hard_forks/get_hard_forks_result.freezed.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
lib/src/data_transfer_objects/get_hard_forks/get_hard_forks_result.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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