Skip to content

fix: devenv token verifier config should be scoped per family - #1382

Closed
huangzhen1997 wants to merge 2 commits into
mainfrom
jh/token-verifier-config-gen-fix
Closed

fix: devenv token verifier config should be scoped per family#1382
huangzhen1997 wants to merge 2 commits into
mainfrom
jh/token-verifier-config-gen-fix

Conversation

@huangzhen1997

Copy link
Copy Markdown
Contributor

No description provided.

@huangzhen1997
huangzhen1997 requested a review from a team as a code owner August 27, 2026 15:59
Copilot AI lite review requested due to automatic review settings August 27, 2026 15:59
@github-actions

Copy link
Copy Markdown

👋 huangzhen1997, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@huangzhen1997 huangzhen1997 changed the title token verifier config should be generated only for the family fix: token verifier config should be generated only for the family Aug 27, 2026
@huangzhen1997 huangzhen1997 changed the title fix: token verifier config should be generated only for the family fix: devenv token verifier config should be scoped per family Aug 27, 2026

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 updates the devenv token-verifier configuration generation so it targets only the configured chain_family (defaulting to EVM), instead of scanning all chain selectors indiscriminately.

Changes:

  • Filter ChainSelectors passed into GenerateTokenVerifierConfig by TokenVerifierInput.ChainFamily.
  • Set ReplaceExisting: true when saving generated token-verifier config.
  • Add a local filterSelectorsByFamily helper in both the monolith and phased-component paths.

Reviewed changes

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

File Description
build/devenv/environment_monolith.go Filter selectors by ChainFamily before generating token-verifier config; add helper.
build/devenv/components/tokenverifier/component.go Apply the same family-based filtering in the phased tokenverifier component; add helper.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread build/devenv/environment_monolith.go
Comment thread build/devenv/components/tokenverifier/component.go
makramkd
makramkd previously approved these changes Aug 27, 2026
@huangzhen1997
huangzhen1997 marked this pull request as draft August 27, 2026 17:15
@huangzhen1997
huangzhen1997 force-pushed the jh/token-verifier-config-gen-fix branch 2 times, most recently from 91e40d1 to 97dfc2e Compare August 28, 2026 00:10
@github-actions

Copy link
Copy Markdown

Code coverage report:

Package main jh/token-verifier-config-gen-fix Diff
github.com/smartcontractkit/chainlink-ccv/aggregator 50.86% 50.86% +0.00%
github.com/smartcontractkit/chainlink-ccv/bootstrap 70.72% 70.72% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 58.12% 58.12% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 35.65% 35.65% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 46.51% 46.46% -0.05%
github.com/smartcontractkit/chainlink-ccv/executor 42.80% 42.80% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 35.55% 35.59% +0.04%
github.com/smartcontractkit/chainlink-ccv/integration 56.46% 56.46% +0.00%
github.com/smartcontractkit/chainlink-ccv/internal 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/migration 78.70% 78.70% +0.00%
github.com/smartcontractkit/chainlink-ccv/pkg 100.00% 100.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 63.06% 63.06% +0.00%
github.com/smartcontractkit/chainlink-ccv/tools 43.61% 43.61% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 36.32% 36.32% +0.00%
Total 49.60% 49.60% +0.00%

ServiceIdentifier: "TokenVerifier",
ChainSelectors: selectors,
ChainSelectors: familySelectors,
ReplaceExisting: true,

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.

Why ReplaceExisting?

ServiceIdentifier: "TokenVerifier",
ChainSelectors: selectors,
ChainSelectors: familySelectors,
ReplaceExisting: true,

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.

Same here

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.

4 participants