Skip to content

chore: swap solana state usages to use cld-changesets#22310

Draft
ecPablo wants to merge 11 commits intodevelopfrom
ecpablo/remove-sol-state-funcs
Draft

chore: swap solana state usages to use cld-changesets#22310
ecPablo wants to merge 11 commits intodevelopfrom
ecpablo/remove-sol-state-funcs

Conversation

@ecPablo
Copy link
Copy Markdown
Contributor

@ecPablo ecPablo commented May 5, 2026

This pull request refactors how Solana MCMS (Multi-Chain Management System) state is loaded and managed across several deployment changeset files. The main improvement is consolidating the logic for loading Solana MCMS state into the shared cld-changesets/pkg/family/solana package, replacing previous usage of the local common/changeset/state package throughout the codebase. This change simplifies dependencies and ensures a single source of truth for Solana MCMS state handling.

Key changes:

Solana MCMS State Handling Refactor

  • Replaced all calls to MaybeLoadMCMSWithTimelockChainStateSolana and related types from the common/changeset/state package with the equivalent functions and types from cld-changesets/pkg/family/solana (solstate). This affects logic for loading, validating, and using MCMS state in Solana changesets. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Imports and Type Cleanup

  • Updated imports in all affected files to remove references to the old common/changeset/state package and add the new solstate import. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

  • Changed type definitions and usages to reference solstate.MCMSWithTimelockState instead of the previous type from commonstate. [1] [2]

Utility Function Migration

  • Updated calls to utility functions such as GetTimelockSignerPDA to use the version from solstate instead of the old package. [1] [2]

This refactor reduces code duplication, streamlines Solana MCMS state management, and improves maintainability by centralizing related logic.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

CORA - Pending Reviewers

Codeowners Entry Overall Num Files Owners
* 1 @smartcontractkit/foundations, @smartcontractkit/core
/deployment/ 3 @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/keystone, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/ccip/ 28 @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/common/ 38 @smartcontractkit/operations-platform
/deployment/cre/ 21 @smartcontractkit/keystone, @smartcontractkit/operations-platform
/deployment/data-feeds/ 1 @smartcontractkit/data-feeds-engineers, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/keystone/ 4 @smartcontractkit/keystone, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/vault/ 2 @smartcontractkit/cld-vault, @smartcontractkit/operations-platform, @smartcontractkit/core
/.github/** 1 @smartcontractkit/devex-cicd, @smartcontractkit/devex-tooling, @smartcontractkit/core
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 May 5, 2026

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented May 5, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
TestDeployMCMSWithTimelockV2 The test failed due to a permission denied error when trying to create a directory during setup. Logs ↗︎

View Full Report ↗︎Docs

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

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.

@cl-sonarqube-production
Copy link
Copy Markdown

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.

1 participant