Skip to content

chore: remove link token and static link token view functions and uses#22151

Draft
ecPablo wants to merge 11 commits intodevelopfrom
ecpablo/replace-view-state-evm
Draft

chore: remove link token and static link token view functions and uses#22151
ecPablo wants to merge 11 commits intodevelopfrom
ecpablo/replace-view-state-evm

Conversation

@ecPablo
Copy link
Copy Markdown
Contributor

@ecPablo ecPablo commented Apr 23, 2026

We are moving the code in deployment/common to CLDF and cld-changesets. This PR removes usages for link and static link token state functions and removes the files from the repo in favor of importing them from cld-changesets

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

CORA - Pending Reviewers

Codeowners Entry Overall Num Files Owners
/deployment/ccip/ 💬 2 @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/common/ 💬 6 @smartcontractkit/operations-platform
go.md 1 @smartcontractkit/core, @smartcontractkit/foundations
go.mod 5 @smartcontractkit/core, @smartcontractkit/foundations
go.sum 5 @smartcontractkit/core, @smartcontractkit/foundations
integration-tests/go.mod 💬 1 @smartcontractkit/core, @smartcontractkit/devex-tooling, @smartcontractkit/foundations
integration-tests/go.sum 💬 1 @smartcontractkit/core, @smartcontractkit/devex-tooling, @smartcontractkit/foundations

Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown

For more details, see the full review summary.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

✅ No conflicts with other open PRs targeting develop

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

Risk Rating: MEDIUM — shifts LINK token view generation to an external module and bumps several deployment dependencies, which may affect downstream serialization/contracts tooling.

This PR migrates LINK and static LINK token view generation out of this repo (from deployment/common/view/v1_0) to github.com/smartcontractkit/cld-changesets, updating state/view call sites accordingly.

Changes:

  • Remove in-repo LinkTokenView / StaticLinkTokenView implementations and their unit tests under deployment/common/view/v1_0.
  • Update EVM changeset state helpers and CCIP chain view structs to use cld-changesets/pkg/contract/link/view/v1_0.
  • Add github.com/smartcontractkit/cld-changesets to deployment/go.mod and update related dependency versions in deployment/go.mod/deployment/go.sum.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
deployment/go.mod Adds cld-changesets dependency and bumps several deployment-related modules.
deployment/go.sum Records new module checksums for the updated/added dependencies.
deployment/common/view/v1_0/link_token.go Removes local LINK token view generation implementation.
deployment/common/view/v1_0/link_token_test.go Removes local LINK token view unit test.
deployment/common/view/v1_0/static_link_token.go Removes local static LINK token view generation implementation.
deployment/common/view/v1_0/static_link_token_test.go Removes local static LINK token view unit test.
deployment/common/changeset/state/evm.go Switches LINK/static LINK view generation to cld-changesets types/functions.
deployment/common/changeset/state.go Switches deprecated LINK/static LINK view helpers to cld-changesets types/functions.
deployment/ccip/view/view.go Changes ChainView LINK/static LINK fields to cld-changesets view types.

@github-actions
Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@ecPablo ecPablo changed the title chore: remove link token and static link token view functions and use… chore: remove link token and static link token view functions and uses Apr 23, 2026
@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Apr 23, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
Test_RegistrySynchronizer1_2_UpkeepRegisteredLog The test failed due to an error fetching blockchain data because the current block height is lower than expected. Logs ↗︎
Test_CCIPPureTokenTransfer_EVM2Sui_BurnMintTokenPool Logs ↗︎
Test_CCIPTokenTransfer_Sui2EVM_BurnMintTokenPool_ThenGloballyCursedUncursed The test failed due to an unspecified error during execution, with no clear indication of the specific cause. Logs ↗︎
Test_CCIPTokenTransfer_Sui2EVM_ManagedTokenPool_ThenCurseUncurse The test failed due to an unspecified error during execution, with no clear indication of the specific cause. Logs ↗︎

... and 9 more

Flaky Test Failure Summary Logs
Test_StratReconciliation_RetriesWithBackoff The test failed due to an error handling a workflow registration event, causing a backoff and retry. Logs ↗︎

View Full Report ↗︎Docs

Comment thread deployment/ccip/changeset/testhelpers/test_environment.go Outdated
ecPablo and others added 5 commits April 23, 2026 12:45
Co-authored-by: vicentevieytes <73846744+vicentevieytes@users.noreply.github.com>
# Conflicts:
#	deployment/go.mod
#	integration-tests/go.mod
#	integration-tests/load/go.mod
#	system-tests/lib/go.mod
# Conflicts:
#	integration-tests/go.sum
#	integration-tests/load/go.sum
require.NoError(t, err, "failed to get TON commit sha")
// TODO replace the hardcoded commit sha with the one fetched from memory.GetTONSha()
contractVersion := "054376f21418" // https://github.com/smartcontractkit/chainlink-ton/releases/tag/ton-contracts-build-054376f21418
contractVersion := "github.com/smartcontractkit/chainlink-ton@contracts/1.6.0"
Copy link
Copy Markdown
Collaborator

@graham-chainlink graham-chainlink Apr 27, 2026

Choose a reason for hiding this comment

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

Is this correct, the previous version was 054376f21418 ? Should we be using the hash?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, this was shared by @vicentevieytes #22151 (comment) to upgrade contracts to a tagged version where some breaking changes are fixed.

@cl-sonarqube-production
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
28.6% Duplication on New Code (required ≤ 10%)

See analysis details on SonarQube

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