fix: fq2.0 changes updated for lane expansion#1866
Conversation
|
👋 sowgandhi11, 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! |
There was a problem hiding this comment.
Pull request overview
This PR adds FeeQuoter contract version awareness to lane configuration so lane updates can apply the correct FeeQuoter operations when chains have upgraded from CCIP FeeQuoter v1.6.x to v2.0.x (lane expansion / mixed-version environments).
Changes:
- Introduces an optional
FeeQuoterVersionProviderinterface and plumbsFeeQuoterVersionintoChainDefinitionduring address population. - Updates EVM v1.6 lane update sequencing to conditionally use FeeQuoter v2.0 operations and adds translation/helpers for v2 inputs.
- Implements FeeQuoter version lookup in the EVM v1.6 adapter using datastore
AddressRef.Version.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| deployment/lanes/product.go | Adds optional adapter interface to report FeeQuoter contract version. |
| deployment/lanes/lane_update.go | Adds FeeQuoterVersion to ChainDefinition for downstream sequencing decisions. |
| deployment/lanes/connect_chains.go | Populates FeeQuoterVersion during chain address discovery when supported by the adapter. |
| chains/evm/deployment/v2_0_0/sequences/fee_quoter.go | Adds a v2 fee-quoter dest-chain-config update input type (supporting v2 operations usage). |
| chains/evm/deployment/v1_6_0/sequences/update_lanes.go | Switches FeeQuoter update path based on deployed FeeQuoter version; adds v2 translation + execution helper. |
| chains/evm/deployment/v1_6_0/sequences/adapter.go | Implements GetFQVersion for EVM adapter to expose deployed FeeQuoter version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
510ccf1 to
6676d6f
Compare
…mcms function from test
|
No description provided.