Crate spl_transfer_hook_example

Source
Expand description

Crate defining an example program for performing a hook on transfer, where the token program calls into a separate program with additional accounts after all other logic, to be sure that a transfer has accomplished all required preconditions.

Re-exports§

pub use solana_program;

Modules§

mint
Place the mint id that you want to target with your transfer hook program. Any other mint will fail to initialize, protecting the transfer hook program from rogue mints trying to get access to accounts.
processor
Program state processor
state
State helpers for working with the example program