Skip to content

Conversation

@Step7750
Copy link
Member

Adds a ping for relevant trades that have been rolled back, along with the ability to fetch trade history via the bridge.

Adds a ping for relevant trades that have been rolled back, along with the ability to fetch trade history via the bridge.
Copilot AI review requested due to automatic review settings July 24, 2025 07:25
@Step7750 Step7750 requested a review from GODrums July 24, 2025 07:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds rollback telemetry functionality to track and report trades that have been rolled back through Steam's trade protection system. The changes enable the extension to detect rolled-back trades and send notifications to the CSFloat API.

  • Adds new bridge handlers for pinging rollback trades and fetching trade history
  • Updates trade history data structures to include rollback-related fields
  • Implements rollback detection logic that matches Steam trade history with pending CSFloat trades

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/lib/bridge/handlers/types.ts Adds new request types for rollback pings and trade history fetching
src/lib/bridge/handlers/trade_history_status.ts Extends interface with rollback and trade tracking fields
src/lib/bridge/handlers/ping_rollback_trade.ts New handler for sending rollback notifications to CSFloat API
src/lib/bridge/handlers/handlers.ts Registers the new bridge handlers
src/lib/bridge/handlers/fetch_trade_history.ts New handler for fetching trade history via bridge
src/lib/alarms/trade_history.ts Updates trade history fetching to support rollback data and parameterized limits
src/lib/alarms/rollback.ts New module implementing rollback detection and notification logic
src/lib/alarms/csfloat_trade_pings.ts Integrates rollback detection into the main trade monitoring flow

Step7750 and others added 3 commits July 24, 2025 01:26
Copy link
Collaborator

@GODrums GODrums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Step7750 Step7750 merged commit 261d2fe into master Jul 25, 2025
2 checks passed
@Step7750 Step7750 deleted the feature/rollback-telemetry branch July 25, 2025 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants