Skip to content

chore: remove link token and static link token view functions and use cld-changesets instead#22151

Merged
graham-chainlink merged 13 commits intodevelopfrom
ecpablo/replace-view-state-evm
Apr 28, 2026
Merged

chore: remove link token and static link token view functions and use cld-changesets instead#22151
graham-chainlink merged 13 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

All codeowners have approved! ✅

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_CCIPMessaging_EVM2TON The test failed during the execution of a containerized blockchain environment setup, but the specific cause of failure is not explicitly stated in... Logs ↗︎
Test_CCIPMessaging_EVM2TON/message_to_contract_receiver The test failed because the process was stuck waiting for a commit report that was not received within the expected time. 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.

ecPablo added 3 commits April 27, 2026 09:37
# Conflicts:
#	core/scripts/go.sum
#	deployment/ccip/changeset/testhelpers/test_environment.go
#	deployment/go.mod
#	deployment/go.sum
#	integration-tests/go.sum
#	integration-tests/load/go.sum
#	system-tests/lib/go.sum
#	system-tests/tests/go.mod
#	system-tests/tests/go.sum
@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

@ecPablo ecPablo marked this pull request as ready for review April 28, 2026 02:14
@ecPablo ecPablo requested review from a team as code owners April 28, 2026 02:14
@ecPablo ecPablo requested a review from a team as a code owner April 28, 2026 02:14
@ecPablo ecPablo changed the title chore: remove link token and static link token view functions and uses chore: remove link token and static link token view functions and use cld-changesets instead Apr 28, 2026
@graham-chainlink graham-chainlink added this pull request to the merge queue Apr 28, 2026
Merged via the queue into develop with commit 44b45da Apr 28, 2026
321 of 325 checks passed
@graham-chainlink graham-chainlink deleted the ecpablo/replace-view-state-evm branch April 28, 2026 06:37
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.

6 participants