NAC_Blockchain/_archive/wallet_legacy_v1/nac-vision-wallet/src/transaction.rs

22 lines
468 B
Rust

//! 交易管理模块
use crate::error::Result;
use crate::types::{Address, TxHash};
use tracing::info;
/// 交易管理器
pub struct TransactionManager;
impl TransactionManager {
pub fn new() -> Result<Self> {
info!("Creating TransactionManager");
Ok(Self)
}
/// 发送XTZH
pub fn send_xtzh(&self, _from: &Address, _to: &Address, _amount: u128) -> Result<TxHash> {
// TODO: 实现XTZH转账
Ok([0u8; 32])
}
}