Skip to main content

Module pda

Module pda 

Source

Functions§

allocation_pda
Derive the PDA of an allocation account
campaign_pda
Derive the PDA of a campaign account
campaign_treasury_pda
Derive the PDA of a campaign’s treasury (one per campaign, for distribution)
config_pda
Derive the PDA of the config account
fee_account_pda
Derive the PDA of the fee account
mint_authority_pda
Derive the PDA of a mint’s authority (shared across campaigns using same mint) This is the key function: one PDA per mint, not per campaign
mint_pda
Derive the PDA of a mint mint_id can be:
mint_treasury_pda
Derive the PDA of a mint’s treasury (one per mint, holds all minted tokens) Similar to miracle-copy’s single treasury, but one per mint This treasury holds all tokens minted for a specific mint