Skip to content

link token changeset update#22687

Merged
ChrisAmora merged 2 commits into
developfrom
feat/link-token-changeset-update
Jun 1, 2026
Merged

link token changeset update#22687
ChrisAmora merged 2 commits into
developfrom
feat/link-token-changeset-update

Conversation

@ChrisAmora

Copy link
Copy Markdown
Contributor

This pull request refactors how LINK token deployment changesets are referenced and configured throughout the CCIP deployment codebase. The main focus is to standardize the usage of the new DeployLinkTokenChangeset and its input configuration, replacing the older DeploySolanaLinkToken and DeployLinkToken patterns, and to update import paths accordingly. Additionally, there is an enhancement to the way LINK token addresses are merged from the DataStore.

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@ChrisAmora ChrisAmora marked this pull request as ready for review May 29, 2026 16:36
Copilot AI review requested due to automatic review settings May 29, 2026 16:36
@ChrisAmora ChrisAmora requested review from a team as code owners May 29, 2026 16:36
@ChrisAmora ChrisAmora marked this pull request as draft May 29, 2026 16:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 LINK token deployment changesets used throughout CCIP deployment code to the new unified DeployLinkTokenChangeset API from cld-changesets v0.5.0, and adds a DataStore fallback for resolving LINK token addresses when loading on-chain state.

Changes:

  • Bumps cld-changesets from v0.4.0 to v0.5.0 and updates import paths from link/changesets to tokens/link/changesets.
  • Replaces all uses of legacy DeployLinkToken/DeploySolanaLinkToken/DeployStaticLinkToken with the unified DeployLinkTokenChangeset{} + DeployLinkTokenInput{EVM, Solana} shape.
  • Adds DataStore-based LINK/StaticLink address merging (with address-book precedence) in stateview/state.go (EVM and Solana paths) and in cs_grant_and_mint_link_token.go.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
deployment/go.mod Bumps cld-changesets to v0.5.0.
deployment/go.sum Updates checksums for v0.5.0.
deployment/environment/crib/ccip_deployer.go Migrates EVM + Solana LINK deploys to new changeset/input shape.
deployment/ccip/shared/stateview/state.go Merges DataStore LINK/StaticLink into address map for both EVM and Solana loaders.
deployment/ccip/shared/stateview/evm/validate_feequoter_test.go Updates import path and migrates EVM deploy to new input shape.
deployment/ccip/changeset/v1_6/cs_translate_onramp_to_feequoter_test.go Same migration in test helper.
deployment/ccip/changeset/v1_6/cs_deploy_registry_module_test.go Updates all DeployLinkToken call sites to the new shape.
deployment/ccip/changeset/v1_6/cs_deploy_chain_test.go Same migration.
deployment/ccip/changeset/v1_6/cs_add_registry_module_test.go Same migration across multiple cases.
deployment/ccip/changeset/testhelpers/test_environment.go Migrates EVM (incl. static-link variant) and Solana deploys.
deployment/ccip/changeset/solana_v0_1_1/transfer_ccip_to_mcms_with_timelock_test.go Migrates Solana LINK deploy.
deployment/ccip/changeset/solana_v0_1_1/cs_solana_token_test.go Migrates Solana LINK deploy.
deployment/ccip/changeset/solana_v0_1_1/cs_deploy_chain_test.go Migrates Solana LINK deploy.
deployment/ccip/changeset/cs_grant_and_mint_link_token.go Adds DataStore LINK fallback when loading addresses.

Comment thread deployment/ccip/changeset/cs_grant_and_mint_link_token.go
Comment thread deployment/ccip/shared/stateview/state.go Outdated
@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.

@trunk-io

trunk-io Bot commented May 29, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@ChrisAmora ChrisAmora force-pushed the feat/link-token-changeset-update branch from 3902ab6 to fc7c918 Compare May 29, 2026 18:07
@cl-sonarqube-production

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 24 changed files in this pull request and generated no new comments.

@ChrisAmora ChrisAmora marked this pull request as ready for review June 1, 2026 16:23
@ChrisAmora ChrisAmora requested a review from a team as a code owner June 1, 2026 16:23

// DeployLinkTokenChangeset wraps the upstream DeployLinkTokenChangeset and
// additionally writes deployed addresses to AddressBook for backward compatibility.
type DeployLinkTokenChangeset struct{} //nolint:revive // intentional name match with upstream

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: consider adding an alias to linkchangesets.DeployLinkTokenInput in this package. It should simplify the client code a little as changeset and type will come from the same place.

solSelectors := e.BlockChains.ListChainSelectors(cldf_chain.WithFamily(chainselectors.FamilySolana))
// need to have extra definition here for golint
var allSelectors = make([]uint64, 0)
allSelectors := make([]uint64, 0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should probably avoid mixing unrelated style changes with this PR. There's quite a few.

@gustavogama-cll gustavogama-cll left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left a couple of suggestions but looks good overall. Please get an approval from CCIP as well.

@ChrisAmora ChrisAmora added this pull request to the merge queue Jun 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 1, 2026
@ChrisAmora ChrisAmora added this pull request to the merge queue Jun 1, 2026
Merged via the queue into develop with commit c5dbe06 Jun 1, 2026
226 checks passed
@ChrisAmora ChrisAmora deleted the feat/link-token-changeset-update branch June 1, 2026 21:58
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.

5 participants