Skip to content

Commit a3497b1

Browse files
feat: sdk v2 2.3 (#1946)
* cherrypicked hasher update: support sha in hasher and lighthasher macro lint remove unused _output_account_info update lightdiscriminator macro chore: add sha flat macro test, perf: sha flat hash in LightAccount avoid double borsh serialization chore: cleanup tests, add new discriminator test, add anchor discriminator compatibility test: LightAccount close * refactor: cpi context account, system program account checks, account compression program nullify create output order test: program libs diff fix program integration tests fix: cpi context has data feat: InstructionDataInvokeCpiWithReadOnly builder pattern fix: GetMultipleCompressedAccountsPost200ResponseResult vec<Option>> fix: light-client & light-program-test tests chore: use devnet v2 address tree pubkey, add v2 address derivation to light-sdk-types and sdk add LightSdkError -> LightClientError conversion fix: to_output_compressed_account_with_packed_context missing data refactor: add new_with_config to PhotonIndexer chore: add builder pattern for all instruction data types refactor: InvokeLightSystemProgram to use CpiAccountsTrait instead of only account infos implement instruction data helpers for v1 and v2 and gate them test: add sdk-v1-native-test fix rebase * fix: LightAccount close * add to_in_account() * add to_output_compressed_account_with_packed_context * fix CpiAccountsV2 lifetime * fix: add_system_accounts_v2 * fix: cpi context account has data * test: v2 sdk address derivation * fix: test * regenerate cli accounts * feat: LightAccount init if needed * fix: sdk-anchor-test * feat: stateless js add v2 address trees, fix: empty data parsing * fix install script * refactor: empty account, update photon commit * refactored v1 and v2 into separate directories in light-sdk and light-sdk-types * refactor: pinocchio sdk v2 * fix: tests * stash added pack accounts docs * feat: sdk add cpi context feature * update light-sdk docs * light-sdk docs * updated light-program-test and light-client docs * fix test --------- Co-authored-by: Swenschaeferjohann <swen@lightprotocol.com>
1 parent 4308dd0 commit a3497b1

219 files changed

Lines changed: 16186 additions & 3043 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.

.cargo/config.toml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
aligned-sized light-hasher light-compressed-account light-account-checks \
4848
light-verifier light-merkle-tree-metadata light-zero-copy light-hash-set
4949
test_cmd: |
50+
cargo test -p light-macros
5051
cargo test -p aligned-sized
5152
cargo test -p light-hasher --all-features
5253
cargo test -p light-compressed-account --all-features

.github/workflows/sdk-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ jobs:
5252
matrix:
5353
include:
5454
- program: sdk-test-program
55-
sub-tests: '["cargo-test-sbf -p sdk-native-test"]'
55+
sub-tests: '["cargo-test-sbf -p sdk-native-test", "cargo-test-sbf -p sdk-v1-native-test"]'
5656
- program: sdk-anchor-test-program
57-
sub-tests: '["cargo-test-sbf -p sdk-anchor-test", "cargo-test-sbf -p sdk-pinocchio-test"]'
57+
sub-tests: '["cargo-test-sbf -p sdk-anchor-test", "cargo-test-sbf -p sdk-pinocchio-v1-test", "cargo-test-sbf -p sdk-pinocchio-v2-test"]'
5858
- program: sdk-libs
59-
packages: light-macros light-sdk light-program-test light-client light-batched-merkle-tree
59+
packages: light-sdk-macros light-sdk light-program-test light-client light-batched-merkle-tree
6060
test_cmd: |
61-
cargo test -p light-macros
61+
cargo test -p light-sdk-macros
62+
cargo test -p light-sdk-macros --all-features
6263
cargo test -p light-sdk
64+
cargo test -p light-sdk --all-features
6365
cargo test -p light-program-test
6466
cargo test -p light-client
6567
cargo test -p client-test

0 commit comments

Comments
 (0)