1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use anchor_lang::prelude::*;

/// Root seed for deriving Stack account PDAs.
pub const SEED_STACK: &[u8] = b"stk";

/// Stack accounts store a stack's metadata.
#[account]
pub struct Stack {
    pub owner: Pubkey,
    pub namespace: Pubkey,
    pub count: u128,
    pub bump: u8,
}