-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChainlinkQuiz
331 lines (278 loc) · 10.7 KB
/
ChainlinkQuiz
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>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>Chainlink IQ></title>
<style>
table {
opacity:0.0;
}
body {
background-color: lightblue;
color: black;
}
#myProgress {
width: 100%;
height: 30px;
position: relative;
background-color: #ddd;
}
#myBar {
background-color: #4CAF50;
width: 10px;
height: 30px;
position: absolute;
}
</style>
<SCRIPT language=JavaScript>
<!--
var running = false
var endTime = null
var timerID = null
function startTimer() {
running = true
now = new Date()
now = now.getTime()
endTime = now + (180000)
showCountDown()
}
function showCountDown() {
var now = new Date()
now = now.getTime()
if (endTime - now <= 0) {
stopTimer()
} else {
var delta = new Date(endTime - now)
var theMin = delta.getMinutes()
var theSec = delta.getSeconds()
var theTime = theMin
theTime += ((theSec < 10) ? ":0" : ":") + theSec
window.status = "Time left: "+theTime
if (running) {
timerID = setTimeout("showCountDown()",1000)
}
}
}
function stopTimer() {
document.getElementById("questions").style.opacity = 1;
r(iq);
}
//-->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
function r(iq) {
with (Math) {
var res=0;
for (i=0;i<iq.elements.length;i++)
if ((iq.elements[i].type=="radio") &&
(iq.elements[i].value=="1") &&
(iq.elements[i].checked))
res = res + 3;
for (i=0;i<iq.elements.length;i++)
if ((iq.elements[i].type=="radio") &&
(iq.elements[i].value!="1") &&
(iq.elements[i].checked))
res--;
if (iq.q1.value=="Chainlink") res = res + 18;
if (iq.q2.value=="Oracle Selection") res = res + 18;
if (iq.q3.value=="Data Reporting") res = res + 18;
if (iq.q4.value=="Reputation Contract") res = res + 18;
if (iq.q5.value=="Chainlink Adapter") res = res + 18;
if (iq.q6.value=="Chainlink Core") res = res + 18;
if (iq.q7.value=="Order-Matching Contract") res = res + 18;
if (iq.q8.value=="Aggregating Contracts") res = res + 18;
iq.qr.value = res;
}
}
// -->
</script>
<script>
function move() {
document.getElementById("questions").style.opacity = 1;
var elem = document.getElementById("myBar");
var width = 0;
var id = setInterval(frame, 1800);
function frame() {
if (width == 100) {
clearInterval(id);
alert("times UP")
}
else if (stopTimer()) {
clearInterval(id);
}
else {
width++;
elem.style.width = width + '%';
}
}
}
</script>
</head>
<!--
<body background="imatges/fons.jpg" text="#000000" link="#000000"
vlink="#AA0000" onLoad="timerID=setTimeout('r(iq)',1200000)">
-->
<body bgcolor="#F0F0F0" text="#FFFFFF" link="#000000" vlink="#CC0000" onLoad=startTimer()>
<br>
<tr>
<td ALIGN=CENTER WIDTH="60%">
<center><font face="Arial"><font size=+2>Chainlink QUIZ</font></font>
<br><font face="Arial"><font size=+1>Measure your CHAINLINK IQ </font></font></center>
</td>
<p>Timer</p>
<div id="myProgress">
<div id="myBar"></div>
</div>
<div align="center">
<center>
<tr>
<td>
<center>
<br><b><font size=+0>Scores will be out of 144.</font></b>
<br>
<p><font size=+0><b> </b> <b>You have 3 mins to complete the test, GOOD LUCK!</b></font>
<br><br>
<button onclick="move()">Start</button>
</center>
<form name="iq">
<table id="questions" BORDER=0 WIDTH="40%" >
<tr>
<td WIDTH="60">1)</td>
<td ALIGN=RIGHT WIDTH="60%"><b><font color="#000000"><font size=-1 >A decentralized oracle network that provides secure and reliable inputs and outputs for complex smart contracts on any blockchain:
<select name="q1">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
<tr>
<td WIDTH="40">2)</td>
<td ALIGN=RIGHT WIDTH="59%"><b><font color="#000000"><font size=-1> First, Chainlink users draft a service-level agreement (SLA) that specifies a set of desired data requirements. The software then uses the SLA to match the user with oracles that can provide the data. Once the parameters are set, the user submits the SLA and deposits their LINK cryptocurrency in an Order-Matching contract, which accepts bids from oracles:
<select name="q2">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
<tr>
<td WIDTH="40">3)</td>
<td ALIGN=RIGHT WIDTH="59%"><b><font color="#000000"><font size=-1>This is where the oracles connect with external sources and obtain the real-world data requested in the SLA. The data is then processed by the oracles and sent back to contracts running on the Chainlink blockchain:
<select name="q3">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
<tr>
<td WIDTH="40">4)</td>
<td ALIGN=RIGHT WIDTH="59%"><b><font color="#000000"><font size=-1>Verifies an oracle’s integrity by checking its track record. This includes factors such as the total number of completed requests, average response time and amount of LINK cryptocurrency the oracle has staked:
<select name="q4">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
<tr>
<td WIDTH="40">5)</td>
<td ALIGN=RIGHT WIDTH="59%"><b><font color="#000000"><font size=-1> Acts as the bridge between the node and the external data. The adapter can read and process the data and write it to the blockchain:
<select name="q5">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
<tr>
<td WIDTH="40">6)</td>
<td ALIGN=RIGHT WIDTH="59%"><b><font color="#000000"><font size=-1>This is responsible for reading newly filed SLAs and routing assignments to the Chainlink Adapter:
<select name="q6">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
<tr>
<td WIDTH="40">7)</td>
<td ALIGN=RIGHT WIDTH="59%"><b><font color="#000000"><font size=-1>Matches a smart contract’s service level agreement (SLA) with the best bidding oracles:
<select name="q7">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
<tr>
<td WIDTH="40">8)</td>
<td ALIGN=RIGHT WIDTH="59%"><b><font color="#000000"><font size=-1>Collect data from oracles and match the most accurate results with the smart contract that needs them:
<select name="q8">
<option value="Oracle Selection">Oracle Selection</option>
<option value="Data Reporting">Data Reporting</option>
<option value="Chainlink">Chainlink</option>
<option value="Aggregating Contracts">Aggregating Contracts</option>
<option value="Order-Matching Contract">Order-Matching Contract</option>
<option value="Reputation Contract">Reputation Contract</option>
<option value="Chainlink Core">Chainlink Core</option>
<option value="Chainlink Adapter">Chainlink Adapter</option>
</select>
</font></font></b></td>
</tr>
<tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/>
</table>
<center>
<p>
<button onclick="startTimer()">Reset </button>
<p><b><font size=+0>Your score is <input type="text" size="3" name="qr">points.</font></b>
<br></form></center>
</td>
</tr>
</body>
</html>