Instructions for the Oracle
[mainnet] Deployed
[decimal] 18
[Instruction] Invoke the compute() API of the above contracts (e.g.: to obtain the price of mix, invoke the compute of contract 0x3e39a24d01d0754C09a1185EA422204a86d5F3F6, and the return value is mix price in usd)
ABI:
1
[
2
{
3
"constant": false,
4
"inputs": [
5
{
6
"name": "owner_",
7
"type": "address"
8
}
9
],
10
"name": "setOwner",
11
"outputs": [],
12
"payable": false,
13
"stateMutability": "nonpayable",
14
"type": "function"
15
},
16
{
17
"constant": false,
18
"inputs": [
19
{
20
"name": "",
21
"type": "bytes32"
22
}
23
],
24
"name": "poke",
25
"outputs": [],
26
"payable": false,
27
"stateMutability": "nonpayable",
28
"type": "function"
29
},
30
{
31
"constant": false,
32
"inputs": [],
33
"name": "poke",
34
"outputs": [],
35
"payable": false,
36
"stateMutability": "nonpayable",
37
"type": "function"
38
},
39
{
40
"constant": true,
41
"inputs": [],
42
"name": "compute",
43
"outputs": [
44
{
45
"name": "",
46
"type": "bytes32"
47
},
48
{
49
"name": "",
50
"type": "bool"
51
}
52
],
53
"payable": false,
54
"stateMutability": "view",
55
"type": "function"
56
},
57
{
58
"constant": false,
59
"inputs": [
60
{
61
"name": "wat",
62
"type": "address"
63
}
64
],
65
"name": "set",
66
"outputs": [],
67
"payable": false,
68
"stateMutability": "nonpayable",
69
"type": "function"
70
},
71
{
72
"constant": false,
73
"inputs": [
74
{
75
"name": "wat",
76
"type": "address"
77
}
78
],
79
"name": "unset",
80
"outputs": [],
81
"payable": false,
82
"stateMutability": "nonpayable",
83
"type": "function"
84
},
85
{
86
"constant": true,
87
"inputs": [
88
{
89
"name": "",
90
"type": "address"
91
}
92
],
93
"name": "indexes",
94
"outputs": [
95
{
96
"name": "",
97
"type": "bytes12"
98
}
99
],
100
"payable": false,
101
"stateMutability": "view",
102
"type": "function"
103
},
104
{
105
"constant": true,
106
"inputs": [],
107
"name": "next",
108
"outputs": [
109
{
110
"name": "",
111
"type": "bytes12"
112
}
113
],
114
"payable": false,
115
"stateMutability": "view",
116
"type": "function"
117
},
118
{
119
"constant": true,
120
"inputs": [],
121
"name": "read",
122
"outputs": [
123
{
124
"name": "",
125
"type": "bytes32"
126
}
127
],
128
"payable": false,
129
"stateMutability": "view",
130
"type": "function"
131
},
132
{
133
"constant": true,
134
"inputs": [],
135
"name": "peek",
136
"outputs": [
137
{
138
"name": "",
139
"type": "bytes32"
140
},
141
{
142
"name": "",
143
"type": "bool"
144
}
145
],
146
"payable": false,
147
"stateMutability": "view",
148
"type": "function"
149
},
150
{
151
"constant": true,
152
"inputs": [
153
{
154
"name": "",
155
"type": "bytes12"
156
}
157
],
158
"name": "values",
159
"outputs": [
160
{
161
"name": "",
162
"type": "address"
163
}
164
],
165
"payable": false,
166
"stateMutability": "view",
167
"type": "function"
168
},
169
{
170
"constant": false,
171
"inputs": [
172
{
173
"name": "min_",
174
"type": "uint96"
175
}
176
],
177
"name": "setMin",
178
"outputs": [],
179
"payable": false,
180
"stateMutability": "nonpayable",
181
"type": "function"
182
},
183
{
184
"constant": false,
185
"inputs": [
186
{
187
"name": "authority_",
188
"type": "address"
189
}
190
],
191
"name": "setAuthority",
192
"outputs": [],
193
"payable": false,
194
"stateMutability": "nonpayable",
195
"type": "function"
196
},
197
{
198
"constant": true,
199
"inputs": [],
200
"name": "owner",
201
"outputs": [
202
{
203
"name": "",
204
"type": "address"
205
}
206
],
207
"payable": false,
208
"stateMutability": "view",
209
"type": "function"
210
},
211
{
212
"constant": false,
213
"inputs": [],
214
"name": "void",
215
"outputs": [],
216
"payable": false,
217
"stateMutability": "nonpayable",
218
"type": "function"
219
},
220
{
221
"constant": false,
222
"inputs": [
223
{
224
"name": "pos",
225
"type": "bytes12"
226
},
227
{
228
"name": "wat",
229
"type": "address"
230
}
231
],
232
"name": "set",
233
"outputs": [],
234
"payable": false,
235
"stateMutability": "nonpayable",
236
"type": "function"
237
},
238
{
239
"constant": true,
240
"inputs": [],
241
"name": "authority",
242
"outputs": [
243
{
244
"name": "",
245
"type": "address"
246
}
247
],
248
"payable": false,
249
"stateMutability": "view",
250
"type": "function"
251
},
252
{
253
"constant": false,
254
"inputs": [
255
{
256
"name": "pos",
257
"type": "bytes12"
258
}
259
],
260
"name": "unset",
261
"outputs": [],
262
"payable": false,
263
"stateMutability": "nonpayable",
264
"type": "function"
265
},
266
{
267
"constant": false,
268
"inputs": [
269
{
270
"name": "next_",
271
"type": "bytes12"
272
}
273
],
274
"name": "setNext",
275
"outputs": [],
276
"payable": false,
277
"stateMutability": "nonpayable",
278
"type": "function"
279
},
280
{
281
"constant": true,
282
"inputs": [],
283
"name": "min",
284
"outputs": [
285
{
286
"name": "",
287
"type": "uint96"
288
}
289
],
290
"payable": false,
291
"stateMutability": "view",
292
"type": "function"
293
},
294
{
295
"anonymous": true,
296
"inputs": [
297
{
298
"indexed": true,
299
"name": "sig",
300
"type": "bytes4"
301
},
302
{
303
"indexed": true,
304
"name": "guy",
305
"type": "address"
306
},
307
{
308
"indexed": true,
309
"name": "foo",
310
"type": "bytes32"
311
},
312
{
313
"indexed": true,
314
"name": "bar",
315
"type": "bytes32"
316
},
317
{
318
"indexed": false,
319
"name": "wad",
320
"type": "uint256"
321
},
322
{
323
"indexed": false,
324
"name": "fax",
325
"type": "bytes"
326
}
327
],
328
"name": "LogNote",
329
"type": "event"
330
},
331
{
332
"anonymous": false,
333
"inputs": [
334
{
335
"indexed": true,
336
"name": "authority",
337
"type": "address"
338
}
339
],
340
"name": "LogSetAuthority",
341
"type": "event"
342
},
343
{
344
"anonymous": false,
345
"inputs": [
346
{
347
"indexed": true,
348
"name": "owner",
349
"type": "address"
350
}
351
],
352
"name": "LogSetOwner",
353
"type": "event"
354
}
355
]
Copied!
Copy link