Skip to main content

Crate tengu_api

Crate tengu_api 

Source

Re-exports§

pub use utils::*;
pub use vesting::*;

Modules§

consts
PDA seeds and constants.
error
Program errors.
event
Program events.
instruction
Instruction enum and data structs.
prelude
sdk
Instruction builders for client SDK. Builds Instruction with correct accounts and data.
state
tasks
Task definitions and claim logic. Single source of truth for tiers and rewards.
utils
Account validation and shared program utilities.
vesting
Fren Pet Stake-to-Play (S2P): staked DOJO refunds linearly over 30 days (per slot).
xp
Time-weighted staked DOJO balance → XP accrual (pairs with S2P stake in vesting). Activity rewards (PvP, recruit, upgrades, dine, …) use add_reward_points_xp — same dojo.xp / claim_xp_rewards pool as Fren-style “points.” PvP wins use xp_from_battle_points_moved so XP scales with BP transferred (Fren: ETH rewards tied to point moves).

Constants§

ID
The const program ID.

Functions§

check_id
Returns true if given pubkey is the program ID.
id
Returns the program ID.