Skip to content

Fix: AlertRule variants are not serialisable — cannot round-trip config to JSON #115

@habiba-d-coder

Description

@habiba-d-coder

Priority: High
Crate: txwatch-config
Labels: enhancement

Description:
AlertRule derives Deserialize but not Serialize. The validate subcommand cannot serialise the parsed config to JSON for machine-readable output.

Tasks:

  • Add #[derive(Serialize)] to AlertRule, WatchedContract, AppConfig, and Network
  • Add a test round-tripping a config through serialise → deserialise

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions