16 releases (breaking)
0.14.0 | Jan 22, 2025 |
---|---|
0.13.0 | Nov 4, 2024 |
0.12.1 | Sep 3, 2024 |
0.11.0 | Jun 25, 2024 |
0.0.1 | Jan 13, 2022 |
#1 in #transfer-hook
14,180 downloads per month
Used in 10 crates
1.5MB
28K
SLoC
Contains (ELF lib, 115KB) spl_transfer_hook_example.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, 25KB) spl_instruction_padding.so, (ELF lib, 20KB) spl_transfer_hook_example_downgrade.so and 2 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
~94MB
~1.5M SLoC