-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
58 lines (52 loc) · 1.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calyptus</title>
<script
src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js"
type="application/javascript"
></script>
<script src="abi.js"></script>
<script src="index.js"></script>
</head>
<body>
<button onclick="connect(); return false;">Connect Wallet</button>
<p id="wallet-address"></p>
<h4>Pending Allowance : <span id="pending-allowance"></span></h4>
<form autocomplete="off" onsubmit="spend();return false;">
<input
id="receiver"
type="text"
placeholder="Enter Receiver Address..."
/><br /><br />
<input
id="amount"
type="number"
placeholder="Enter Amount..."
/><br /><br />
<button type="submit">SEND</button>
<p id="sending"></p>
<br /><br />
</form>
<hr />
<h3>For Admin Use Only</h3>
<h4>Wallet Balance : <span id="wallet-balance"></span></h4>
<form autocomplete="off" onsubmit="renew();return false;">
<input
id="user"
type="text"
placeholder="Enter User Address..."
/><br /><br />
<input
id="allowance"
type="number"
placeholder="Enter Allowance..."
/><br /><br />
<button type="submit">SET</button>
<p id="processing"></p>
</form>
</body>
</html>