Skip to content

Add diagnostics query #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2025
Merged

Add diagnostics query #37

merged 2 commits into from
Jun 25, 2025

Conversation

netsirius
Copy link
Contributor

This pull request introduces several changes to enhance the functionality of the freenet-stdlib package, improve diagnostics capabilities, and refine error handling in versioning code. The most significant updates include upgrading the package version, restructuring diagnostics-related enums and structs, and improving error handling readability in versioning logic.

Diagnostics Enhancements:

  • Introduced the NodeDiagnostics struct to provide detailed diagnostics, including contract states, system metrics, and connected peer information.
  • Added the NodeDiagnosticsResponse struct to encapsulate diagnostic results and the NodeDiagnosticsConfig struct for configurable diagnostics collection.
  • Implemented helper methods in NodeDiagnosticsConfig to create diagnostic configurations for debugging, basic status, and full diagnostics.

Versioning Improvements:

  • Refactored error handling in DelegateCode and ContractCode implementations to improve readability and consistency when processing contract versions. [1] [2]

Package Update:

  • Updated the freenet-stdlib package version from 0.1.9 to 0.1.10 in Cargo.toml.

@netsirius netsirius requested a review from iduartgomez June 24, 2025 22:22
@iduartgomez iduartgomez merged commit 018689a into main Jun 25, 2025
7 checks passed
@iduartgomez iduartgomez deleted the add-diagnostics-query branch June 25, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants