Overview
pub async fn anchor_transfer(&self, _transfer_hash: &str, _memo: &str) -> Result<()> {
Ok(())
}
Both parameters are prefixed with underscore because they're unused, and the function does nothing but return success. record_transfer() in lib.rs calls this and, on its Ok(()) result, proceeds to persist a TransferRecord as if the transfer had actually been anchored on Stellar. Right now every call to POST /transfer fabricates an anchored record without ever submitting anything to the Stellar network.
File
contract/src/stellar.rs (anchor_transfer)
Acceptance Criteria
Overview
Both parameters are prefixed with underscore because they're unused, and the function does nothing but return success.
record_transfer()inlib.rscalls this and, on itsOk(())result, proceeds to persist aTransferRecordas if the transfer had actually been anchored on Stellar. Right now every call toPOST /transferfabricates an anchored record without ever submitting anything to the Stellar network.File
contract/src/stellar.rs(anchor_transfer)Acceptance Criteria
anchor_transferto actually submit a Stellar transaction (amanageDataor payment-with-memo operation carrying thetransfer_hash/memo), following the same signing pattern the NestJSStellarService.anchorHashusesconfig.stellar_secret_key(already parsed/validated inconfig.rs) intoStellarClient's constructionrecord_transfer's existing error-handling path (which already logs and returns 500) actually triggers on genuine failuresanchor_transfersubmits a transaction (mocked Horizon) rather than trivially returningOk