Skip to content

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

Draft
ecPablo wants to merge 1 commit intodevelopfrom
ecpablo/remove-sol-state-funcs
Draft

chore: swap solana state usages to use cld-changesets#22310
ecPablo wants to merge 1 commit 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
/deployment/ 3 @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/keystone, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/ccip/ 23 @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/common/ 23 @smartcontractkit/operations-platform
/deployment/cre/ 1 @smartcontractkit/keystone, @smartcontractkit/operations-platform
/deployment/keystone/ 1 @smartcontractkit/keystone, @smartcontractkit/operations-platform, @smartcontractkit/core
go.mod 1 @smartcontractkit/core, @smartcontractkit/foundations
go.sum 1 @smartcontractkit/core, @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

@cl-sonarqube-production
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

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

See analysis details on SonarQube

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented May 5, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

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