light_client/constants.rs
1use solana_pubkey::{pubkey, Pubkey};
2
3/// Address lookup table containing state Merkle tree pubkeys for mainnet-beta.
4/// Used to reduce transaction size by referencing trees via lookup table indices.
5pub const STATE_TREE_LOOKUP_TABLE_MAINNET: Pubkey =
6 pubkey!("7i86eQs3GSqHjN47WdWLTCGMW6gde1q96G2EVnUyK2st");
7
8/// Address lookup table containing nullifier queue pubkeys for mainnet-beta.
9/// Used to reduce transaction size by referencing queues via lookup table indices.
10pub const NULLIFIED_STATE_TREE_LOOKUP_TABLE_MAINNET: Pubkey =
11 pubkey!("H9QD4u1fG7KmkAzn2tDXhheushxFe1EcrjGGyEFXeMqT");
12
13/// Address lookup table containing state Merkle tree pubkeys for devnet.
14/// Used to reduce transaction size by referencing trees via lookup table indices.
15pub const STATE_TREE_LOOKUP_TABLE_DEVNET: Pubkey =
16 pubkey!("8n8rH2bFRVA6cSGNDpgqcKHCndbFCT1bXxAQG89ejVsh");
17
18/// Address lookup table containing nullifier queue pubkeys for devnet.
19/// Used to reduce transaction size by referencing queues via lookup table indices.
20pub const NULLIFIED_STATE_TREE_LOOKUP_TABLE_DEVNET: Pubkey =
21 pubkey!("5dhaJLBjnVBQFErr8oiCJmcVsx3Zj6xDekGB2zULPsnP");
22
23/// Address lookup table with zk compression related keys. Use to reduce
24/// transaction size.
25///
26/// Keys include: all protocol pubkeys, default state trees, address trees, and
27/// more.
28///
29/// Example usage:
30/// ```bash
31///
32/// # By cloning from mainnet
33/// light test-validator --validator-args "\
34/// --clone 9NYFyEqPkyXUhkerbGHXUXkvb4qpzeEdHuGpgbgpH1NJ \
35/// --url https://api.mainnet-beta.solana.com \
36/// --upgradeable-program <your_program_id> <your_program_path> ~/.config/solana/id.json"
37///
38/// # With a local LUT file
39/// light test-validator --validator-args "\
40/// --account 9NYFyEqPkyXUhkerbGHXUXkvb4qpzeEdHuGpgbgpH1NJ ./scripts/lut.json \
41/// --url https://api.mainnet-beta.solana.com \
42/// --upgradeable-program <your_program_id> <your_program_path> ~/.config/solana/id.json"
43///
44/// ```
45pub const LIGHT_PROTOCOL_LOOKUP_TABLE_ADDRESS: Pubkey =
46 pubkey!("9NYFyEqPkyXUhkerbGHXUXkvb4qpzeEdHuGpgbgpH1NJ");