Module state

Module state 

Source

Structs§

ActivityLimits
Activity limits configuration to prevent payment splitting for more activities. This prevents gaming by capping the maximum effective activity count per epoch.
CommunityTargets
Community health targets for sustainable reward distribution. These targets determine what constitutes “healthy” vs “struggling” communities.
Config
Config is a singleton account which manages program global variables.
Metrics
Metrics stores weekly community health data used for reward decay calculation.
Proof
Proof accounts track a member’s basic claim information. Every member is allowed one proof account which is required by the program to claim rewards. A member is usually mapped to a public wallet address.
Snapshot
Snapshot data for the current epoch This is the current equivalent of the HistoricalSnapshot structure
SocialMarketingConfig
Social marketing rewards configuration for community building and organic growth. This pool provides rewards for social media engagement while maintaining payment-first philosophy.
Treasury
Treasury is a singleton account which is the mint authority for the MIRACLE token and the authority of the program’s global token account.

Enums§

MiracleAccount

Functions§

config_pda
Derive the PDA of the config account.
metrics_pda
Derive the PDA of the metrics account.
proof_pda
Derive the PDA of a proof account.
snapshot_pda
Derive the PDA of the snapshot account.
treasury_pda
Derive the PDA of the treasury account.