-
Notifications
You must be signed in to change notification settings - Fork 0
/
request-token.html
226 lines (206 loc) · 10.3 KB
/
request-token.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119769091-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-119769091-1");
</script>
<!-- Hotjar Tracking Code for https://cryptofonts.com/ -->
<script>
(function (h, o, t, j, a, r) {
h.hj =
h.hj ||
function () {
(h.hj.q = h.hj.q || []).push(arguments);
};
h._hjSettings = { hjid: 1835372, hjsv: 6 };
a = o.getElementsByTagName("head")[0];
r = o.createElement("script");
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, "https://static.hotjar.com/c/hotjar-", ".js?sv=");
</script>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="Crypto icons and token webfont svg logos for your favourite cryptocurrencies. " />
<meta name="keywords" content="token, logos, crypto icons, vector icons, svg icons, free icons, icon font, webfont, desktop icons, svg, font awesome, font awesome free, font awesome pro" />
<meta name="author" content="Fabio Monzani" />
<meta name="theme-color" content="#f2f2f2" />
<meta property="og:site_name" content="Cryptofonts" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.cryptofonts.com/img/card.png" />
<meta property="og:url" content="https://cryptofonts.com" />
<meta property="og:title" content="Cryptofonts" />
<meta property="og:description" content="Crypto icons and token webfont svg logos for your favourite cryptocurrencies. " />
<title>CryptoFont - Request new token</title>
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png" />
<link rel="manifest" href="favicons/site.webmanifest" />
<link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="favicons/favicon.ico" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="msapplication-config" content="favicons/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
<!-- Facebook Open Graph -->
<meta property="og:site_name" content="CryptoFonts" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://www.cryptofonts.com/img/card.png" />
<meta property="og:url" content="https://www.cryptofonts.com/" />
<meta property="og:title" content="CryptoFonts" />
<meta property="og:description" content="We create beautiful and crisp cryptocurrency webfonts, icons and SVG " />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@CryptoFonts" />
<meta property="og:url" content="https://www.cryptofonts.com/" />
<meta property="og:title" content="CryptoFonts" />
<meta property="og:description" content="We create beautiful and crisp cryptocurrency webfonts, icons and SVG " />
<meta property="og:image" content="https://www.cryptofonts.com/img/card.png" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css?v=1.0" />
<!-- Custom CSS -->
<link rel="stylesheet" href="css/style.css" />
<!-- Inter font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@500;600&display=swap" rel="stylesheet" />
</head>
<body class="bg-gray-50">
<nav class="navbar navbar-expand-lg fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">
<img src="img/logo-squircle.svg" width="36" height="36" class="d-inline-block align-top mr-2" alt="" loading="lazy" />
<strong class="align-text-top">Cryptofonts</strong>
</a>
<button class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="api.html">
<img class="me-2" src="img/icon-api.svg" width="24" height="24" alt="" />
API</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="icons.html">
<img class="me-2" src="img/icon-icons.svg" width="24" height="24" alt="" />
Icons</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="brands.html">
<img class="me-2" src="img/icon-brands.svg" width="24" height="24" alt="" />
Brand</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="font.html">
<img class="me-2" src="img/icon-webfont.svg" width="20" height="20" alt="" />
Webfont</a
>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="d-flex justify-content-center mt-5 pt-5">
<div class="col-12 col-md-6">
<div class="card mb-3 text-left">
<div class="card-body">
<h2 id="section-title">Add new token</h2>
<p>Request to add a new token to the Cryptofonts API</p>
<form class="mt-4">
<div class="form-group mb-3">
<label for="tokenName">Token name</label>
<input type="text" class="form-control" id="tokenName" placeholder="Ethereum" required />
<small class="form-text text-muted">The name of the token you want to add.</small>
</div>
<div class="form-group mb-3">
<label for="tokenSymbol">Token symbol</label>
<input type="text" class="form-control" id="tokenSymbol" placeholder="eth" required />
<small class="form-text text-muted">The token symbol e.g. eth</small>
</div>
<div class="form-group mb-3">
<label for="tokenAddress">Token address</label>
<input type="text" class="form-control" id="tokenAddress" placeholder="0xAbC..." required />
</div>
<div class="form-group mb-3">
<label for="tokenDecimals">Decimals</label>
<input type="number" class="form-control" id="tokenDecimals" placeholder="18" required />
</div>
<div class="form-group mb-3">
<label>Chain</label>
<select id="tokenChain" class="form-control" required>
<option value="" disabled selected>Select chain</option>
<option value="arbitrum-one">Arbitrum</option>
<option value="aurora">Aurora</option>
<option value="avalanche">Avalanche</option>
<option value="base">Base</option>
<option value="canto">Canto</option>
<option value="cronos">Cronos</option>
<option value="ethereum">Ethereum</option>
<option value="fantom">Fantom</option>
<option value="gnosis-chain">Gnosis</option>
<option value="linea">Linea</option>
<option value="binance-smart-chain">Binance Smart Chain</option>
<option value="optimistic-ethereum">Optimism</option>
<option value="polygon-pos">Polygon</option>
<option value="solana">Solana</option>
<option value="zksync">ZkSync</option>
</select>
</div>
<div class="d-grid">
<button type="submit" id="btnSubmitRequest" class="btn btn-primary btn-block">Submit for review</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Supabase -->
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script>
const client = supabase.createClient("https://xkqpczltzicnmbqvihbc.supabase.co", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhrcXBjemx0emljbm1icXZpaGJjIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODg1NDU5MTksImV4cCI6MjAwNDEyMTkxOX0.WfEjGjZQ9AbCyxZvOmcaQahXCDVCnUZsP9P6LR-Ogzc");
const btnSubmit = document.getElementById("btnSubmitRequest");
btnSubmit.addEventListener("click", async function (event) {
event.preventDefault();
const tokenName = document.getElementById("tokenName").value;
const tokenSymbol = document.getElementById("tokenSymbol").value;
const tokenAddress = document.getElementById("tokenAddress").value;
const tokenDecimals = document.getElementById("tokenDecimals").value;
const tokenChain = document.getElementById("tokenChain").value;
const { data, error } = await client
.from("queue")
.insert([
{
name: tokenName,
symbol: tokenSymbol,
address: tokenAddress,
decimals: tokenDecimals,
chain: tokenChain,
},
])
.select();
if (error) {
console.log(error);
}
if (data) {
console.log(data);
window.location.href = "/complete.html";
}
});
</script>
</body>
</html>