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name": "_token",
|
7 |
+
"type": "address"
|
8 |
+
},
|
9 |
+
{
|
10 |
+
"internalType": "uint256",
|
11 |
+
"name": "_tokenId",
|
12 |
+
"type": "uint256"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"internalType": "uint256",
|
16 |
+
"name": "_price",
|
17 |
+
"type": "uint256"
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"stateMutability": "nonpayable",
|
21 |
+
"type": "constructor"
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"inputs": [
|
25 |
+
{
|
26 |
+
"internalType": "uint256",
|
27 |
+
"name": "agentId",
|
28 |
+
"type": "uint256"
|
29 |
+
}
|
30 |
+
],
|
31 |
+
"name": "AgentNotFound",
|
32 |
+
"type": "error"
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"inputs": [
|
36 |
+
{
|
37 |
+
"internalType": "uint256",
|
38 |
+
"name": "provided",
|
39 |
+
"type": "uint256"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"internalType": "uint256",
|
43 |
+
"name": "expected",
|
44 |
+
"type": "uint256"
|
45 |
+
}
|
46 |
+
],
|
47 |
+
"name": "NotEnoughPaid",
|
48 |
+
"type": "error"
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"inputs": [
|
52 |
+
{
|
53 |
+
"internalType": "uint256",
|
54 |
+
"name": "provided",
|
55 |
+
"type": "uint256"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"internalType": "uint256",
|
59 |
+
"name": "max",
|
60 |
+
"type": "uint256"
|
61 |
+
}
|
62 |
+
],
|
63 |
+
"name": "Overflow",
|
64 |
+
"type": "error"
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"inputs": [
|
68 |
+
{
|
69 |
+
"internalType": "uint256",
|
70 |
+
"name": "requestId",
|
71 |
+
"type": "uint256"
|
72 |
+
}
|
73 |
+
],
|
74 |
+
"name": "RequestIdNotFound",
|
75 |
+
"type": "error"
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"inputs": [],
|
79 |
+
"name": "ZeroAddress",
|
80 |
+
"type": "error"
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"anonymous": false,
|
84 |
+
"inputs": [
|
85 |
+
{
|
86 |
+
"indexed": true,
|
87 |
+
"internalType": "address",
|
88 |
+
"name": "sender",
|
89 |
+
"type": "address"
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"indexed": false,
|
93 |
+
"internalType": "uint256",
|
94 |
+
"name": "requestId",
|
95 |
+
"type": "uint256"
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"indexed": false,
|
99 |
+
"internalType": "bytes",
|
100 |
+
"name": "data",
|
101 |
+
"type": "bytes"
|
102 |
+
}
|
103 |
+
],
|
104 |
+
"name": "Deliver",
|
105 |
+
"type": "event"
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"anonymous": false,
|
109 |
+
"inputs": [
|
110 |
+
{
|
111 |
+
"indexed": false,
|
112 |
+
"internalType": "uint256",
|
113 |
+
"name": "price",
|
114 |
+
"type": "uint256"
|
115 |
+
}
|
116 |
+
],
|
117 |
+
"name": "PriceUpdated",
|
118 |
+
"type": "event"
|
119 |
+
},
|
120 |
+
{
|
121 |
+
"anonymous": false,
|
122 |
+
"inputs": [
|
123 |
+
{
|
124 |
+
"indexed": true,
|
125 |
+
"internalType": "address",
|
126 |
+
"name": "sender",
|
127 |
+
"type": "address"
|
128 |
+
},
|
129 |
+
{
|
130 |
+
"indexed": false,
|
131 |
+
"internalType": "uint256",
|
132 |
+
"name": "requestId",
|
133 |
+
"type": "uint256"
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"indexed": false,
|
137 |
+
"internalType": "bytes",
|
138 |
+
"name": "data",
|
139 |
+
"type": "bytes"
|
140 |
+
}
|
141 |
+
],
|
142 |
+
"name": "Request",
|
143 |
+
"type": "event"
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"inputs": [
|
147 |
+
{
|
148 |
+
"internalType": "uint256",
|
149 |
+
"name": "requestId",
|
150 |
+
"type": "uint256"
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"internalType": "bytes",
|
154 |
+
"name": "data",
|
155 |
+
"type": "bytes"
|
156 |
+
}
|
157 |
+
],
|
158 |
+
"name": "deliver",
|
159 |
+
"outputs": [],
|
160 |
+
"stateMutability": "nonpayable",
|
161 |
+
"type": "function"
|
162 |
+
},
|
163 |
+
{
|
164 |
+
"inputs": [],
|
165 |
+
"name": "entryPoint",
|
166 |
+
"outputs": [
|
167 |
+
{
|
168 |
+
"internalType": "contract IEntryPoint",
|
169 |
+
"name": "",
|
170 |
+
"type": "address"
|
171 |
+
}
|
172 |
+
],
|
173 |
+
"stateMutability": "view",
|
174 |
+
"type": "function"
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"inputs": [
|
178 |
+
{
|
179 |
+
"internalType": "address",
|
180 |
+
"name": "to",
|
181 |
+
"type": "address"
|
182 |
+
},
|
183 |
+
{
|
184 |
+
"internalType": "uint256",
|
185 |
+
"name": "value",
|
186 |
+
"type": "uint256"
|
187 |
+
},
|
188 |
+
{
|
189 |
+
"internalType": "bytes",
|
190 |
+
"name": "data",
|
191 |
+
"type": "bytes"
|
192 |
+
},
|
193 |
+
{
|
194 |
+
"internalType": "enum Enum.Operation",
|
195 |
+
"name": "operation",
|
196 |
+
"type": "uint8"
|
197 |
+
},
|
198 |
+
{
|
199 |
+
"internalType": "uint256",
|
200 |
+
"name": "txGas",
|
201 |
+
"type": "uint256"
|
202 |
+
}
|
203 |
+
],
|
204 |
+
"name": "exec",
|
205 |
+
"outputs": [
|
206 |
+
{
|
207 |
+
"internalType": "bytes",
|
208 |
+
"name": "returnData",
|
209 |
+
"type": "bytes"
|
210 |
+
}
|
211 |
+
],
|
212 |
+
"stateMutability": "nonpayable",
|
213 |
+
"type": "function"
|
214 |
+
},
|
215 |
+
{
|
216 |
+
"inputs": [
|
217 |
+
{
|
218 |
+
"internalType": "address",
|
219 |
+
"name": "account",
|
220 |
+
"type": "address"
|
221 |
+
},
|
222 |
+
{
|
223 |
+
"internalType": "bytes",
|
224 |
+
"name": "data",
|
225 |
+
"type": "bytes"
|
226 |
+
}
|
227 |
+
],
|
228 |
+
"name": "getRequestId",
|
229 |
+
"outputs": [
|
230 |
+
{
|
231 |
+
"internalType": "uint256",
|
232 |
+
"name": "requestId",
|
233 |
+
"type": "uint256"
|
234 |
+
}
|
235 |
+
],
|
236 |
+
"stateMutability": "pure",
|
237 |
+
"type": "function"
|
238 |
+
},
|
239 |
+
{
|
240 |
+
"inputs": [
|
241 |
+
{
|
242 |
+
"internalType": "address",
|
243 |
+
"name": "account",
|
244 |
+
"type": "address"
|
245 |
+
}
|
246 |
+
],
|
247 |
+
"name": "getRequestsCount",
|
248 |
+
"outputs": [
|
249 |
+
{
|
250 |
+
"internalType": "uint256",
|
251 |
+
"name": "requestsCount",
|
252 |
+
"type": "uint256"
|
253 |
+
}
|
254 |
+
],
|
255 |
+
"stateMutability": "view",
|
256 |
+
"type": "function"
|
257 |
+
},
|
258 |
+
{
|
259 |
+
"inputs": [
|
260 |
+
{
|
261 |
+
"internalType": "uint256",
|
262 |
+
"name": "size",
|
263 |
+
"type": "uint256"
|
264 |
+
},
|
265 |
+
{
|
266 |
+
"internalType": "uint256",
|
267 |
+
"name": "offset",
|
268 |
+
"type": "uint256"
|
269 |
+
}
|
270 |
+
],
|
271 |
+
"name": "getUndeliveredRequestIds",
|
272 |
+
"outputs": [
|
273 |
+
{
|
274 |
+
"internalType": "uint256[]",
|
275 |
+
"name": "requestIds",
|
276 |
+
"type": "uint256[]"
|
277 |
+
}
|
278 |
+
],
|
279 |
+
"stateMutability": "view",
|
280 |
+
"type": "function"
|
281 |
+
},
|
282 |
+
{
|
283 |
+
"inputs": [
|
284 |
+
{
|
285 |
+
"internalType": "address",
|
286 |
+
"name": "signer",
|
287 |
+
"type": "address"
|
288 |
+
}
|
289 |
+
],
|
290 |
+
"name": "isOperator",
|
291 |
+
"outputs": [
|
292 |
+
{
|
293 |
+
"internalType": "bool",
|
294 |
+
"name": "",
|
295 |
+
"type": "bool"
|
296 |
+
}
|
297 |
+
],
|
298 |
+
"stateMutability": "view",
|
299 |
+
"type": "function"
|
300 |
+
},
|
301 |
+
{
|
302 |
+
"inputs": [
|
303 |
+
{
|
304 |
+
"internalType": "bytes32",
|
305 |
+
"name": "hash",
|
306 |
+
"type": "bytes32"
|
307 |
+
},
|
308 |
+
{
|
309 |
+
"internalType": "bytes",
|
310 |
+
"name": "signature",
|
311 |
+
"type": "bytes"
|
312 |
+
}
|
313 |
+
],
|
314 |
+
"name": "isValidSignature",
|
315 |
+
"outputs": [
|
316 |
+
{
|
317 |
+
"internalType": "bytes4",
|
318 |
+
"name": "magicValue",
|
319 |
+
"type": "bytes4"
|
320 |
+
}
|
321 |
+
],
|
322 |
+
"stateMutability": "view",
|
323 |
+
"type": "function"
|
324 |
+
},
|
325 |
+
{
|
326 |
+
"inputs": [
|
327 |
+
{
|
328 |
+
"internalType": "uint256",
|
329 |
+
"name": "",
|
330 |
+
"type": "uint256"
|
331 |
+
},
|
332 |
+
{
|
333 |
+
"internalType": "uint256",
|
334 |
+
"name": "",
|
335 |
+
"type": "uint256"
|
336 |
+
}
|
337 |
+
],
|
338 |
+
"name": "mapRequestIds",
|
339 |
+
"outputs": [
|
340 |
+
{
|
341 |
+
"internalType": "uint256",
|
342 |
+
"name": "",
|
343 |
+
"type": "uint256"
|
344 |
+
}
|
345 |
+
],
|
346 |
+
"stateMutability": "view",
|
347 |
+
"type": "function"
|
348 |
+
},
|
349 |
+
{
|
350 |
+
"inputs": [
|
351 |
+
{
|
352 |
+
"internalType": "address",
|
353 |
+
"name": "",
|
354 |
+
"type": "address"
|
355 |
+
}
|
356 |
+
],
|
357 |
+
"name": "mapRequestsCounts",
|
358 |
+
"outputs": [
|
359 |
+
{
|
360 |
+
"internalType": "uint256",
|
361 |
+
"name": "",
|
362 |
+
"type": "uint256"
|
363 |
+
}
|
364 |
+
],
|
365 |
+
"stateMutability": "view",
|
366 |
+
"type": "function"
|
367 |
+
},
|
368 |
+
{
|
369 |
+
"inputs": [],
|
370 |
+
"name": "nonce",
|
371 |
+
"outputs": [
|
372 |
+
{
|
373 |
+
"internalType": "uint256",
|
374 |
+
"name": "",
|
375 |
+
"type": "uint256"
|
376 |
+
}
|
377 |
+
],
|
378 |
+
"stateMutability": "view",
|
379 |
+
"type": "function"
|
380 |
+
},
|
381 |
+
{
|
382 |
+
"inputs": [],
|
383 |
+
"name": "numUndeliveredRequests",
|
384 |
+
"outputs": [
|
385 |
+
{
|
386 |
+
"internalType": "uint256",
|
387 |
+
"name": "",
|
388 |
+
"type": "uint256"
|
389 |
+
}
|
390 |
+
],
|
391 |
+
"stateMutability": "view",
|
392 |
+
"type": "function"
|
393 |
+
},
|
394 |
+
{
|
395 |
+
"inputs": [
|
396 |
+
{
|
397 |
+
"internalType": "address",
|
398 |
+
"name": "",
|
399 |
+
"type": "address"
|
400 |
+
},
|
401 |
+
{
|
402 |
+
"internalType": "address",
|
403 |
+
"name": "",
|
404 |
+
"type": "address"
|
405 |
+
},
|
406 |
+
{
|
407 |
+
"internalType": "uint256[]",
|
408 |
+
"name": "",
|
409 |
+
"type": "uint256[]"
|
410 |
+
},
|
411 |
+
{
|
412 |
+
"internalType": "uint256[]",
|
413 |
+
"name": "",
|
414 |
+
"type": "uint256[]"
|
415 |
+
},
|
416 |
+
{
|
417 |
+
"internalType": "bytes",
|
418 |
+
"name": "",
|
419 |
+
"type": "bytes"
|
420 |
+
}
|
421 |
+
],
|
422 |
+
"name": "onERC1155BatchReceived",
|
423 |
+
"outputs": [
|
424 |
+
{
|
425 |
+
"internalType": "bytes4",
|
426 |
+
"name": "",
|
427 |
+
"type": "bytes4"
|
428 |
+
}
|
429 |
+
],
|
430 |
+
"stateMutability": "pure",
|
431 |
+
"type": "function"
|
432 |
+
},
|
433 |
+
{
|
434 |
+
"inputs": [
|
435 |
+
{
|
436 |
+
"internalType": "address",
|
437 |
+
"name": "",
|
438 |
+
"type": "address"
|
439 |
+
},
|
440 |
+
{
|
441 |
+
"internalType": "address",
|
442 |
+
"name": "",
|
443 |
+
"type": "address"
|
444 |
+
},
|
445 |
+
{
|
446 |
+
"internalType": "uint256",
|
447 |
+
"name": "",
|
448 |
+
"type": "uint256"
|
449 |
+
},
|
450 |
+
{
|
451 |
+
"internalType": "uint256",
|
452 |
+
"name": "",
|
453 |
+
"type": "uint256"
|
454 |
+
},
|
455 |
+
{
|
456 |
+
"internalType": "bytes",
|
457 |
+
"name": "",
|
458 |
+
"type": "bytes"
|
459 |
+
}
|
460 |
+
],
|
461 |
+
"name": "onERC1155Received",
|
462 |
+
"outputs": [
|
463 |
+
{
|
464 |
+
"internalType": "bytes4",
|
465 |
+
"name": "",
|
466 |
+
"type": "bytes4"
|
467 |
+
}
|
468 |
+
],
|
469 |
+
"stateMutability": "pure",
|
470 |
+
"type": "function"
|
471 |
+
},
|
472 |
+
{
|
473 |
+
"inputs": [
|
474 |
+
{
|
475 |
+
"internalType": "address",
|
476 |
+
"name": "",
|
477 |
+
"type": "address"
|
478 |
+
},
|
479 |
+
{
|
480 |
+
"internalType": "address",
|
481 |
+
"name": "",
|
482 |
+
"type": "address"
|
483 |
+
},
|
484 |
+
{
|
485 |
+
"internalType": "uint256",
|
486 |
+
"name": "",
|
487 |
+
"type": "uint256"
|
488 |
+
},
|
489 |
+
{
|
490 |
+
"internalType": "bytes",
|
491 |
+
"name": "",
|
492 |
+
"type": "bytes"
|
493 |
+
}
|
494 |
+
],
|
495 |
+
"name": "onERC721Received",
|
496 |
+
"outputs": [
|
497 |
+
{
|
498 |
+
"internalType": "bytes4",
|
499 |
+
"name": "",
|
500 |
+
"type": "bytes4"
|
501 |
+
}
|
502 |
+
],
|
503 |
+
"stateMutability": "pure",
|
504 |
+
"type": "function"
|
505 |
+
},
|
506 |
+
{
|
507 |
+
"inputs": [],
|
508 |
+
"name": "price",
|
509 |
+
"outputs": [
|
510 |
+
{
|
511 |
+
"internalType": "uint256",
|
512 |
+
"name": "",
|
513 |
+
"type": "uint256"
|
514 |
+
}
|
515 |
+
],
|
516 |
+
"stateMutability": "view",
|
517 |
+
"type": "function"
|
518 |
+
},
|
519 |
+
{
|
520 |
+
"inputs": [
|
521 |
+
{
|
522 |
+
"internalType": "bytes",
|
523 |
+
"name": "data",
|
524 |
+
"type": "bytes"
|
525 |
+
}
|
526 |
+
],
|
527 |
+
"name": "request",
|
528 |
+
"outputs": [
|
529 |
+
{
|
530 |
+
"internalType": "uint256",
|
531 |
+
"name": "requestId",
|
532 |
+
"type": "uint256"
|
533 |
+
}
|
534 |
+
],
|
535 |
+
"stateMutability": "payable",
|
536 |
+
"type": "function"
|
537 |
+
},
|
538 |
+
{
|
539 |
+
"inputs": [
|
540 |
+
{
|
541 |
+
"internalType": "uint256",
|
542 |
+
"name": "newPrice",
|
543 |
+
"type": "uint256"
|
544 |
+
}
|
545 |
+
],
|
546 |
+
"name": "setPrice",
|
547 |
+
"outputs": [],
|
548 |
+
"stateMutability": "nonpayable",
|
549 |
+
"type": "function"
|
550 |
+
},
|
551 |
+
{
|
552 |
+
"inputs": [
|
553 |
+
{
|
554 |
+
"internalType": "bytes",
|
555 |
+
"name": "initParams",
|
556 |
+
"type": "bytes"
|
557 |
+
}
|
558 |
+
],
|
559 |
+
"name": "setUp",
|
560 |
+
"outputs": [],
|
561 |
+
"stateMutability": "nonpayable",
|
562 |
+
"type": "function"
|
563 |
+
},
|
564 |
+
{
|
565 |
+
"inputs": [],
|
566 |
+
"name": "token",
|
567 |
+
"outputs": [
|
568 |
+
{
|
569 |
+
"internalType": "contract IERC721",
|
570 |
+
"name": "",
|
571 |
+
"type": "address"
|
572 |
+
}
|
573 |
+
],
|
574 |
+
"stateMutability": "view",
|
575 |
+
"type": "function"
|
576 |
+
},
|
577 |
+
{
|
578 |
+
"inputs": [],
|
579 |
+
"name": "tokenId",
|
580 |
+
"outputs": [
|
581 |
+
{
|
582 |
+
"internalType": "uint256",
|
583 |
+
"name": "",
|
584 |
+
"type": "uint256"
|
585 |
+
}
|
586 |
+
],
|
587 |
+
"stateMutability": "view",
|
588 |
+
"type": "function"
|
589 |
+
},
|
590 |
+
{
|
591 |
+
"inputs": [
|
592 |
+
{
|
593 |
+
"internalType": "address",
|
594 |
+
"name": "",
|
595 |
+
"type": "address"
|
596 |
+
},
|
597 |
+
{
|
598 |
+
"internalType": "address",
|
599 |
+
"name": "",
|
600 |
+
"type": "address"
|
601 |
+
},
|
602 |
+
{
|
603 |
+
"internalType": "address",
|
604 |
+
"name": "",
|
605 |
+
"type": "address"
|
606 |
+
},
|
607 |
+
{
|
608 |
+
"internalType": "uint256",
|
609 |
+
"name": "",
|
610 |
+
"type": "uint256"
|
611 |
+
},
|
612 |
+
{
|
613 |
+
"internalType": "bytes",
|
614 |
+
"name": "",
|
615 |
+
"type": "bytes"
|
616 |
+
},
|
617 |
+
{
|
618 |
+
"internalType": "bytes",
|
619 |
+
"name": "",
|
620 |
+
"type": "bytes"
|
621 |
+
}
|
622 |
+
],
|
623 |
+
"name": "tokensReceived",
|
624 |
+
"outputs": [],
|
625 |
+
"stateMutability": "pure",
|
626 |
+
"type": "function"
|
627 |
+
},
|
628 |
+
{
|
629 |
+
"inputs": [
|
630 |
+
{
|
631 |
+
"components": [
|
632 |
+
{
|
633 |
+
"internalType": "address",
|
634 |
+
"name": "sender",
|
635 |
+
"type": "address"
|
636 |
+
},
|
637 |
+
{
|
638 |
+
"internalType": "uint256",
|
639 |
+
"name": "nonce",
|
640 |
+
"type": "uint256"
|
641 |
+
},
|
642 |
+
{
|
643 |
+
"internalType": "bytes",
|
644 |
+
"name": "initCode",
|
645 |
+
"type": "bytes"
|
646 |
+
},
|
647 |
+
{
|
648 |
+
"internalType": "bytes",
|
649 |
+
"name": "callData",
|
650 |
+
"type": "bytes"
|
651 |
+
},
|
652 |
+
{
|
653 |
+
"internalType": "uint256",
|
654 |
+
"name": "callGasLimit",
|
655 |
+
"type": "uint256"
|
656 |
+
},
|
657 |
+
{
|
658 |
+
"internalType": "uint256",
|
659 |
+
"name": "verificationGasLimit",
|
660 |
+
"type": "uint256"
|
661 |
+
},
|
662 |
+
{
|
663 |
+
"internalType": "uint256",
|
664 |
+
"name": "preVerificationGas",
|
665 |
+
"type": "uint256"
|
666 |
+
},
|
667 |
+
{
|
668 |
+
"internalType": "uint256",
|
669 |
+
"name": "maxFeePerGas",
|
670 |
+
"type": "uint256"
|
671 |
+
},
|
672 |
+
{
|
673 |
+
"internalType": "uint256",
|
674 |
+
"name": "maxPriorityFeePerGas",
|
675 |
+
"type": "uint256"
|
676 |
+
},
|
677 |
+
{
|
678 |
+
"internalType": "bytes",
|
679 |
+
"name": "paymasterAndData",
|
680 |
+
"type": "bytes"
|
681 |
+
},
|
682 |
+
{
|
683 |
+
"internalType": "bytes",
|
684 |
+
"name": "signature",
|
685 |
+
"type": "bytes"
|
686 |
+
}
|
687 |
+
],
|
688 |
+
"internalType": "struct UserOperation",
|
689 |
+
"name": "userOp",
|
690 |
+
"type": "tuple"
|
691 |
+
},
|
692 |
+
{
|
693 |
+
"internalType": "bytes32",
|
694 |
+
"name": "userOpHash",
|
695 |
+
"type": "bytes32"
|
696 |
+
},
|
697 |
+
{
|
698 |
+
"internalType": "uint256",
|
699 |
+
"name": "missingAccountFunds",
|
700 |
+
"type": "uint256"
|
701 |
+
}
|
702 |
+
],
|
703 |
+
"name": "validateUserOp",
|
704 |
+
"outputs": [
|
705 |
+
{
|
706 |
+
"internalType": "uint256",
|
707 |
+
"name": "validationData",
|
708 |
+
"type": "uint256"
|
709 |
+
}
|
710 |
+
],
|
711 |
+
"stateMutability": "nonpayable",
|
712 |
+
"type": "function"
|
713 |
+
},
|
714 |
+
{
|
715 |
+
"stateMutability": "payable",
|
716 |
+
"type": "receive"
|
717 |
+
}
|
718 |
+
]
|
contracts/old_mech_abi.json
ADDED
@@ -0,0 +1,605 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"inputs": [
|
4 |
+
{
|
5 |
+
"internalType": "address",
|
6 |
+
"name": "_token",
|
7 |
+
"type": "address"
|
8 |
+
},
|
9 |
+
{
|
10 |
+
"internalType": "uint256",
|
11 |
+
"name": "_tokenId",
|
12 |
+
"type": "uint256"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"internalType": "uint256",
|
16 |
+
"name": "_price",
|
17 |
+
"type": "uint256"
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"stateMutability": "nonpayable",
|
21 |
+
"type": "constructor"
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"inputs": [
|
25 |
+
{
|
26 |
+
"internalType": "uint256",
|
27 |
+
"name": "agentId",
|
28 |
+
"type": "uint256"
|
29 |
+
}
|
30 |
+
],
|
31 |
+
"name": "AgentNotFound",
|
32 |
+
"type": "error"
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"inputs": [
|
36 |
+
{
|
37 |
+
"internalType": "uint256",
|
38 |
+
"name": "provided",
|
39 |
+
"type": "uint256"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"internalType": "uint256",
|
43 |
+
"name": "expected",
|
44 |
+
"type": "uint256"
|
45 |
+
}
|
46 |
+
],
|
47 |
+
"name": "NotEnoughPaid",
|
48 |
+
"type": "error"
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"inputs": [],
|
52 |
+
"name": "ZeroAddress",
|
53 |
+
"type": "error"
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"anonymous": false,
|
57 |
+
"inputs": [
|
58 |
+
{
|
59 |
+
"indexed": false,
|
60 |
+
"internalType": "uint256",
|
61 |
+
"name": "requestId",
|
62 |
+
"type": "uint256"
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"indexed": false,
|
66 |
+
"internalType": "bytes",
|
67 |
+
"name": "data",
|
68 |
+
"type": "bytes"
|
69 |
+
}
|
70 |
+
],
|
71 |
+
"name": "Deliver",
|
72 |
+
"type": "event"
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"anonymous": false,
|
76 |
+
"inputs": [
|
77 |
+
{
|
78 |
+
"indexed": true,
|
79 |
+
"internalType": "address",
|
80 |
+
"name": "sender",
|
81 |
+
"type": "address"
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"indexed": false,
|
85 |
+
"internalType": "bytes32",
|
86 |
+
"name": "taskHash",
|
87 |
+
"type": "bytes32"
|
88 |
+
}
|
89 |
+
],
|
90 |
+
"name": "Perform",
|
91 |
+
"type": "event"
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"anonymous": false,
|
95 |
+
"inputs": [
|
96 |
+
{
|
97 |
+
"indexed": false,
|
98 |
+
"internalType": "uint256",
|
99 |
+
"name": "price",
|
100 |
+
"type": "uint256"
|
101 |
+
}
|
102 |
+
],
|
103 |
+
"name": "PriceUpdated",
|
104 |
+
"type": "event"
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"anonymous": false,
|
108 |
+
"inputs": [
|
109 |
+
{
|
110 |
+
"indexed": true,
|
111 |
+
"internalType": "address",
|
112 |
+
"name": "sender",
|
113 |
+
"type": "address"
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"indexed": false,
|
117 |
+
"internalType": "uint256",
|
118 |
+
"name": "requestId",
|
119 |
+
"type": "uint256"
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"indexed": false,
|
123 |
+
"internalType": "bytes",
|
124 |
+
"name": "data",
|
125 |
+
"type": "bytes"
|
126 |
+
}
|
127 |
+
],
|
128 |
+
"name": "Request",
|
129 |
+
"type": "event"
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"inputs": [
|
133 |
+
{
|
134 |
+
"internalType": "uint256",
|
135 |
+
"name": "requestId",
|
136 |
+
"type": "uint256"
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"internalType": "bytes",
|
140 |
+
"name": "data",
|
141 |
+
"type": "bytes"
|
142 |
+
}
|
143 |
+
],
|
144 |
+
"name": "deliver",
|
145 |
+
"outputs": [],
|
146 |
+
"stateMutability": "nonpayable",
|
147 |
+
"type": "function"
|
148 |
+
},
|
149 |
+
{
|
150 |
+
"inputs": [],
|
151 |
+
"name": "entryPoint",
|
152 |
+
"outputs": [
|
153 |
+
{
|
154 |
+
"internalType": "contract IEntryPoint",
|
155 |
+
"name": "",
|
156 |
+
"type": "address"
|
157 |
+
}
|
158 |
+
],
|
159 |
+
"stateMutability": "view",
|
160 |
+
"type": "function"
|
161 |
+
},
|
162 |
+
{
|
163 |
+
"inputs": [
|
164 |
+
{
|
165 |
+
"internalType": "address",
|
166 |
+
"name": "to",
|
167 |
+
"type": "address"
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"internalType": "uint256",
|
171 |
+
"name": "value",
|
172 |
+
"type": "uint256"
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"internalType": "bytes",
|
176 |
+
"name": "data",
|
177 |
+
"type": "bytes"
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"internalType": "enum Enum.Operation",
|
181 |
+
"name": "operation",
|
182 |
+
"type": "uint8"
|
183 |
+
},
|
184 |
+
{
|
185 |
+
"internalType": "uint256",
|
186 |
+
"name": "txGas",
|
187 |
+
"type": "uint256"
|
188 |
+
}
|
189 |
+
],
|
190 |
+
"name": "exec",
|
191 |
+
"outputs": [
|
192 |
+
{
|
193 |
+
"internalType": "bytes",
|
194 |
+
"name": "returnData",
|
195 |
+
"type": "bytes"
|
196 |
+
}
|
197 |
+
],
|
198 |
+
"stateMutability": "nonpayable",
|
199 |
+
"type": "function"
|
200 |
+
},
|
201 |
+
{
|
202 |
+
"inputs": [
|
203 |
+
{
|
204 |
+
"internalType": "address",
|
205 |
+
"name": "account",
|
206 |
+
"type": "address"
|
207 |
+
},
|
208 |
+
{
|
209 |
+
"internalType": "bytes",
|
210 |
+
"name": "data",
|
211 |
+
"type": "bytes"
|
212 |
+
}
|
213 |
+
],
|
214 |
+
"name": "getRequestId",
|
215 |
+
"outputs": [
|
216 |
+
{
|
217 |
+
"internalType": "uint256",
|
218 |
+
"name": "requestId",
|
219 |
+
"type": "uint256"
|
220 |
+
}
|
221 |
+
],
|
222 |
+
"stateMutability": "pure",
|
223 |
+
"type": "function"
|
224 |
+
},
|
225 |
+
{
|
226 |
+
"inputs": [
|
227 |
+
{
|
228 |
+
"internalType": "address",
|
229 |
+
"name": "signer",
|
230 |
+
"type": "address"
|
231 |
+
}
|
232 |
+
],
|
233 |
+
"name": "isOperator",
|
234 |
+
"outputs": [
|
235 |
+
{
|
236 |
+
"internalType": "bool",
|
237 |
+
"name": "",
|
238 |
+
"type": "bool"
|
239 |
+
}
|
240 |
+
],
|
241 |
+
"stateMutability": "view",
|
242 |
+
"type": "function"
|
243 |
+
},
|
244 |
+
{
|
245 |
+
"inputs": [
|
246 |
+
{
|
247 |
+
"internalType": "bytes32",
|
248 |
+
"name": "hash",
|
249 |
+
"type": "bytes32"
|
250 |
+
},
|
251 |
+
{
|
252 |
+
"internalType": "bytes",
|
253 |
+
"name": "signature",
|
254 |
+
"type": "bytes"
|
255 |
+
}
|
256 |
+
],
|
257 |
+
"name": "isValidSignature",
|
258 |
+
"outputs": [
|
259 |
+
{
|
260 |
+
"internalType": "bytes4",
|
261 |
+
"name": "magicValue",
|
262 |
+
"type": "bytes4"
|
263 |
+
}
|
264 |
+
],
|
265 |
+
"stateMutability": "view",
|
266 |
+
"type": "function"
|
267 |
+
},
|
268 |
+
{
|
269 |
+
"inputs": [],
|
270 |
+
"name": "nonce",
|
271 |
+
"outputs": [
|
272 |
+
{
|
273 |
+
"internalType": "uint256",
|
274 |
+
"name": "",
|
275 |
+
"type": "uint256"
|
276 |
+
}
|
277 |
+
],
|
278 |
+
"stateMutability": "view",
|
279 |
+
"type": "function"
|
280 |
+
},
|
281 |
+
{
|
282 |
+
"inputs": [
|
283 |
+
{
|
284 |
+
"internalType": "address",
|
285 |
+
"name": "",
|
286 |
+
"type": "address"
|
287 |
+
},
|
288 |
+
{
|
289 |
+
"internalType": "address",
|
290 |
+
"name": "",
|
291 |
+
"type": "address"
|
292 |
+
},
|
293 |
+
{
|
294 |
+
"internalType": "uint256[]",
|
295 |
+
"name": "",
|
296 |
+
"type": "uint256[]"
|
297 |
+
},
|
298 |
+
{
|
299 |
+
"internalType": "uint256[]",
|
300 |
+
"name": "",
|
301 |
+
"type": "uint256[]"
|
302 |
+
},
|
303 |
+
{
|
304 |
+
"internalType": "bytes",
|
305 |
+
"name": "",
|
306 |
+
"type": "bytes"
|
307 |
+
}
|
308 |
+
],
|
309 |
+
"name": "onERC1155BatchReceived",
|
310 |
+
"outputs": [
|
311 |
+
{
|
312 |
+
"internalType": "bytes4",
|
313 |
+
"name": "",
|
314 |
+
"type": "bytes4"
|
315 |
+
}
|
316 |
+
],
|
317 |
+
"stateMutability": "pure",
|
318 |
+
"type": "function"
|
319 |
+
},
|
320 |
+
{
|
321 |
+
"inputs": [
|
322 |
+
{
|
323 |
+
"internalType": "address",
|
324 |
+
"name": "",
|
325 |
+
"type": "address"
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"internalType": "address",
|
329 |
+
"name": "",
|
330 |
+
"type": "address"
|
331 |
+
},
|
332 |
+
{
|
333 |
+
"internalType": "uint256",
|
334 |
+
"name": "",
|
335 |
+
"type": "uint256"
|
336 |
+
},
|
337 |
+
{
|
338 |
+
"internalType": "uint256",
|
339 |
+
"name": "",
|
340 |
+
"type": "uint256"
|
341 |
+
},
|
342 |
+
{
|
343 |
+
"internalType": "bytes",
|
344 |
+
"name": "",
|
345 |
+
"type": "bytes"
|
346 |
+
}
|
347 |
+
],
|
348 |
+
"name": "onERC1155Received",
|
349 |
+
"outputs": [
|
350 |
+
{
|
351 |
+
"internalType": "bytes4",
|
352 |
+
"name": "",
|
353 |
+
"type": "bytes4"
|
354 |
+
}
|
355 |
+
],
|
356 |
+
"stateMutability": "pure",
|
357 |
+
"type": "function"
|
358 |
+
},
|
359 |
+
{
|
360 |
+
"inputs": [
|
361 |
+
{
|
362 |
+
"internalType": "address",
|
363 |
+
"name": "",
|
364 |
+
"type": "address"
|
365 |
+
},
|
366 |
+
{
|
367 |
+
"internalType": "address",
|
368 |
+
"name": "",
|
369 |
+
"type": "address"
|
370 |
+
},
|
371 |
+
{
|
372 |
+
"internalType": "uint256",
|
373 |
+
"name": "",
|
374 |
+
"type": "uint256"
|
375 |
+
},
|
376 |
+
{
|
377 |
+
"internalType": "bytes",
|
378 |
+
"name": "",
|
379 |
+
"type": "bytes"
|
380 |
+
}
|
381 |
+
],
|
382 |
+
"name": "onERC721Received",
|
383 |
+
"outputs": [
|
384 |
+
{
|
385 |
+
"internalType": "bytes4",
|
386 |
+
"name": "",
|
387 |
+
"type": "bytes4"
|
388 |
+
}
|
389 |
+
],
|
390 |
+
"stateMutability": "pure",
|
391 |
+
"type": "function"
|
392 |
+
},
|
393 |
+
{
|
394 |
+
"inputs": [],
|
395 |
+
"name": "price",
|
396 |
+
"outputs": [
|
397 |
+
{
|
398 |
+
"internalType": "uint256",
|
399 |
+
"name": "",
|
400 |
+
"type": "uint256"
|
401 |
+
}
|
402 |
+
],
|
403 |
+
"stateMutability": "view",
|
404 |
+
"type": "function"
|
405 |
+
},
|
406 |
+
{
|
407 |
+
"inputs": [
|
408 |
+
{
|
409 |
+
"internalType": "bytes",
|
410 |
+
"name": "data",
|
411 |
+
"type": "bytes"
|
412 |
+
}
|
413 |
+
],
|
414 |
+
"name": "request",
|
415 |
+
"outputs": [
|
416 |
+
{
|
417 |
+
"internalType": "uint256",
|
418 |
+
"name": "requestId",
|
419 |
+
"type": "uint256"
|
420 |
+
}
|
421 |
+
],
|
422 |
+
"stateMutability": "payable",
|
423 |
+
"type": "function"
|
424 |
+
},
|
425 |
+
{
|
426 |
+
"inputs": [
|
427 |
+
{
|
428 |
+
"internalType": "uint256",
|
429 |
+
"name": "newPrice",
|
430 |
+
"type": "uint256"
|
431 |
+
}
|
432 |
+
],
|
433 |
+
"name": "setPrice",
|
434 |
+
"outputs": [],
|
435 |
+
"stateMutability": "nonpayable",
|
436 |
+
"type": "function"
|
437 |
+
},
|
438 |
+
{
|
439 |
+
"inputs": [
|
440 |
+
{
|
441 |
+
"internalType": "bytes",
|
442 |
+
"name": "initParams",
|
443 |
+
"type": "bytes"
|
444 |
+
}
|
445 |
+
],
|
446 |
+
"name": "setUp",
|
447 |
+
"outputs": [],
|
448 |
+
"stateMutability": "nonpayable",
|
449 |
+
"type": "function"
|
450 |
+
},
|
451 |
+
{
|
452 |
+
"inputs": [],
|
453 |
+
"name": "token",
|
454 |
+
"outputs": [
|
455 |
+
{
|
456 |
+
"internalType": "contract IERC721",
|
457 |
+
"name": "",
|
458 |
+
"type": "address"
|
459 |
+
}
|
460 |
+
],
|
461 |
+
"stateMutability": "view",
|
462 |
+
"type": "function"
|
463 |
+
},
|
464 |
+
{
|
465 |
+
"inputs": [],
|
466 |
+
"name": "tokenId",
|
467 |
+
"outputs": [
|
468 |
+
{
|
469 |
+
"internalType": "uint256",
|
470 |
+
"name": "",
|
471 |
+
"type": "uint256"
|
472 |
+
}
|
473 |
+
],
|
474 |
+
"stateMutability": "view",
|
475 |
+
"type": "function"
|
476 |
+
},
|
477 |
+
{
|
478 |
+
"inputs": [
|
479 |
+
{
|
480 |
+
"internalType": "address",
|
481 |
+
"name": "",
|
482 |
+
"type": "address"
|
483 |
+
},
|
484 |
+
{
|
485 |
+
"internalType": "address",
|
486 |
+
"name": "",
|
487 |
+
"type": "address"
|
488 |
+
},
|
489 |
+
{
|
490 |
+
"internalType": "address",
|
491 |
+
"name": "",
|
492 |
+
"type": "address"
|
493 |
+
},
|
494 |
+
{
|
495 |
+
"internalType": "uint256",
|
496 |
+
"name": "",
|
497 |
+
"type": "uint256"
|
498 |
+
},
|
499 |
+
{
|
500 |
+
"internalType": "bytes",
|
501 |
+
"name": "",
|
502 |
+
"type": "bytes"
|
503 |
+
},
|
504 |
+
{
|
505 |
+
"internalType": "bytes",
|
506 |
+
"name": "",
|
507 |
+
"type": "bytes"
|
508 |
+
}
|
509 |
+
],
|
510 |
+
"name": "tokensReceived",
|
511 |
+
"outputs": [],
|
512 |
+
"stateMutability": "pure",
|
513 |
+
"type": "function"
|
514 |
+
},
|
515 |
+
{
|
516 |
+
"inputs": [
|
517 |
+
{
|
518 |
+
"components": [
|
519 |
+
{
|
520 |
+
"internalType": "address",
|
521 |
+
"name": "sender",
|
522 |
+
"type": "address"
|
523 |
+
},
|
524 |
+
{
|
525 |
+
"internalType": "uint256",
|
526 |
+
"name": "nonce",
|
527 |
+
"type": "uint256"
|
528 |
+
},
|
529 |
+
{
|
530 |
+
"internalType": "bytes",
|
531 |
+
"name": "initCode",
|
532 |
+
"type": "bytes"
|
533 |
+
},
|
534 |
+
{
|
535 |
+
"internalType": "bytes",
|
536 |
+
"name": "callData",
|
537 |
+
"type": "bytes"
|
538 |
+
},
|
539 |
+
{
|
540 |
+
"internalType": "uint256",
|
541 |
+
"name": "callGasLimit",
|
542 |
+
"type": "uint256"
|
543 |
+
},
|
544 |
+
{
|
545 |
+
"internalType": "uint256",
|
546 |
+
"name": "verificationGasLimit",
|
547 |
+
"type": "uint256"
|
548 |
+
},
|
549 |
+
{
|
550 |
+
"internalType": "uint256",
|
551 |
+
"name": "preVerificationGas",
|
552 |
+
"type": "uint256"
|
553 |
+
},
|
554 |
+
{
|
555 |
+
"internalType": "uint256",
|
556 |
+
"name": "maxFeePerGas",
|
557 |
+
"type": "uint256"
|
558 |
+
},
|
559 |
+
{
|
560 |
+
"internalType": "uint256",
|
561 |
+
"name": "maxPriorityFeePerGas",
|
562 |
+
"type": "uint256"
|
563 |
+
},
|
564 |
+
{
|
565 |
+
"internalType": "bytes",
|
566 |
+
"name": "paymasterAndData",
|
567 |
+
"type": "bytes"
|
568 |
+
},
|
569 |
+
{
|
570 |
+
"internalType": "bytes",
|
571 |
+
"name": "signature",
|
572 |
+
"type": "bytes"
|
573 |
+
}
|
574 |
+
],
|
575 |
+
"internalType": "struct UserOperation",
|
576 |
+
"name": "userOp",
|
577 |
+
"type": "tuple"
|
578 |
+
},
|
579 |
+
{
|
580 |
+
"internalType": "bytes32",
|
581 |
+
"name": "userOpHash",
|
582 |
+
"type": "bytes32"
|
583 |
+
},
|
584 |
+
{
|
585 |
+
"internalType": "uint256",
|
586 |
+
"name": "missingAccountFunds",
|
587 |
+
"type": "uint256"
|
588 |
+
}
|
589 |
+
],
|
590 |
+
"name": "validateUserOp",
|
591 |
+
"outputs": [
|
592 |
+
{
|
593 |
+
"internalType": "uint256",
|
594 |
+
"name": "validationData",
|
595 |
+
"type": "uint256"
|
596 |
+
}
|
597 |
+
],
|
598 |
+
"stateMutability": "nonpayable",
|
599 |
+
"type": "function"
|
600 |
+
},
|
601 |
+
{
|
602 |
+
"stateMutability": "payable",
|
603 |
+
"type": "receive"
|
604 |
+
}
|
605 |
+
]
|