Expand description
Crate defining an interface 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_account_info;
pub use solana_cpi;
pub use solana_decode_error;
pub use solana_instruction;
pub use solana_msg;
pub use solana_program_error;
pub use solana_pubkey;
Modules§
- Error types
- Instruction types
- Offchain helper for fetching required accounts to build instructions
- On-chain program invoke helper to perform on-chain
execute
with correct accounts
Constants§
- Namespace for all programs implementing transfer-hook
Functions§
- Function used by programs implementing the interface, when creating the PDA, to get all of the PDA seeds
- Function used by programs implementing the interface, when creating the PDA, to sign for the PDA
- Get the state address PDA
- Function used by programs implementing the interface, when creating the PDA, to also get the bump seed