-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (77 loc) · 2.61 KB
/
Copy pathindex.html
File metadata and controls
88 lines (77 loc) · 2.61 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Asset Hub XCM Builder</title>
</head>
<body>
<main>
<h1>Asset Hub XCM Builder</h1>
<p class="subtitle">
Build call data for
<code>polkadotXcm.transferAssetsUsingTypeAndThen</code> between Polkadot
and Kusama Asset Hubs.
</p>
<section class="card">
<div class="direction">
<span id="direction-label"></span>
<button id="switch" type="button">Switch direction</button>
</div>
<label>
RPC endpoint
<select id="endpoint"></select>
</label>
<p id="status" class="status"></p>
</section>
<section class="card">
<label>
Amount <span id="amount-unit" class="unit"></span>
<input id="amount" type="text" inputmode="decimal" placeholder="1.5" />
</label>
<p id="amount-planck" class="hint"></p>
<label>
Recipient
<input id="beneficiary" type="text" placeholder="0x… or SS58 address" />
</label>
<p id="beneficiary-hex" class="hint"></p>
<label class="checkbox">
<input id="proxy-toggle" type="checkbox" />
Send as proxy
</label>
<div id="proxy-field" hidden>
<label>
Real account
<input id="proxy-real" type="text" placeholder="0x… or SS58 address" />
</label>
<p id="proxy-hex" class="hint"></p>
</div>
<button id="generate" type="button" disabled>Generate call data</button>
<p id="error" class="error"></p>
</section>
<section id="output" class="card" hidden>
<p class="warning">
⚠️ <strong>Verify before signing.</strong> Independently decode this
call and confirm the destination, amount, and recipient before
submitting.
</p>
<div class="summary" id="summary"></div>
<label>
Call data
<div class="output-row">
<textarea id="call-data" readonly rows="3"></textarea>
<button class="copy" data-target="call-data" type="button">Copy</button>
</div>
</label>
<label>
Call hash
<div class="output-row">
<input id="call-hash" type="text" readonly />
<button class="copy" data-target="call-hash" type="button">Copy</button>
</div>
</label>
</section>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>