refactor: enhance transaction logging for premium, stars, and TON topup methods

This commit is contained in:
bohd4nx
2026-03-08 04:37:07 +02:00
parent 38a4619e42
commit c3de8a8ca3
6 changed files with 11 additions and 16 deletions
+3
View File
@@ -118,6 +118,9 @@ async def buy_premium(username: str, months: int) -> dict:
logger.info("Broadcasting transaction to TON blockchain")
tx_hash = await process_transaction(transaction)
logger.info(
"Premium purchase successful: %s months -> %s | tx: %s", months, username, tx_hash
)
return {
"success": True,
"data": {
+1
View File
@@ -107,6 +107,7 @@ async def buy_stars(username: str, amount: int) -> dict:
logger.info("Broadcasting transaction to TON blockchain")
tx_hash = await process_transaction(transaction)
logger.info("Stars purchase successful: %s stars -> %s | tx: %s", amount, username, tx_hash)
return {
"success": True,
"data": {
+1
View File
@@ -105,6 +105,7 @@ async def topup_ton(username: str, amount: int) -> dict:
logger.info("Broadcasting transaction to TON blockchain")
tx_hash = await process_transaction(transaction)
logger.info("TON topup successful: %s TON -> %s | tx: %s", amount, username, tx_hash)
return {
"success": True,
"data": {