forked from BennyTheDev/inscriptions-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
361 lines (298 loc) · 15.2 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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no"/>
<link rel="shortcut icon" type="image/png" href="favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<title>LooksOrdinal</title>
<link rel="stylesheet" href="css/styles.1.0.1.css">
<script src="js/lib/indexeddb.js"></script>
<script src="js/lib/wif.js"></script>
<script src="js/lib/buffer.6.0.3.js"></script>
<script src="js/lib/tapscript.1.2.7.js"></script>
<script src="js/lib/crypto-utils.1.5.11.js"></script>
<script src="js/lib/bech32.2.0.0.js"></script>
<script src="js/lib/qrcode.js"></script>
</head>
<body>
<nav>
<ul>
<li id="logo"><a href="index.html">looks◉rdinal >></a></li>
<li class="active">inscribe</li>
<li>|</li>
<li><a href="bridge.html">brc20 trading</a></li>
<li>|</li>
<li><a href="universe.html">$univ</a></li>
</ul>
</nav>
<div class="app-wrapper">
<h1>Inscribe</h1>
<h6 style="margin-top: -15px;">
Self-custodial bulk inscriptions. The most powerful and cost-effective way to inscribe Ordinals on Bitcoin.
Join
our <a href="https://discord.gg/Ur8XGaurSd" target="_blank">Discord</a>. Make sure to <a href="https://medium.com/@rarity.garden/inscriptions-with-looksordinal-cfa2d635f720" target="_blank">read the guide</a>.
</h6>
<h2 class="safari_warning">This tool may not work in safari browser. If you are using that, consider switching.</h2>
<div id="setup">
<div class="mb-3">
<label for="taproot_address">>> Receiving address <span class="type_of_address">(taproot)</span></label>
<input id="taproot_address" class="address"
placeholder="Enter a taproot address from an ordinals wallet">
</div>
<p>>> Please choose what you want to inscribe:</p>
<div class="options">
<div>Standard</div>
<div style="font-size: 14px; color: gray;">Most popular & standard inscriptions</div>
<ul>
<li>
<a id="upload_file_nav" class="upload_file active" href="javascript:void(0);">files</a>
</li>
<li>
<a id="text_nav" class="text" href="javascript:void(0);">text</a>
</li>
<li>
<a id="registration_nav" class="registration" href="javascript:void(0);">.sats domains</a>
</li>
<li>
<a id="unisat_nav" class="unisat" href="javascript:void(0);">.unisat domains</a>
</li>
<li>
<a id="brc20_mint_nav" class="brc20_mint" href="javascript:void(0);">brc-20 mint</a>
</li>
<li class="nav-item">
<a id="brc20_deploy_nav" class="brc20_deploy" href="javascript:void(0);">brc-20 deploy</a>
</li>
<li class="nav-item">
<a id="brc20_transfer_nav" class="brc20_transfer" href="javascript:void(0);">brc-20 transfer</a>
</li>
</ul>
</div>
<div class="options" style="display: none;" id="plugin-list">
<div>Special</div>
<div style="font-size: 14px; color: gray;"><a style="font-size: 14px; color: gray;"href="https://discord.gg/Ur8XGaurSd" target="_blank">Contact us</a> to list your project here</div>
<ul style="vertical-align: top;"></ul>
</div>
<form id="app-form">
<div class="file_form option_form">
<input
accept=".json,
.pdf,
.asc,
.yaml,
.yml,
.flac,
.mp3,
.wav,
.apng,
.avif,
.gif,
.jpg,
.jpeg,
.png,
.svg,
.webp,
.glb,
.stl,
.html,
.txt,
.mp4,
.webm
" type="file" class="form" multiple>
<button style="margin-top: 15px;" id="bytes_checker" type="button">
Check if file(s) are inscribed already
</button>
</div>
<div class="text_form option_form">
<div id="form_container">
<textarea class="text_area" style="width: 100%; height: 75px;"
placeholder="add some text"></textarea>
</div>
<label for="text-multirow" style="display:inline-block;margin-top:15px;">Multi row</label>
<input onclick="!this.checked?$('#text-addrow').style.display='none':$('#text-addrow').style.display='inline-block'"
id="text-multirow" style="display: inline-block; height: 0.9rem; width:unset" type="checkbox"/>
<button style="display: none" id="text-addrow" onclick="addMoreText(); return false;">Add Row</button>
<div style="margin-top: 15px">
<label for="text-repeat">Repeat</label>
<input id="text-repeat" type="text" value="1"
placeholder="e.g. 10 to mint ten times"/>
</div>
</div>
<div class="dns_form option_form">
<p>tip: use the .sats domain feature in the Special section above to host your content</p>
<textarea class="dns" style="width: 100%; height: 250px;"
placeholder="One domain per line. Example: ordi.sats btc.sats"></textarea>
<button class="dns_checker btn btn-outline-primary mt-3 mb-3" type="button">Check availability</button>
</div>
<div class="unisat_form option_form">
<textarea class="unisat_text" style="width: 100%; height: 250px;"
placeholder="One domain per line. Example: ordi.unisat btc.unisat"></textarea>
<button class="unisat_checker btn btn-outline-primary mt-3 mb-3" type="button">Check availability</button>
</div>
<div class="brc20_mint_form option_form">
<div class="mb-3">
<label for="brc20-mint-ticker">Ticker</label>
<input id="brc20-mint-ticker" type="text" maxlength="4" value=""
placeholder="e.g. ordi"/>
</div>
<div class="mb-3">
<label for="brc20-mint-amount">Amount</label>
<input id="brc20-mint-amount" type="text" value="" placeholder="e.g. 1000"/>
</div>
<div class="mb-3">
<label for="brc20-mint-repeat">Repeat</label>
<input id="brc20-mint-repeat" type="text" value="1"
placeholder="e.g. 10 to mint ten times"/>
</div>
</div>
<div class="brc20_deploy_form option_form">
<div class="mb-3">
<label for="brc20-deploy-ticker">Ticker</label>
<input id="brc20-deploy-ticker" type="text" maxlength="4" value=""
placeholder="e.g. ordi"/>
</div>
<div class="mb-3">
<label for="brc20-deploy-max">Supply</label>
<input id="brc20-deploy-max" type="text" value="" placeholder="e.g. 21000000"/>
</div>
<div class="mb-3">
<label for="brc20-deploy-lim">Limit per mint</label>
<input id="brc20-deploy-lim" type="text" value="" placeholder="e.g. 1000"/>
</div>
</div>
<div class="brc20_transfer_form option_form">
<hr/>
<p>
HOWTO:
</p>
<p>
1. To send tokens to someone, you need to have enough transferable balance registered first. Only
then
you may perform the actual transfer with another inscription. To add tokens to your transferable
balance, use an address of yours that previously minted enough tokens in "Receiving address" above.
</p>
<p>
2. You can check your transferable balance using <a id="transfer-balance-link"
href="https://unisat.io/brc20?q="
target="_blank">this
link</a>.
</p>
<p>
3. If your transferable balance is sufficient, you can skip step 1. and use the actual token
recipient
address in "Receiving address" above.
</p>
<p>
WARNING:<br/>
To register your balance, the "Receiving address" above must be an address of yours that originally
minted the token.
If you are mixing this up or use the wrong address, risk is that the transfer will be invalid or
being
sent to the wrong recipient. This tool is not responsible for any of your decisions.
</p>
<hr/>
<div id="brc-transfer-container">
<div class="brc-transfer-block">
<div class="mb-3">
<label>Ticker</label>
<input class="brc20-transfer-ticker" type="text" maxlength="4" value=""
placeholder="e.g. ordi"/>
</div>
<div class="mb-3">
<label>Amount</label>
<input class="brc20-transfer-amount" type="text" value="" placeholder="e.g. 21000000"/>
</div>
</div>
</div>
<button id="add_transfer_button">Add Transfer</button>
</div>
<div id="plugin_form" class="option_form" style="display: none;"></div>
<span class="timer">61</span>
<p>>> Select a feerate (sats/vB)</p>
<div class="feerates">
<div class="fee minfee">
<div style="color: white;" class="num rounded">...</div>
<div class="name">Min</div>
</div>
<div class="fee midfee">
<div style="color: white;" class="num rounded">...</div>
<div class="name">Mid</div>
</div>
<div class="fee maxfee">
<div style="color: white;" class="num rounded">...</div>
<div class="name">Max</div>
</div>
</div>
<div style="margin-top: 15px;" id="sliderange">
<label for="sats_range">sats/vB: <span id="sats_per_byte">1</span></label>
<input class="form-range" id="sats_range" type="range" min="1" max="500" value="1">
</div>
</form>
<hr/>
<div><label><span style="margin-right: 10px;">🔧</span> Options</label></div>
<div>
<label style="display: inline-block" for="padding"><span
style="margin-left: 10px; margin-right: 16px;">₿</span>
Sats in inscription (padding)</label>
<input style="width: 20%" id="padding" type="text" value=""/>
</div>
<div>
<label style="display: inline-block;" for="cpfp"><span style="margin-right: 6px;">🚀</span> Enable
CPFP</label>
<input style="display: inline-block; height: 0.9rem; width:unset" id="cpfp" type="checkbox" value="1"
checked="checked"/>
</div>
<div id="backup" style="margin-top: 0px; margin-bottom: 10px;">
<div><span style="margin-right: 6px;">🚑</span> <a id="backup-usage" href="javascript:void(0);">Backup
Usage</a>
<span id="db-quota"></span></div>
<div id="backup-recovery"
style="border: 1px solid white; padding: 10px; display:none; margin-top: 15px; margin-bottom: 15px; max-height: 500px; overflow-x: auto"></div>
<div id="backup-list" style="display:none; margin-top: 15px; max-height: 500px; overflow-x: auto"></div>
</div>
<div id="tipping" style="display: inline-block;">
<label for="tip" style="display: inline-block;margin-bottom: 0"><span style="margin-right: 6px;">💖</span>
Developer Tip</label>
<input id="tip" style="width: 100px; margin-bottom:0;" type="text" value="0"/> sats ($<span
id="tip-usd">0</span>)
</div>
<hr/>
</div>
<div style="margin-top: 20px; margin-bottom: 20px;">
<button class="submit btn btn-primary">Inscribe!</button>
<button class="estimate btn btn-primary">Estimate Fees</button>
<span id="estimated-fees"></span>
<button style="display:none;" class="startover btn btn-primary">Reset</button>
</div>
<div class="display"></div>
<div style="display: none;" class="file"></div>
<div class="black-bg" onclick="modalVanish();"></div>
<div class="modal">
<span id="descendants-warning" style="display:none;color:red;margin-bottom: 20px;font-size: 13px;">For the remaining inscriptions, please wait for the parent transaction to confirm. Do NOT close this window.</span>
<div class="modal-content text-truncate"></div>
<button id="modal-reset" class="btn btn-primary" style="margin-top: 15px; display: none;"
onclick="location.reload();">Reset
</button>
</div>
<hr style="margin-top: 30px;"/>
<div style="text-align: center;font-size: 14px;">
looks◉rdinal is a <a href="https://rarity.garden" style="font-size: 14px;" target="_blank">RarityGarden</a> project.
</div>
<div style="text-align: center;font-size: 14px;">
The inscription tool is a fork of <a style="font-size: 14px;" href="https://inscribetheplanet.com" target="_blank">Inscribe
the planet</a> (<a style="font-size: 14px;" href="https://github.com/BennyTheDev/inscriptions-online"
target="_blank">Github</a>)
</div>
<div style="text-align: center;font-size: 14px;">
Features and experiences between forks might differ.
</div>
</div>
<!-- fake adbox to raise warning -->
<div class="ad-box" style="position:fixed;top:0;left:0;" aria-hidden="true">
</div>
<script src="js/app/app-config.1.0.8.js"></script>
<script src="js/app/inscriptions/plugins.1.0.2.js"></script>
<script src="js/app/inscriptions/inscriptions.1.0.19.js"></script>
</body>
</html>