SyncSwapRouter.json 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "address",
  6. "name": "_vault",
  7. "type": "address"
  8. },
  9. {
  10. "internalType": "address",
  11. "name": "_wETH",
  12. "type": "address"
  13. }
  14. ],
  15. "stateMutability": "nonpayable",
  16. "type": "constructor"
  17. },
  18. {
  19. "inputs": [],
  20. "name": "ApproveFailed",
  21. "type": "error"
  22. },
  23. {
  24. "inputs": [],
  25. "name": "Expired",
  26. "type": "error"
  27. },
  28. {
  29. "inputs": [],
  30. "name": "NotEnoughLiquidityMinted",
  31. "type": "error"
  32. },
  33. {
  34. "inputs": [],
  35. "name": "TooLittleReceived",
  36. "type": "error"
  37. },
  38. {
  39. "inputs": [],
  40. "name": "TransferFromFailed",
  41. "type": "error"
  42. },
  43. {
  44. "inputs": [
  45. {
  46. "internalType": "address",
  47. "name": "pool",
  48. "type": "address"
  49. },
  50. {
  51. "components": [
  52. {
  53. "internalType": "address",
  54. "name": "token",
  55. "type": "address"
  56. },
  57. {
  58. "internalType": "uint256",
  59. "name": "amount",
  60. "type": "uint256"
  61. }
  62. ],
  63. "internalType": "struct SyncSwapRouter.TokenInput[]",
  64. "name": "inputs",
  65. "type": "tuple[]"
  66. },
  67. {
  68. "internalType": "bytes",
  69. "name": "data",
  70. "type": "bytes"
  71. },
  72. {
  73. "internalType": "uint256",
  74. "name": "minLiquidity",
  75. "type": "uint256"
  76. },
  77. {
  78. "internalType": "address",
  79. "name": "callback",
  80. "type": "address"
  81. },
  82. {
  83. "internalType": "bytes",
  84. "name": "callbackData",
  85. "type": "bytes"
  86. }
  87. ],
  88. "name": "addLiquidity",
  89. "outputs": [
  90. {
  91. "internalType": "uint256",
  92. "name": "liquidity",
  93. "type": "uint256"
  94. }
  95. ],
  96. "stateMutability": "payable",
  97. "type": "function"
  98. },
  99. {
  100. "inputs": [
  101. {
  102. "internalType": "address",
  103. "name": "pool",
  104. "type": "address"
  105. },
  106. {
  107. "components": [
  108. {
  109. "internalType": "address",
  110. "name": "token",
  111. "type": "address"
  112. },
  113. {
  114. "internalType": "uint256",
  115. "name": "amount",
  116. "type": "uint256"
  117. }
  118. ],
  119. "internalType": "struct SyncSwapRouter.TokenInput[]",
  120. "name": "inputs",
  121. "type": "tuple[]"
  122. },
  123. {
  124. "internalType": "bytes",
  125. "name": "data",
  126. "type": "bytes"
  127. },
  128. {
  129. "internalType": "uint256",
  130. "name": "minLiquidity",
  131. "type": "uint256"
  132. },
  133. {
  134. "internalType": "address",
  135. "name": "callback",
  136. "type": "address"
  137. },
  138. {
  139. "internalType": "bytes",
  140. "name": "callbackData",
  141. "type": "bytes"
  142. }
  143. ],
  144. "name": "addLiquidity2",
  145. "outputs": [
  146. {
  147. "internalType": "uint256",
  148. "name": "liquidity",
  149. "type": "uint256"
  150. }
  151. ],
  152. "stateMutability": "payable",
  153. "type": "function"
  154. },
  155. {
  156. "inputs": [
  157. {
  158. "internalType": "address",
  159. "name": "pool",
  160. "type": "address"
  161. },
  162. {
  163. "components": [
  164. {
  165. "internalType": "address",
  166. "name": "token",
  167. "type": "address"
  168. },
  169. {
  170. "internalType": "uint256",
  171. "name": "amount",
  172. "type": "uint256"
  173. }
  174. ],
  175. "internalType": "struct SyncSwapRouter.TokenInput[]",
  176. "name": "inputs",
  177. "type": "tuple[]"
  178. },
  179. {
  180. "internalType": "bytes",
  181. "name": "data",
  182. "type": "bytes"
  183. },
  184. {
  185. "internalType": "uint256",
  186. "name": "minLiquidity",
  187. "type": "uint256"
  188. },
  189. {
  190. "internalType": "address",
  191. "name": "callback",
  192. "type": "address"
  193. },
  194. {
  195. "internalType": "bytes",
  196. "name": "callbackData",
  197. "type": "bytes"
  198. },
  199. {
  200. "components": [
  201. {
  202. "internalType": "address",
  203. "name": "token",
  204. "type": "address"
  205. },
  206. {
  207. "internalType": "uint256",
  208. "name": "approveAmount",
  209. "type": "uint256"
  210. },
  211. {
  212. "internalType": "uint256",
  213. "name": "deadline",
  214. "type": "uint256"
  215. },
  216. {
  217. "internalType": "uint8",
  218. "name": "v",
  219. "type": "uint8"
  220. },
  221. {
  222. "internalType": "bytes32",
  223. "name": "r",
  224. "type": "bytes32"
  225. },
  226. {
  227. "internalType": "bytes32",
  228. "name": "s",
  229. "type": "bytes32"
  230. }
  231. ],
  232. "internalType": "struct IRouter.SplitPermitParams[]",
  233. "name": "permits",
  234. "type": "tuple[]"
  235. }
  236. ],
  237. "name": "addLiquidityWithPermit",
  238. "outputs": [
  239. {
  240. "internalType": "uint256",
  241. "name": "liquidity",
  242. "type": "uint256"
  243. }
  244. ],
  245. "stateMutability": "payable",
  246. "type": "function"
  247. },
  248. {
  249. "inputs": [
  250. {
  251. "internalType": "address",
  252. "name": "pool",
  253. "type": "address"
  254. },
  255. {
  256. "components": [
  257. {
  258. "internalType": "address",
  259. "name": "token",
  260. "type": "address"
  261. },
  262. {
  263. "internalType": "uint256",
  264. "name": "amount",
  265. "type": "uint256"
  266. }
  267. ],
  268. "internalType": "struct SyncSwapRouter.TokenInput[]",
  269. "name": "inputs",
  270. "type": "tuple[]"
  271. },
  272. {
  273. "internalType": "bytes",
  274. "name": "data",
  275. "type": "bytes"
  276. },
  277. {
  278. "internalType": "uint256",
  279. "name": "minLiquidity",
  280. "type": "uint256"
  281. },
  282. {
  283. "internalType": "address",
  284. "name": "callback",
  285. "type": "address"
  286. },
  287. {
  288. "internalType": "bytes",
  289. "name": "callbackData",
  290. "type": "bytes"
  291. },
  292. {
  293. "components": [
  294. {
  295. "internalType": "address",
  296. "name": "token",
  297. "type": "address"
  298. },
  299. {
  300. "internalType": "uint256",
  301. "name": "approveAmount",
  302. "type": "uint256"
  303. },
  304. {
  305. "internalType": "uint256",
  306. "name": "deadline",
  307. "type": "uint256"
  308. },
  309. {
  310. "internalType": "uint8",
  311. "name": "v",
  312. "type": "uint8"
  313. },
  314. {
  315. "internalType": "bytes32",
  316. "name": "r",
  317. "type": "bytes32"
  318. },
  319. {
  320. "internalType": "bytes32",
  321. "name": "s",
  322. "type": "bytes32"
  323. }
  324. ],
  325. "internalType": "struct IRouter.SplitPermitParams[]",
  326. "name": "permits",
  327. "type": "tuple[]"
  328. }
  329. ],
  330. "name": "addLiquidityWithPermit2",
  331. "outputs": [
  332. {
  333. "internalType": "uint256",
  334. "name": "liquidity",
  335. "type": "uint256"
  336. }
  337. ],
  338. "stateMutability": "payable",
  339. "type": "function"
  340. },
  341. {
  342. "inputs": [
  343. {
  344. "internalType": "address",
  345. "name": "pool",
  346. "type": "address"
  347. },
  348. {
  349. "internalType": "uint256",
  350. "name": "liquidity",
  351. "type": "uint256"
  352. },
  353. {
  354. "internalType": "bytes",
  355. "name": "data",
  356. "type": "bytes"
  357. },
  358. {
  359. "internalType": "uint256[]",
  360. "name": "minAmounts",
  361. "type": "uint256[]"
  362. },
  363. {
  364. "internalType": "address",
  365. "name": "callback",
  366. "type": "address"
  367. },
  368. {
  369. "internalType": "bytes",
  370. "name": "callbackData",
  371. "type": "bytes"
  372. }
  373. ],
  374. "name": "burnLiquidity",
  375. "outputs": [
  376. {
  377. "components": [
  378. {
  379. "internalType": "address",
  380. "name": "token",
  381. "type": "address"
  382. },
  383. {
  384. "internalType": "uint256",
  385. "name": "amount",
  386. "type": "uint256"
  387. }
  388. ],
  389. "internalType": "struct IPool.TokenAmount[]",
  390. "name": "amounts",
  391. "type": "tuple[]"
  392. }
  393. ],
  394. "stateMutability": "nonpayable",
  395. "type": "function"
  396. },
  397. {
  398. "inputs": [
  399. {
  400. "internalType": "address",
  401. "name": "pool",
  402. "type": "address"
  403. },
  404. {
  405. "internalType": "uint256",
  406. "name": "liquidity",
  407. "type": "uint256"
  408. },
  409. {
  410. "internalType": "bytes",
  411. "name": "data",
  412. "type": "bytes"
  413. },
  414. {
  415. "internalType": "uint256",
  416. "name": "minAmount",
  417. "type": "uint256"
  418. },
  419. {
  420. "internalType": "address",
  421. "name": "callback",
  422. "type": "address"
  423. },
  424. {
  425. "internalType": "bytes",
  426. "name": "callbackData",
  427. "type": "bytes"
  428. }
  429. ],
  430. "name": "burnLiquiditySingle",
  431. "outputs": [
  432. {
  433. "components": [
  434. {
  435. "internalType": "address",
  436. "name": "token",
  437. "type": "address"
  438. },
  439. {
  440. "internalType": "uint256",
  441. "name": "amount",
  442. "type": "uint256"
  443. }
  444. ],
  445. "internalType": "struct IPool.TokenAmount",
  446. "name": "amountOut",
  447. "type": "tuple"
  448. }
  449. ],
  450. "stateMutability": "nonpayable",
  451. "type": "function"
  452. },
  453. {
  454. "inputs": [
  455. {
  456. "internalType": "address",
  457. "name": "pool",
  458. "type": "address"
  459. },
  460. {
  461. "internalType": "uint256",
  462. "name": "liquidity",
  463. "type": "uint256"
  464. },
  465. {
  466. "internalType": "bytes",
  467. "name": "data",
  468. "type": "bytes"
  469. },
  470. {
  471. "internalType": "uint256",
  472. "name": "minAmount",
  473. "type": "uint256"
  474. },
  475. {
  476. "internalType": "address",
  477. "name": "callback",
  478. "type": "address"
  479. },
  480. {
  481. "internalType": "bytes",
  482. "name": "callbackData",
  483. "type": "bytes"
  484. },
  485. {
  486. "components": [
  487. {
  488. "internalType": "uint256",
  489. "name": "approveAmount",
  490. "type": "uint256"
  491. },
  492. {
  493. "internalType": "uint256",
  494. "name": "deadline",
  495. "type": "uint256"
  496. },
  497. {
  498. "internalType": "bytes",
  499. "name": "signature",
  500. "type": "bytes"
  501. }
  502. ],
  503. "internalType": "struct IRouter.ArrayPermitParams",
  504. "name": "permit",
  505. "type": "tuple"
  506. }
  507. ],
  508. "name": "burnLiquiditySingleWithPermit",
  509. "outputs": [
  510. {
  511. "components": [
  512. {
  513. "internalType": "address",
  514. "name": "token",
  515. "type": "address"
  516. },
  517. {
  518. "internalType": "uint256",
  519. "name": "amount",
  520. "type": "uint256"
  521. }
  522. ],
  523. "internalType": "struct IPool.TokenAmount",
  524. "name": "amountOut",
  525. "type": "tuple"
  526. }
  527. ],
  528. "stateMutability": "nonpayable",
  529. "type": "function"
  530. },
  531. {
  532. "inputs": [
  533. {
  534. "internalType": "address",
  535. "name": "pool",
  536. "type": "address"
  537. },
  538. {
  539. "internalType": "uint256",
  540. "name": "liquidity",
  541. "type": "uint256"
  542. },
  543. {
  544. "internalType": "bytes",
  545. "name": "data",
  546. "type": "bytes"
  547. },
  548. {
  549. "internalType": "uint256[]",
  550. "name": "minAmounts",
  551. "type": "uint256[]"
  552. },
  553. {
  554. "internalType": "address",
  555. "name": "callback",
  556. "type": "address"
  557. },
  558. {
  559. "internalType": "bytes",
  560. "name": "callbackData",
  561. "type": "bytes"
  562. },
  563. {
  564. "components": [
  565. {
  566. "internalType": "uint256",
  567. "name": "approveAmount",
  568. "type": "uint256"
  569. },
  570. {
  571. "internalType": "uint256",
  572. "name": "deadline",
  573. "type": "uint256"
  574. },
  575. {
  576. "internalType": "bytes",
  577. "name": "signature",
  578. "type": "bytes"
  579. }
  580. ],
  581. "internalType": "struct IRouter.ArrayPermitParams",
  582. "name": "permit",
  583. "type": "tuple"
  584. }
  585. ],
  586. "name": "burnLiquidityWithPermit",
  587. "outputs": [
  588. {
  589. "components": [
  590. {
  591. "internalType": "address",
  592. "name": "token",
  593. "type": "address"
  594. },
  595. {
  596. "internalType": "uint256",
  597. "name": "amount",
  598. "type": "uint256"
  599. }
  600. ],
  601. "internalType": "struct IPool.TokenAmount[]",
  602. "name": "amounts",
  603. "type": "tuple[]"
  604. }
  605. ],
  606. "stateMutability": "nonpayable",
  607. "type": "function"
  608. },
  609. {
  610. "inputs": [
  611. {
  612. "internalType": "address",
  613. "name": "_factory",
  614. "type": "address"
  615. },
  616. {
  617. "internalType": "bytes",
  618. "name": "data",
  619. "type": "bytes"
  620. }
  621. ],
  622. "name": "createPool",
  623. "outputs": [
  624. {
  625. "internalType": "address",
  626. "name": "",
  627. "type": "address"
  628. }
  629. ],
  630. "stateMutability": "payable",
  631. "type": "function"
  632. },
  633. {
  634. "inputs": [
  635. {
  636. "internalType": "address",
  637. "name": "",
  638. "type": "address"
  639. },
  640. {
  641. "internalType": "uint256",
  642. "name": "",
  643. "type": "uint256"
  644. }
  645. ],
  646. "name": "enteredPools",
  647. "outputs": [
  648. {
  649. "internalType": "address",
  650. "name": "",
  651. "type": "address"
  652. }
  653. ],
  654. "stateMutability": "view",
  655. "type": "function"
  656. },
  657. {
  658. "inputs": [
  659. {
  660. "internalType": "address",
  661. "name": "account",
  662. "type": "address"
  663. }
  664. ],
  665. "name": "enteredPoolsLength",
  666. "outputs": [
  667. {
  668. "internalType": "uint256",
  669. "name": "",
  670. "type": "uint256"
  671. }
  672. ],
  673. "stateMutability": "view",
  674. "type": "function"
  675. },
  676. {
  677. "inputs": [
  678. {
  679. "internalType": "address",
  680. "name": "",
  681. "type": "address"
  682. },
  683. {
  684. "internalType": "address",
  685. "name": "",
  686. "type": "address"
  687. }
  688. ],
  689. "name": "isPoolEntered",
  690. "outputs": [
  691. {
  692. "internalType": "bool",
  693. "name": "",
  694. "type": "bool"
  695. }
  696. ],
  697. "stateMutability": "view",
  698. "type": "function"
  699. },
  700. {
  701. "inputs": [
  702. {
  703. "internalType": "bytes[]",
  704. "name": "data",
  705. "type": "bytes[]"
  706. }
  707. ],
  708. "name": "multicall",
  709. "outputs": [
  710. {
  711. "internalType": "bytes[]",
  712. "name": "results",
  713. "type": "bytes[]"
  714. }
  715. ],
  716. "stateMutability": "payable",
  717. "type": "function"
  718. },
  719. {
  720. "inputs": [
  721. {
  722. "internalType": "address",
  723. "name": "token",
  724. "type": "address"
  725. },
  726. {
  727. "internalType": "uint256",
  728. "name": "value",
  729. "type": "uint256"
  730. },
  731. {
  732. "internalType": "uint256",
  733. "name": "deadline",
  734. "type": "uint256"
  735. },
  736. {
  737. "internalType": "uint8",
  738. "name": "v",
  739. "type": "uint8"
  740. },
  741. {
  742. "internalType": "bytes32",
  743. "name": "r",
  744. "type": "bytes32"
  745. },
  746. {
  747. "internalType": "bytes32",
  748. "name": "s",
  749. "type": "bytes32"
  750. }
  751. ],
  752. "name": "selfPermit",
  753. "outputs": [],
  754. "stateMutability": "payable",
  755. "type": "function"
  756. },
  757. {
  758. "inputs": [
  759. {
  760. "internalType": "address",
  761. "name": "token",
  762. "type": "address"
  763. },
  764. {
  765. "internalType": "uint256",
  766. "name": "value",
  767. "type": "uint256"
  768. },
  769. {
  770. "internalType": "uint256",
  771. "name": "deadline",
  772. "type": "uint256"
  773. },
  774. {
  775. "internalType": "bytes",
  776. "name": "signature",
  777. "type": "bytes"
  778. }
  779. ],
  780. "name": "selfPermit2",
  781. "outputs": [],
  782. "stateMutability": "payable",
  783. "type": "function"
  784. },
  785. {
  786. "inputs": [
  787. {
  788. "internalType": "address",
  789. "name": "token",
  790. "type": "address"
  791. },
  792. {
  793. "internalType": "uint256",
  794. "name": "value",
  795. "type": "uint256"
  796. },
  797. {
  798. "internalType": "uint256",
  799. "name": "deadline",
  800. "type": "uint256"
  801. },
  802. {
  803. "internalType": "bytes",
  804. "name": "signature",
  805. "type": "bytes"
  806. }
  807. ],
  808. "name": "selfPermit2IfNecessary",
  809. "outputs": [],
  810. "stateMutability": "payable",
  811. "type": "function"
  812. },
  813. {
  814. "inputs": [
  815. {
  816. "internalType": "address",
  817. "name": "token",
  818. "type": "address"
  819. },
  820. {
  821. "internalType": "uint256",
  822. "name": "nonce",
  823. "type": "uint256"
  824. },
  825. {
  826. "internalType": "uint256",
  827. "name": "expiry",
  828. "type": "uint256"
  829. },
  830. {
  831. "internalType": "uint8",
  832. "name": "v",
  833. "type": "uint8"
  834. },
  835. {
  836. "internalType": "bytes32",
  837. "name": "r",
  838. "type": "bytes32"
  839. },
  840. {
  841. "internalType": "bytes32",
  842. "name": "s",
  843. "type": "bytes32"
  844. }
  845. ],
  846. "name": "selfPermitAllowed",
  847. "outputs": [],
  848. "stateMutability": "payable",
  849. "type": "function"
  850. },
  851. {
  852. "inputs": [
  853. {
  854. "internalType": "address",
  855. "name": "token",
  856. "type": "address"
  857. },
  858. {
  859. "internalType": "uint256",
  860. "name": "nonce",
  861. "type": "uint256"
  862. },
  863. {
  864. "internalType": "uint256",
  865. "name": "expiry",
  866. "type": "uint256"
  867. },
  868. {
  869. "internalType": "uint8",
  870. "name": "v",
  871. "type": "uint8"
  872. },
  873. {
  874. "internalType": "bytes32",
  875. "name": "r",
  876. "type": "bytes32"
  877. },
  878. {
  879. "internalType": "bytes32",
  880. "name": "s",
  881. "type": "bytes32"
  882. }
  883. ],
  884. "name": "selfPermitAllowedIfNecessary",
  885. "outputs": [],
  886. "stateMutability": "payable",
  887. "type": "function"
  888. },
  889. {
  890. "inputs": [
  891. {
  892. "internalType": "address",
  893. "name": "token",
  894. "type": "address"
  895. },
  896. {
  897. "internalType": "uint256",
  898. "name": "value",
  899. "type": "uint256"
  900. },
  901. {
  902. "internalType": "uint256",
  903. "name": "deadline",
  904. "type": "uint256"
  905. },
  906. {
  907. "internalType": "uint8",
  908. "name": "v",
  909. "type": "uint8"
  910. },
  911. {
  912. "internalType": "bytes32",
  913. "name": "r",
  914. "type": "bytes32"
  915. },
  916. {
  917. "internalType": "bytes32",
  918. "name": "s",
  919. "type": "bytes32"
  920. }
  921. ],
  922. "name": "selfPermitIfNecessary",
  923. "outputs": [],
  924. "stateMutability": "payable",
  925. "type": "function"
  926. },
  927. {
  928. "inputs": [
  929. {
  930. "internalType": "address",
  931. "name": "stakingPool",
  932. "type": "address"
  933. },
  934. {
  935. "internalType": "address",
  936. "name": "token",
  937. "type": "address"
  938. },
  939. {
  940. "internalType": "uint256",
  941. "name": "amount",
  942. "type": "uint256"
  943. },
  944. {
  945. "internalType": "address",
  946. "name": "onBehalf",
  947. "type": "address"
  948. }
  949. ],
  950. "name": "stake",
  951. "outputs": [],
  952. "stateMutability": "nonpayable",
  953. "type": "function"
  954. },
  955. {
  956. "inputs": [
  957. {
  958. "components": [
  959. {
  960. "components": [
  961. {
  962. "internalType": "address",
  963. "name": "pool",
  964. "type": "address"
  965. },
  966. {
  967. "internalType": "bytes",
  968. "name": "data",
  969. "type": "bytes"
  970. },
  971. {
  972. "internalType": "address",
  973. "name": "callback",
  974. "type": "address"
  975. },
  976. {
  977. "internalType": "bytes",
  978. "name": "callbackData",
  979. "type": "bytes"
  980. }
  981. ],
  982. "internalType": "struct IRouter.SwapStep[]",
  983. "name": "steps",
  984. "type": "tuple[]"
  985. },
  986. {
  987. "internalType": "address",
  988. "name": "tokenIn",
  989. "type": "address"
  990. },
  991. {
  992. "internalType": "uint256",
  993. "name": "amountIn",
  994. "type": "uint256"
  995. }
  996. ],
  997. "internalType": "struct IRouter.SwapPath[]",
  998. "name": "paths",
  999. "type": "tuple[]"
  1000. },
  1001. {
  1002. "internalType": "uint256",
  1003. "name": "amountOutMin",
  1004. "type": "uint256"
  1005. },
  1006. {
  1007. "internalType": "uint256",
  1008. "name": "deadline",
  1009. "type": "uint256"
  1010. }
  1011. ],
  1012. "name": "swap",
  1013. "outputs": [
  1014. {
  1015. "components": [
  1016. {
  1017. "internalType": "address",
  1018. "name": "token",
  1019. "type": "address"
  1020. },
  1021. {
  1022. "internalType": "uint256",
  1023. "name": "amount",
  1024. "type": "uint256"
  1025. }
  1026. ],
  1027. "internalType": "struct IPool.TokenAmount",
  1028. "name": "amountOut",
  1029. "type": "tuple"
  1030. }
  1031. ],
  1032. "stateMutability": "payable",
  1033. "type": "function"
  1034. },
  1035. {
  1036. "inputs": [
  1037. {
  1038. "components": [
  1039. {
  1040. "components": [
  1041. {
  1042. "internalType": "address",
  1043. "name": "pool",
  1044. "type": "address"
  1045. },
  1046. {
  1047. "internalType": "bytes",
  1048. "name": "data",
  1049. "type": "bytes"
  1050. },
  1051. {
  1052. "internalType": "address",
  1053. "name": "callback",
  1054. "type": "address"
  1055. },
  1056. {
  1057. "internalType": "bytes",
  1058. "name": "callbackData",
  1059. "type": "bytes"
  1060. }
  1061. ],
  1062. "internalType": "struct IRouter.SwapStep[]",
  1063. "name": "steps",
  1064. "type": "tuple[]"
  1065. },
  1066. {
  1067. "internalType": "address",
  1068. "name": "tokenIn",
  1069. "type": "address"
  1070. },
  1071. {
  1072. "internalType": "uint256",
  1073. "name": "amountIn",
  1074. "type": "uint256"
  1075. }
  1076. ],
  1077. "internalType": "struct IRouter.SwapPath[]",
  1078. "name": "paths",
  1079. "type": "tuple[]"
  1080. },
  1081. {
  1082. "internalType": "uint256",
  1083. "name": "amountOutMin",
  1084. "type": "uint256"
  1085. },
  1086. {
  1087. "internalType": "uint256",
  1088. "name": "deadline",
  1089. "type": "uint256"
  1090. },
  1091. {
  1092. "components": [
  1093. {
  1094. "internalType": "address",
  1095. "name": "token",
  1096. "type": "address"
  1097. },
  1098. {
  1099. "internalType": "uint256",
  1100. "name": "approveAmount",
  1101. "type": "uint256"
  1102. },
  1103. {
  1104. "internalType": "uint256",
  1105. "name": "deadline",
  1106. "type": "uint256"
  1107. },
  1108. {
  1109. "internalType": "uint8",
  1110. "name": "v",
  1111. "type": "uint8"
  1112. },
  1113. {
  1114. "internalType": "bytes32",
  1115. "name": "r",
  1116. "type": "bytes32"
  1117. },
  1118. {
  1119. "internalType": "bytes32",
  1120. "name": "s",
  1121. "type": "bytes32"
  1122. }
  1123. ],
  1124. "internalType": "struct IRouter.SplitPermitParams",
  1125. "name": "permit",
  1126. "type": "tuple"
  1127. }
  1128. ],
  1129. "name": "swapWithPermit",
  1130. "outputs": [
  1131. {
  1132. "components": [
  1133. {
  1134. "internalType": "address",
  1135. "name": "token",
  1136. "type": "address"
  1137. },
  1138. {
  1139. "internalType": "uint256",
  1140. "name": "amount",
  1141. "type": "uint256"
  1142. }
  1143. ],
  1144. "internalType": "struct IPool.TokenAmount",
  1145. "name": "amountOut",
  1146. "type": "tuple"
  1147. }
  1148. ],
  1149. "stateMutability": "payable",
  1150. "type": "function"
  1151. },
  1152. {
  1153. "inputs": [],
  1154. "name": "vault",
  1155. "outputs": [
  1156. {
  1157. "internalType": "address",
  1158. "name": "",
  1159. "type": "address"
  1160. }
  1161. ],
  1162. "stateMutability": "view",
  1163. "type": "function"
  1164. },
  1165. {
  1166. "inputs": [],
  1167. "name": "wETH",
  1168. "outputs": [
  1169. {
  1170. "internalType": "address",
  1171. "name": "",
  1172. "type": "address"
  1173. }
  1174. ],
  1175. "stateMutability": "view",
  1176. "type": "function"
  1177. }
  1178. ]