2025-10-17 16:16:11 -03:00
|
|
|
use common::{error::ExecutionFailureKind, sequencer_client::json::SendTxResponse};
|
2025-10-21 10:32:42 +03:00
|
|
|
use nssa::Address;
|
2025-09-22 16:38:25 +03:00
|
|
|
|
2025-10-21 10:32:42 +03:00
|
|
|
use crate::WalletCore;
|
2025-09-22 16:38:25 +03:00
|
|
|
|
|
|
|
|
impl WalletCore {
|
|
|
|
|
pub async fn send_deshielded_native_token_transfer(
|
|
|
|
|
&self,
|
|
|
|
|
from: Address,
|
|
|
|
|
to: Address,
|
|
|
|
|
balance_to_move: u128,
|
2025-10-21 10:32:42 +03:00
|
|
|
) -> Result<(SendTxResponse, [nssa_core::SharedSecretKey; 1]), ExecutionFailureKind> {
|
|
|
|
|
let (instruction_data, program, tx_pre_check) =
|
|
|
|
|
WalletCore::auth_transfer_preparation(balance_to_move);
|
2025-09-22 16:38:25 +03:00
|
|
|
|
2025-10-21 10:32:42 +03:00
|
|
|
self.deshielded_tx_two_accs(from, to, instruction_data, tx_pre_check, program)
|
|
|
|
|
.await
|
2025-09-22 16:38:25 +03:00
|
|
|
}
|
|
|
|
|
}
|