Skip to main content

Crate veiron_sdk_rust

Crate veiron_sdk_rust 

Source
Expand description

§veiron-sdk-rust

Standalone Rust client SDK for Veiron Network Mainnet Candidate (prototype — not Mainnet Live).

Protocol primitives (address, amount, keys, transactions) are vendored inside this crate — there is no dependency on veiron-core.

Coexists with the public TypeScript package @veiron/sdk at monorepo path veiron-sdk/.

§Essential surface

§Non-goals

pool admin mutations, contracts, browser store extension.

Re-exports§

pub use config::NetworkConfig;
pub use config::DEFAULT_LOCAL_MAINNET_CANDIDATE_RPC;
pub use config::DEFAULT_MAINNET_CANDIDATE_POOL;
pub use config::DEFAULT_MAINNET_CANDIDATE_RPC;
pub use error::Result;
pub use error::SdkError;
pub use maturity::pool_block_maturity;
pub use maturity::MaturityProgress;
pub use maturity::MaturityStatus;
pub use maturity::DEFAULT_BLOCK_MATURITY_CONFIRMATIONS;
pub use tx::SignedTransfer;
pub use tx::TransferBuilder;
pub use wallet::GeneratedMnemonic;
pub use wallet::WalletAccount;
pub use rpc::AddressAccountResponse;native
pub use rpc::AddressBalanceResponse;native
pub use rpc::AtomicValue;native
pub use rpc::BlockResponse;native
pub use rpc::ChainHeightResponse;native
pub use rpc::ChainTipResponse;native
pub use rpc::HealthResponse;native
pub use rpc::IndexSummary;native
pub use rpc::IndexedAddressResponse;native
pub use rpc::IndexedBlockResponse;native
pub use rpc::IndexedTransactionResponse;native
pub use rpc::IndexerStatusResponse;native
pub use rpc::IndexerSummaryResponse;native
pub use rpc::MempoolStatusResponse;native
pub use rpc::NetworkResponse;native
pub use rpc::P2pStatusResponse;native
pub use rpc::PoolBlock;native
pub use rpc::PoolBlockWithMaturity;native
pub use rpc::PoolHistoryResponse;native
pub use rpc::PoolStatusResponse;native
pub use rpc::PoolWorker;native
pub use rpc::RpcClient;native
pub use rpc::StatusResponse;native
pub use rpc::SubmitTransactionResponse;native
pub use rpc::SupplyResponse;native
pub use rpc::SupplySummary;native
pub use rpc::SyncStatusResponse;native
pub use rpc::TransactionResponse;native
pub use protocol::generate_mnemonic;
pub use protocol::hash_to_hex;
pub use protocol::Address;
pub use protocol::Amount;
pub use protocol::MnemonicWordCount;
pub use protocol::Network;
pub use protocol::PrivateKey;
pub use protocol::PublicKey;
pub use protocol::Signature;
pub use protocol::Transaction;
pub use protocol::UnsignedTransaction;
pub use protocol::VeironError;
pub use protocol::WalletDerivationPath;
pub use protocol::ATOMIC_UNITS_PER_VIRE;
pub use protocol::BLOCK_TIME_SECONDS;
pub use protocol::CURRENT_STATUS;
pub use protocol::DECIMALS;
pub use protocol::INITIAL_BASE_FEE_ATOMIC;
pub use protocol::INITIAL_BLOCK_REWARD_ATOMIC;
pub use protocol::MAX_SUPPLY_ATOMIC;
pub use protocol::TICKER;

Modules§

config
error
maturity
Pool block maturity helpers.
protocol
Self-contained protocol primitives for the SDK (no veiron-core dependency).
rpcnative
RPC + public pool client surface for Veiron Mainnet Candidate.
tx
wallet