23 releases (breaking)
| new 0.19.1 | Jun 12, 2026 |
|---|---|
| 0.18.0 | Nov 5, 2025 |
| 0.16.1 | May 20, 2025 |
| 0.14.0 | Jan 22, 2025 |
| 0.0.1 | Jan 13, 2022 |
#139 in Magic Beans
5,697 downloads per month
Used in 14 crates
(11 directly)
1.5MB
33K
SLoC
Contains (ELF lib, 115KB) spl_transfer_hook_example.so, (ELF lib, 84KB) tests/fixtures/spl_elgamal_registry.so, (ELF lib, 115KB) spl_transfer_hook_example_no_default_features.so, (ELF lib, 70KB) spl_transfer_hook_example_swap.so, (ELF lib, 73KB) spl_transfer_hook_example_swap_with_fee.so, (ELF lib, 56KB) tests/fixtures/spl_record.so and 5 more.
SPL Token Client
All of the end-to-end tests for spl-token-2022 exist in this package.
Requirements
These tests require other built on-chain programs, including:
- spl-instruction-padding
- spl-transfer-hook-example
- spl-transfer-hook-example-downgrade
- spl-transfer-hook-example-fail
- spl-transfer-hook-example-success
- spl-transfer-hook-example-swap
- spl-transfer-hook-example-swap-with-fee
Built versions of these programs exist in tests/fixtures, and may be
regenerated from the following places in this repo:
- clients/rust-legacy/transfer-hook-test-programs/downgrade
- clients/rust-legacy/transfer-hook-test-programs/fail
- clients/rust-legacy/transfer-hook-test-programs/success
- clients/rust-legacy/transfer-hook-test-programs/swap
- clients/rust-legacy/transfer-hook-test-programs/swap-with-fee
Outside of this repo, other built programs are required:
- spl-instruction-padding
- spl-transfer-hook-example
Dependencies
~29–61MB
~1M SLoC