Skip to content

Conversation

@andrejrakic
Copy link
Collaborator

This PR adds FeedVersion10 to Go version of the Chainlink Data Streams SDK

@andrejrakic andrejrakic requested a review from Copilot August 4, 2025 16:54
@andrejrakic andrejrakic self-assigned this Aug 4, 2025
Copy link

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 FeedVersion10 support to the Go version of the Chainlink Data Streams SDK. The implementation follows the established pattern for feed versions by providing data structures, schema definitions, and decoding functionality for the new v10 format.

  • Introduces v10 data structures with additional fields for tokenized price and multiplier management
  • Adds schema definition and decoding capabilities for the v10 format
  • Updates the main feed package to include FeedVersion10 in the version enumeration and type constraints

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
go/report/v10/data.go Implements the v10 data structure, schema definition, and decoding functionality
go/report/v10/data_test.go Provides comprehensive test coverage for v10 data serialization and deserialization
go/report/report.go Updates the Data type constraint to include v10.Data
go/feed/feed.go Adds FeedVersion10 to the version enumeration

TokenizedPrice *big.Int
}

// Schema returns this data version schema
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

The comment is redundant as it duplicates the comment on line 13. Consider removing this duplicate comment or making it more specific to the method context.

Suggested change
// Schema returns this data version schema

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Keeping for consistency between earlier schemas (v8 and v9)

@andrejrakic andrejrakic marked this pull request as ready for review August 4, 2025 16:56
@andrejrakic andrejrakic merged commit 29ae48c into main Aug 7, 2025
2 checks passed
@andrejrakic andrejrakic deleted the go/add-v10-schema branch August 7, 2025 20:12
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