Commit a3497b1
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
- .cargo
- .github/workflows
- anchor-programs/system
- src
- cli/accounts
- forester/tests
- js/stateless.js/src
- program-libs
- account-checks
- src
- account_info
- tests
- compressed-account
- src
- indexer_event
- instruction_data
- tests
- hasher
- src
- zero-copy/src
- program-tests
- compressed-token-test/tests
- create-address-test-program
- src
- sdk-anchor-test
- system-cpi-test
- src
- tests
- system-cpi-v2-test/tests
- system-test
- tests
- utils
- src
- programs
- account-compression/src
- instructions
- processor
- compressed-token/src
- system
- src
- account_compression_state
- accounts
- cpi_context
- invoke_cpi
- invoke
- processor
- tests
- scripts
- sdk-libs
- client/src
- indexer
- rpc
- macros
- src
- hasher
- tests
- photon-api/src/apis
- program-test/src
- accounts
- logging
- program_test
- sdk-pinocchio
- src
- cpi
- v1
- v2
- sdk-types
- src
- cpi_accounts
- instruction
- sdk
- src
- cpi
- v1
- v2
- instruction
- sdk-tests
- client-test/tests
- sdk-anchor-test/programs/sdk-anchor-test
- src
- tests
- sdk-native-test
- src
- tests
- sdk-pinocchio-v1-test
- src
- tests
- sdk-pinocchio-v2-test
- src
- tests
- sdk-v1-native-test
- src
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments