This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcounterparty.html
68 lines (68 loc) · 3.06 KB
/
counterparty.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="view.css" type="text/css" rel="stylesheet"/>
<script src="src/secrets.js" type="application/javascript"> </script>
<script src="controller.js" type="application/javascript"> </script>
<script type="text/javascript" src="node_modules/renderjson/renderjson.js"></script>
<title>Marlowe Token Swap - Counterparty</title>
</head>
<body id="uiBody" onload="Controller.initialize(true)">
<div id="uiContainer">
<div id="uiPanelLeft">
<h2>0. Contract Definition</h2>
<table>
<thead>
<tr><th colspan="2">Party</th></tr>
</thead>
<tbody>
<tr><td><label for="uiAddressA">Address:</label></td><td style="width:100%"><input id="uiAddressA" type="text"/></td></tr>
<tr><td><label for="uiCurrencyA">Currency symbol:</label></td><td><input id="uiCurrencyA" type="text"/></td></tr>
<tr><td><label for="uiTokenA">Token name:</label></td><td><input id="uiTokenA" type="text"/></td></tr>
<tr><td><label for="uiAmountA">Amount:</label></td><td><input id="uiAmountA" type="text"/></td></tr>
</tbody>
<thead>
<tr><th colspan="2">Counterparty</th></tr>
</thead>
<tbody>
<tr><td><label for="uiAddressB">Address:</label></td><td><input id="uiAddressB" type="text"/></td></tr>
<tr><td><label for="uiKeyB">Signing key:</label></td><td><input id="uiKeyB" type="password"/></td></tr>
<tr><td><label for="uiCurrencyB">Currency symbol:</label></td><td><input id="uiCurrencyB" type="text"/></td></tr>
<tr><td><label for="uiTokenB">Token name:</label></td><td><input id="uiTokenB" type="text"/></td></tr>
<tr><td><label for="uiAmountB">Amount:</label></td><td><input id="uiAmountB" type="text"/></td></tr>
</tbody>
</table>
<hr/>
<h2>1. The Party Creates the Contract</h2>
<div>
<p>Contract ID: <span id="uiContractId" class="pre"/></p>
<p>Transaction ID: <span id="uiTxId1" class="pre"/></p>
</div>
<hr/>
<h2>2. The Party Deposits Their Tokens</h2>
<div>
<p>Transaction ID: <span id="uiTxId2" class="pre"/></p>
</div>
<hr/>
<h2>3. The Counterparty Deposits Their Tokens</h2>
<div>
<button id="uiCounterpartyDeposit" type="button" onclick="Controller.counterpartyDeposit(true)">deposit tokens</button>
<p>Transaction ID: <span id="uiTxId3" class="pre"/></p>
</div>
<hr/>
<div>
<button id="uiReset" type="button" onclick="Controller.reset(true)">reset</button>
</div>
</div>
<div id="uiPanelRight">
<h1>Learning Marlowe: A Token-Swap Contract</h1>
<h2>The Counterparty’s View</h2>
<p>Network: <span id="uiNetwork"></span></p>
<hr/>
<h2>History</h2>
<div id="uiOutput"/>
</div>
</div>
</body>
</html>