2021-06-17 09:56:20 -07:00
|
|
|
use zcash_primitives::consensus::Network;
|
|
|
|
|
|
|
|
#[path = "generated/cash.z.wallet.sdk.rpc.rs"]
|
|
|
|
pub mod lw_rpc;
|
|
|
|
|
2021-06-29 00:04:12 -07:00
|
|
|
pub const NETWORK: Network = Network::TestNetwork;
|
|
|
|
|
|
|
|
// Mainnet
|
|
|
|
// pub const LWD_URL: &str = "https://mainnet.lightwalletd.com:9067";
|
|
|
|
// pub const LWD_URL: &str = "https://lwdv3.zecwallet.co";
|
|
|
|
|
|
|
|
// Testnet
|
|
|
|
pub const LWD_URL: &str = "https://testnet.lightwalletd.com:9067";
|
|
|
|
// pub const LWD_URL: &str = "http://lwd.hanh.me:9067";
|
|
|
|
// pub const LWD_URL: &str = "http://127.0.0.1:9067";
|
2021-06-17 09:56:20 -07:00
|
|
|
|
2021-06-21 17:33:13 -07:00
|
|
|
mod builder;
|
2021-06-17 09:56:20 -07:00
|
|
|
mod chain;
|
2021-06-18 01:17:41 -07:00
|
|
|
mod commitment;
|
2021-06-21 17:33:13 -07:00
|
|
|
mod db;
|
2021-06-26 02:52:03 -07:00
|
|
|
mod key;
|
|
|
|
mod mempool;
|
2021-06-24 05:08:20 -07:00
|
|
|
mod print;
|
2021-06-26 02:52:03 -07:00
|
|
|
mod scan;
|
|
|
|
mod wallet;
|
2021-06-18 01:17:41 -07:00
|
|
|
|
2021-06-21 07:04:45 -07:00
|
|
|
pub use crate::builder::advance_tree;
|
2021-06-21 17:33:13 -07:00
|
|
|
pub use crate::chain::{
|
|
|
|
calculate_tree_state_v2, connect_lightwalletd, download_chain, get_latest_height, sync,
|
2021-06-29 00:04:12 -07:00
|
|
|
DecryptNode, ChainError
|
2021-06-21 17:33:13 -07:00
|
|
|
};
|
|
|
|
pub use crate::commitment::{CTree, Witness};
|
2021-06-26 02:52:03 -07:00
|
|
|
pub use crate::db::DbAdapter;
|
2021-06-18 01:17:41 -07:00
|
|
|
pub use crate::lw_rpc::compact_tx_streamer_client::CompactTxStreamerClient;
|
|
|
|
pub use crate::lw_rpc::*;
|
2021-06-26 02:52:03 -07:00
|
|
|
pub use crate::mempool::MemPool;
|
|
|
|
pub use crate::scan::{latest_height, scan_all, sync_async};
|
2021-06-29 00:04:12 -07:00
|
|
|
pub use crate::wallet::{Wallet, WalletBalance};
|
2021-06-28 21:49:00 -07:00
|
|
|
pub use crate::print::*;
|
2021-06-29 00:04:12 -07:00
|
|
|
pub use crate::key::is_valid_key;
|