Skip to content

Commit a6f5dba

Browse files
authored
chore: bump versions to v0.18 v2 trees are default (#32)
* chore: bump versions to v0.18 * fix: pin blake3 to 1.8.2 to avoid edition2024 requirement * chore: update light-compressible to v0.3.1 * refactor: use pack_output_tree_index for tree selection * refactor: use selectStateTreeInfo for tree selection in TS tests Update TypeScript tests to use the new tree selection pattern: - Replace defaultTestStateTreeAccounts().merkleTree with selectStateTreeInfo() - Use stateTreeInfo.queue for output state tree index - Add TreeInfo type to function signatures * fix: rename light_ctoken_sdk to light_token in simple-claim * fix: update simple-claim for light-token v0.3 API changes - Enable v1 feature for backward compatible API - Fix module paths (v1 contents are re-exported directly) - Rename CTokenSdkError to TokenSdkError - Add restricted param to derive_spl_interface_pda - Use light_token::instruction::id() for program ID * fix: update simple-claim tests for light-token v0.3 API * fix: set proveByIndex to true for V2 mode in TypeScript tests In V2 mode, index-based proving is required. Changed all TypeScript tests to use proveByIndex: true for operations that read existing accounts. * fix: use git rev for light-hasher in zk-id to match light-merkle-tree-reference Both dependencies now use the same git revision to avoid trait bound conflicts. * fix: use released crates for light-hasher and light-merkle-tree-reference in zk-id Changed from git dependencies to crates.io versions: - light-hasher: 5.0.0 - light-merkle-tree-reference: 4.0.0
1 parent c2fada3 commit a6f5dba

File tree

78 files changed

+9757
-7010
lines changed

Some content is hidden

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

78 files changed

+9757
-7010
lines changed

account-comparison/Cargo.lock

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

account-comparison/programs/account-comparison/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ idl-build = ["anchor-lang/idl-build"]
1919

2020
[dependencies]
2121
anchor-lang = "0.31.1"
22-
light-hasher = { version = "5.0.0", features = ["solana"] }
23-
light-sdk = { version = "0.17", features = ["anchor", "v2"] }
24-
light-sdk-types = { version = "0.17.1", features = ["anchor", "v2"] }
22+
light-hasher = "5.0.0"
23+
light-sdk = { version = "0.18.0", features = ["anchor", "anchor-discriminator", "cpi-context"] }
2524

2625
[dev-dependencies]
27-
light-client = "0.17.2"
26+
light-client = "0.18.0"
2827
litesvm = "0.7.1"
2928
solana-keypair = "2.2"
3029
solana-message = "2.2"
3130
solana-pubkey = { version = "2.2", features = ["curve25519", "sha2"] }
3231
solana-signer = "2.2"
3332
solana-transaction = "2.2"
34-
light-program-test = "0.17.1"
33+
light-program-test = "0.18.0"
3534
tokio = "1.43.0"
3635
solana-sdk = "2.2"
36+
blake3 = "=1.8.2"
3737

3838
[lints.rust.unexpected_cfgs]
3939
level = "allow"

account-comparison/programs/account-comparison/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use light_sdk::{
99
instruction::{account_meta::CompressedAccountMeta, PackedAddressTreeInfo, ValidityProof},
1010
LightDiscriminator, LightHasher,
1111
};
12-
use light_sdk_types::ADDRESS_TREE_V2;
12+
use light_sdk::constants::ADDRESS_TREE_V2;
1313

1414
#[error_code]
1515
pub enum CustomError {

0 commit comments

Comments
 (0)