add balances to show_transactions mgmt command

pull/3/head
lalanza808 5 years ago
parent 5d0118c4e2
commit 117983a266

@ -22,6 +22,8 @@ class Command(BaseCommand):
msg['balances'].append({
"index": index,
"address": str(account.address()),
"locked_balance": float(account.balances()[0]),
"unlocked_balance": float(account.balances()[1]),
"outgoing": [str(i) for i in account.outgoing()],
"incoming": [str(i) for i in account.incoming()],
})
@ -32,6 +34,8 @@ class Command(BaseCommand):
msg['balances'].append({
"sale_id": sale.id,
"address": str(w.address()),
"locked_balance": float(w.balances()[0]),
"unlocked_balance": float(w.balances()[1]),
"outgoing": [str(i) for i in w.outgoing()],
"incoming": [str(i) for i in w.incoming()],
})