|
|
|
@ -57,7 +57,6 @@ class Transactions(object):
|
|
|
|
|
leg = inside["legs"][0]
|
|
|
|
|
|
|
|
|
|
account_type = leg["counterparty"]["account_type"]
|
|
|
|
|
account_id = leg["counterparty"]["account_id"]
|
|
|
|
|
|
|
|
|
|
amount = leg["amount"]
|
|
|
|
|
currency = leg["currency"]
|
|
|
|
@ -71,7 +70,6 @@ class Transactions(object):
|
|
|
|
|
"state": state,
|
|
|
|
|
"reference": reference,
|
|
|
|
|
"account_type": account_type,
|
|
|
|
|
"account_id": account_id,
|
|
|
|
|
"amount": amount,
|
|
|
|
|
"currency": currency,
|
|
|
|
|
"description": description,
|
|
|
|
@ -79,6 +77,9 @@ class Transactions(object):
|
|
|
|
|
|
|
|
|
|
self.log.info("Transaction processed: {formatted}", formatted=dumps(to_store, indent=2))
|
|
|
|
|
r.hmset(f"tx.{txid}", to_store)
|
|
|
|
|
self.irc.client.msg(
|
|
|
|
|
self.irc.client.channel, f"AUTO Incoming transaction: {amount}{currency} ({reference}) - {state} - {description}"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
def find_tx(self, reference, amount):
|
|
|
|
|
"""
|
|
|
|
|