mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-20 16:48:40 +02:00
implemented MoneroCheck, MoneroCheckTx, MoneroCheckReserve structs;
defined getTxKey(), checkTxKey(), getTxProof(), checkTxProof(), getSpendProof(), checkSpendProof(), getReserveProofWallet(), getReserveProofAccount(), checkReserveProof()
This commit is contained in:
@@ -408,4 +408,31 @@ namespace monero {
|
||||
if (unspentAmount != boost::none) node.put("unspentAmount", *unspentAmount);
|
||||
return node;
|
||||
}
|
||||
|
||||
// ----------------------------- MONERO CHECK -------------------------------
|
||||
|
||||
boost::property_tree::ptree MoneroCheck::toPropertyTree() const {
|
||||
boost::property_tree::ptree node;
|
||||
node.put("isGood", isGood);
|
||||
return node;
|
||||
}
|
||||
|
||||
// --------------------------- MONERO CHECK TX ------------------------------
|
||||
|
||||
boost::property_tree::ptree MoneroCheckTx::toPropertyTree() const {
|
||||
boost::property_tree::ptree node;
|
||||
node.put("inTxPool", inTxPool);
|
||||
node.put("numConfirmations", numConfirmations);
|
||||
node.put("receivedAmount", receivedAmount);
|
||||
return node;
|
||||
}
|
||||
|
||||
// ------------------------ MONERO CHECK RESERVE ----------------------------
|
||||
|
||||
boost::property_tree::ptree MoneroCheckReserve::toPropertyTree() const {
|
||||
boost::property_tree::ptree node;
|
||||
node.put("totalAmount", totalAmount);
|
||||
node.put("unconfirmedSpentAmount", unconfirmedSpentAmount);
|
||||
return node;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user