doc, ui: Add sequence diagrams
This commit is contained in:
12 files changed
+315
-3
No files matched your search
@@ -2865,14 +2865,14 @@ class BasicSwap(BaseApp):
|
||||
|
||||
if TxTypes.XMR_SWAP_A_LOCK_REFUND_SPEND not in bid.txns:
|
||||
try:
|
||||
txid = ci_from.publishTx(xmr_swap.a_lock_refund_spend_tx)
|
||||
txid_str = ci_from.publishTx(xmr_swap.a_lock_refund_spend_tx)
|
||||
self.logBidEvent(bid.bid_id, EventLogTypes.LOCK_TX_A_REFUND_SPEND_TX_PUBLISHED, '', session)
|
||||
|
||||
self.log.info('Submitted coin a lock refund spend tx for bid {}, txid {}'.format(bid_id.hex(), txid.hex()))
|
||||
self.log.info('Submitted coin a lock refund spend tx for bid {}, txid {}'.format(bid_id.hex(), txid_str))
|
||||
bid.txns[TxTypes.XMR_SWAP_A_LOCK_REFUND_SPEND] = SwapTx(
|
||||
bid_id=bid_id,
|
||||
tx_type=TxTypes.XMR_SWAP_A_LOCK_REFUND_SPEND,
|
||||
txid=bytes.fromhex(txid),
|
||||
txid=bytes.fromhex(txid_str),
|
||||
)
|
||||
self.saveBidInSession(bid_id, bid, session, xmr_swap)
|
||||
session.commit()
|
||||
|
||||
@@ -639,6 +639,8 @@ class HttpHandler(BaseHTTPRequestHandler):
|
||||
|
||||
messages = []
|
||||
show_txns = False
|
||||
show_offerer_seq_diagram = False
|
||||
show_bidder_seq_diagram = False
|
||||
show_lock_transfers = False
|
||||
edit_bid = False
|
||||
view_tx_ind = None
|
||||
@@ -658,6 +660,10 @@ class HttpHandler(BaseHTTPRequestHandler):
|
||||
messages.append('Accept failed ' + str(ex))
|
||||
elif b'show_txns' in form_data:
|
||||
show_txns = True
|
||||
elif b'show_offerer_seq_diagram' in form_data:
|
||||
show_offerer_seq_diagram = True
|
||||
elif b'show_bidder_seq_diagram' in form_data:
|
||||
show_bidder_seq_diagram = True
|
||||
elif b'edit_bid' in form_data:
|
||||
edit_bid = True
|
||||
elif b'edit_bid_submit' in form_data:
|
||||
@@ -686,6 +692,9 @@ class HttpHandler(BaseHTTPRequestHandler):
|
||||
if bid.debug_ind is not None and bid.debug_ind > 0:
|
||||
messages.append('Debug flag set: {}, {}'.format(bid.debug_ind, DebugTypes(bid.debug_ind).name))
|
||||
|
||||
data['show_bidder_seq_diagram'] = show_bidder_seq_diagram
|
||||
data['show_offerer_seq_diagram'] = show_offerer_seq_diagram
|
||||
|
||||
old_states = []
|
||||
num_states = len(bid.states) // 12
|
||||
for i in range(num_states):
|
||||
@@ -988,6 +997,10 @@ class HttpHandler(BaseHTTPRequestHandler):
|
||||
self.putHeaders(status_code, 'text/css')
|
||||
with open(os.path.join(static_path, 'style.css'), 'rb') as fp:
|
||||
return fp.read()
|
||||
elif len(url_split) > 3 and url_split[2] == 'sequence_diagrams':
|
||||
self.putHeaders(status_code, 'image/svg+xml')
|
||||
with open(os.path.join(static_path, 'sequence_diagrams', url_split[3]), 'rb') as fp:
|
||||
return fp.read()
|
||||
else:
|
||||
self.putHeaders(status_code, 'text/html')
|
||||
return self.page_404(url_split)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1168" height="1355.3" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2"><defs><marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/></marker><style>.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}</style></defs><g id="mscgenjsreplaceme_body" transform="translate(44 3)"><path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-44-3h1168v1355.3H-44z" id="mscgenjsreplaceme_background"/><path class="box inline_expression alt" d="M-36 859.12h960v471.18H-36z" id="mscgenjsreplaceme_arcspans"/><g id="mscgenjsreplaceme_lifelines"><path class="arcrow" style="stroke:transparent" d="M60 38v38"/><path class="arcrow" style="stroke:#080" d="M252 38v38"/><path class="arcrow" style="stroke:red" d="M444 38v38"/><path class="arcrow" style="stroke:#00f" d="M636 38v38"/><path class="arcrow" style="stroke:transparent" d="M828 38v38M1020 38v38M60 76v38"/><path class="arcrow" style="stroke:#080" d="M252 76v38"/><path class="arcrow" style="stroke:red" d="M444 76v38"/><path class="arcrow" style="stroke:#00f" d="M636 76v38"/><path class="arcrow" style="stroke:transparent" d="M828 76v38M1020 76v38M60 114v38"/><path class="arcrow" style="stroke:#080" d="M252 114v38"/><path class="arcrow" style="stroke:red" d="M444 114v38"/><path class="arcrow" style="stroke:#00f" d="M636 114v38"/><path class="arcrow" style="stroke:transparent" d="M828 114v38M1020 114v38M60 152v38"/><path class="arcrow" style="stroke:#080" d="M252 152v38"/><path class="arcrow" style="stroke:red" d="M444 152v38"/><path class="arcrow" style="stroke:#00f" d="M636 152v38"/><path class="arcrow" style="stroke:transparent" d="M828 152v38M1020 152v38M60 190v38"/><path class="aLine truncated
|
||||
|
After Width: | Height: | Size: 23 KiB |
@@ -0,0 +1 @@
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1176" height="1745.42" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2"><defs><marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/></marker><style>.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme .inline_expression_divider{stroke-dasharray:10,5}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}</style></defs><g id="mscgenjsreplaceme_body" transform="translate(48 3)"><path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-48-3h1176v1745.42H-48z" id="mscgenjsreplaceme_background"/><g id="mscgenjsreplaceme_arcspans"><path class="box inline_expression alt" d="M-38 610.06h964v1110.36H-38z"/><path class="box inline_expression alt" d="M-34 1011.12h956v433.18H-34z"/></g><g id="mscgenjsreplaceme_lifelines"><path class="arcrow" style="stroke:transparent" d="M60 38v38"/><path class="arcrow" style="stroke:#080" d="M252 38v38"/><path class="arcrow" style="stroke:red" d="M444 38v38"/><path class="arcrow" style="stroke:#00f" d="M636 38v38"/><path class="arcrow" style="stroke:transparent" d="M828 38v38M1020 38v38M60 76v38"/><path class="arcrow" style="stroke:#080" d="M252 76v38"/><path class="arcrow" style="stroke:red" d="M444 76v38"/><path class="arcrow" style="stroke:#00f" d="M636 76v38"/><path class="arcrow" style="stroke:transparent" d="M828 76v38M1020 76v38M60 114v38"/><path class="arcrow" style="stroke:#080" d="M252 114v38"/><path class="arcrow" style="stroke:red" d="M444 114v38"/><path class="arcrow" style="stroke:#00f" d="M636 114v38"/><path class="arcrow" style="stroke:transparent" d="M828 114v38M1020 114v38M60 152v38"/><path class="arcrow" style="stroke:#080" d="M252 152v38"/><path class="arcrow" style="stroke:red" d="M444 152v38"/><path cLine truncated
|
||||
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1 @@
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1272" height="1987.3" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2"><defs><marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/></marker><style>.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme .inline_expression_divider{stroke-dasharray:10,5}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}</style></defs><g id="mscgenjsreplaceme_body" transform="translate(51 3)"><path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-51-3h1272v1987.3H-51z" id="mscgenjsreplaceme_background"/><g id="mscgenjsreplaceme_arcspans"><path class="box inline_expression alt" d="M-41 642.06h1044V1962.3H-41z"/><path class="box inline_expression alt" d="M-37 1334.18H999v590.12H-37z"/></g><g id="mscgenjsreplaceme_lifelines"><path class="arcrow" style="stroke:transparent" d="M65 38v38"/><path class="arcrow" style="stroke:#080" d="M273 38v38"/><path class="arcrow" style="stroke:red" d="M481 38v38"/><path class="arcrow" style="stroke:#00f" d="M689 38v38"/><path class="arcrow" style="stroke:transparent" d="M897 38v38M1105 38v38M65 76v38"/><path class="arcrow" style="stroke:#080" d="M273 76v38"/><path class="arcrow" style="stroke:red" d="M481 76v38"/><path class="arcrow" style="stroke:#00f" d="M689 76v38"/><path class="arcrow" style="stroke:transparent" d="M897 76v38M1105 76v38M65 114v38"/><path class="arcrow" style="stroke:#080" d="M273 114v38"/><path class="arcrow" style="stroke:red" d="M481 114v38"/><path class="arcrow" style="stroke:#00f" d="M689 114v38"/><path class="arcrow" style="stroke:transparent" d="M897 114v38M1105 114v38M65 152v38"/><path class="arcrow" style="stroke:#080" d="M273 152v38"/><path class="arcrow" style="stroke:red" d="M481 152v38"/><path claLine truncated
|
||||
|
After Width: | Height: | Size: 33 KiB |
@@ -0,0 +1 @@
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1264" height="1819.3" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2"><defs><marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/></marker><style>.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}</style></defs><g id="mscgenjsreplaceme_body" transform="translate(47 3)"><path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-47-3h1264v1819.3H-47z" id="mscgenjsreplaceme_background"/><path class="box inline_expression alt" d="M-39 664.06h1040V1794.3H-39z" id="mscgenjsreplaceme_arcspans"/><g id="mscgenjsreplaceme_lifelines"><path class="arcrow" style="stroke:transparent" d="M65 38v38"/><path class="arcrow" style="stroke:#080" d="M273 38v38"/><path class="arcrow" style="stroke:red" d="M481 38v38"/><path class="arcrow" style="stroke:#00f" d="M689 38v38"/><path class="arcrow" style="stroke:transparent" d="M897 38v38M1105 38v38M65 76v38"/><path class="arcrow" style="stroke:#080" d="M273 76v38"/><path class="arcrow" style="stroke:red" d="M481 76v38"/><path class="arcrow" style="stroke:#00f" d="M689 76v38"/><path class="arcrow" style="stroke:transparent" d="M897 76v38M1105 76v38M65 114v38"/><path class="arcrow" style="stroke:#080" d="M273 114v38"/><path class="arcrow" style="stroke:red" d="M481 114v38"/><path class="arcrow" style="stroke:#00f" d="M689 114v38"/><path class="arcrow" style="stroke:transparent" d="M897 114v38M1105 114v38M65 152v38"/><path class="arcrow" style="stroke:#080" d="M273 152v38"/><path class="arcrow" style="stroke:red" d="M481 152v38"/><path class="arcrow" style="stroke:#00f" d="M689 152v38"/><path class="arcrow" style="stroke:transparent" d="M897 152v38M1105 152v38M65 190v38"/><path class="Line truncated
|
||||
|
After Width: | Height: | Size: 30 KiB |
@@ -77,9 +77,29 @@
|
||||
{% 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 }}">
|
||||
</form>
|
||||
|
||||
{% if data.show_bidder_seq_diagram %}
|
||||
<img src="/static/sequence_diagrams/bidder.alt.xu.min.svg" />
|
||||
{% endif %}
|
||||
|
||||
{% if data.show_offerer_seq_diagram %}
|
||||
<img src="/static/sequence_diagrams/offerer.alt.xu.min.svg" />
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
<h4>Old States</h4>
|
||||
<table>
|
||||
|
||||
@@ -74,6 +74,17 @@
|
||||
{% 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 %}
|
||||
@@ -119,6 +130,14 @@
|
||||
{% 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>
|
||||
|
||||
Reference in new issue
Block a user