Skip to content

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.

3 participants