Skip to content

update TON dest config#667

Open
huangzhen1997 wants to merge 1 commit intomainfrom
update-ton-destchainconfig
Open

update TON dest config#667
huangzhen1997 wants to merge 1 commit intomainfrom
update-ton-destchainconfig

Conversation

@huangzhen1997
Copy link
Contributor

No description provided.

@huangzhen1997 huangzhen1997 requested a review from a team as a code owner March 24, 2026 17:56
Copilot AI review requested due to automatic review settings March 24, 2026 17:56
@github-actions
Copy link

👋 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!

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

Updates the default destination-chain FeeQuoter configuration used by the TON lane adapter in the CCIP 1.6.0 deployment sequences.

Changes:

  • Tightens TON destination message limits (e.g., MaxDataBytes, MaxNumberOfTokensPerMsg).
  • Adjusts TON gas accounting parameters (DestGasOverhead, per-payload-byte gas).
  • Adds/sets additional v1 params (e.g., GasPriceStalenessThreshold, EnforceOutOfOrder).

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

DestDataAvailabilityOverheadGas: 0,
DestGasPerDataAvailabilityByte: 0,
DestDataAvailabilityMultiplierBps: 0,
GasMultiplierWeiPerEth: 1e18,
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GasMultiplierWeiPerEth: 1e18 relies on scientific notation, which is easy to misread as a float literal. Using an explicit integer literal (e.g., with _ separators) would avoid any ambiguity and match the style of the surrounding constants.

Suggested change
GasMultiplierWeiPerEth: 1e18,
GasMultiplierWeiPerEth: 1_000_000_000_000_000_000,

Copilot uses AI. Check for mistakes.
DestDataAvailabilityMultiplierBps: 0,
GasMultiplierWeiPerEth: 1e18,
GasPriceStalenessThreshold: 90000,
EnforceOutOfOrder: true,
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EnforceOutOfOrder is set on lanes.FeeQuoterV1Params, but the TON on-chain feequoter.DestChainConfig type does not have an EnforceOutOfOrder field and intoUpdateFeeQuoterDestChainConfigs does not propagate it. This makes the setting a no-op and potentially misleading; either remove it from the TON config here or add an explicit comment explaining it’s intentionally ignored/always true for TON.

Suggested change
EnforceOutOfOrder: true,
EnforceOutOfOrder: true, // NOTE: TON's on-chain feequoter.DestChainConfig has no EnforceOutOfOrder field; this value is not propagated and TON effectively always enforces out-of-order.

Copilot uses AI. Check for mistakes.
return lanes.FeeQuoterDestChainConfig{
IsEnabled: true,
MaxDataBytes: 30_000,
MaxDataBytes: 2000,
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency/readability with the other numeric literals in this config (which use _ separators), consider writing MaxDataBytes as 2_000.

Suggested change
MaxDataBytes: 2000,
MaxDataBytes: 2_000,

Copilot uses AI. Check for mistakes.
@tt-cll
Copy link
Contributor

tt-cll commented Mar 24, 2026

I noticed the devenv tests were failing for TON because the code was still commented out. smartcontractkit/chainlink-ccip#1899 fixes it

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