Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
181 lines
6.3 KiB
181 lines
6.3 KiB
{% include 'header.html' %} |
|
|
|
<h3>Bid {{ bid_id }}</h3> |
|
{% if refresh %} |
|
<p><a href=/bid/{{ bid_id }}>Page Refresh: {{ refresh }} second</a></p> |
|
{% else %} |
|
<p><a href=/bid/{{ bid_id }}>refresh</a></p> |
|
{% endif %} |
|
|
|
{% for m in messages %} |
|
<p>{{ m }}</p> |
|
{% endfor %} |
|
{% for m in err_messages %} |
|
<p class="error_msg">Error: {{ m }}</p> |
|
{% endfor %} |
|
|
|
<table> |
|
{% if data.was_sent == 'True' %} |
|
<tr><td>Swap</td><td>{{ data.amt_to }} {{ data.ticker_to }} for {{ data.amt_from }} {{ data.ticker_from }}</td></tr> |
|
{% else %} |
|
<tr><td>Swap</td><td>{{ data.amt_from }} {{ data.ticker_from }} for {{ data.amt_to }} {{ data.ticker_to }}</td></tr> |
|
{% endif %} |
|
<tr><td>Bid Rate</td><td>{{ data.bid_rate }}</td></tr> |
|
<tr><td>Coin From</td><td>{{ data.coin_from }}</td></tr> |
|
<tr><td>Coin To</td><td>{{ data.coin_to }}</td></tr> |
|
<tr><td>Bid State</td><td>{{ data.bid_state }}</td></tr> |
|
<tr><td>State Description </td><td>{{ data.state_description }}</td></tr> |
|
<tr><td>Offer</td><td><a class="monospace" href="/offer/{{ data.offer_id }}">{{ data.offer_id }}</a></td></tr> |
|
<tr><td>Address From</td><td><a class="monospace" href="/identity/{{ data.addr_from }}">{{ data.addr_from }}</a> {{ data.addr_from_label }}</td></tr> |
|
<tr><td>Created At</td><td>{{ data.created_at }}</td></tr> |
|
<tr><td>Expired At</td><td>{{ data.expired_at }}</td></tr> |
|
<tr><td>Sent</td><td>{{ data.was_sent }}</td></tr> |
|
<tr><td>Received</td><td>{{ data.was_received }}</td></tr> |
|
{% if data.coin_a_lock_refund_tx_est_final != 'None' %} |
|
<tr><td>{{ data.ticker_from }} lock refund tx valid at</td><td>{{ data.coin_a_lock_refund_tx_est_final | formatts }}</td></tr> |
|
{% if data.coin_a_lock_refund_swipe_tx_est_final != 'None' %} |
|
<tr><td>{{ data.ticker_from }} lock refund tx swipeable at</td><td>{{ data.coin_a_lock_refund_swipe_tx_est_final | formatts }}</td></tr> |
|
{% endif %} |
|
<tr><td>{{ data.ticker_from }} chain median time</td><td>{{ data.coin_a_last_median_time | formatts }}</td></tr> |
|
{% endif %} |
|
|
|
</table> |
|
|
|
<form method="post"> |
|
{% if edit_bid %} |
|
<h4>Edit Bid</h4> |
|
<table> |
|
<tr><td>Change Bid State</td><td> |
|
<select name="new_state"> |
|
{% for s in data.bid_states %} |
|
<option value="{{ s[0] }}"{% if data.bid_state_ind==s[0] %} selected{% endif %}>{{ s[1] }}</option> |
|
{% endfor %} |
|
</select></td></tr> |
|
{% if data.debug_ui == true %} |
|
<tr><td>Debug Option</td><td><select name="debugind"> |
|
<option{% if data.debug_ind=="-1" %} selected{% endif %} value="-1">-- None --</option> |
|
{% for a in data.debug_options %} |
|
<option{% if data.debug_ind==a[0] %} selected{% endif %} value="{{ a[0] }}">{{ a[1] }}</option> |
|
{% endfor %} |
|
</select></td></tr> |
|
<tr><td>Sweep No-Script TX</td><td><input type="text" id="kbs_other" name="kbs_other"></td></tr> |
|
{% endif %} |
|
</table> |
|
<input name="edit_bid_cancel" type="submit" value="Cancel"> |
|
<input name="edit_bid_submit" type="submit" value="Submit"> |
|
{% else %} |
|
{% if data.was_received == 'True' %} |
|
<input name="accept_bid" type="submit" value="Accept Bid" onclick='return confirmPopup("Accept");'><br/> |
|
{% endif %} |
|
{% if data.can_abandon == true %} |
|
<input name="abandon_bid" type="submit" value="Abandon Bid" onclick='return confirmPopup("Abandon");'> |
|
{% endif %} |
|
{% if data.show_txns %} |
|
<input name="hide_txns" type="submit" value="Hide Info"> |
|
{% else %} |
|
<input name="show_txns" type="submit" value="Show More Info"> |
|
{% endif %} |
|
<input name="edit_bid" type="submit" value="Edit Bid"> |
|
{% endif %} |
|
<br/> |
|
{% if data.show_bidder_seq_diagram %} |
|
<input name="hide_bidder_seq_diagram" type="submit" value="Hide Bidder Sequence Diagram"> |
|
{% else %} |
|
<input name="show_bidder_seq_diagram" type="submit" value="Show Bidder Sequence Diagram"> |
|
{% endif %} |
|
{% if data.show_offerer_seq_diagram %} |
|
<input name="hide_offerer_seq_diagram" type="submit" value="Hide Offerer Sequence Diagram"> |
|
{% else %} |
|
<input name="show_offerer_seq_diagram" type="submit" value="Show Offerer Sequence Diagram"> |
|
{% endif %} |
|
<input type="hidden" name="formid" value="{{ form_id }}"> |
|
|
|
{% if data.show_txns %} |
|
{% if data.xmr_b_shared_address %} |
|
<p class="monospace">Shared Address: {{ data.xmr_b_shared_address }}</p> |
|
{% endif %} |
|
{% if data.xmr_b_half_privatekey %} |
|
<p class="monospace">Key Half: {{ data.xmr_b_half_privatekey }}</p> |
|
{% endif %} |
|
<h4>Transactions</h4> |
|
<table> |
|
<tr><th>Tx Type</th><th>Tx ID</th><th>Blocks Deep</th></tr> |
|
{% for tx in data.txns %} |
|
<tr><td>{{ tx.type }}</td><td class="monospace">{{ tx.txid }}</td><td>{{ tx.confirms }}</td></tr> |
|
{% endfor %} |
|
</table> |
|
<table> |
|
<tr><td>View Transaction</td><td> |
|
<select name="view_tx"> |
|
{% if data.txns|length %} |
|
{% for tx in data.txns %} |
|
<option value="{{ tx.txid }}"{% if data.view_tx_ind==tx.txid %} selected{% endif %}>{{ tx.type }} {{ tx.txid }}</option> |
|
{% endfor %} |
|
{% else %} |
|
<option value="0">--- None exist yet ---</option> |
|
{% endif %} |
|
</select></td></tr> |
|
</table> |
|
<input name="view_tx_submit" type="submit" value="View Tx"> |
|
<input name="view_lock_transfers" type="submit" value="View Lock Wallet Transfers"> |
|
|
|
{% if data.view_tx_hex %} |
|
<p>{{ data.view_tx_hex }}</p> |
|
<textarea class="monospace" id="tx_view" rows="10" cols="150" readonly> |
|
{{ data.view_tx_desc }} |
|
</textarea> |
|
{% endif %} |
|
|
|
{% if data.lock_transfers %} |
|
<p> |
|
<label for="transfers_view">Lock wallet transfers:</label><br/> |
|
<textarea class="monospace" id="transfers_view" rows="10" cols="150" readonly> |
|
{{ data.lock_transfers }} |
|
</textarea> |
|
</p> |
|
{% endif %} |
|
{% endif %} |
|
</form> |
|
|
|
{% if data.show_bidder_seq_diagram %} |
|
<img src="/static/sequence_diagrams/xmr.bidder.alt.xu.min.svg" /> |
|
{% endif %} |
|
|
|
{% if data.show_offerer_seq_diagram %} |
|
<img src="/static/sequence_diagrams/xmr.offerer.alt.xu.min.svg" /> |
|
{% endif %} |
|
|
|
{% if data.chain_a_lock_tx_inputs %} |
|
<h5>Chain A Lock TX Inputs:</h5> |
|
<table> |
|
<tr><th>txid</th><th>vout</th><th>locked</th></tr> |
|
{% for txi in data.chain_a_lock_tx_inputs %} |
|
<tr><td>{{ txi.txid }}</td><td>{{ txi.vout }}</td><td>{% if txi.islocked %} true {% else %} false {% endif %}</td></tr> |
|
{% endfor %} |
|
</table> |
|
{% endif %} |
|
|
|
|
|
<h4>Old States</h4> |
|
<table> |
|
<tr><th>State</th><th>Set At</th></tr> |
|
{% for s in old_states %} |
|
<tr><td>{{ s[1] }}</td><td>{{ s[0] | formatts }}</td></tr> |
|
{% endfor %} |
|
</table> |
|
|
|
<h4>Events</h4> |
|
<table> |
|
<tr><th>At</th><th>Event</th></tr> |
|
{% for e in data.events %} |
|
<tr><td>{{ e.at | formatts }}</td><td>{{ e.desc }}</td></tr> |
|
{% endfor %} |
|
</table> |
|
|
|
<p><a href="/">home</a></p> |
|
<script> |
|
function confirmPopup(name) { |
|
return confirm(name + " Bid - Are you sure?"); |
|
} |
|
</script> |
|
</body></html>
|
|
|