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

#7 in #clients

Download history 1611/week @ 2024-12-06 1311/week @ 2024-12-13 856/week @ 2024-12-20 745/week @ 2024-12-27 1134/week @ 2025-01-03 2464/week @ 2025-01-10 3640/week @ 2025-01-17 3375/week @ 2025-01-24 3864/week @ 2025-01-31 3520/week @ 2025-02-07 2665/week @ 2025-02-14 2730/week @ 2025-02-21 3069/week @ 2025-02-28 3449/week @ 2025-03-07 2719/week @ 2025-03-14 2396/week @ 2025-03-21

12,118 downloads per month
Used in 10 crates

Apache-2.0

1.5MB
29K 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

~96MB
~2M SLoC