index-program 0.1.12

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

/// Root seed for deriving Pointer account PDAs.
pub const SEED_POINTER: &[u8] = b"ptr";

/// Pointer accounts store a named public address in an index.
#[account]
pub struct Pointer {
    pub name: String,
    pub value: Pubkey,
    pub bump: u8,
}