Skip to content

Extend Deal Tracker Integration #572

@Sankara-Jefferson

Description

@Sankara-Jefferson

Deal Tracker Integration
Current State:
The state tracker service currently has only basic or partial integration with the DealTracker component. While some state changes may be recorded, the system does not reliably or comprehensively capture all on-chain events related to deals. As a result, important lifecycle transitions—such as when a deal is slashed, expires, or is updated on-chain—may not be reflected in the state tracker’s records. This limits the accuracy and completeness of deal state history and can lead to gaps in monitoring, reporting, and troubleshooting.

Why This Is Beneficial:

Full integration between the state tracker and DealTracker will ensure that every significant on-chain event and lifecycle update for a deal is captured as a state change. This provides:

  • Real-time, end-to-end visibility into the status of all deals.
  • Accurate historical records for auditing and compliance.
  • Immediate detection and recording of critical events like slashing or expiration.
  • Improved ability to monitor provider and client activity, and to debug or analyze deal outcomes.

Acceptance Criteria:

  • State tracker receives and processes all relevant on-chain deal events emitted or detected by DealTracker.
  • Every deal lifecycle update (including proposed, published, active, slashed, expired, etc.) is recorded as a state change in the state tracker.
  • Special handling is implemented for slashed and expired deals, ensuring these states are always captured and reflected in the database.
  • Add comprehensive unit and integration tests to verify that on-chain events and lifecycle transitions are correctly handled and recorded by the state tracker.
  • Provide clear logging and error handling for any failures in event processing or state recording.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions