indexor 0.5.0

Virtual namespaces for indexing Solana accounts on-chain
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use anchor_lang::prelude::*;

/// Root seed for deriving Index account PDAs.
pub const SEED_INDEX: &[u8] = b"idx";

/// Index accounts store an index's metadata.
#[account]
pub struct Index {
    pub owner: Pubkey,
    pub namespace: String,
    pub count: u128,
    pub is_serial: bool,
    pub bump: u8,
}