pub mod bins;
pub mod chain;
pub mod cli;
pub mod collect_rewards_lib;
pub mod config;
pub mod error;
pub mod log;
pub mod subsquid;
pub mod wallet;
pub mod wormhole_lib;
pub use error::{QuantusError as Error, Result};
pub use chain::client::{ChainConfig, QuantusClient};
pub use qp_dilithium_crypto;
pub use sp_core::crypto::AccountId32;
pub use sp_runtime::MultiAddress;
pub use cli::send::{
batch_transfer, format_balance_with_symbol, get_balance, transfer, transfer_with_nonce,
};
pub use cli::multisig::{
approve_dissolve_multisig, approve_proposal, cancel_proposal, create_multisig,
get_multisig_info, get_proposal_info, list_proposals, parse_amount as parse_multisig_amount,
predict_multisig_address, propose_custom, propose_transfer, MultisigInfo, ProposalInfo,
ProposalStatus,
};
pub use wormhole_lib::{
compute_nullifier, compute_output_amount, compute_wormhole_address,
generate_proof as generate_wormhole_proof, quantize_amount, ProofGenerationInput,
ProofGenerationOutput, WormholeLibError, NATIVE_ASSET_ID, SCALE_DOWN_FACTOR, VOLUME_FEE_BPS,
};
pub use chain::quantus_subxt::api::wormhole::events::NativeTransferred;
pub use cli::wormhole::{
aggregate_proofs, at_best_block, compute_merkle_positions, decode_full_leaf_data,
get_zk_merkle_proof, parse_transfer_events, read_proof_file,
submit_unsigned_verify_aggregated_proof, verify_aggregated_and_get_events, write_proof_file,
IncludedAt, TransferInfo,
};
pub use collect_rewards_lib::{
collect_rewards, query_pending_transfers, query_pending_transfers_for_address,
CollectRewardsConfig, CollectRewardsError, CollectRewardsResult, NoOpProgress, PendingTransfer,
ProgressCallback, QueryPendingTransfersResult, WithdrawalBatch,
};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const NAME: &str = env!("CARGO_PKG_NAME");
pub fn version() -> &'static str {
VERSION
}
pub fn name() -> &'static str {
NAME
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_version() {
assert!(!version().is_empty());
}
#[test]
fn test_name() {
assert_eq!(name(), "quantus-cli");
}
}