zcash-sync/src/lib.rs

46 lines
1.3 KiB
Rust
Raw Normal View History

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-07-07 08:38:22 -07:00
pub const NETWORK: Network = Network::MainNetwork;
2021-06-29 00:04:12 -07:00
// Mainnet
2021-07-09 22:44:13 -07:00
// pub const LWD_URL: &str = "https://mainnet.lightwalletd.com:9067";
2021-06-29 00:04:12 -07:00
// pub const LWD_URL: &str = "https://lwdv3.zecwallet.co";
2021-07-09 22:44:13 -07:00
pub const LWD_URL: &str = "http://lwd.hanh.me:9067";
2021-06-29 00:04:12 -07:00
// Testnet
2021-07-07 08:38:22 -07:00
// pub const LWD_URL: &str = "https://testnet.lightwalletd.com:9067";
2021-06-29 00:04:12 -07:00
// 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-07-11 08:42:52 -07:00
mod hash;
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;
2021-07-09 06:33:05 -07:00
mod taddr;
2021-07-09 22:44:13 -07:00
mod transaction;
2021-06-26 02:52:03 -07:00
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;
2021-07-11 08:42:52 -07:00
pub use crate::hash::pedersen_hash;