Skip to content

[CRE-4317] Implement genericless adapter for ocr3types.OnchainKeyring2#2137

Merged
pavel-raykov merged 6 commits into
mainfrom
add-ocr3
Jun 23, 2026
Merged

[CRE-4317] Implement genericless adapter for ocr3types.OnchainKeyring2#2137
pavel-raykov merged 6 commits into
mainfrom
add-ocr3

Conversation

@pavel-raykov

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

✅ API Diff Results - github.com/smartcontractkit/chainlink-common/keystore

✅ Compatible Changes (1)

package github (1)
  • com/smartcontractkit/chainlink-common/keystore/ocr3util — ➕ Added

📄 View full apidiff report

@pavel-raykov pavel-raykov marked this pull request as ready for review June 9, 2026 10:04
@pavel-raykov pavel-raykov requested review from a team as code owners June 9, 2026 10:04
Copilot AI review requested due to automatic review settings June 9, 2026 10:04
@pavel-raykov pavel-raykov requested review from jmank88 and removed request for obelisk June 9, 2026 10:04
@pavel-raykov pavel-raykov requested review from kaleofduty and removed request for cedric-cordenier June 9, 2026 10:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 a small helper in the keystore module to bridge between a non-generic (“genericless”) OCR3 onchain keyring interface and libocr’s generic ocr3types.OnchainKeyring2[RI], along with a libocr dependency bump to a version that includes the required OCR3 types.

Changes:

  • Added OnchainKeyring2Genericless and OnchainKeyring2ToGenericAdapter[RI] to adapt implementations that don’t care about the RI generic parameter.
  • Updated github.com/smartcontractkit/libocr dependency version (and corresponding go.sum entries).

Reviewed changes

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

File Description
keystore/ocr3/utils.go Introduces the genericless keyring interface and adapter to ocr3types.OnchainKeyring2[RI].
keystore/go.mod Bumps github.com/smartcontractkit/libocr to a newer pseudo-version needed for OCR3 keyring types.
keystore/go.sum Updates checksums to match the new libocr version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
@pavel-raykov pavel-raykov requested a review from jmank88 June 9, 2026 13:39
Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
@pavel-raykov pavel-raykov requested a review from jmank88 June 9, 2026 14:05
Comment thread keystore/ocr3util/utils.go
@pavel-raykov pavel-raykov requested a review from jmank88 June 9, 2026 15:23
jmank88
jmank88 previously approved these changes Jun 9, 2026
Comment thread keystore/ocr3util/utils.go Outdated
pavel-raykov and others added 6 commits June 23, 2026 12:30
Co-authored-by: Jordan Krage <jmank88@gmail.com>
Co-authored-by: Jordan Krage <jmank88@gmail.com>
@pavel-raykov pavel-raykov enabled auto-merge June 23, 2026 10:44
@pavel-raykov pavel-raykov added this pull request to the merge queue Jun 23, 2026
Merged via the queue into main with commit f39eba3 Jun 23, 2026
32 of 33 checks passed
@pavel-raykov pavel-raykov deleted the add-ocr3 branch June 23, 2026 10:56
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.

5 participants