1 | [
|
2 | {
|
3 | "inputs": [
|
4 | {
|
5 | "internalType": "address payable",
|
6 | "name": "_feeWallet",
|
7 | "type": "address"
|
8 | }
|
9 | ],
|
10 | "stateMutability": "nonpayable",
|
11 | "type": "constructor"
|
12 | },
|
13 | {
|
14 | "anonymous": false,
|
15 | "inputs": [
|
16 | {
|
17 | "indexed": true,
|
18 | "internalType": "address",
|
19 | "name": "adapter",
|
20 | "type": "address"
|
21 | }
|
22 | ],
|
23 | "name": "AdapterInitialized",
|
24 | "type": "event"
|
25 | },
|
26 | {
|
27 | "anonymous": false,
|
28 | "inputs": [
|
29 | {
|
30 | "indexed": true,
|
31 | "internalType": "bytes32",
|
32 | "name": "role",
|
33 | "type": "bytes32"
|
34 | },
|
35 | {
|
36 | "indexed": true,
|
37 | "internalType": "bytes32",
|
38 | "name": "previousAdminRole",
|
39 | "type": "bytes32"
|
40 | },
|
41 | {
|
42 | "indexed": true,
|
43 | "internalType": "bytes32",
|
44 | "name": "newAdminRole",
|
45 | "type": "bytes32"
|
46 | }
|
47 | ],
|
48 | "name": "RoleAdminChanged",
|
49 | "type": "event"
|
50 | },
|
51 | {
|
52 | "anonymous": false,
|
53 | "inputs": [
|
54 | {
|
55 | "indexed": true,
|
56 | "internalType": "bytes32",
|
57 | "name": "role",
|
58 | "type": "bytes32"
|
59 | },
|
60 | {
|
61 | "indexed": true,
|
62 | "internalType": "address",
|
63 | "name": "account",
|
64 | "type": "address"
|
65 | },
|
66 | {
|
67 | "indexed": true,
|
68 | "internalType": "address",
|
69 | "name": "sender",
|
70 | "type": "address"
|
71 | }
|
72 | ],
|
73 | "name": "RoleGranted",
|
74 | "type": "event"
|
75 | },
|
76 | {
|
77 | "anonymous": false,
|
78 | "inputs": [
|
79 | {
|
80 | "indexed": true,
|
81 | "internalType": "bytes32",
|
82 | "name": "role",
|
83 | "type": "bytes32"
|
84 | },
|
85 | {
|
86 | "indexed": true,
|
87 | "internalType": "address",
|
88 | "name": "account",
|
89 | "type": "address"
|
90 | },
|
91 | {
|
92 | "indexed": true,
|
93 | "internalType": "address",
|
94 | "name": "sender",
|
95 | "type": "address"
|
96 | }
|
97 | ],
|
98 | "name": "RoleRevoked",
|
99 | "type": "event"
|
100 | },
|
101 | {
|
102 | "anonymous": false,
|
103 | "inputs": [
|
104 | {
|
105 | "indexed": true,
|
106 | "internalType": "address",
|
107 | "name": "router",
|
108 | "type": "address"
|
109 | }
|
110 | ],
|
111 | "name": "RouterInitialized",
|
112 | "type": "event"
|
113 | },
|
114 | {
|
115 | "stateMutability": "payable",
|
116 | "type": "fallback"
|
117 | },
|
118 | {
|
119 | "inputs": [],
|
120 | "name": "DEFAULT_ADMIN_ROLE",
|
121 | "outputs": [
|
122 | {
|
123 | "internalType": "bytes32",
|
124 | "name": "",
|
125 | "type": "bytes32"
|
126 | }
|
127 | ],
|
128 | "stateMutability": "view",
|
129 | "type": "function"
|
130 | },
|
131 | {
|
132 | "inputs": [],
|
133 | "name": "ROUTER_ROLE",
|
134 | "outputs": [
|
135 | {
|
136 | "internalType": "bytes32",
|
137 | "name": "",
|
138 | "type": "bytes32"
|
139 | }
|
140 | ],
|
141 | "stateMutability": "view",
|
142 | "type": "function"
|
143 | },
|
144 | {
|
145 | "inputs": [],
|
146 | "name": "WHITELISTED_ROLE",
|
147 | "outputs": [
|
148 | {
|
149 | "internalType": "bytes32",
|
150 | "name": "",
|
151 | "type": "bytes32"
|
152 | }
|
153 | ],
|
154 | "stateMutability": "view",
|
155 | "type": "function"
|
156 | },
|
157 | {
|
158 | "inputs": [
|
159 | {
|
160 | "internalType": "bytes32",
|
161 | "name": "key",
|
162 | "type": "bytes32"
|
163 | }
|
164 | ],
|
165 | "name": "getAdapterData",
|
166 | "outputs": [
|
167 | {
|
168 | "internalType": "bytes",
|
169 | "name": "",
|
170 | "type": "bytes"
|
171 | }
|
172 | ],
|
173 | "stateMutability": "view",
|
174 | "type": "function"
|
175 | },
|
176 | {
|
177 | "inputs": [],
|
178 | "name": "getFeeWallet",
|
179 | "outputs": [
|
180 | {
|
181 | "internalType": "address",
|
182 | "name": "",
|
183 | "type": "address"
|
184 | }
|
185 | ],
|
186 | "stateMutability": "view",
|
187 | "type": "function"
|
188 | },
|
189 | {
|
190 | "inputs": [
|
191 | {
|
192 | "internalType": "bytes4",
|
193 | "name": "selector",
|
194 | "type": "bytes4"
|
195 | }
|
196 | ],
|
197 | "name": "getImplementation",
|
198 | "outputs": [
|
199 | {
|
200 | "internalType": "address",
|
201 | "name": "",
|
202 | "type": "address"
|
203 | }
|
204 | ],
|
205 | "stateMutability": "view",
|
206 | "type": "function"
|
207 | },
|
208 | {
|
209 | "inputs": [
|
210 | {
|
211 | "internalType": "address",
|
212 | "name": "partner",
|
213 | "type": "address"
|
214 | }
|
215 | ],
|
216 | "name": "getPartnerFeeStructure",
|
217 | "outputs": [
|
218 | {
|
219 | "components": [
|
220 | {
|
221 | "internalType": "uint256",
|
222 | "name": "partnerShare",
|
223 | "type": "uint256"
|
224 | },
|
225 | {
|
226 | "internalType": "bool",
|
227 | "name": "noPositiveSlippage",
|
228 | "type": "bool"
|
229 | },
|
230 | {
|
231 | "internalType": "bool",
|
232 | "name": "positiveSlippageToUser",
|
233 | "type": "bool"
|
234 | },
|
235 | {
|
236 | "internalType": "uint16",
|
237 | "name": "feePercent",
|
238 | "type": "uint16"
|
239 | },
|
240 | {
|
241 | "internalType": "string",
|
242 | "name": "partnerId",
|
243 | "type": "string"
|
244 | },
|
245 | {
|
246 | "internalType": "bytes",
|
247 | "name": "data",
|
248 | "type": "bytes"
|
249 | }
|
250 | ],
|
251 | "internalType": "struct AugustusStorage.FeeStructure",
|
252 | "name": "",
|
253 | "type": "tuple"
|
254 | }
|
255 | ],
|
256 | "stateMutability": "view",
|
257 | "type": "function"
|
258 | },
|
259 | {
|
260 | "inputs": [
|
261 | {
|
262 | "internalType": "bytes32",
|
263 | "name": "role",
|
264 | "type": "bytes32"
|
265 | }
|
266 | ],
|
267 | "name": "getRoleAdmin",
|
268 | "outputs": [
|
269 | {
|
270 | "internalType": "bytes32",
|
271 | "name": "",
|
272 | "type": "bytes32"
|
273 | }
|
274 | ],
|
275 | "stateMutability": "view",
|
276 | "type": "function"
|
277 | },
|
278 | {
|
279 | "inputs": [
|
280 | {
|
281 | "internalType": "bytes32",
|
282 | "name": "role",
|
283 | "type": "bytes32"
|
284 | },
|
285 | {
|
286 | "internalType": "uint256",
|
287 | "name": "index",
|
288 | "type": "uint256"
|
289 | }
|
290 | ],
|
291 | "name": "getRoleMember",
|
292 | "outputs": [
|
293 | {
|
294 | "internalType": "address",
|
295 | "name": "",
|
296 | "type": "address"
|
297 | }
|
298 | ],
|
299 | "stateMutability": "view",
|
300 | "type": "function"
|
301 | },
|
302 | {
|
303 | "inputs": [
|
304 | {
|
305 | "internalType": "bytes32",
|
306 | "name": "role",
|
307 | "type": "bytes32"
|
308 | }
|
309 | ],
|
310 | "name": "getRoleMemberCount",
|
311 | "outputs": [
|
312 | {
|
313 | "internalType": "uint256",
|
314 | "name": "",
|
315 | "type": "uint256"
|
316 | }
|
317 | ],
|
318 | "stateMutability": "view",
|
319 | "type": "function"
|
320 | },
|
321 | {
|
322 | "inputs": [
|
323 | {
|
324 | "internalType": "bytes32",
|
325 | "name": "key",
|
326 | "type": "bytes32"
|
327 | }
|
328 | ],
|
329 | "name": "getRouterData",
|
330 | "outputs": [
|
331 | {
|
332 | "internalType": "bytes",
|
333 | "name": "",
|
334 | "type": "bytes"
|
335 | }
|
336 | ],
|
337 | "stateMutability": "view",
|
338 | "type": "function"
|
339 | },
|
340 | {
|
341 | "inputs": [],
|
342 | "name": "getTokenTransferProxy",
|
343 | "outputs": [
|
344 | {
|
345 | "internalType": "address",
|
346 | "name": "",
|
347 | "type": "address"
|
348 | }
|
349 | ],
|
350 | "stateMutability": "view",
|
351 | "type": "function"
|
352 | },
|
353 | {
|
354 | "inputs": [],
|
355 | "name": "getVersion",
|
356 | "outputs": [
|
357 | {
|
358 | "internalType": "string",
|
359 | "name": "",
|
360 | "type": "string"
|
361 | }
|
362 | ],
|
363 | "stateMutability": "pure",
|
364 | "type": "function"
|
365 | },
|
366 | {
|
367 | "inputs": [
|
368 | {
|
369 | "internalType": "bytes32",
|
370 | "name": "role",
|
371 | "type": "bytes32"
|
372 | },
|
373 | {
|
374 | "internalType": "address",
|
375 | "name": "account",
|
376 | "type": "address"
|
377 | }
|
378 | ],
|
379 | "name": "grantRole",
|
380 | "outputs": [],
|
381 | "stateMutability": "nonpayable",
|
382 | "type": "function"
|
383 | },
|
384 | {
|
385 | "inputs": [
|
386 | {
|
387 | "internalType": "bytes32",
|
388 | "name": "role",
|
389 | "type": "bytes32"
|
390 | },
|
391 | {
|
392 | "internalType": "address",
|
393 | "name": "account",
|
394 | "type": "address"
|
395 | }
|
396 | ],
|
397 | "name": "hasRole",
|
398 | "outputs": [
|
399 | {
|
400 | "internalType": "bool",
|
401 | "name": "",
|
402 | "type": "bool"
|
403 | }
|
404 | ],
|
405 | "stateMutability": "view",
|
406 | "type": "function"
|
407 | },
|
408 | {
|
409 | "inputs": [
|
410 | {
|
411 | "internalType": "address",
|
412 | "name": "adapter",
|
413 | "type": "address"
|
414 | },
|
415 | {
|
416 | "internalType": "bytes",
|
417 | "name": "data",
|
418 | "type": "bytes"
|
419 | }
|
420 | ],
|
421 | "name": "initializeAdapter",
|
422 | "outputs": [],
|
423 | "stateMutability": "nonpayable",
|
424 | "type": "function"
|
425 | },
|
426 | {
|
427 | "inputs": [
|
428 | {
|
429 | "internalType": "address",
|
430 | "name": "router",
|
431 | "type": "address"
|
432 | },
|
433 | {
|
434 | "internalType": "bytes",
|
435 | "name": "data",
|
436 | "type": "bytes"
|
437 | }
|
438 | ],
|
439 | "name": "initializeRouter",
|
440 | "outputs": [],
|
441 | "stateMutability": "nonpayable",
|
442 | "type": "function"
|
443 | },
|
444 | {
|
445 | "inputs": [
|
446 | {
|
447 | "internalType": "bytes32",
|
448 | "name": "key",
|
449 | "type": "bytes32"
|
450 | }
|
451 | ],
|
452 | "name": "isAdapterInitialized",
|
453 | "outputs": [
|
454 | {
|
455 | "internalType": "bool",
|
456 | "name": "",
|
457 | "type": "bool"
|
458 | }
|
459 | ],
|
460 | "stateMutability": "view",
|
461 | "type": "function"
|
462 | },
|
463 | {
|
464 | "inputs": [
|
465 | {
|
466 | "internalType": "bytes32",
|
467 | "name": "key",
|
468 | "type": "bytes32"
|
469 | }
|
470 | ],
|
471 | "name": "isRouterInitialized",
|
472 | "outputs": [
|
473 | {
|
474 | "internalType": "bool",
|
475 | "name": "",
|
476 | "type": "bool"
|
477 | }
|
478 | ],
|
479 | "stateMutability": "view",
|
480 | "type": "function"
|
481 | },
|
482 | {
|
483 | "inputs": [
|
484 | {
|
485 | "internalType": "address",
|
486 | "name": "partner",
|
487 | "type": "address"
|
488 | },
|
489 | {
|
490 | "internalType": "uint256",
|
491 | "name": "_partnerShare",
|
492 | "type": "uint256"
|
493 | },
|
494 | {
|
495 | "internalType": "bool",
|
496 | "name": "_noPositiveSlippage",
|
497 | "type": "bool"
|
498 | },
|
499 | {
|
500 | "internalType": "bool",
|
501 | "name": "_positiveSlippageToUser",
|
502 | "type": "bool"
|
503 | },
|
504 | {
|
505 | "internalType": "uint16",
|
506 | "name": "_feePercent",
|
507 | "type": "uint16"
|
508 | },
|
509 | {
|
510 | "internalType": "string",
|
511 | "name": "partnerId",
|
512 | "type": "string"
|
513 | },
|
514 | {
|
515 | "internalType": "bytes",
|
516 | "name": "_data",
|
517 | "type": "bytes"
|
518 | }
|
519 | ],
|
520 | "name": "registerPartner",
|
521 | "outputs": [],
|
522 | "stateMutability": "nonpayable",
|
523 | "type": "function"
|
524 | },
|
525 | {
|
526 | "inputs": [
|
527 | {
|
528 | "internalType": "bytes32",
|
529 | "name": "role",
|
530 | "type": "bytes32"
|
531 | },
|
532 | {
|
533 | "internalType": "address",
|
534 | "name": "account",
|
535 | "type": "address"
|
536 | }
|
537 | ],
|
538 | "name": "renounceRole",
|
539 | "outputs": [],
|
540 | "stateMutability": "nonpayable",
|
541 | "type": "function"
|
542 | },
|
543 | {
|
544 | "inputs": [
|
545 | {
|
546 | "internalType": "bytes32",
|
547 | "name": "role",
|
548 | "type": "bytes32"
|
549 | },
|
550 | {
|
551 | "internalType": "address",
|
552 | "name": "account",
|
553 | "type": "address"
|
554 | }
|
555 | ],
|
556 | "name": "revokeRole",
|
557 | "outputs": [],
|
558 | "stateMutability": "nonpayable",
|
559 | "type": "function"
|
560 | },
|
561 | {
|
562 | "inputs": [
|
563 | {
|
564 | "internalType": "address payable",
|
565 | "name": "_feeWallet",
|
566 | "type": "address"
|
567 | }
|
568 | ],
|
569 | "name": "setFeeWallet",
|
570 | "outputs": [],
|
571 | "stateMutability": "nonpayable",
|
572 | "type": "function"
|
573 | },
|
574 | {
|
575 | "inputs": [
|
576 | {
|
577 | "internalType": "bytes4",
|
578 | "name": "selector",
|
579 | "type": "bytes4"
|
580 | },
|
581 | {
|
582 | "internalType": "address",
|
583 | "name": "implementation",
|
584 | "type": "address"
|
585 | }
|
586 | ],
|
587 | "name": "setImplementation",
|
588 | "outputs": [],
|
589 | "stateMutability": "nonpayable",
|
590 | "type": "function"
|
591 | },
|
592 | {
|
593 | "inputs": [
|
594 | {
|
595 | "internalType": "address",
|
596 | "name": "token",
|
597 | "type": "address"
|
598 | },
|
599 | {
|
600 | "internalType": "address payable",
|
601 | "name": "destination",
|
602 | "type": "address"
|
603 | },
|
604 | {
|
605 | "internalType": "uint256",
|
606 | "name": "amount",
|
607 | "type": "uint256"
|
608 | }
|
609 | ],
|
610 | "name": "transferTokens",
|
611 | "outputs": [],
|
612 | "stateMutability": "nonpayable",
|
613 | "type": "function"
|
614 | },
|
615 | {
|
616 | "stateMutability": "payable",
|
617 | "type": "receive"
|
618 | },
|
619 | {
|
620 | "anonymous": false,
|
621 | "inputs": [
|
622 | {
|
623 | "indexed": false,
|
624 | "internalType": "bytes16",
|
625 | "name": "uuid",
|
626 | "type": "bytes16"
|
627 | },
|
628 | {
|
629 | "indexed": false,
|
630 | "internalType": "address",
|
631 | "name": "initiator",
|
632 | "type": "address"
|
633 | },
|
634 | {
|
635 | "indexed": true,
|
636 | "internalType": "address",
|
637 | "name": "beneficiary",
|
638 | "type": "address"
|
639 | },
|
640 | {
|
641 | "indexed": true,
|
642 | "internalType": "address",
|
643 | "name": "srcToken",
|
644 | "type": "address"
|
645 | },
|
646 | {
|
647 | "indexed": true,
|
648 | "internalType": "address",
|
649 | "name": "destToken",
|
650 | "type": "address"
|
651 | },
|
652 | {
|
653 | "indexed": false,
|
654 | "internalType": "uint256",
|
655 | "name": "srcAmount",
|
656 | "type": "uint256"
|
657 | },
|
658 | {
|
659 | "indexed": false,
|
660 | "internalType": "uint256",
|
661 | "name": "receivedAmount",
|
662 | "type": "uint256"
|
663 | }
|
664 | ],
|
665 | "name": "Bought",
|
666 | "type": "event"
|
667 | },
|
668 | {
|
669 | "anonymous": false,
|
670 | "inputs": [
|
671 | {
|
672 | "indexed": false,
|
673 | "internalType": "uint256",
|
674 | "name": "fee",
|
675 | "type": "uint256"
|
676 | },
|
677 | {
|
678 | "indexed": false,
|
679 | "internalType": "uint256",
|
680 | "name": "partnerShare",
|
681 | "type": "uint256"
|
682 | },
|
683 | {
|
684 | "indexed": false,
|
685 | "internalType": "uint256",
|
686 | "name": "paraswapShare",
|
687 | "type": "uint256"
|
688 | }
|
689 | ],
|
690 | "name": "FeeTaken",
|
691 | "type": "event"
|
692 | },
|
693 | {
|
694 | "anonymous": false,
|
695 | "inputs": [
|
696 | {
|
697 | "indexed": false,
|
698 | "internalType": "bytes16",
|
699 | "name": "uuid",
|
700 | "type": "bytes16"
|
701 | },
|
702 | {
|
703 | "indexed": false,
|
704 | "internalType": "address",
|
705 | "name": "initiator",
|
706 | "type": "address"
|
707 | },
|
708 | {
|
709 | "indexed": true,
|
710 | "internalType": "address",
|
711 | "name": "beneficiary",
|
712 | "type": "address"
|
713 | },
|
714 | {
|
715 | "indexed": true,
|
716 | "internalType": "address",
|
717 | "name": "srcToken",
|
718 | "type": "address"
|
719 | },
|
720 | {
|
721 | "indexed": true,
|
722 | "internalType": "address",
|
723 | "name": "destToken",
|
724 | "type": "address"
|
725 | },
|
726 | {
|
727 | "indexed": false,
|
728 | "internalType": "uint256",
|
729 | "name": "srcAmount",
|
730 | "type": "uint256"
|
731 | },
|
732 | {
|
733 | "indexed": false,
|
734 | "internalType": "uint256",
|
735 | "name": "receivedAmount",
|
736 | "type": "uint256"
|
737 | },
|
738 | {
|
739 | "indexed": false,
|
740 | "internalType": "uint256",
|
741 | "name": "expectedAmount",
|
742 | "type": "uint256"
|
743 | }
|
744 | ],
|
745 | "name": "Swapped",
|
746 | "type": "event"
|
747 | },
|
748 | {
|
749 | "inputs": [
|
750 | {
|
751 | "internalType": "uint256",
|
752 | "name": "amountInMax",
|
753 | "type": "uint256"
|
754 | },
|
755 | {
|
756 | "internalType": "uint256",
|
757 | "name": "amountOut",
|
758 | "type": "uint256"
|
759 | },
|
760 | {
|
761 | "internalType": "address[]",
|
762 | "name": "path",
|
763 | "type": "address[]"
|
764 | }
|
765 | ],
|
766 | "name": "buyOnUniswap",
|
767 | "outputs": [],
|
768 | "stateMutability": "payable",
|
769 | "type": "function"
|
770 | },
|
771 | {
|
772 | "inputs": [
|
773 | {
|
774 | "internalType": "address",
|
775 | "name": "factory",
|
776 | "type": "address"
|
777 | },
|
778 | {
|
779 | "internalType": "bytes32",
|
780 | "name": "initCode",
|
781 | "type": "bytes32"
|
782 | },
|
783 | {
|
784 | "internalType": "uint256",
|
785 | "name": "amountInMax",
|
786 | "type": "uint256"
|
787 | },
|
788 | {
|
789 | "internalType": "uint256",
|
790 | "name": "amountOut",
|
791 | "type": "uint256"
|
792 | },
|
793 | {
|
794 | "internalType": "address[]",
|
795 | "name": "path",
|
796 | "type": "address[]"
|
797 | }
|
798 | ],
|
799 | "name": "buyOnUniswapFork",
|
800 | "outputs": [],
|
801 | "stateMutability": "payable",
|
802 | "type": "function"
|
803 | },
|
804 | {
|
805 | "inputs": [
|
806 | {
|
807 | "internalType": "address",
|
808 | "name": "tokenIn",
|
809 | "type": "address"
|
810 | },
|
811 | {
|
812 | "internalType": "uint256",
|
813 | "name": "amountInMax",
|
814 | "type": "uint256"
|
815 | },
|
816 | {
|
817 | "internalType": "uint256",
|
818 | "name": "amountOut",
|
819 | "type": "uint256"
|
820 | },
|
821 | {
|
822 | "internalType": "address",
|
823 | "name": "weth",
|
824 | "type": "address"
|
825 | },
|
826 | {
|
827 | "internalType": "uint256[]",
|
828 | "name": "pools",
|
829 | "type": "uint256[]"
|
830 | }
|
831 | ],
|
832 | "name": "buyOnUniswapV2Fork",
|
833 | "outputs": [],
|
834 | "stateMutability": "payable",
|
835 | "type": "function"
|
836 | },
|
837 | {
|
838 | "inputs": [
|
839 | {
|
840 | "components": [
|
841 | {
|
842 | "internalType": "address",
|
843 | "name": "fromToken",
|
844 | "type": "address"
|
845 | },
|
846 | {
|
847 | "internalType": "uint256",
|
848 | "name": "fromAmount",
|
849 | "type": "uint256"
|
850 | },
|
851 | {
|
852 | "internalType": "uint256",
|
853 | "name": "toAmount",
|
854 | "type": "uint256"
|
855 | },
|
856 | {
|
857 | "internalType": "uint256",
|
858 | "name": "expectedAmount",
|
859 | "type": "uint256"
|
860 | },
|
861 | {
|
862 | "internalType": "address payable",
|
863 | "name": "beneficiary",
|
864 | "type": "address"
|
865 | },
|
866 | {
|
867 | "components": [
|
868 | {
|
869 | "internalType": "uint256",
|
870 | "name": "fromAmountPercent",
|
871 | "type": "uint256"
|
872 | },
|
873 | {
|
874 | "components": [
|
875 | {
|
876 | "internalType": "address",
|
877 | "name": "to",
|
878 | "type": "address"
|
879 | },
|
880 | {
|
881 | "internalType": "uint256",
|
882 | "name": "totalNetworkFee",
|
883 | "type": "uint256"
|
884 | },
|
885 | {
|
886 | "components": [
|
887 | {
|
888 | "internalType": "address payable",
|
889 | "name": "adapter",
|
890 | "type": "address"
|
891 | },
|
892 | {
|
893 | "internalType": "uint256",
|
894 | "name": "percent",
|
895 | "type": "uint256"
|
896 | },
|
897 | {
|
898 | "internalType": "uint256",
|
899 | "name": "networkFee",
|
900 | "type": "uint256"
|
901 | },
|
902 | {
|
903 | "components": [
|
904 | {
|
905 | "internalType": "uint256",
|
906 | "name": "index",
|
907 | "type": "uint256"
|
908 | },
|
909 | {
|
910 | "internalType": "address",
|
911 | "name": "targetExchange",
|
912 | "type": "address"
|
913 | },
|
914 | {
|
915 | "internalType": "uint256",
|
916 | "name": "percent",
|
917 | "type": "uint256"
|
918 | },
|
919 | {
|
920 | "internalType": "bytes",
|
921 | "name": "payload",
|
922 | "type": "bytes"
|
923 | },
|
924 | {
|
925 | "internalType": "uint256",
|
926 | "name": "networkFee",
|
927 | "type": "uint256"
|
928 | }
|
929 | ],
|
930 | "internalType": "struct Utils.Route[]",
|
931 | "name": "route",
|
932 | "type": "tuple[]"
|
933 | }
|
934 | ],
|
935 | "internalType": "struct Utils.Adapter[]",
|
936 | "name": "adapters",
|
937 | "type": "tuple[]"
|
938 | }
|
939 | ],
|
940 | "internalType": "struct Utils.Path[]",
|
941 | "name": "path",
|
942 | "type": "tuple[]"
|
943 | }
|
944 | ],
|
945 | "internalType": "struct Utils.MegaSwapPath[]",
|
946 | "name": "path",
|
947 | "type": "tuple[]"
|
948 | },
|
949 | {
|
950 | "internalType": "address payable",
|
951 | "name": "partner",
|
952 | "type": "address"
|
953 | },
|
954 | {
|
955 | "internalType": "uint256",
|
956 | "name": "feePercent",
|
957 | "type": "uint256"
|
958 | },
|
959 | {
|
960 | "internalType": "bytes",
|
961 | "name": "permit",
|
962 | "type": "bytes"
|
963 | },
|
964 | {
|
965 | "internalType": "uint256",
|
966 | "name": "deadline",
|
967 | "type": "uint256"
|
968 | },
|
969 | {
|
970 | "internalType": "bytes16",
|
971 | "name": "uuid",
|
972 | "type": "bytes16"
|
973 | }
|
974 | ],
|
975 | "internalType": "struct Utils.MegaSwapSellData",
|
976 | "name": "data",
|
977 | "type": "tuple"
|
978 | }
|
979 | ],
|
980 | "name": "megaSwap",
|
981 | "outputs": [
|
982 | {
|
983 | "internalType": "uint256",
|
984 | "name": "",
|
985 | "type": "uint256"
|
986 | }
|
987 | ],
|
988 | "stateMutability": "payable",
|
989 | "type": "function"
|
990 | },
|
991 | {
|
992 | "inputs": [
|
993 | {
|
994 | "components": [
|
995 | {
|
996 | "internalType": "address",
|
997 | "name": "fromToken",
|
998 | "type": "address"
|
999 | },
|
1000 | {
|
1001 | "internalType": "uint256",
|
1002 | "name": "fromAmount",
|
1003 | "type": "uint256"
|
1004 | },
|
1005 | {
|
1006 | "internalType": "uint256",
|
1007 | "name": "toAmount",
|
1008 | "type": "uint256"
|
1009 | },
|
1010 | {
|
1011 | "internalType": "uint256",
|
1012 | "name": "expectedAmount",
|
1013 | "type": "uint256"
|
1014 | },
|
1015 | {
|
1016 | "internalType": "address payable",
|
1017 | "name": "beneficiary",
|
1018 | "type": "address"
|
1019 | },
|
1020 | {
|
1021 | "components": [
|
1022 | {
|
1023 | "internalType": "address",
|
1024 | "name": "to",
|
1025 | "type": "address"
|
1026 | },
|
1027 | {
|
1028 | "internalType": "uint256",
|
1029 | "name": "totalNetworkFee",
|
1030 | "type": "uint256"
|
1031 | },
|
1032 | {
|
1033 | "components": [
|
1034 | {
|
1035 | "internalType": "address payable",
|
1036 | "name": "adapter",
|
1037 | "type": "address"
|
1038 | },
|
1039 | {
|
1040 | "internalType": "uint256",
|
1041 | "name": "percent",
|
1042 | "type": "uint256"
|
1043 | },
|
1044 | {
|
1045 | "internalType": "uint256",
|
1046 | "name": "networkFee",
|
1047 | "type": "uint256"
|
1048 | },
|
1049 | {
|
1050 | "components": [
|
1051 | {
|
1052 | "internalType": "uint256",
|
1053 | "name": "index",
|
1054 | "type": "uint256"
|
1055 | },
|
1056 | {
|
1057 | "internalType": "address",
|
1058 | "name": "targetExchange",
|
1059 | "type": "address"
|
1060 | },
|
1061 | {
|
1062 | "internalType": "uint256",
|
1063 | "name": "percent",
|
1064 | "type": "uint256"
|
1065 | },
|
1066 | {
|
1067 | "internalType": "bytes",
|
1068 | "name": "payload",
|
1069 | "type": "bytes"
|
1070 | },
|
1071 | {
|
1072 | "internalType": "uint256",
|
1073 | "name": "networkFee",
|
1074 | "type": "uint256"
|
1075 | }
|
1076 | ],
|
1077 | "internalType": "struct Utils.Route[]",
|
1078 | "name": "route",
|
1079 | "type": "tuple[]"
|
1080 | }
|
1081 | ],
|
1082 | "internalType": "struct Utils.Adapter[]",
|
1083 | "name": "adapters",
|
1084 | "type": "tuple[]"
|
1085 | }
|
1086 | ],
|
1087 | "internalType": "struct Utils.Path[]",
|
1088 | "name": "path",
|
1089 | "type": "tuple[]"
|
1090 | },
|
1091 | {
|
1092 | "internalType": "address payable",
|
1093 | "name": "partner",
|
1094 | "type": "address"
|
1095 | },
|
1096 | {
|
1097 | "internalType": "uint256",
|
1098 | "name": "feePercent",
|
1099 | "type": "uint256"
|
1100 | },
|
1101 | {
|
1102 | "internalType": "bytes",
|
1103 | "name": "permit",
|
1104 | "type": "bytes"
|
1105 | },
|
1106 | {
|
1107 | "internalType": "uint256",
|
1108 | "name": "deadline",
|
1109 | "type": "uint256"
|
1110 | },
|
1111 | {
|
1112 | "internalType": "bytes16",
|
1113 | "name": "uuid",
|
1114 | "type": "bytes16"
|
1115 | }
|
1116 | ],
|
1117 | "internalType": "struct Utils.SellData",
|
1118 | "name": "data",
|
1119 | "type": "tuple"
|
1120 | }
|
1121 | ],
|
1122 | "name": "multiSwap",
|
1123 | "outputs": [
|
1124 | {
|
1125 | "internalType": "uint256",
|
1126 | "name": "",
|
1127 | "type": "uint256"
|
1128 | }
|
1129 | ],
|
1130 | "stateMutability": "payable",
|
1131 | "type": "function"
|
1132 | },
|
1133 | {
|
1134 | "inputs": [
|
1135 | {
|
1136 | "components": [
|
1137 | {
|
1138 | "internalType": "address",
|
1139 | "name": "fromToken",
|
1140 | "type": "address"
|
1141 | },
|
1142 | {
|
1143 | "internalType": "uint256",
|
1144 | "name": "fromAmount",
|
1145 | "type": "uint256"
|
1146 | },
|
1147 | {
|
1148 | "internalType": "uint256",
|
1149 | "name": "toAmount",
|
1150 | "type": "uint256"
|
1151 | },
|
1152 | {
|
1153 | "internalType": "uint256",
|
1154 | "name": "expectedAmount",
|
1155 | "type": "uint256"
|
1156 | },
|
1157 | {
|
1158 | "internalType": "address payable",
|
1159 | "name": "beneficiary",
|
1160 | "type": "address"
|
1161 | },
|
1162 | {
|
1163 | "components": [
|
1164 | {
|
1165 | "internalType": "uint256",
|
1166 | "name": "fromAmountPercent",
|
1167 | "type": "uint256"
|
1168 | },
|
1169 | {
|
1170 | "components": [
|
1171 | {
|
1172 | "internalType": "address",
|
1173 | "name": "to",
|
1174 | "type": "address"
|
1175 | },
|
1176 | {
|
1177 | "internalType": "uint256",
|
1178 | "name": "totalNetworkFee",
|
1179 | "type": "uint256"
|
1180 | },
|
1181 | {
|
1182 | "components": [
|
1183 | {
|
1184 | "internalType": "address payable",
|
1185 | "name": "adapter",
|
1186 | "type": "address"
|
1187 | },
|
1188 | {
|
1189 | "internalType": "uint256",
|
1190 | "name": "percent",
|
1191 | "type": "uint256"
|
1192 | },
|
1193 | {
|
1194 | "internalType": "uint256",
|
1195 | "name": "networkFee",
|
1196 | "type": "uint256"
|
1197 | },
|
1198 | {
|
1199 | "components": [
|
1200 | {
|
1201 | "internalType": "uint256",
|
1202 | "name": "index",
|
1203 | "type": "uint256"
|
1204 | },
|
1205 | {
|
1206 | "internalType": "address",
|
1207 | "name": "targetExchange",
|
1208 | "type": "address"
|
1209 | },
|
1210 | {
|
1211 | "internalType": "uint256",
|
1212 | "name": "percent",
|
1213 | "type": "uint256"
|
1214 | },
|
1215 | {
|
1216 | "internalType": "bytes",
|
1217 | "name": "payload",
|
1218 | "type": "bytes"
|
1219 | },
|
1220 | {
|
1221 | "internalType": "uint256",
|
1222 | "name": "networkFee",
|
1223 | "type": "uint256"
|
1224 | }
|
1225 | ],
|
1226 | "internalType": "struct Utils.Route[]",
|
1227 | "name": "route",
|
1228 | "type": "tuple[]"
|
1229 | }
|
1230 | ],
|
1231 | "internalType": "struct Utils.Adapter[]",
|
1232 | "name": "adapters",
|
1233 | "type": "tuple[]"
|
1234 | }
|
1235 | ],
|
1236 | "internalType": "struct Utils.Path[]",
|
1237 | "name": "path",
|
1238 | "type": "tuple[]"
|
1239 | }
|
1240 | ],
|
1241 | "internalType": "struct Utils.MegaSwapPath[]",
|
1242 | "name": "path",
|
1243 | "type": "tuple[]"
|
1244 | },
|
1245 | {
|
1246 | "internalType": "address payable",
|
1247 | "name": "partner",
|
1248 | "type": "address"
|
1249 | },
|
1250 | {
|
1251 | "internalType": "uint256",
|
1252 | "name": "feePercent",
|
1253 | "type": "uint256"
|
1254 | },
|
1255 | {
|
1256 | "internalType": "bytes",
|
1257 | "name": "permit",
|
1258 | "type": "bytes"
|
1259 | },
|
1260 | {
|
1261 | "internalType": "uint256",
|
1262 | "name": "deadline",
|
1263 | "type": "uint256"
|
1264 | },
|
1265 | {
|
1266 | "internalType": "bytes16",
|
1267 | "name": "uuid",
|
1268 | "type": "bytes16"
|
1269 | }
|
1270 | ],
|
1271 | "internalType": "struct Utils.MegaSwapSellData",
|
1272 | "name": "data",
|
1273 | "type": "tuple"
|
1274 | }
|
1275 | ],
|
1276 | "name": "protectedMegaSwap",
|
1277 | "outputs": [
|
1278 | {
|
1279 | "internalType": "uint256",
|
1280 | "name": "",
|
1281 | "type": "uint256"
|
1282 | }
|
1283 | ],
|
1284 | "stateMutability": "payable",
|
1285 | "type": "function"
|
1286 | },
|
1287 | {
|
1288 | "inputs": [
|
1289 | {
|
1290 | "components": [
|
1291 | {
|
1292 | "internalType": "address",
|
1293 | "name": "fromToken",
|
1294 | "type": "address"
|
1295 | },
|
1296 | {
|
1297 | "internalType": "uint256",
|
1298 | "name": "fromAmount",
|
1299 | "type": "uint256"
|
1300 | },
|
1301 | {
|
1302 | "internalType": "uint256",
|
1303 | "name": "toAmount",
|
1304 | "type": "uint256"
|
1305 | },
|
1306 | {
|
1307 | "internalType": "uint256",
|
1308 | "name": "expectedAmount",
|
1309 | "type": "uint256"
|
1310 | },
|
1311 | {
|
1312 | "internalType": "address payable",
|
1313 | "name": "beneficiary",
|
1314 | "type": "address"
|
1315 | },
|
1316 | {
|
1317 | "components": [
|
1318 | {
|
1319 | "internalType": "address",
|
1320 | "name": "to",
|
1321 | "type": "address"
|
1322 | },
|
1323 | {
|
1324 | "internalType": "uint256",
|
1325 | "name": "totalNetworkFee",
|
1326 | "type": "uint256"
|
1327 | },
|
1328 | {
|
1329 | "components": [
|
1330 | {
|
1331 | "internalType": "address payable",
|
1332 | "name": "adapter",
|
1333 | "type": "address"
|
1334 | },
|
1335 | {
|
1336 | "internalType": "uint256",
|
1337 | "name": "percent",
|
1338 | "type": "uint256"
|
1339 | },
|
1340 | {
|
1341 | "internalType": "uint256",
|
1342 | "name": "networkFee",
|
1343 | "type": "uint256"
|
1344 | },
|
1345 | {
|
1346 | "components": [
|
1347 | {
|
1348 | "internalType": "uint256",
|
1349 | "name": "index",
|
1350 | "type": "uint256"
|
1351 | },
|
1352 | {
|
1353 | "internalType": "address",
|
1354 | "name": "targetExchange",
|
1355 | "type": "address"
|
1356 | },
|
1357 | {
|
1358 | "internalType": "uint256",
|
1359 | "name": "percent",
|
1360 | "type": "uint256"
|
1361 | },
|
1362 | {
|
1363 | "internalType": "bytes",
|
1364 | "name": "payload",
|
1365 | "type": "bytes"
|
1366 | },
|
1367 | {
|
1368 | "internalType": "uint256",
|
1369 | "name": "networkFee",
|
1370 | "type": "uint256"
|
1371 | }
|
1372 | ],
|
1373 | "internalType": "struct Utils.Route[]",
|
1374 | "name": "route",
|
1375 | "type": "tuple[]"
|
1376 | }
|
1377 | ],
|
1378 | "internalType": "struct Utils.Adapter[]",
|
1379 | "name": "adapters",
|
1380 | "type": "tuple[]"
|
1381 | }
|
1382 | ],
|
1383 | "internalType": "struct Utils.Path[]",
|
1384 | "name": "path",
|
1385 | "type": "tuple[]"
|
1386 | },
|
1387 | {
|
1388 | "internalType": "address payable",
|
1389 | "name": "partner",
|
1390 | "type": "address"
|
1391 | },
|
1392 | {
|
1393 | "internalType": "uint256",
|
1394 | "name": "feePercent",
|
1395 | "type": "uint256"
|
1396 | },
|
1397 | {
|
1398 | "internalType": "bytes",
|
1399 | "name": "permit",
|
1400 | "type": "bytes"
|
1401 | },
|
1402 | {
|
1403 | "internalType": "uint256",
|
1404 | "name": "deadline",
|
1405 | "type": "uint256"
|
1406 | },
|
1407 | {
|
1408 | "internalType": "bytes16",
|
1409 | "name": "uuid",
|
1410 | "type": "bytes16"
|
1411 | }
|
1412 | ],
|
1413 | "internalType": "struct Utils.SellData",
|
1414 | "name": "data",
|
1415 | "type": "tuple"
|
1416 | }
|
1417 | ],
|
1418 | "name": "protectedMultiSwap",
|
1419 | "outputs": [
|
1420 | {
|
1421 | "internalType": "uint256",
|
1422 | "name": "",
|
1423 | "type": "uint256"
|
1424 | }
|
1425 | ],
|
1426 | "stateMutability": "payable",
|
1427 | "type": "function"
|
1428 | },
|
1429 | {
|
1430 | "inputs": [
|
1431 | {
|
1432 | "components": [
|
1433 | {
|
1434 | "internalType": "address",
|
1435 | "name": "fromToken",
|
1436 | "type": "address"
|
1437 | },
|
1438 | {
|
1439 | "internalType": "address",
|
1440 | "name": "toToken",
|
1441 | "type": "address"
|
1442 | },
|
1443 | {
|
1444 | "internalType": "uint256",
|
1445 | "name": "fromAmount",
|
1446 | "type": "uint256"
|
1447 | },
|
1448 | {
|
1449 | "internalType": "uint256",
|
1450 | "name": "toAmount",
|
1451 | "type": "uint256"
|
1452 | },
|
1453 | {
|
1454 | "internalType": "uint256",
|
1455 | "name": "expectedAmount",
|
1456 | "type": "uint256"
|
1457 | },
|
1458 | {
|
1459 | "internalType": "address[]",
|
1460 | "name": "callees",
|
1461 | "type": "address[]"
|
1462 | },
|
1463 | {
|
1464 | "internalType": "bytes",
|
1465 | "name": "exchangeData",
|
1466 | "type": "bytes"
|
1467 | },
|
1468 | {
|
1469 | "internalType": "uint256[]",
|
1470 | "name": "startIndexes",
|
1471 | "type": "uint256[]"
|
1472 | },
|
1473 | {
|
1474 | "internalType": "uint256[]",
|
1475 | "name": "values",
|
1476 | "type": "uint256[]"
|
1477 | },
|
1478 | {
|
1479 | "internalType": "address payable",
|
1480 | "name": "beneficiary",
|
1481 | "type": "address"
|
1482 | },
|
1483 | {
|
1484 | "internalType": "address payable",
|
1485 | "name": "partner",
|
1486 | "type": "address"
|
1487 | },
|
1488 | {
|
1489 | "internalType": "uint256",
|
1490 | "name": "feePercent",
|
1491 | "type": "uint256"
|
1492 | },
|
1493 | {
|
1494 | "internalType": "bytes",
|
1495 | "name": "permit",
|
1496 | "type": "bytes"
|
1497 | },
|
1498 | {
|
1499 | "internalType": "uint256",
|
1500 | "name": "deadline",
|
1501 | "type": "uint256"
|
1502 | },
|
1503 | {
|
1504 | "internalType": "bytes16",
|
1505 | "name": "uuid",
|
1506 | "type": "bytes16"
|
1507 | }
|
1508 | ],
|
1509 | "internalType": "struct Utils.SimpleData",
|
1510 | "name": "data",
|
1511 | "type": "tuple"
|
1512 | }
|
1513 | ],
|
1514 | "name": "protectedSimpleBuy",
|
1515 | "outputs": [],
|
1516 | "stateMutability": "payable",
|
1517 | "type": "function"
|
1518 | },
|
1519 | {
|
1520 | "inputs": [
|
1521 | {
|
1522 | "components": [
|
1523 | {
|
1524 | "internalType": "address",
|
1525 | "name": "fromToken",
|
1526 | "type": "address"
|
1527 | },
|
1528 | {
|
1529 | "internalType": "address",
|
1530 | "name": "toToken",
|
1531 | "type": "address"
|
1532 | },
|
1533 | {
|
1534 | "internalType": "uint256",
|
1535 | "name": "fromAmount",
|
1536 | "type": "uint256"
|
1537 | },
|
1538 | {
|
1539 | "internalType": "uint256",
|
1540 | "name": "toAmount",
|
1541 | "type": "uint256"
|
1542 | },
|
1543 | {
|
1544 | "internalType": "uint256",
|
1545 | "name": "expectedAmount",
|
1546 | "type": "uint256"
|
1547 | },
|
1548 | {
|
1549 | "internalType": "address[]",
|
1550 | "name": "callees",
|
1551 | "type": "address[]"
|
1552 | },
|
1553 | {
|
1554 | "internalType": "bytes",
|
1555 | "name": "exchangeData",
|
1556 | "type": "bytes"
|
1557 | },
|
1558 | {
|
1559 | "internalType": "uint256[]",
|
1560 | "name": "startIndexes",
|
1561 | "type": "uint256[]"
|
1562 | },
|
1563 | {
|
1564 | "internalType": "uint256[]",
|
1565 | "name": "values",
|
1566 | "type": "uint256[]"
|
1567 | },
|
1568 | {
|
1569 | "internalType": "address payable",
|
1570 | "name": "beneficiary",
|
1571 | "type": "address"
|
1572 | },
|
1573 | {
|
1574 | "internalType": "address payable",
|
1575 | "name": "partner",
|
1576 | "type": "address"
|
1577 | },
|
1578 | {
|
1579 | "internalType": "uint256",
|
1580 | "name": "feePercent",
|
1581 | "type": "uint256"
|
1582 | },
|
1583 | {
|
1584 | "internalType": "bytes",
|
1585 | "name": "permit",
|
1586 | "type": "bytes"
|
1587 | },
|
1588 | {
|
1589 | "internalType": "uint256",
|
1590 | "name": "deadline",
|
1591 | "type": "uint256"
|
1592 | },
|
1593 | {
|
1594 | "internalType": "bytes16",
|
1595 | "name": "uuid",
|
1596 | "type": "bytes16"
|
1597 | }
|
1598 | ],
|
1599 | "internalType": "struct Utils.SimpleData",
|
1600 | "name": "data",
|
1601 | "type": "tuple"
|
1602 | }
|
1603 | ],
|
1604 | "name": "protectedSimpleSwap",
|
1605 | "outputs": [
|
1606 | {
|
1607 | "internalType": "uint256",
|
1608 | "name": "receivedAmount",
|
1609 | "type": "uint256"
|
1610 | }
|
1611 | ],
|
1612 | "stateMutability": "payable",
|
1613 | "type": "function"
|
1614 | },
|
1615 | {
|
1616 | "inputs": [
|
1617 | {
|
1618 | "components": [
|
1619 | {
|
1620 | "internalType": "address",
|
1621 | "name": "fromToken",
|
1622 | "type": "address"
|
1623 | },
|
1624 | {
|
1625 | "internalType": "address",
|
1626 | "name": "toToken",
|
1627 | "type": "address"
|
1628 | },
|
1629 | {
|
1630 | "internalType": "uint256",
|
1631 | "name": "fromAmount",
|
1632 | "type": "uint256"
|
1633 | },
|
1634 | {
|
1635 | "internalType": "uint256",
|
1636 | "name": "toAmount",
|
1637 | "type": "uint256"
|
1638 | },
|
1639 | {
|
1640 | "internalType": "uint256",
|
1641 | "name": "expectedAmount",
|
1642 | "type": "uint256"
|
1643 | },
|
1644 | {
|
1645 | "internalType": "address[]",
|
1646 | "name": "callees",
|
1647 | "type": "address[]"
|
1648 | },
|
1649 | {
|
1650 | "internalType": "bytes",
|
1651 | "name": "exchangeData",
|
1652 | "type": "bytes"
|
1653 | },
|
1654 | {
|
1655 | "internalType": "uint256[]",
|
1656 | "name": "startIndexes",
|
1657 | "type": "uint256[]"
|
1658 | },
|
1659 | {
|
1660 | "internalType": "uint256[]",
|
1661 | "name": "values",
|
1662 | "type": "uint256[]"
|
1663 | },
|
1664 | {
|
1665 | "internalType": "address payable",
|
1666 | "name": "beneficiary",
|
1667 | "type": "address"
|
1668 | },
|
1669 | {
|
1670 | "internalType": "address payable",
|
1671 | "name": "partner",
|
1672 | "type": "address"
|
1673 | },
|
1674 | {
|
1675 | "internalType": "uint256",
|
1676 | "name": "feePercent",
|
1677 | "type": "uint256"
|
1678 | },
|
1679 | {
|
1680 | "internalType": "bytes",
|
1681 | "name": "permit",
|
1682 | "type": "bytes"
|
1683 | },
|
1684 | {
|
1685 | "internalType": "uint256",
|
1686 | "name": "deadline",
|
1687 | "type": "uint256"
|
1688 | },
|
1689 | {
|
1690 | "internalType": "bytes16",
|
1691 | "name": "uuid",
|
1692 | "type": "bytes16"
|
1693 | }
|
1694 | ],
|
1695 | "internalType": "struct Utils.SimpleData",
|
1696 | "name": "data",
|
1697 | "type": "tuple"
|
1698 | }
|
1699 | ],
|
1700 | "name": "simpleBuy",
|
1701 | "outputs": [],
|
1702 | "stateMutability": "payable",
|
1703 | "type": "function"
|
1704 | },
|
1705 | {
|
1706 | "inputs": [
|
1707 | {
|
1708 | "components": [
|
1709 | {
|
1710 | "internalType": "address",
|
1711 | "name": "fromToken",
|
1712 | "type": "address"
|
1713 | },
|
1714 | {
|
1715 | "internalType": "address",
|
1716 | "name": "toToken",
|
1717 | "type": "address"
|
1718 | },
|
1719 | {
|
1720 | "internalType": "uint256",
|
1721 | "name": "fromAmount",
|
1722 | "type": "uint256"
|
1723 | },
|
1724 | {
|
1725 | "internalType": "uint256",
|
1726 | "name": "toAmount",
|
1727 | "type": "uint256"
|
1728 | },
|
1729 | {
|
1730 | "internalType": "uint256",
|
1731 | "name": "expectedAmount",
|
1732 | "type": "uint256"
|
1733 | },
|
1734 | {
|
1735 | "internalType": "address[]",
|
1736 | "name": "callees",
|
1737 | "type": "address[]"
|
1738 | },
|
1739 | {
|
1740 | "internalType": "bytes",
|
1741 | "name": "exchangeData",
|
1742 | "type": "bytes"
|
1743 | },
|
1744 | {
|
1745 | "internalType": "uint256[]",
|
1746 | "name": "startIndexes",
|
1747 | "type": "uint256[]"
|
1748 | },
|
1749 | {
|
1750 | "internalType": "uint256[]",
|
1751 | "name": "values",
|
1752 | "type": "uint256[]"
|
1753 | },
|
1754 | {
|
1755 | "internalType": "address payable",
|
1756 | "name": "beneficiary",
|
1757 | "type": "address"
|
1758 | },
|
1759 | {
|
1760 | "internalType": "address payable",
|
1761 | "name": "partner",
|
1762 | "type": "address"
|
1763 | },
|
1764 | {
|
1765 | "internalType": "uint256",
|
1766 | "name": "feePercent",
|
1767 | "type": "uint256"
|
1768 | },
|
1769 | {
|
1770 | "internalType": "bytes",
|
1771 | "name": "permit",
|
1772 | "type": "bytes"
|
1773 | },
|
1774 | {
|
1775 | "internalType": "uint256",
|
1776 | "name": "deadline",
|
1777 | "type": "uint256"
|
1778 | },
|
1779 | {
|
1780 | "internalType": "bytes16",
|
1781 | "name": "uuid",
|
1782 | "type": "bytes16"
|
1783 | }
|
1784 | ],
|
1785 | "internalType": "struct Utils.SimpleData",
|
1786 | "name": "data",
|
1787 | "type": "tuple"
|
1788 | }
|
1789 | ],
|
1790 | "name": "simpleSwap",
|
1791 | "outputs": [
|
1792 | {
|
1793 | "internalType": "uint256",
|
1794 | "name": "receivedAmount",
|
1795 | "type": "uint256"
|
1796 | }
|
1797 | ],
|
1798 | "stateMutability": "payable",
|
1799 | "type": "function"
|
1800 | },
|
1801 | {
|
1802 | "inputs": [
|
1803 | {
|
1804 | "internalType": "uint256",
|
1805 | "name": "amountIn",
|
1806 | "type": "uint256"
|
1807 | },
|
1808 | {
|
1809 | "internalType": "uint256",
|
1810 | "name": "amountOutMin",
|
1811 | "type": "uint256"
|
1812 | },
|
1813 | {
|
1814 | "internalType": "address[]",
|
1815 | "name": "path",
|
1816 | "type": "address[]"
|
1817 | }
|
1818 | ],
|
1819 | "name": "swapOnUniswap",
|
1820 | "outputs": [],
|
1821 | "stateMutability": "payable",
|
1822 | "type": "function"
|
1823 | },
|
1824 | {
|
1825 | "inputs": [
|
1826 | {
|
1827 | "internalType": "address",
|
1828 | "name": "factory",
|
1829 | "type": "address"
|
1830 | },
|
1831 | {
|
1832 | "internalType": "bytes32",
|
1833 | "name": "initCode",
|
1834 | "type": "bytes32"
|
1835 | },
|
1836 | {
|
1837 | "internalType": "uint256",
|
1838 | "name": "amountIn",
|
1839 | "type": "uint256"
|
1840 | },
|
1841 | {
|
1842 | "internalType": "uint256",
|
1843 | "name": "amountOutMin",
|
1844 | "type": "uint256"
|
1845 | },
|
1846 | {
|
1847 | "internalType": "address[]",
|
1848 | "name": "path",
|
1849 | "type": "address[]"
|
1850 | }
|
1851 | ],
|
1852 | "name": "swapOnUniswapFork",
|
1853 | "outputs": [],
|
1854 | "stateMutability": "payable",
|
1855 | "type": "function"
|
1856 | },
|
1857 | {
|
1858 | "inputs": [
|
1859 | {
|
1860 | "internalType": "address",
|
1861 | "name": "tokenIn",
|
1862 | "type": "address"
|
1863 | },
|
1864 | {
|
1865 | "internalType": "uint256",
|
1866 | "name": "amountIn",
|
1867 | "type": "uint256"
|
1868 | },
|
1869 | {
|
1870 | "internalType": "uint256",
|
1871 | "name": "amountOutMin",
|
1872 | "type": "uint256"
|
1873 | },
|
1874 | {
|
1875 | "internalType": "address",
|
1876 | "name": "weth",
|
1877 | "type": "address"
|
1878 | },
|
1879 | {
|
1880 | "internalType": "uint256[]",
|
1881 | "name": "pools",
|
1882 | "type": "uint256[]"
|
1883 | }
|
1884 | ],
|
1885 | "name": "swapOnUniswapV2Fork",
|
1886 | "outputs": [],
|
1887 | "stateMutability": "payable",
|
1888 | "type": "function"
|
1889 | },
|
1890 | {
|
1891 | "inputs": [
|
1892 | {
|
1893 | "internalType": "contract IERC20",
|
1894 | "name": "fromToken",
|
1895 | "type": "address"
|
1896 | },
|
1897 | {
|
1898 | "internalType": "contract IERC20",
|
1899 | "name": "toToken",
|
1900 | "type": "address"
|
1901 | },
|
1902 | {
|
1903 | "internalType": "uint256",
|
1904 | "name": "fromAmount",
|
1905 | "type": "uint256"
|
1906 | },
|
1907 | {
|
1908 | "internalType": "uint256",
|
1909 | "name": "amountOutMin",
|
1910 | "type": "uint256"
|
1911 | },
|
1912 | {
|
1913 | "internalType": "address",
|
1914 | "name": "exchange",
|
1915 | "type": "address"
|
1916 | },
|
1917 | {
|
1918 | "internalType": "bytes",
|
1919 | "name": "payload",
|
1920 | "type": "bytes"
|
1921 | }
|
1922 | ],
|
1923 | "name": "swapOnZeroXv2",
|
1924 | "outputs": [],
|
1925 | "stateMutability": "payable",
|
1926 | "type": "function"
|
1927 | },
|
1928 | {
|
1929 | "inputs": [
|
1930 | {
|
1931 | "internalType": "contract IERC20",
|
1932 | "name": "fromToken",
|
1933 | "type": "address"
|
1934 | },
|
1935 | {
|
1936 | "internalType": "contract IERC20",
|
1937 | "name": "toToken",
|
1938 | "type": "address"
|
1939 | },
|
1940 | {
|
1941 | "internalType": "uint256",
|
1942 | "name": "fromAmount",
|
1943 | "type": "uint256"
|
1944 | },
|
1945 | {
|
1946 | "internalType": "uint256",
|
1947 | "name": "amountOutMin",
|
1948 | "type": "uint256"
|
1949 | },
|
1950 | {
|
1951 | "internalType": "address",
|
1952 | "name": "exchange",
|
1953 | "type": "address"
|
1954 | },
|
1955 | {
|
1956 | "internalType": "bytes",
|
1957 | "name": "payload",
|
1958 | "type": "bytes"
|
1959 | }
|
1960 | ],
|
1961 | "name": "swapOnZeroXv4",
|
1962 | "outputs": [],
|
1963 | "stateMutability": "payable",
|
1964 | "type": "function"
|
1965 | }
|
1966 | ] |
\ | No newline at end of file |