-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
188 lines (188 loc) · 6.24 KB
/
index.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
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset = "UTF-8">
<meta name = "viewport" content = "width=device-width, initial-scale=1.0">
<meta http-equiv = "X-UA-Compatible" content = "ie=edge">
<link rel = "stylesheet" href = "./stylesheets/main.css"/>
<title>W Wallet</title>
</head>
<body>
<h1>W Wallet</h1>
<table id = "main-container">
<tr><td>
<table border = "1" cellpadding= "5px">
<tr>
<th colspan = "2">
<div>Accounts</div>
<div class = "tooltip">
<img src = "images/help.png" alt = "help"/>
<span class = "tooltiptext">
Lists all the accounts in your wallet. You can choose to remove the currently selected account or clear all accounts from your wallet.
</span>
</div>
</th>
</tr>
<tr>
<th class = "header">Account:</th>
<td><select id = "accounts"></select></td>
</tr>
<tr>
<th class = "header">Balance:</th>
<td id = "balance"></td>
</tr>
<tr>
<td colspan = "2" align = "right"><button id = "clear">Clear Wallet</button><button id = "remove">Remove Account</button></th>
</tr>
</table>
</td></tr><tr><td>
<!--<table border = "1" cellpadding = "5" id = "trans">
<col width = "33%">
<col width = "33%">
<col width = "33%">
<tr>
<th colspan = "3">Transactions</th>
</tr>
<tr>
<th>From</td>
<th>To</td>
<th>Amount</td>
</tr>
</table>-->
</td></tr><tr><td>
<table border = "1" cellpadding = "5">
<tr>
<th colspan = "2">Send Ether
<div class = "tooltip">
<img src = "images/help.png" alt = "help"/>
<span class = "tooltiptext">
Send ETH from the currently selected account to another account by address. The account address must have "0x" at the beginning to be a valid address. You can check the transaction status by searching the transaction ID at <a href = "https://ropsten.etherscan.io/">https://ropsten.etherscan.io/</a>.
</span>
</div>
</th>
</tr>
<tr>
<th class = "header">Send To:</th>
<td>
<input spellcheck="false" id = "send" type = "text">
</td>
</tr>
<tr>
<th class = "header">Amount:</th>
<td><input id = "amount" type = "number"></td>
</tr>
<tr>
<td colspan = "2" align = "right"><button id = "submit">Send</button></td>
</tr>
<tr>
<th class = "header">Transaction ID:</th>
<td id = "trans"></td>
</tr>
</table>
</td></tr><tr><td>
<table id = "acc-create" border = "1" cellpadding = "5">
<tr>
<th colspan = "2">Create New Account
<div class = "tooltip">
<img src = "images/help.png" alt = "help"/>
<span class = "tooltiptext">
Create a new account and add it to your wallet. Remember to save your address and private key in a secure location for use outside of this wallet, or to import again at a later time.
<br/>
<br/>
Note: the account will have no ETH upon creation but you can get some test ETH from a <a href = "http://faucet.ropsten.be:3001/">faucet</a> with your address.
</span>
</div>
</th>
</tr>
<tr>
<th class = "header">Address:</th>
<td id = "newAddress"></td>
</tr>
<tr>
<th class = "header">Private Key:</th>
<td id = "newPrivate"></td>
</tr>
<tr>
<td colspan = "2" align = "right"><button id = "create">Create Account</button></td>
</tr>
</table>
</td></tr><tr><td>
<table border = "1" cellpadding = "5">
<tr>
<th colspan = "2">Import With Private Key
<div class = "tooltip">
<img src = "images/help.png" alt = "help"/>
<span class = "tooltiptext">
Import an existing account into your wallet by private key. The private key must have "0x" at the beginning to be a valid address.
</span>
</div>
</th>
</tr>
<tr>
<th class = "header">Private Key:</th>
<td><input id = "private" type = "password"/></td>
</tr>
<tr>
<td colspan = "2" align = "right"><button id = "add">Import Account</button></td>
</tr>
</table>
</td></tr><tr><td>
<table border = "1" cellpadding = "5">
<tr>
<th colspan = "2">Export Wallet
<div class = "tooltip">
<img src = "images/help.png" alt = "help"/>
<span class = "tooltiptext">
Encrypt your current wallet as a Keystore file for future use with a passphrase. It is highly recommeded to export if you are planning to leave the website as you will not be able to use your wallet again otherwise.
</span>
</div>
</th>
</tr>
<tr>
<th class = "header">Passphrase:</th>
<td><input id = "passEx" type = "password"/></td>
</tr>
<tr>
<td colspan = "2" align = "right"><button id = "encrypt">Encrypt Wallet</button></td>
</tr>
<tr>
<td colspan = "2"><textarea style="resize:none" spellcheck="false" readonly="readonly" id = "keyEx" rows = "7" cols = "33"></textarea></td>
</tr>
</table>
</td></tr><tr><td>
<table border = "1" cellpadding = "5">
<tr>
<th colspan = "2">Import Wallet
<div class = "tooltip">
<img src = "images/help.png" alt = "help"/>
<span class = "tooltiptext">
Upload a Keystore file containing an encrypted wallet and unlock with your passphrase. If the credentials are correct, the wallet will be imported.
</span>
</div>
</th>
</tr>
<tr>
<th class = "header">Keystore:</th><td align = "right"><label id = "upload">Upload Keystore<input type="file" id="selectFiles"/></label></td>
</tr>
<tr>
<td colspan = "2"><textarea style="resize:none" spellcheck="false" id = "keyIm" rows = "4" cols = "50"></textarea></td>
</tr>
<tr>
<th class = "header">Passphrase:</th>
<td><input id = "passIm" type = "password"/></td>
</tr>
<tr>
<td colspan = "2" align = "right"><button id = "unlock">Import Wallet</button></th>
</tr>
</table>
</td></tr>
</table>
<script type = "text/javascript" src = "config-web.js"></script>
<script type = "text/javascript" src = "accounts-web.js"></script>
<script type = "text/javascript" src = "create-account-web.js"></script>
<script type = "text/javascript" src = "import-account-web.js"></script>
<script type = "text/javascript" src = "encrypt-web.js"></script>
<script type = "text/javascript" src = "decrypt-web.js"></script>
<script type = "text/javascript" src = "send-web.js"></script>
</body>
</html>