Skip to content

Commit 5250ba2

Browse files
committed
refactor: rename light-compressed-token-sdk -> light-ctoken-sdk
1 parent 51d4e2f commit 5250ba2

191 files changed

Lines changed: 409 additions & 439 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/sdk-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- program: token test
5555
sub-tests: '["cargo-test-sbf -p sdk-token-test"]'
5656
- program: sdk-libs
57-
packages: light-sdk-macros light-sdk light-program-test light-client light-compressed-token-types light-compressed-token-sdk
57+
packages: light-sdk-macros light-sdk light-program-test light-client light-compressed-token-types light-ctoken-sdk
5858
test_cmd: |
5959
cargo test -p light-sdk-macros
6060
cargo test -p light-sdk-macros --all-features
@@ -64,7 +64,7 @@ jobs:
6464
cargo test -p light-client
6565
cargo test -p light-sparse-merkle-tree
6666
cargo test -p light-compressed-token-types
67-
cargo test -p light-compressed-token-sdk
67+
cargo test -p light-ctoken-sdk
6868
steps:
6969
- name: Checkout sources
7070
uses: actions/checkout@v4

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ light-protocol/
4141
│ ├── client/ # RPC client for querying compressed accounts
4242
│ ├── sdk/ # Core SDK for Rust/Anchor programs
4343
│ ├── sdk-pinocchio/ # Pinocchio-specific SDK implementation
44-
│ ├── compressed-token-sdk/ # Compressed token client utilities
44+
│ ├── ctoken-sdk/ # Compressed token client utilities
4545
│ └── program-test/ # Fast local test environment (LiteSVM)
4646
├── prover/ # ZK proof generation
4747
│ ├── server/ # Go-based prover server and circuit implementation (Gnark)

Cargo.lock

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ members = [
2323
"programs/registry",
2424
"anchor-programs/system",
2525
"sdk-libs/client",
26-
"sdk-libs/compressed-token-sdk",
26+
"sdk-libs/ctoken-sdk",
2727
"sdk-libs/event",
2828
"sdk-libs/token-client",
2929
"sdk-libs/macros",
@@ -202,7 +202,7 @@ light-compressed-token = { path = "programs/compressed-token/program", version =
202202
"cpi",
203203
] }
204204
light-compressed-token-types = { path = "sdk-libs/compressed-token-types", version = "0.1.0" }
205-
light-compressed-token-sdk = { path = "sdk-libs/compressed-token-sdk", version = "0.1.0" }
205+
light-ctoken-sdk = { path = "sdk-libs/ctoken-sdk", version = "0.1.0" }
206206
light-token-client = { path = "sdk-libs/token-client", version = "0.1.0" }
207207
light-system-program-anchor = { path = "anchor-programs/system", version = "2.0.0", features = [
208208
"cpi",

forester/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ light-sdk = { workspace = true, features = ["anchor"] }
3030
light-program-test = { workspace = true }
3131
light-compressible = { workspace = true }
3232
light-ctoken-interface = { workspace = true }
33-
light-compressed-token-sdk = { workspace = true }
33+
light-ctoken-sdk = { workspace = true }
3434
solana-rpc-client-api = { workspace = true }
3535
solana-transaction-status = { workspace = true }
3636
bb8 = { workspace = true }
@@ -72,6 +72,6 @@ light-batched-merkle-tree = { workspace = true, features = ["test-only"] }
7272
light-token-client = { workspace = true }
7373
dotenvy = "0.15"
7474
light-compressed-token = { workspace = true }
75-
light-compressed-token-sdk = { workspace = true }
75+
light-ctoken-sdk = { workspace = true }
7676
rand = { workspace = true }
7777
create-address-test-program = { workspace = true }

forester/src/compressible/compressor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use std::{str::FromStr, sync::Arc};
33
use anchor_lang::{InstructionData, ToAccountMetas};
44
use forester_utils::rpc_pool::SolanaRpcPool;
55
use light_client::rpc::Rpc;
6-
use light_compressed_token_sdk::compressed_token::compress_and_close::CompressAndCloseAccounts as CTokenAccounts;
76
use light_compressible::config::CompressibleConfig;
87
use light_ctoken_interface::COMPRESSED_TOKEN_PROGRAM_ID;
8+
use light_ctoken_sdk::compressed_token::compress_and_close::CompressAndCloseAccounts as CTokenAccounts;
99
use light_registry::{
1010
accounts::CompressAndCloseContext, compressible::compressed_token::CompressAndCloseIndices,
1111
instruction::CompressAndClose,

forester/tests/e2e_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ use light_compressed_token::process_transfer::{
3535
transfer_sdk::{create_transfer_instruction, to_account_metas},
3636
TokenTransferOutputData,
3737
};
38-
use light_compressed_token_sdk::compat::TokenDataWithMerkleContext;
3938
use light_ctoken_interface::state::TokenDataVersion;
39+
use light_ctoken_sdk::compat::TokenDataWithMerkleContext;
4040
use light_hasher::Poseidon;
4141
use light_program_test::accounts::test_accounts::TestAccounts;
4242
use light_prover_client::prover::spawn_prover;

forester/tests/legacy/batched_state_async_indexer_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use light_compressed_account::{
2323
use light_compressed_token::process_transfer::{
2424
transfer_sdk::create_transfer_instruction, TokenTransferOutputData,
2525
};
26-
use light_compressed_token_sdk::compat::TokenDataWithMerkleContext;
26+
use light_ctoken_sdk::compat::TokenDataWithMerkleContext;
2727
use light_program_test::accounts::test_accounts::TestAccounts;
2828
use light_prover_client::prover::spawn_prover;
2929
use light_registry::{

forester/tests/test_compressible_ctoken.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use light_client::{
99
local_test_validator::{spawn_validator, LightValidatorConfig},
1010
rpc::{LightClient, LightClientConfig, Rpc},
1111
};
12-
use light_compressed_token_sdk::compressed_token::create_compressed_mint;
1312
use light_ctoken_interface::state::TokenDataVersion;
13+
use light_ctoken_sdk::compressed_token::create_compressed_mint;
1414
use light_registry::{
1515
protocol_config::state::ProtocolConfigPda,
1616
sdk::{

program-tests/compressed-token-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ serial_test = { workspace = true }
4646
light-ctoken-interface = { workspace = true }
4747
light-token-client = { workspace = true }
4848
light-compressible = { workspace = true }
49-
light-compressed-token-sdk = { workspace = true }
49+
light-ctoken-sdk = { workspace = true }
5050
spl-token-2022 = { workspace = true }
5151
spl-pod = { workspace = true }
5252
light-zero-copy = { workspace = true , features = ["std", "derive", "mut"]}

0 commit comments

Comments
 (0)