Skip to content

chore: rename light-compressed-token-types -> light-ctoken-types#2108

Merged
ananas-block merged 1 commit intomainfrom
jorrit/chore-rename-compressed-token-types
Dec 7, 2025
Merged

chore: rename light-compressed-token-types -> light-ctoken-types#2108
ananas-block merged 1 commit intomainfrom
jorrit/chore-rename-compressed-token-types

Conversation

@ananas-block
Copy link
Contributor

@ananas-block ananas-block commented Dec 7, 2025

Summary by CodeRabbit

  • Chores
    • Renamed internal module from light-compressed-token-types to light-ctoken-types for improved naming consistency.
    • Updated all dependency references and import paths throughout the SDK to reflect the new module name.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 7, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

A comprehensive crate rename refactoring updates all references from light-compressed-token-types to light-ctoken-types across SDK libraries, including package name changes in Cargo.toml files, import path updates in source modules, public re-export adjustments, and documentation reference updates.

Changes

Cohort / File(s) Change Summary
Package manifests
sdk-libs/ctoken-types/Cargo.toml, sdk-libs/ctoken-sdk/Cargo.toml, sdk-libs/token-client/Cargo.toml
Package and workspace dependency names renamed from light-compressed-token-types to light-ctoken-types. Anchor path updated to reflect new crate name.
ctoken-sdk import updates
sdk-libs/ctoken-sdk/src/compressed_token/v1/account.rs, sdk-libs/ctoken-sdk/src/compressed_token/v1/approve/instruction.rs, sdk-libs/ctoken-sdk/src/compressed_token/v1/batch_compress/instruction.rs, sdk-libs/ctoken-sdk/src/compressed_token/v1/transfer/instruction.rs, sdk-libs/ctoken-sdk/src/compressed_token/v1/transfer/mod.rs, sdk-libs/ctoken-sdk/src/compressed_token/v2/*
Import paths updated from light_compressed_token_types to light_ctoken_types for types and constants (TokenAccountMeta, CompressedTokenInstructionDataApprove, ValidityProof, CPI_AUTHORITY_PDA, CompressedMintAuthorityType, etc.).
ctoken-sdk public re-exports
sdk-libs/ctoken-sdk/src/compressed_token/v1/mod.rs, sdk-libs/ctoken-sdk/src/compressed_token/v2/mint_to_compressed/instruction.rs
Public re-exports updated to source from light_ctoken_types instead of light_compressed_token_types (TokenAccountMeta, DecompressedMintConfig).
ctoken-sdk constants and utilities
sdk-libs/ctoken-sdk/src/constants.rs, sdk-libs/ctoken-sdk/src/error.rs, sdk-libs/ctoken-sdk/src/ctoken/mod.rs, sdk-libs/ctoken-sdk/src/spl_interface.rs, sdk-libs/ctoken-sdk/src/utils.rs
Module imports consolidated and paths updated from light_compressed_token_types to light_ctoken_types for POOL_SEED, NOOP_PROGRAM_ID, CPI_AUTHORITY_PDA, and other constants. Multi-line constant initializations consolidated to single-line form.
token-client source updates
sdk-libs/token-client/src/actions/update_compressed_mint.rs, sdk-libs/token-client/src/instructions/update_compressed_mint.rs
Import paths updated from light_compressed_token_types to light_ctoken_types for CompressedMintAuthorityType.
Test files
sdk-libs/ctoken-sdk/tests/account_metas_test.rs, sdk-libs/ctoken-sdk/tests/mint_action_cpi_accounts_tests.rs
Import blocks updated to reference constants from light_ctoken_types instead of light_compressed_token_types.
Documentation
program-libs/account-checks/CLAUDE.md
Module reference renamed from light-compressed-token-types to light-ctoken-types in exported module documentation.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Key areas requiring attention:

  • Completeness verification: Ensure all imports across 20+ files were updated consistently and no references to the old crate name remain
  • Public API surface: Confirm all public re-exports (TokenAccountMeta, DecompressedMintConfig) now correctly resolve from the renamed crate
  • Workspace coherence: Verify Cargo.toml dependency updates are synchronized across all dependent crates (ctoken-sdk, token-client)
  • Anchor integration: Check that the updated anchor path in dependencies (light-ctoken-types/anchor) remains valid and functional

Possibly related PRs

Suggested labels

ai-review

Suggested reviewers

  • sergeytimoshin
  • SwenSchaeferjohann

Poem

A rename across the lands so wide, 🎯
From compressed-token-types we stride,
To ctoken short, our paths align,
Each import refreshed, each constant divine,
The SDK reborn, the old left behind! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jorrit/chore-rename-compressed-token-types

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 31e1376 and 3a801c2.

⛔ Files ignored due to path filters (25)
  • .github/workflows/sdk-tests.yml is excluded by none and included by none
  • Cargo.lock is excluded by !**/*.lock and included by none
  • Cargo.toml is excluded by none and included by none
  • program-tests/compressed-token-test/Cargo.toml is excluded by none and included by none
  • program-tests/compressed-token-test/tests/transfer2/no_system_program_cpi_failing.rs is excluded by none and included by none
  • scripts/lint.sh is excluded by none and included by none
  • sdk-tests/CLAUDE.md is excluded by none and included by none
  • sdk-tests/csdk-anchor-derived-test/Cargo.toml is excluded by none and included by none
  • sdk-tests/csdk-anchor-derived-test/tests/basic_test.rs is excluded by none and included by none
  • sdk-tests/csdk-anchor-full-derived-test/Cargo.toml is excluded by none and included by none
  • sdk-tests/csdk-anchor-full-derived-test/tests/basic_test.rs is excluded by none and included by none
  • sdk-tests/sdk-compressible-test/Cargo.toml is excluded by none and included by none
  • sdk-tests/sdk-compressible-test/tests/multi_account_tests.rs is excluded by none and included by none
  • sdk-tests/sdk-ctoken-test/Cargo.lock is excluded by !**/*.lock and included by none
  • sdk-tests/sdk-ctoken-test/Cargo.toml is excluded by none and included by none
  • sdk-tests/sdk-ctoken-test/README.md is excluded by none and included by none
  • sdk-tests/sdk-ctoken-test/tests/test_transfer_interface.rs is excluded by none and included by none
  • sdk-tests/sdk-ctoken-test/tests/test_transfer_spl_ctoken.rs is excluded by none and included by none
  • sdk-tests/sdk-token-test/Cargo.toml is excluded by none and included by none
  • sdk-tests/sdk-token-test/src/process_batch_compress_tokens.rs is excluded by none and included by none
  • sdk-tests/sdk-token-test/tests/ctoken_pda.rs is excluded by none and included by none
  • sdk-tests/sdk-token-test/tests/pda_ctoken.rs is excluded by none and included by none
  • sdk-tests/sdk-token-test/tests/test.rs is excluded by none and included by none
  • sdk-tests/sdk-token-test/tests/test_4_invocations.rs is excluded by none and included by none
  • sdk-tests/sdk-token-test/tests/test_deposit.rs is excluded by none and included by none
📒 Files selected for processing (25)
  • program-libs/account-checks/CLAUDE.md (1 hunks)
  • sdk-libs/ctoken-sdk/Cargo.toml (2 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v1/account.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v1/approve/instruction.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v1/batch_compress/instruction.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v1/mod.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v1/transfer/instruction.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v1/transfer/mod.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v2/mint_action/cpi_accounts.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v2/mint_to_compressed/instruction.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v2/transfer2/account_metas.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v2/transfer2/cpi_accounts.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v2/transfer2/instruction.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/compressed_token/v2/update_compressed_mint/instruction.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/constants.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/ctoken/mod.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/error.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/spl_interface.rs (1 hunks)
  • sdk-libs/ctoken-sdk/src/utils.rs (1 hunks)
  • sdk-libs/ctoken-sdk/tests/account_metas_test.rs (1 hunks)
  • sdk-libs/ctoken-sdk/tests/mint_action_cpi_accounts_tests.rs (1 hunks)
  • sdk-libs/ctoken-types/Cargo.toml (1 hunks)
  • sdk-libs/token-client/Cargo.toml (1 hunks)
  • sdk-libs/token-client/src/actions/update_compressed_mint.rs (1 hunks)
  • sdk-libs/token-client/src/instructions/update_compressed_mint.rs (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ananas-block ananas-block merged commit 5fd3235 into main Dec 7, 2025
30 of 31 checks passed
@ananas-block ananas-block deleted the jorrit/chore-rename-compressed-token-types branch December 7, 2025 03:17
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.

2 participants