Expand description
SPL interface PDA derivation utilities for Light Protocol.
This module provides functions to derive SPL interface PDAs (token pools) for both regular and restricted mints. Restricted mints (those with Pausable, PermanentDelegate, TransferFeeConfig, TransferHook, or DefaultAccountState extensions) use a different derivation path to prevent accidental compression via legacy anchor instructions.
Constants§
- NUM_
MAX_ POOL_ ACCOUNTS - Maximum number of pool accounts per mint.
Functions§
- find_
spl_ interface_ pda - Find the SPL interface PDA for a given mint (index 0).
- find_
spl_ interface_ pda_ with_ index - Find the SPL interface PDA for a given mint and index.
- get_
spl_ interface_ pda - Get the SPL interface PDA address for a given mint (index 0).
- has_
restricted_ extensions - Check if a mint has any restricted extensions.
- is_
valid_ spl_ interface_ pda - Validate that an SPL interface PDA is correctly derived.