-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (68 loc) · 2.79 KB
/
index.html
File metadata and controls
74 lines (68 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Add Chain & Token to Wallet</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
</head>
<body>
<div class="container">
<h1>Add Chain & Token to Wallet</h1>
<div class="controls">
<label for="chainTypeSelector">Select Chain Type</label>
<select id="chainTypeSelector">
<option value="evm">EVM Chains</option>
<option value="cosmos">Cosmos Chains</option>
<option value="solana">Solana Chains</option>
</select>
<div id="walletSelectorContainer">
<select id="walletSelector" disabled>
<option selected>Loading...</option>
</select>
</div>
<div class="search-container">
<input type="text" id="searchInput" placeholder="Search chain name..." />
<button id="refreshBtn" title="Refresh chains data">
<i class="fas fa-sync-alt"></i>
</button>
</div>
</div>
<div id="chainCards" class="card-container">
<!-- Cards of available chains will be rendered here -->
</div>
<div id="tokenSection">
<h2>Add Custom Token</h2>
<div id="errorMsg" style="color:red; margin-bottom: 1rem;"></div>
<div class="token-form">
<div class="form-group">
<label for="tokenChainSelector">Chain</label>
<select id="tokenChainSelector" class="form-control"></select>
</div>
<div class="form-group">
<label for="tokenAddressInput">Token Contract Address</label>
<div class="input-with-loader">
<input type="text" id="tokenAddressInput" class="form-control" placeholder="0x..." />
<span id="addressLoading" class="loader"></span>
</div>
</div>
<div class="form-group">
<label for="tokenSymbolInput">Token Symbol</label>
<input type="text" id="tokenSymbolInput" class="form-control" placeholder="SYMBOL" />
</div>
<div class="form-group">
<label for="tokenDecimalsInput">Token Decimals</label>
<input type="number" id="tokenDecimalsInput" class="form-control" placeholder="18" min="0" />
</div>
<div class="button-group">
<button id="checkTokenBtn" type="button" class="btn-secondary">Check Token Info</button>
<button id="addTokenBtn" type="button" class="btn-primary">Add Token to Wallet</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/ethers@5.7.2/dist/ethers.umd.min.js"></script>
<script src="script.js"></script>
</body>
</html>