-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
309 lines (294 loc) · 9.8 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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<!DOCTYPE html>
<html>
<head>
<title>Crypto Wallet to CoinTracking</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, maximum-scale=1.0">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/unsemantic.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/donate.css">
<script src="js/jquery.min.js"></script>
<script src="js/csv.js"></script>
<script src="js/qrious.min.js"></script>
<script src="js/donate.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<main>
<header>
<div class="grid-container">
<div class="grid-25 mobile-grid-50">
<div class="links">
<a id="converter" onclick="showPage(this)">
<i class="fa fa-magic fa-lg"></i> Converter
</a>
<a id="howto" onclick="showPage(this)">
<i class="fa fa-stack-overflow fa-lg"></i> How to Use
</a>
</div>
</div>
<div class="grid-45 text-center">
<div class="text-logo">Crypto Wallet to CoinTracking</div>v2.2.2
</div>
<div class="grid-30 mobile-grid-50 text-right">
<div class="links">
<a id="about" onclick="showPage(this)">
<i class="fa fa-book fa-lg"></i> About
</a>
<a id="donate" onclick="showPage(this)">
<i class="fa fa-book fa-lg"></i> Donate
</a>
<a href="https://github.com/skironDotNet/wallet-export-to-cointracking" target="_blank">
<i class="fa fa-github fa-lg"></i> GitHub
</a>
</div>
</div>
</div>
</header>
<div id="page-converter">
<h4>Converter</h4>
<div class="grid-container">
<div class="prefix-25 grid-50 suffix-25">
<label>
Load wallet file:
<input type="file" id="file">
</label>
<br>
<label>
Coin Code:
<input type="text" size="10" maxlength="10" placeholder="auto" id="coinCode">
<dfn>This will be auto-detected but you can override, lowercase OK.</dfn>
</label>
<label>
Wallet name:
<input type="text" size="25" maxlength="75" placeholder="my-wallet" id="walletName">
<dfn>You must provide your own wallet name how it's going to appear in CoinTracking</dfn>
</label>
<label>
Group:
<input type="text" size="25" maxlength="75" id="ctGroup">
<dfn>This is Group field in CoinTracking. This value will be applied to every tx from the inputfile</dfn>
</label>
<label>
<input type="checkbox" id="groupMiningByDay"> Sum up mining transactions by day
<dfn>For small amounts you can group all transaction into single sum of the day. Should be acceptable by tax authorities, while "compressing" data for CoinTracking.
<br>Not recommended for high priced coins with high volume (for this I may develop "group by hour")</dfn>
</label>
<div>
<label>
<input type="checkbox" id="costBasisZero"> Declare mining as realized capital gain
<dfn>You can use this to override default type "Mining" to "Margin Profit" which instructs CT to apply cost basis zero to transaction, and result in realized capital gain at the time received, <b>but this is not recommended</b></dfn>
</label>
<a class="more-details">more details</a>
</div>
<div class="explain">I most countries mining is taxable income, and if you still want to override this, you can use filter at CoinTracking Report page (this will not realize gain until the asset is sold):<br>
<img src="images/how-to2.png" style="border: 1px solid gray">
</div>
<div class="text-center">
<div class="see-results">
You'll be able to download CoinTracking file after clicking Convert
</div>
<div id="error" class="error"></div>
<button id="convert" class="green" disabled>Convert</button>
<br>
<div id="downloadFileName" class="hidden"></div>
<a id="download" href="#" class="button hidden">Download</a>
</div>
</div>
</div>
</div>
<div id="page-howto" class="hidden">
<div class="grid-container">
<div class="prefix-15 grid-70 suffix-15">
<h4>How to Use</h4>
The process is simple. Export all transactions to CSV file (you can filter by date in wallet client to perform partial imports/updates).
Then load exported CSV to this converter and download CoinTracking compatible CSV file and import to CoinTracking.
<br>
<br> Review imported transactions, especially withdrawals will need fee adjustments, a comment will appear in CT. Once you
adjust the fee delete the comment.
<br>
<br>
<img src="images/how-to1.png" />
</div>
</div>
</div>
<div id="page-about" class="hidden">
<div class="grid-container">
<div class="prefix-15 grid-70 suffix-15">
<h4>About</h4>
This is offline converter, so conversion is performed in the browser. Your data is not being sent anywhere. It should work
with all wallets that are forked from Bitcoin, Dash, PIVX, as long as the exported CSV file has given header:
<div class="csvHeader">"Confirmed","Date","Type","Label","Address","Amount (XXX)","ID"</div>
</div>
</div>
</div>
<div id="page-donate" class="hidden">
<div class="grid-container">
<div class="prefix-10 grid-80 suffix-10">
<h4>Donate</h4>
<p class="donationHeader">If you think this tool is useful, consider donating to the author, it will help to maintain this tool and create new ones.<br>Thanks!</p>
<div class="page">
<table onmouseout="hideDonateQr()" class="donate">
<tr>
<td>
<i class="sprite sprite-btc"></i>
</td>
<td>Bitcoin (BTC)</td>
<td onmouseover="showDonateQr(this)">
<div>bc1qt8kd0ftz7y6rk6x7wwdm74v3848adhrhj3d42u</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-bch"></i>
</td>
<td>Bitcoin Cash (BCH)</td>
<td onmouseover="showDonateQr(this)">
<div>qpxkjyjrxdcd57wrwez9wg7elu20gzvu4qn3j4t4rm</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-ltc"></i>
</td>
<td>LiteCoin (LTC)</td>
<td onmouseover="showDonateQr(this)">
<div>LNYffmyYBacgQPdPyftSHt5KcC1WF2kpm4</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-dgb"></i>
</td>
<td>DigiByte (DGB)</td>
<td onmouseover="showDonateQr(this)">
<div>DNVodL8gwAdNDPvuv6SNWptDbAywZwLoWU</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-sys"></i>
</td>
<td>Syscoin (SYS)</td>
<td onmouseover="showDonateQr(this)">
<div>SNEJVqQVF3cMRZeQjuKPh1bjdJveqznTdY</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-zec"></i>
</td>
<td>ZCash (ZEC)</td>
<td onmouseover="showDonateQr(this)">
<div>t1M18s2noGXd92v7xW4sYSRogV6T7HK6Bgj</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-xmr"></i>
</td>
<td>Monero (XMR)</td>
<td onmouseover="showDonateQr(this)">
<div>4AVYbSPHYP9gZRLkdpXNuNAKVQNymntPJUSTguyXziF9WgJppVpKFoHJQVjJkZQ6NhTMzGz6gSjNGaCQvswMgLe9MhGVXRw</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-aeon"></i>
</td>
<td>Aeon (AEON)</td>
<td onmouseover="showDonateQr(this)">
<div>WmtwWaaFimBed3WE776ScG9EUR4ATq38ZZPZPU62QpJdBpc2wnzjjJhht3qo9AYnYUFVHG3osdQHshSXLUmF4a961QGH25FGt</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-btcz"></i>
</td>
<td>BitcoinZ (BTCZ)</td>
<td onmouseover="showDonateQr(this)">
<div>t1UvBc7s1qNAjY5deR2mmeGLnybEN8Bp6Lb</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-dash"></i>
</td>
<td>Dash (DASH)</td>
<td onmouseover="showDonateQr(this)">
<div>Xksnyf9Jxhij65nsdopBJDQb2B1kqze5rJ</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-pivx"></i>
</td>
<td>PIVX (PIVX)</td>
<td onmouseover="showDonateQr(this)">
<div>DB7DTG5Mg1K4CN12vxo1aoL97qQ4rWiXsX</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-xvg"></i>
</td>
<td>Verge (XVG)</td>
<td onmouseover="showDonateQr(this)">
<div>DQMsdWDH4wHrKMa3f3QHHc1BQ1uLbWWMa2</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-xlm"></i>
</td>
<td>Stellar (XLM)</td>
<td onmouseover="showDonateQr(this)">
<div>GDVMJK62FYXFKQC7FOVLP2HKX5QDWSIET6XWTIIEP3QY2S65CCBDNYNL</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-strax"></i>
</td>
<td>Stratis (STRAT)</td>
<td onmouseover="showDonateQr(this)">
<div>SP2tUjxJdn7BjzEezrJtWhAbEu2iSttC48</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-btg"></i>
</td>
<td>Bitcoin Gold (BTG)</td>
<td onmouseover="showDonateQr(this)">
<div>GcMHJaTKrLrk9RcyJ5SK7YaX1uJ92B3Ehi</div>
</td>
</tr>
<tr>
<td>
<i class="sprite sprite-doge"></i>
</td>
<td>Dogecoin (DOGE)</td>
<td onmouseover="showDonateQr(this)">
<div>D7YpAAF6k8R9jCgfDYu1UjEVdq6hnFPKSu</div>
</td>
</tr>
</table>
<img id="donateQr" style="position: absolute; display: none" />
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="footer-main">
<div class="text-center">
Crypto Wallet to <a href="https://cointracking.info?ref=S972392" target="_blank">CoinTracking</a>
<br> © 2018 - 2022 Pawel Cioch
</div>
</div>
</footer>
</body>
</html>