Skip to content

FQ dest config in adapter#1803

Open
tt-cll wants to merge 7 commits intomainfrom
tt/fqd
Open

FQ dest config in adapter#1803
tt-cll wants to merge 7 commits intomainfrom
tt/fqd

Conversation

@tt-cll
Copy link
Collaborator

@tt-cll tt-cll commented Mar 6, 2026

No description provided.

@tt-cll tt-cll marked this pull request as ready for review March 9, 2026 13:09
@tt-cll tt-cll requested a review from a team as a code owner March 9, 2026 13:09
Copilot AI review requested due to automatic review settings March 9, 2026 13:09
@tt-cll tt-cll requested review from a team as code owners March 9, 2026 13:09
Copy link
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 moves FeeQuoter destination-chain default configuration (and default destination gas price) out of user-supplied ChainDefinition literals and into chain-family adapters, with an optional override hook for per-lane tweaks.

Changes:

  • Extend LaneAdapter with GetFeeQuoterDestChainConfig() and GetDefaultGasPrice() and populate these programmatically during ConnectChains.
  • Replace ChainDefinition.FeeQuoterDestChainConfig input with FeeQuoterDestChainConfigOverrides (functional option) and populate FeeQuoterDestChainConfig internally.
  • Update integration tests / changeset tests and devenv helpers to rely on adapter defaults and optional overrides.

Reviewed changes

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

Show a summary per file
File Description
integration-tests/deployment/update_to_FeeQuoter_2_0_test.go Stops manually setting FeeQuoter dest-chain config in test chain definitions.
integration-tests/deployment/lane_migrator_test.go Same as above for lane migrator test setup.
integration-tests/deployment/connect_chains_test.go Adds override helper and updates assertions to use adapter-derived defaults + overrides.
devenv/common/implcommon.go Removes manual default GasPrice/FQ config setup so ConnectChains can populate defaults.
deployment/utils/common.go Factors hex decoding into GetHexFromString helper used by adapters.
deployment/lanes/product.go Extends LaneAdapter interface with default config/gas price methods.
deployment/lanes/lane_update.go Updates ChainDefinition to accept overrides and stores populated FeeQuoter dest config.
deployment/lanes/connect_chains.go Populates defaults via adapter + applies overrides during address population.
chains/solana/deployment/v1_6_0/sequences/adapter.go Implements new adapter default config/gas price methods for Solana.
chains/evm/deployment/v1_6_0/sequences/adapter.go Implements new adapter default config/gas price methods for EVM.
chains/evm/deployment/v1_6_0/changesets/connect_chains_test.go Updates expected config assertions to use adapter defaults.

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

agusaldasoro
agusaldasoro previously approved these changes Mar 9, 2026
@github-actions
Copy link

Metric tt/fqd main
Coverage 70.1% 69.8%

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