forked from gitter-badger/etheropt.github.io
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtestnet.html
236 lines (219 loc) · 12 KB
/
testnet.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.ico">
<link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link href="http://getbootstrap.com/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<title>Etheropt TESTNET</title>
</head>
<body>
<div id="header">
<img src="title.svg" /> TESTNET
</div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div id="funds"></div>
<div id="addresses"></div>
</div>
</nav>
<div id="content">
<div id="splash-container">
<div class="panel panel-default">
<button type="button" class="close clickable pad" data-effect="fadeOut" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="panel-body">
<p>Etheropt is a decentralized options exchange built on <a href="https://ethereum.org/" target="_blank">Ethereum</a>. The options are vanilla call and put options on the price of Ethereum in USD as reported by <a href="https://poloniex.com/exchange#btc_eth" target="_blank">Poloniex</a> and <a href="http://www.coindesk.com/price/" target="_blank">Coindesk</a> and verified by <a href="https://www.realitykeys.com/" target="_blank">Reality Keys</a>. Etheropt has no owner. Its entire operation is described and executed by an Ethereum <a href="https://github.com/etheropt/etheropt.github.io/blob/master/etheropt.sol" target="_blank">smart contract</a>. Etheropt does not make any money as the smart contract does not charge any fees — not for trading, not for adding funds, not for withdrawing, not for anything.</p>
</div>
</div>
<div class="panel panel-default">
<button type="button" class="close clickable pad" data-effect="fadeOut" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="panel-heading">
<h3 class="panel-title">How to get started</h3>
</div>
<div class="panel-body">
<ol>
<li>Click the account dropdown in the upper right of the top bar and choose "Create new account." You now have a new Ethereum account to use with Etheropt. Click the account dropdown and choose "Export private key." Write your private key down somewhere safe.</li>
<li>Send Ether to the newly created address. If you don't have Ether, click the account dropdown and choose "Deposit with ShapeShift.io." This will let you convert Bitcoin or any other cryptocurrency into Ether and have it deposited into your new account.</li>
<li>Click on the "Funds" on the top bar. This will let you deposit Ether from your Ethereum account into the Etheropt smart contract. You will have to wait an average of 15 seconds for the funds to appear. Click "Refresh" to check for your new funds.</li>
<li>Now you are ready to place an order. Choose an option and click "Buy" or "Sell."</li>
<li>For more information about how Etheropt works, please refer to the <a href="https://github.com/etheropt/etheropt.github.io/blob/master/README.md" target="_blank">manual</a>. Need help? Come <a href="https://gitter.im/etheropt/etheropt.github.io" target="_blank">chat</a>.</li>
</ol>
</div>
</div>
</div>
<div class="panel panel-default" id="log-container">
<div class="panel-heading">
<h3 class="panel-title">Transaction log</h3>
</div>
<div class="panel-body">
<div id="log"></div>
</div>
</div>
<div id="market-spinner"><i class="fa fa-circle-o-notch fa-spin fa-3x"></i></div>
<div id="market">
</div>
</div>
<div id="footer">
<p><img src="http://etheropt.github.io/logo.svg" style="height: 1em;" /> <a href="http://etheropt.github.io" target="_blank">Etheropt</a> is open source on <a href="https://github.com/etheropt/etheropt.github.io" target="_blank">GitHub</a>. Read the <a href="https://github.com/etheropt/etheropt.github.io/blob/master/README.md" target="_blank">manual</a>.</p>
<p><img src="http://etherboost.github.io/images/logo.svg" style="height: 1em;" /> Produced by <a href="http://etherboost.github.io" target="_blank">Etherboost</a>. Come <a href="https://gitter.im/etheropt/etheropt.github.io" target="_blank">chat on Gitter</a>.</p>
<div id="connection"></div>
</div>
<!-- Address -->
<div class="modal fade" id="address_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Add account</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="address_addr">Address</label>
<input type="text" class="form-control" id="address_addr" placeholder="Address (0x.....)" />
</div>
<div id="pk_div">
<div class="form-group">
<label for="address_addr">Private key</label>
<input type="text" class="form-control" id="address_pk" placeholder="Private key (0x.....)" />
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="address_submit">Add account</button>
</div>
</div>
</div>
</div>
<!-- Fund -->
<div class="modal fade" id="fund_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Add funds</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<input type="text" class="form-control" id="fund_amount" placeholder="Amount (eth)" />
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="fund_submit">Add funds</button>
</div>
</div>
</div>
</div>
<!-- Withdraw -->
<div class="modal fade" id="withdraw_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Withdraw funds</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<input type="text" class="form-control" id="withdraw_amount" placeholder="Amount (eth)" />
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="withdraw_submit">Withdraw funds</button>
</div>
</div>
</div>
</div>
<!-- Buy -->
<div class="modal fade" id="buy_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Buy</h4>
</div>
<div class="modal-body">
<form>
<input type="hidden" id="buy_option" value="">
<input type="hidden" id="buy_order" value="">
<div class="form-group">
<label>Option</label>
<div id="buy_description"></div>
</div>
<div class="form-group">
<label for="buy_size">Size</label>
<input type="text" class="form-control" id="buy_size" placeholder="Size (eth)" />
</div>
<div class="form-group">
<label for="buy_price">Price</label>
<input type="text" class="form-control" id="buy_price" placeholder="Price" />
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="buy_submit">Buy</button>
</div>
</div>
</div>
</div>
<!-- Sell -->
<div class="modal fade" id="sell_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Sell</h4>
</div>
<div class="modal-body">
<form>
<input type="hidden" id="sell_option" value="">
<input type="hidden" id="sell_order" value="">
<div class="form-group">
<label>Option</label>
<div id="sell_description"></div>
</div>
<div class="form-group">
<label for="sell_size">Size</label>
<input type="text" class="form-control" id="sell_size" placeholder="Size (eth)" />
</div>
<div class="form-group">
<label for="sell_price">Price</label>
<input type="text" class="form-control" id="sell_price" placeholder="Price" />
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="sell_submit">Sell</button>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="ejs_production.js" type="text/javascript"></script>
<script src="config_testnet.js" type="text/javascript"></script>
<script src="bundle.js" type="text/javascript"></script>
<script src="script.js" type="text/javascript"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-75000235-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>