cronos-indexer 0.0.1

Create an on-chain list of accounts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use anchor_lang::prelude::*;

/// Root seed for deriving Element account PDAs.
pub const SEED_ELEMENT: &[u8] = b"element";

/// Element accounts track an address's position in a list.
#[account]
pub struct Element {
    pub index: u128,
    pub value: Pubkey,
    pub bump: u8,
}