// Copyright The Hush Developers  2019-2022
// Released under the GPLv3
#[macro_use]
extern crate rust_embed;

pub mod lightclient;
pub mod grpcconnector;
pub mod lightwallet;
pub mod commands;

#[cfg(feature = "embed_params")]
#[derive(RustEmbed)]
#[folder = "zcash-params/"]
pub struct SaplingParams;

#[derive(RustEmbed)]
#[folder = "res/"]
pub struct PubCertificate;


// Anchor depth back from the tip for shielded spends. MUST be > 0: with 0 the wallet anchors to
// the absolute chain tip, which races the node committing that anchor and intermittently triggers
// "bad-txns-shielded-requirements-not-met" (missing sapling anchor) on broadcast. 4 matches upstream
// zecwallet-lite and uses a confirmed, reorg-stable anchor.
pub const ANCHOR_OFFSET: u32 = 4;

pub mod grpc_client {
    tonic::include_proto!("cash.z.wallet.sdk.rpc");
}
