UNPKG

16.2 kBJSONView Raw
1{
2 "contractName": "OnChainProvider",
3 "abi": [
4 {
5 "constant": false,
6 "inputs": [
7 {
8 "name": "id",
9 "type": "uint256"
10 },
11 {
12 "name": "userQuery",
13 "type": "string"
14 },
15 {
16 "name": "endpoint",
17 "type": "bytes32"
18 },
19 {
20 "name": "endpointParams",
21 "type": "bytes32[]"
22 },
23 {
24 "name": "onchainSubscriber",
25 "type": "bool"
26 }
27 ],
28 "name": "receive",
29 "outputs": [],
30 "payable": false,
31 "stateMutability": "nonpayable",
32 "type": "function"
33 }
34 ],
35 "bytecode": "0x",
36 "deployedBytecode": "0x",
37 "sourceMap": "",
38 "deployedSourceMap": "",
39 "source": "pragma solidity ^0.4.24;\n\ncontract OnChainProvider {\n /// @dev function for requesting data from on-chain provider\n /// @param id request id\n /// @param userQuery query string\n /// @param endpoint endpoint specifier ala 'smart_contract'\n /// @param endpointParams endpoint-specific params\n function receive(uint256 id, string userQuery, bytes32 endpoint, bytes32[] endpointParams, bool onchainSubscriber) external;\n}\n",
40 "sourcePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/OnChainProvider.sol",
41 "ast": {
42 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/OnChainProvider.sol",
43 "exportedSymbols": {
44 "OnChainProvider": [
45 1826
46 ]
47 },
48 "id": 1827,
49 "nodeType": "SourceUnit",
50 "nodes": [
51 {
52 "id": 1811,
53 "literals": [
54 "solidity",
55 "^",
56 "0.4",
57 ".24"
58 ],
59 "nodeType": "PragmaDirective",
60 "src": "0:24:13"
61 },
62 {
63 "baseContracts": [],
64 "contractDependencies": [],
65 "contractKind": "contract",
66 "documentation": null,
67 "fullyImplemented": false,
68 "id": 1826,
69 "linearizedBaseContracts": [
70 1826
71 ],
72 "name": "OnChainProvider",
73 "nodeType": "ContractDefinition",
74 "nodes": [
75 {
76 "body": null,
77 "documentation": "@dev function for requesting data from on-chain provider\n @param id request id\n @param userQuery query string\n @param endpoint endpoint specifier ala 'smart_contract'\n @param endpointParams endpoint-specific params",
78 "id": 1825,
79 "implemented": false,
80 "isConstructor": false,
81 "isDeclaredConst": false,
82 "modifiers": [],
83 "name": "receive",
84 "nodeType": "FunctionDefinition",
85 "parameters": {
86 "id": 1823,
87 "nodeType": "ParameterList",
88 "parameters": [
89 {
90 "constant": false,
91 "id": 1813,
92 "name": "id",
93 "nodeType": "VariableDeclaration",
94 "scope": 1825,
95 "src": "325:10:13",
96 "stateVariable": false,
97 "storageLocation": "default",
98 "typeDescriptions": {
99 "typeIdentifier": "t_uint256",
100 "typeString": "uint256"
101 },
102 "typeName": {
103 "id": 1812,
104 "name": "uint256",
105 "nodeType": "ElementaryTypeName",
106 "src": "325:7:13",
107 "typeDescriptions": {
108 "typeIdentifier": "t_uint256",
109 "typeString": "uint256"
110 }
111 },
112 "value": null,
113 "visibility": "internal"
114 },
115 {
116 "constant": false,
117 "id": 1815,
118 "name": "userQuery",
119 "nodeType": "VariableDeclaration",
120 "scope": 1825,
121 "src": "337:16:13",
122 "stateVariable": false,
123 "storageLocation": "default",
124 "typeDescriptions": {
125 "typeIdentifier": "t_string_calldata_ptr",
126 "typeString": "string"
127 },
128 "typeName": {
129 "id": 1814,
130 "name": "string",
131 "nodeType": "ElementaryTypeName",
132 "src": "337:6:13",
133 "typeDescriptions": {
134 "typeIdentifier": "t_string_storage_ptr",
135 "typeString": "string"
136 }
137 },
138 "value": null,
139 "visibility": "internal"
140 },
141 {
142 "constant": false,
143 "id": 1817,
144 "name": "endpoint",
145 "nodeType": "VariableDeclaration",
146 "scope": 1825,
147 "src": "355:16:13",
148 "stateVariable": false,
149 "storageLocation": "default",
150 "typeDescriptions": {
151 "typeIdentifier": "t_bytes32",
152 "typeString": "bytes32"
153 },
154 "typeName": {
155 "id": 1816,
156 "name": "bytes32",
157 "nodeType": "ElementaryTypeName",
158 "src": "355:7:13",
159 "typeDescriptions": {
160 "typeIdentifier": "t_bytes32",
161 "typeString": "bytes32"
162 }
163 },
164 "value": null,
165 "visibility": "internal"
166 },
167 {
168 "constant": false,
169 "id": 1820,
170 "name": "endpointParams",
171 "nodeType": "VariableDeclaration",
172 "scope": 1825,
173 "src": "373:24:13",
174 "stateVariable": false,
175 "storageLocation": "default",
176 "typeDescriptions": {
177 "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
178 "typeString": "bytes32[]"
179 },
180 "typeName": {
181 "baseType": {
182 "id": 1818,
183 "name": "bytes32",
184 "nodeType": "ElementaryTypeName",
185 "src": "373:7:13",
186 "typeDescriptions": {
187 "typeIdentifier": "t_bytes32",
188 "typeString": "bytes32"
189 }
190 },
191 "id": 1819,
192 "length": null,
193 "nodeType": "ArrayTypeName",
194 "src": "373:9:13",
195 "typeDescriptions": {
196 "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
197 "typeString": "bytes32[]"
198 }
199 },
200 "value": null,
201 "visibility": "internal"
202 },
203 {
204 "constant": false,
205 "id": 1822,
206 "name": "onchainSubscriber",
207 "nodeType": "VariableDeclaration",
208 "scope": 1825,
209 "src": "399:22:13",
210 "stateVariable": false,
211 "storageLocation": "default",
212 "typeDescriptions": {
213 "typeIdentifier": "t_bool",
214 "typeString": "bool"
215 },
216 "typeName": {
217 "id": 1821,
218 "name": "bool",
219 "nodeType": "ElementaryTypeName",
220 "src": "399:4:13",
221 "typeDescriptions": {
222 "typeIdentifier": "t_bool",
223 "typeString": "bool"
224 }
225 },
226 "value": null,
227 "visibility": "internal"
228 }
229 ],
230 "src": "324:98:13"
231 },
232 "payable": false,
233 "returnParameters": {
234 "id": 1824,
235 "nodeType": "ParameterList",
236 "parameters": [],
237 "src": "431:0:13"
238 },
239 "scope": 1826,
240 "src": "308:124:13",
241 "stateMutability": "nonpayable",
242 "superFunction": null,
243 "visibility": "external"
244 }
245 ],
246 "scope": 1827,
247 "src": "26:408:13"
248 }
249 ],
250 "src": "0:435:13"
251 },
252 "legacyAST": {
253 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/OnChainProvider.sol",
254 "exportedSymbols": {
255 "OnChainProvider": [
256 1826
257 ]
258 },
259 "id": 1827,
260 "nodeType": "SourceUnit",
261 "nodes": [
262 {
263 "id": 1811,
264 "literals": [
265 "solidity",
266 "^",
267 "0.4",
268 ".24"
269 ],
270 "nodeType": "PragmaDirective",
271 "src": "0:24:13"
272 },
273 {
274 "baseContracts": [],
275 "contractDependencies": [],
276 "contractKind": "contract",
277 "documentation": null,
278 "fullyImplemented": false,
279 "id": 1826,
280 "linearizedBaseContracts": [
281 1826
282 ],
283 "name": "OnChainProvider",
284 "nodeType": "ContractDefinition",
285 "nodes": [
286 {
287 "body": null,
288 "documentation": "@dev function for requesting data from on-chain provider\n @param id request id\n @param userQuery query string\n @param endpoint endpoint specifier ala 'smart_contract'\n @param endpointParams endpoint-specific params",
289 "id": 1825,
290 "implemented": false,
291 "isConstructor": false,
292 "isDeclaredConst": false,
293 "modifiers": [],
294 "name": "receive",
295 "nodeType": "FunctionDefinition",
296 "parameters": {
297 "id": 1823,
298 "nodeType": "ParameterList",
299 "parameters": [
300 {
301 "constant": false,
302 "id": 1813,
303 "name": "id",
304 "nodeType": "VariableDeclaration",
305 "scope": 1825,
306 "src": "325:10:13",
307 "stateVariable": false,
308 "storageLocation": "default",
309 "typeDescriptions": {
310 "typeIdentifier": "t_uint256",
311 "typeString": "uint256"
312 },
313 "typeName": {
314 "id": 1812,
315 "name": "uint256",
316 "nodeType": "ElementaryTypeName",
317 "src": "325:7:13",
318 "typeDescriptions": {
319 "typeIdentifier": "t_uint256",
320 "typeString": "uint256"
321 }
322 },
323 "value": null,
324 "visibility": "internal"
325 },
326 {
327 "constant": false,
328 "id": 1815,
329 "name": "userQuery",
330 "nodeType": "VariableDeclaration",
331 "scope": 1825,
332 "src": "337:16:13",
333 "stateVariable": false,
334 "storageLocation": "default",
335 "typeDescriptions": {
336 "typeIdentifier": "t_string_calldata_ptr",
337 "typeString": "string"
338 },
339 "typeName": {
340 "id": 1814,
341 "name": "string",
342 "nodeType": "ElementaryTypeName",
343 "src": "337:6:13",
344 "typeDescriptions": {
345 "typeIdentifier": "t_string_storage_ptr",
346 "typeString": "string"
347 }
348 },
349 "value": null,
350 "visibility": "internal"
351 },
352 {
353 "constant": false,
354 "id": 1817,
355 "name": "endpoint",
356 "nodeType": "VariableDeclaration",
357 "scope": 1825,
358 "src": "355:16:13",
359 "stateVariable": false,
360 "storageLocation": "default",
361 "typeDescriptions": {
362 "typeIdentifier": "t_bytes32",
363 "typeString": "bytes32"
364 },
365 "typeName": {
366 "id": 1816,
367 "name": "bytes32",
368 "nodeType": "ElementaryTypeName",
369 "src": "355:7:13",
370 "typeDescriptions": {
371 "typeIdentifier": "t_bytes32",
372 "typeString": "bytes32"
373 }
374 },
375 "value": null,
376 "visibility": "internal"
377 },
378 {
379 "constant": false,
380 "id": 1820,
381 "name": "endpointParams",
382 "nodeType": "VariableDeclaration",
383 "scope": 1825,
384 "src": "373:24:13",
385 "stateVariable": false,
386 "storageLocation": "default",
387 "typeDescriptions": {
388 "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
389 "typeString": "bytes32[]"
390 },
391 "typeName": {
392 "baseType": {
393 "id": 1818,
394 "name": "bytes32",
395 "nodeType": "ElementaryTypeName",
396 "src": "373:7:13",
397 "typeDescriptions": {
398 "typeIdentifier": "t_bytes32",
399 "typeString": "bytes32"
400 }
401 },
402 "id": 1819,
403 "length": null,
404 "nodeType": "ArrayTypeName",
405 "src": "373:9:13",
406 "typeDescriptions": {
407 "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
408 "typeString": "bytes32[]"
409 }
410 },
411 "value": null,
412 "visibility": "internal"
413 },
414 {
415 "constant": false,
416 "id": 1822,
417 "name": "onchainSubscriber",
418 "nodeType": "VariableDeclaration",
419 "scope": 1825,
420 "src": "399:22:13",
421 "stateVariable": false,
422 "storageLocation": "default",
423 "typeDescriptions": {
424 "typeIdentifier": "t_bool",
425 "typeString": "bool"
426 },
427 "typeName": {
428 "id": 1821,
429 "name": "bool",
430 "nodeType": "ElementaryTypeName",
431 "src": "399:4:13",
432 "typeDescriptions": {
433 "typeIdentifier": "t_bool",
434 "typeString": "bool"
435 }
436 },
437 "value": null,
438 "visibility": "internal"
439 }
440 ],
441 "src": "324:98:13"
442 },
443 "payable": false,
444 "returnParameters": {
445 "id": 1824,
446 "nodeType": "ParameterList",
447 "parameters": [],
448 "src": "431:0:13"
449 },
450 "scope": 1826,
451 "src": "308:124:13",
452 "stateMutability": "nonpayable",
453 "superFunction": null,
454 "visibility": "external"
455 }
456 ],
457 "scope": 1827,
458 "src": "26:408:13"
459 }
460 ],
461 "src": "0:435:13"
462 },
463 "compiler": {
464 "name": "solc",
465 "version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
466 },
467 "networks": {},
468 "schemaVersion": "2.0.2",
469 "updatedAt": "2019-06-25T21:15:14.158Z"
470}
\No newline at end of file