light_merkle_tree/
config.rs1#[cfg(feature = "solana")]
2use anchor_lang::prelude::*;
3
4use crate::constants::ZeroBytes;
5
6pub trait MerkleTreeConfig {
7 const ZERO_BYTES: ZeroBytes;
8 #[cfg(feature = "solana")]
9 const PROGRAM_ID: Pubkey;
10}
11
12#[cfg(not(feature = "solana"))]
13mod configs {
14 use super::*;
15
16 use crate::constants;
17
18 pub struct Sha256MerkleTreeConfig;
19
20 impl MerkleTreeConfig for Sha256MerkleTreeConfig {
21 const ZERO_BYTES: ZeroBytes = constants::sha256::ZERO_BYTES;
22 }
23}
24
25#[cfg(not(feature = "solana"))]
26pub use configs::*;