light-client 0.23.0

Client library for Light Protocol
Documentation
use solana_pubkey::{pubkey, Pubkey};

/// Address lookup table containing state Merkle tree pubkeys for mainnet-beta.
/// Used to reduce transaction size by referencing trees via lookup table indices.
pub const STATE_TREE_LOOKUP_TABLE_MAINNET: Pubkey =
    pubkey!("7i86eQs3GSqHjN47WdWLTCGMW6gde1q96G2EVnUyK2st");

/// Address lookup table containing nullifier queue pubkeys for mainnet-beta.
/// Used to reduce transaction size by referencing queues via lookup table indices.
pub const NULLIFIED_STATE_TREE_LOOKUP_TABLE_MAINNET: Pubkey =
    pubkey!("H9QD4u1fG7KmkAzn2tDXhheushxFe1EcrjGGyEFXeMqT");

/// Address lookup table containing state Merkle tree pubkeys for devnet.
/// Used to reduce transaction size by referencing trees via lookup table indices.
pub const STATE_TREE_LOOKUP_TABLE_DEVNET: Pubkey =
    pubkey!("8n8rH2bFRVA6cSGNDpgqcKHCndbFCT1bXxAQG89ejVsh");

/// Address lookup table containing nullifier queue pubkeys for devnet.
/// Used to reduce transaction size by referencing queues via lookup table indices.
pub const NULLIFIED_STATE_TREE_LOOKUP_TABLE_DEVNET: Pubkey =
    pubkey!("5dhaJLBjnVBQFErr8oiCJmcVsx3Zj6xDekGB2zULPsnP");

/// Address lookup table with zk compression related keys. Use to reduce
/// transaction size.
///
/// Keys include: all protocol pubkeys, default state trees, address trees, and
/// more.
///
/// Example usage:
/// ```bash
///
/// # By cloning from mainnet
/// light test-validator --validator-args "\
///   --clone 9NYFyEqPkyXUhkerbGHXUXkvb4qpzeEdHuGpgbgpH1NJ \
///   --url https://api.mainnet-beta.solana.com \
///   --upgradeable-program <your_program_id> <your_program_path> ~/.config/solana/id.json"
///
/// # With a local LUT file
/// light test-validator --validator-args "\
///   --account 9NYFyEqPkyXUhkerbGHXUXkvb4qpzeEdHuGpgbgpH1NJ ./scripts/lut.json \
///   --url https://api.mainnet-beta.solana.com \
///   --upgradeable-program <your_program_id> <your_program_path> ~/.config/solana/id.json"
///
/// ```
pub const LIGHT_PROTOCOL_LOOKUP_TABLE_ADDRESS: Pubkey =
    pubkey!("9NYFyEqPkyXUhkerbGHXUXkvb4qpzeEdHuGpgbgpH1NJ");