-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
331 lines (293 loc) · 13 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Elrond converters</title>
<link rel="stylesheet" href="./bootstrap.min.css">
</head>
<body class="pb-5">
<div class="pos-f-t">
<div class="collapse" id="navbarToggleExternalContent">
<div class="bg-light p-4">
<a href="#bech32-to-hex">Bech32 -> Hex</a> |
<a href="#hex-to-bech32">Hex -> Bech32</a> |
<a href="#decimal-to-hexadecimal">Decimal -> Hex</a> |
<a href="#hexadecimal-to-decimal">Hex -> Decimal</a> |
<a href="#decimal-to-base64">Decimal -> Base64</a> |
<a href="#base64-to-decimal">Base64 -> Decimal</a> |
<a href="#amount-to-denominated">EGLD amount denomination</a> |
<a href="#string-to-hexadecimal">String -> Hex</a> |
<a href="#hexadecimal-to-string">Hex -> String</a> |
<a href="#string-to-base64">String -> Base64</a> |
<a href="#base64-to-string">String -> Base64</a> |
<a href="#hex-to-base64">Hex -> Base64</a> |
<a href="#base64-to-hex">Base64 -> Hex</a>
</div>
</div>
<nav class="navbar navbar-light bg-primary">
<button class="btn btn-light btn-sm" type="button" data-toggle="collapse"
data-target="#navbarToggleExternalContent"
aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
</div>
<div class="container mt-4">
<h1>Converters for Elrond Blockchain</h1>
<p>
This page offers an easy to use pack of convertors necessary for interacting with Elrond Blockchain.
</p>
<h3>Converters</h3>
<div class="card">
<div class="card-header">
Addresses
</div>
<div class="card-body">
<h5 class="card-title" id="bech32-to-hex">
<a href="#bech32-to-hex" class="text-decoration-none">
Convert from Bech32 address to Hex address
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="Bech32AddressToHexInput">Bech32 address</label>
<input class="form-control" id="Bech32AddressToHexInput" type="text"
value="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqplllst77y4l">
</div>
</form>
<button type="button" id="Bech32AddressToHexBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="Bech32AddressToHexOutput"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="hex-to-bech32">
<a href="#hex-to-bech32" class="text-decoration-none">
Convert from Hex address to Bech32 address
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="HexToBech32AddressInput">Bech32 address</label>
<input class="form-control" id="HexToBech32AddressInput" type="text"
value="000000000000000000010000000000000000000000000000000000000001ffff">
</div>
</form>
<button type="button" id="HexToBech32AddressBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="HexToBech32AddressOutput"></div>
</div>
</div>
<div class="card mt-2">
<div class="card-header">
Numeric
</div>
<div class="card-body">
<h5 class="card-title" id="decimal-to-hexadecimal">
<a href="#decimal-to-hexadecimal" class="text-decoration-none">
Convert decimal to hexadecimal
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="DecimalToHexInput">Numeric value</label>
<input class="form-control" id="DecimalToHexInput" type="text" value="91">
</div>
</form>
<button type="button" id="DecimalToHexBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="DecimalToHexOutput"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="hexadecimal-to-decimal">
<a href="#hexadecimal-to-decimal" class="text-decoration-none">
Convert hexadecimal to decimal
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="HexToDecimalInput">Hex value</label>
<input class="form-control" id="HexToDecimalInput" type="text" value="5b">
</div>
</form>
<button type="button" id="HexToDecimalBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="HexToDecimalOutput"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="decimal-to-base64">
<a href="#decimal-to-base64" class="text-decoration-none">
Convert decimal to base64
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="DecimalToBase64Input">Numeric value</label>
<input class="form-control" id="DecimalToBase64Input" type="text" value="1479">
</div>
</form>
<button type="button" id="DecimalToBase64Btn" class="btn btn-primary btn-sm">Convert</button>
<div id="DecimalToBase64Output"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="base64-to-decimal">
<a href="#base64-to-decimal" class="text-decoration-none">
Convert base64 to decimal
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="Base64ToDecimalInput">Base64 value</label>
<input class="form-control" id="Base64ToDecimalInput" type="text" value="MTQ3OQ==">
</div>
</form>
<button type="button" id="Base64ToDecimalBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="Base64ToDecimalOutput"></div>
</div>
</div>
<div class="card mt-2">
<div class="card-header">
Amount denomination
</div>
<div class="card-body" id="amount-to-denominated">
<h5 class="card-title">
<a href="#amount-to-denominated" class="text-decoration-none">
Amount to denominated amount
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="AmountToDenominatedInput">Numeric value</label>
<input class="form-control" id="AmountToDenominatedInput" type="text" value="10.5">
</div>
</form>
<button type="button" id="AmountToDenominatedBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="AmountToDenominatedOutput"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="denominated-to-amount">
<a href="#denominated-to-amount" class="text-decoration-none">
Denominated amount to amount
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="DenominatedToAmountInput">Denominated value</label>
<input class="form-control" id="DenominatedToAmountInput" type="text" value="10500000000000000000">
</div>
</form>
<button type="button" id="DenominatedToAmountBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="DenominatedToAmountOutput"></div>
</div>
</div>
<div class="card mt-2">
<div class="card-header">
String converters
</div>
<div class="card-body">
<h5 class="card-title" id="string-to-hexadecimal">
<a href="#string-to-hexadecimal" class="text-decoration-none">
Convert string to hexadecimal encoded string
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="StringToHexInput">String value</label>
<input class="form-control" id="StringToHexInput" type="text" value="ok">
</div>
</form>
<button type="button" id="StringToHexBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="StringToHexOutput"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="hexadecimal-to-string">
<a href="#hexadecimal-to-string" class="text-decoration-none">
Convert hexadecimal encoded string to string
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="HexToStringInput">Hex value</label>
<input class="form-control" id="HexToStringInput" type="text" value="6f6b">
</div>
</form>
<button type="button" id="HexToStringBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="HexToStringOutput"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="string-to-base64">
<a href="#string-to-base64" class="text-decoration-none">
Convert string to base64
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="StringToBase64Input">String value</label>
<input class="form-control" id="StringToBase64Input" type="text" value="text">
</div>
</form>
<button type="button" id="StringToBase64Btn" class="btn btn-primary btn-sm">Convert</button>
<div id="StringToBase64Output"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="base64-to-string">
<a href="#base64-to-string" class="text-decoration-none">
Convert base64 encoded string to string
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="Base64ToStringInput">Base64 string value</label>
<input class="form-control" id="Base64ToStringInput" type="text" value="dGV4dA==">
</div>
</form>
<button type="button" id="Base64ToStringBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="Base64ToStringOutput"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="hex-to-base64">
<a href="#hex-to-base64" class="text-decoration-none">
Convert hex string to base64
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="HexToBase64Input">Hex string value</label>
<input class="form-control" id="HexToBase64Input" type="text" value="35db94">
</div>
</form>
<button type="button" id="HexToBase64Btn" class="btn btn-primary btn-sm">Convert</button>
<div id="HexToBase64Output"></div>
</div>
<hr>
<div class="card-body">
<h5 class="card-title" id="base64-to-hex">
<a href="#base64-to-hex" class="text-decoration-none">
Convert base64 encoded string to hex encoded string
</a>
</h5>
<form>
<div class="form-group">
<label class="control-label" for="Base64ToHexInput">Base64 string value</label>
<input class="form-control" id="Base64ToHexInput" type="text" value="NduU">
</div>
</form>
<button type="button" id="Base64ToHexBtn" class="btn btn-primary btn-sm">Convert</button>
<div id="Base64ToHexOutput"></div>
</div>
</div>
</div>
<div class="text-center p-3">
Feel free to contribute <a href="https://github.com/bogdan-rosianu/elrond-converters">here</a>.
</div>
<script src="./jquery-3.5.1.slim.min.js"
integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous"></script>
<script src="./bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
<script src="out/bundle.js"></script>
</body>
</html>