Skip to content

Support asymetric lanes#1142

Open
agusaldasoro wants to merge 4 commits into
mainfrom
fix/v2
Open

Support asymetric lanes#1142
agusaldasoro wants to merge 4 commits into
mainfrom
fix/v2

Conversation

@agusaldasoro
Copy link
Copy Markdown
Contributor

@agusaldasoro agusaldasoro commented May 29, 2026

Description

Fixes token-transfer batching for asymmetric lane support.

Adds bidirectional selector compatibility checks when placing configs into batches.
Keeps deterministic batching order.
Adds an asymmetric BurnMint/LockRelease regression test.
Verifies expected split (3-config batch + 2-config batch) and reciprocal selector coverage.

Testing

Checklist

  • Breaking changes documented in changelog (see changelog directory)
  • Cross link related PRs (in this or other repositories)
  • just lint fix - no new lint errors
  • just generate - mocks and protobufs are up to date

Copy link
Copy Markdown
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 updates token-transfer batch splitting to better handle asymmetric lane support, where chains may expose different pool types/versions for the same token pair.

Changes:

  • Adds bidirectional compatibility checks when placing token transfer configs into batches.
  • Adds an asymmetric-chain-support test case covering mixed BurnMint/LockRelease pool availability.
  • Keeps batching deterministic through the existing sorted buildTokenTransferBatches path.

Reviewed changes

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

File Description
build/devenv/deploy/deploy.go Adds compatibility filtering to the token transfer batch splitter.
build/devenv/deploy/deploy_test.go Adds a regression test for asymmetric chain/pool support.

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

Comment thread build/devenv/deploy/deploy.go
Comment thread build/devenv/deploy/deploy_test.go
Comment thread build/devenv/deploy/deploy.go Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Code coverage report:

Package main fix/v2 Diff
github.com/smartcontractkit/chainlink-ccv/aggregator 49.35% 49.35% +0.00%
github.com/smartcontractkit/chainlink-ccv/bootstrap 54.14% 54.14% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 65.13% 65.13% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 15.54% 15.54% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 56.54% 56.54% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 45.97% 45.97% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 37.68% 37.72% +0.04%
github.com/smartcontractkit/chainlink-ccv/integration 45.84% 45.93% +0.09%
github.com/smartcontractkit/chainlink-ccv/pkg 84.62% 84.62% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 62.97% 63.06% +0.09%
github.com/smartcontractkit/chainlink-ccv/verifier 34.48% 34.48% +0.00%
Total 46.50% 46.60% +0.10%

@agusaldasoro agusaldasoro marked this pull request as ready for review June 1, 2026 14:59
@agusaldasoro agusaldasoro requested a review from a team as a code owner June 1, 2026 14:59
@agusaldasoro agusaldasoro requested a review from archseer June 1, 2026 15:00
@archseer archseer requested review from makramkd and winder June 1, 2026 15:04
@agusaldasoro agusaldasoro enabled auto-merge June 1, 2026 15:28
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.

3 participants