ui: Display shared address for XMR swaps.

This commit is contained in:
tecnovert 2021-09-05 00:15:25 +02:00
parent d392193d7e
commit 2562aec4bd
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
4 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,3 @@
name = "basicswap"
__version__ = "0.0.20"
__version__ = "0.0.21"

View file

@ -60,6 +60,9 @@
<input type="hidden" name="formid" value="{{ form_id }}">
{% if data.show_txns %}
{% if data.xmr_b_shared_address %}
<p>Shared Address: {{ data.xmr_b_shared_address }}</p>
{% endif %}
<h4>Transactions</h4>
<table>
<tr><th>Tx Type</th><th>Tx ID</th><th>Blocks Deep</th></tr>

View file

@ -219,6 +219,8 @@ def describeBid(swap_client, bid, xmr_swap, offer, xmr_offer, bid_events, edit_b
continue
txns.append({'type': strTxType(tx_type), 'txid': tx.txid.hex()})
data['txns'] = txns
data['xmr_b_shared_address'] = ci_to.encodeSharedAddress(xmr_swap.pkbv, xmr_swap.pkbs) if xmr_swap.pkbs else None
else:
data['initiate_tx_refund'] = 'None' if not bid.initiate_txn_refund else bid.initiate_txn_refund.hex()
data['participate_tx_refund'] = 'None' if not bid.participate_txn_refund else bid.participate_txn_refund.hex()

View file

@ -1,3 +1,8 @@
0.0.21
==============
- Raised Particl and Monero daemon versions.
- Display shared address on bid page if show more info is enabled.
0.0.6
==============