muteRouterAbi.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "address",
  6. "name": "_factory",
  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. "stateMutability": "payable",
  20. "type": "fallback"
  21. },
  22. {
  23. "inputs": [],
  24. "name": "WETH",
  25. "outputs": [
  26. {
  27. "internalType": "address",
  28. "name": "",
  29. "type": "address"
  30. }
  31. ],
  32. "stateMutability": "view",
  33. "type": "function"
  34. },
  35. {
  36. "inputs": [
  37. {
  38. "internalType": "address",
  39. "name": "tokenA",
  40. "type": "address"
  41. },
  42. {
  43. "internalType": "address",
  44. "name": "tokenB",
  45. "type": "address"
  46. },
  47. {
  48. "internalType": "uint256",
  49. "name": "amountADesired",
  50. "type": "uint256"
  51. },
  52. {
  53. "internalType": "uint256",
  54. "name": "amountBDesired",
  55. "type": "uint256"
  56. },
  57. {
  58. "internalType": "uint256",
  59. "name": "amountAMin",
  60. "type": "uint256"
  61. },
  62. {
  63. "internalType": "uint256",
  64. "name": "amountBMin",
  65. "type": "uint256"
  66. },
  67. {
  68. "internalType": "address",
  69. "name": "to",
  70. "type": "address"
  71. },
  72. {
  73. "internalType": "uint256",
  74. "name": "deadline",
  75. "type": "uint256"
  76. },
  77. {
  78. "internalType": "uint256",
  79. "name": "feeType",
  80. "type": "uint256"
  81. },
  82. {
  83. "internalType": "bool",
  84. "name": "stable",
  85. "type": "bool"
  86. }
  87. ],
  88. "name": "addLiquidity",
  89. "outputs": [
  90. {
  91. "internalType": "uint256",
  92. "name": "amountA",
  93. "type": "uint256"
  94. },
  95. {
  96. "internalType": "uint256",
  97. "name": "amountB",
  98. "type": "uint256"
  99. },
  100. {
  101. "internalType": "uint256",
  102. "name": "liquidity",
  103. "type": "uint256"
  104. }
  105. ],
  106. "stateMutability": "nonpayable",
  107. "type": "function"
  108. },
  109. {
  110. "inputs": [
  111. {
  112. "internalType": "address",
  113. "name": "token",
  114. "type": "address"
  115. },
  116. {
  117. "internalType": "uint256",
  118. "name": "amountTokenDesired",
  119. "type": "uint256"
  120. },
  121. {
  122. "internalType": "uint256",
  123. "name": "amountTokenMin",
  124. "type": "uint256"
  125. },
  126. {
  127. "internalType": "uint256",
  128. "name": "amountETHMin",
  129. "type": "uint256"
  130. },
  131. {
  132. "internalType": "address",
  133. "name": "to",
  134. "type": "address"
  135. },
  136. {
  137. "internalType": "uint256",
  138. "name": "deadline",
  139. "type": "uint256"
  140. },
  141. {
  142. "internalType": "uint256",
  143. "name": "feeType",
  144. "type": "uint256"
  145. },
  146. {
  147. "internalType": "bool",
  148. "name": "stable",
  149. "type": "bool"
  150. }
  151. ],
  152. "name": "addLiquidityETH",
  153. "outputs": [
  154. {
  155. "internalType": "uint256",
  156. "name": "amountToken",
  157. "type": "uint256"
  158. },
  159. {
  160. "internalType": "uint256",
  161. "name": "amountETH",
  162. "type": "uint256"
  163. },
  164. {
  165. "internalType": "uint256",
  166. "name": "liquidity",
  167. "type": "uint256"
  168. }
  169. ],
  170. "stateMutability": "payable",
  171. "type": "function"
  172. },
  173. {
  174. "inputs": [],
  175. "name": "factory",
  176. "outputs": [
  177. {
  178. "internalType": "address",
  179. "name": "",
  180. "type": "address"
  181. }
  182. ],
  183. "stateMutability": "view",
  184. "type": "function"
  185. },
  186. {
  187. "inputs": [
  188. {
  189. "internalType": "uint256",
  190. "name": "amountIn",
  191. "type": "uint256"
  192. },
  193. {
  194. "internalType": "address",
  195. "name": "tokenIn",
  196. "type": "address"
  197. },
  198. {
  199. "internalType": "address",
  200. "name": "tokenOut",
  201. "type": "address"
  202. }
  203. ],
  204. "name": "getAmountOut",
  205. "outputs": [
  206. {
  207. "internalType": "uint256",
  208. "name": "amountOut",
  209. "type": "uint256"
  210. },
  211. {
  212. "internalType": "bool",
  213. "name": "stable",
  214. "type": "bool"
  215. },
  216. {
  217. "internalType": "uint256",
  218. "name": "fee",
  219. "type": "uint256"
  220. }
  221. ],
  222. "stateMutability": "view",
  223. "type": "function"
  224. },
  225. {
  226. "inputs": [
  227. {
  228. "internalType": "uint256",
  229. "name": "amountIn",
  230. "type": "uint256"
  231. },
  232. {
  233. "internalType": "address[]",
  234. "name": "path",
  235. "type": "address[]"
  236. },
  237. {
  238. "internalType": "bool[]",
  239. "name": "stable",
  240. "type": "bool[]"
  241. }
  242. ],
  243. "name": "getAmountsOut",
  244. "outputs": [
  245. {
  246. "internalType": "uint256[]",
  247. "name": "amounts",
  248. "type": "uint256[]"
  249. }
  250. ],
  251. "stateMutability": "view",
  252. "type": "function"
  253. },
  254. {
  255. "inputs": [
  256. {
  257. "internalType": "uint256",
  258. "name": "amountIn",
  259. "type": "uint256"
  260. },
  261. {
  262. "internalType": "address[]",
  263. "name": "path",
  264. "type": "address[]"
  265. }
  266. ],
  267. "name": "getAmountsOutExpanded",
  268. "outputs": [
  269. {
  270. "internalType": "uint256[]",
  271. "name": "amounts",
  272. "type": "uint256[]"
  273. },
  274. {
  275. "internalType": "bool[]",
  276. "name": "stable",
  277. "type": "bool[]"
  278. },
  279. {
  280. "internalType": "uint256[]",
  281. "name": "fees",
  282. "type": "uint256[]"
  283. }
  284. ],
  285. "stateMutability": "view",
  286. "type": "function"
  287. },
  288. {
  289. "inputs": [
  290. {
  291. "internalType": "address[]",
  292. "name": "path",
  293. "type": "address[]"
  294. },
  295. {
  296. "internalType": "bool",
  297. "name": "stable",
  298. "type": "bool"
  299. }
  300. ],
  301. "name": "getPairInfo",
  302. "outputs": [
  303. {
  304. "internalType": "address",
  305. "name": "tokenA",
  306. "type": "address"
  307. },
  308. {
  309. "internalType": "address",
  310. "name": "tokenB",
  311. "type": "address"
  312. },
  313. {
  314. "internalType": "address",
  315. "name": "pair",
  316. "type": "address"
  317. },
  318. {
  319. "internalType": "uint256",
  320. "name": "reserveA",
  321. "type": "uint256"
  322. },
  323. {
  324. "internalType": "uint256",
  325. "name": "reserveB",
  326. "type": "uint256"
  327. },
  328. {
  329. "internalType": "uint256",
  330. "name": "fee",
  331. "type": "uint256"
  332. }
  333. ],
  334. "stateMutability": "view",
  335. "type": "function"
  336. },
  337. {
  338. "inputs": [
  339. {
  340. "internalType": "address",
  341. "name": "tokenA",
  342. "type": "address"
  343. },
  344. {
  345. "internalType": "address",
  346. "name": "tokenB",
  347. "type": "address"
  348. },
  349. {
  350. "internalType": "bool",
  351. "name": "stable",
  352. "type": "bool"
  353. }
  354. ],
  355. "name": "getReserves",
  356. "outputs": [
  357. {
  358. "internalType": "uint256",
  359. "name": "reserveA",
  360. "type": "uint256"
  361. },
  362. {
  363. "internalType": "uint256",
  364. "name": "reserveB",
  365. "type": "uint256"
  366. }
  367. ],
  368. "stateMutability": "view",
  369. "type": "function"
  370. },
  371. {
  372. "inputs": [
  373. {
  374. "internalType": "address",
  375. "name": "tokenA",
  376. "type": "address"
  377. },
  378. {
  379. "internalType": "address",
  380. "name": "tokenB",
  381. "type": "address"
  382. },
  383. {
  384. "internalType": "bool",
  385. "name": "stable",
  386. "type": "bool"
  387. }
  388. ],
  389. "name": "pairFor",
  390. "outputs": [
  391. {
  392. "internalType": "address",
  393. "name": "pair",
  394. "type": "address"
  395. }
  396. ],
  397. "stateMutability": "view",
  398. "type": "function"
  399. },
  400. {
  401. "inputs": [
  402. {
  403. "internalType": "uint256",
  404. "name": "amountA",
  405. "type": "uint256"
  406. },
  407. {
  408. "internalType": "uint256",
  409. "name": "reserveA",
  410. "type": "uint256"
  411. },
  412. {
  413. "internalType": "uint256",
  414. "name": "reserveB",
  415. "type": "uint256"
  416. }
  417. ],
  418. "name": "quote",
  419. "outputs": [
  420. {
  421. "internalType": "uint256",
  422. "name": "amountB",
  423. "type": "uint256"
  424. }
  425. ],
  426. "stateMutability": "pure",
  427. "type": "function"
  428. },
  429. {
  430. "inputs": [
  431. {
  432. "internalType": "address",
  433. "name": "tokenA",
  434. "type": "address"
  435. },
  436. {
  437. "internalType": "address",
  438. "name": "tokenB",
  439. "type": "address"
  440. },
  441. {
  442. "internalType": "uint256",
  443. "name": "liquidity",
  444. "type": "uint256"
  445. },
  446. {
  447. "internalType": "uint256",
  448. "name": "amountAMin",
  449. "type": "uint256"
  450. },
  451. {
  452. "internalType": "uint256",
  453. "name": "amountBMin",
  454. "type": "uint256"
  455. },
  456. {
  457. "internalType": "address",
  458. "name": "to",
  459. "type": "address"
  460. },
  461. {
  462. "internalType": "uint256",
  463. "name": "deadline",
  464. "type": "uint256"
  465. },
  466. {
  467. "internalType": "bool",
  468. "name": "stable",
  469. "type": "bool"
  470. }
  471. ],
  472. "name": "removeLiquidity",
  473. "outputs": [
  474. {
  475. "internalType": "uint256",
  476. "name": "amountA",
  477. "type": "uint256"
  478. },
  479. {
  480. "internalType": "uint256",
  481. "name": "amountB",
  482. "type": "uint256"
  483. }
  484. ],
  485. "stateMutability": "nonpayable",
  486. "type": "function"
  487. },
  488. {
  489. "inputs": [
  490. {
  491. "internalType": "address",
  492. "name": "token",
  493. "type": "address"
  494. },
  495. {
  496. "internalType": "uint256",
  497. "name": "liquidity",
  498. "type": "uint256"
  499. },
  500. {
  501. "internalType": "uint256",
  502. "name": "amountTokenMin",
  503. "type": "uint256"
  504. },
  505. {
  506. "internalType": "uint256",
  507. "name": "amountETHMin",
  508. "type": "uint256"
  509. },
  510. {
  511. "internalType": "address",
  512. "name": "to",
  513. "type": "address"
  514. },
  515. {
  516. "internalType": "uint256",
  517. "name": "deadline",
  518. "type": "uint256"
  519. },
  520. {
  521. "internalType": "bool",
  522. "name": "stable",
  523. "type": "bool"
  524. }
  525. ],
  526. "name": "removeLiquidityETH",
  527. "outputs": [
  528. {
  529. "internalType": "uint256",
  530. "name": "amountToken",
  531. "type": "uint256"
  532. },
  533. {
  534. "internalType": "uint256",
  535. "name": "amountETH",
  536. "type": "uint256"
  537. }
  538. ],
  539. "stateMutability": "nonpayable",
  540. "type": "function"
  541. },
  542. {
  543. "inputs": [
  544. {
  545. "internalType": "address",
  546. "name": "token",
  547. "type": "address"
  548. },
  549. {
  550. "internalType": "uint256",
  551. "name": "liquidity",
  552. "type": "uint256"
  553. },
  554. {
  555. "internalType": "uint256",
  556. "name": "amountTokenMin",
  557. "type": "uint256"
  558. },
  559. {
  560. "internalType": "uint256",
  561. "name": "amountETHMin",
  562. "type": "uint256"
  563. },
  564. {
  565. "internalType": "address",
  566. "name": "to",
  567. "type": "address"
  568. },
  569. {
  570. "internalType": "uint256",
  571. "name": "deadline",
  572. "type": "uint256"
  573. },
  574. {
  575. "internalType": "bool",
  576. "name": "stable",
  577. "type": "bool"
  578. }
  579. ],
  580. "name": "removeLiquidityETHSupportingFeeOnTransferTokens",
  581. "outputs": [
  582. {
  583. "internalType": "uint256",
  584. "name": "amountETH",
  585. "type": "uint256"
  586. }
  587. ],
  588. "stateMutability": "nonpayable",
  589. "type": "function"
  590. },
  591. {
  592. "inputs": [
  593. {
  594. "internalType": "address",
  595. "name": "tokenA",
  596. "type": "address"
  597. },
  598. {
  599. "internalType": "address",
  600. "name": "tokenB",
  601. "type": "address"
  602. }
  603. ],
  604. "name": "sortTokens",
  605. "outputs": [
  606. {
  607. "internalType": "address",
  608. "name": "token0",
  609. "type": "address"
  610. },
  611. {
  612. "internalType": "address",
  613. "name": "token1",
  614. "type": "address"
  615. }
  616. ],
  617. "stateMutability": "pure",
  618. "type": "function"
  619. },
  620. {
  621. "inputs": [
  622. {
  623. "internalType": "uint256",
  624. "name": "amountOutMin",
  625. "type": "uint256"
  626. },
  627. {
  628. "internalType": "address[]",
  629. "name": "path",
  630. "type": "address[]"
  631. },
  632. {
  633. "internalType": "address",
  634. "name": "to",
  635. "type": "address"
  636. },
  637. {
  638. "internalType": "uint256",
  639. "name": "deadline",
  640. "type": "uint256"
  641. },
  642. {
  643. "internalType": "bool[]",
  644. "name": "stable",
  645. "type": "bool[]"
  646. }
  647. ],
  648. "name": "swapExactETHForTokens",
  649. "outputs": [
  650. {
  651. "internalType": "uint256[]",
  652. "name": "amounts",
  653. "type": "uint256[]"
  654. }
  655. ],
  656. "stateMutability": "payable",
  657. "type": "function"
  658. },
  659. {
  660. "inputs": [
  661. {
  662. "internalType": "uint256",
  663. "name": "amountOutMin",
  664. "type": "uint256"
  665. },
  666. {
  667. "internalType": "address[]",
  668. "name": "path",
  669. "type": "address[]"
  670. },
  671. {
  672. "internalType": "address",
  673. "name": "to",
  674. "type": "address"
  675. },
  676. {
  677. "internalType": "uint256",
  678. "name": "deadline",
  679. "type": "uint256"
  680. },
  681. {
  682. "internalType": "bool[]",
  683. "name": "stable",
  684. "type": "bool[]"
  685. }
  686. ],
  687. "name": "swapExactETHForTokensSupportingFeeOnTransferTokens",
  688. "outputs": [],
  689. "stateMutability": "payable",
  690. "type": "function"
  691. },
  692. {
  693. "inputs": [
  694. {
  695. "internalType": "uint256",
  696. "name": "amountIn",
  697. "type": "uint256"
  698. },
  699. {
  700. "internalType": "uint256",
  701. "name": "amountOutMin",
  702. "type": "uint256"
  703. },
  704. {
  705. "internalType": "address[]",
  706. "name": "path",
  707. "type": "address[]"
  708. },
  709. {
  710. "internalType": "address",
  711. "name": "to",
  712. "type": "address"
  713. },
  714. {
  715. "internalType": "uint256",
  716. "name": "deadline",
  717. "type": "uint256"
  718. },
  719. {
  720. "internalType": "bool[]",
  721. "name": "stable",
  722. "type": "bool[]"
  723. }
  724. ],
  725. "name": "swapExactTokensForETH",
  726. "outputs": [
  727. {
  728. "internalType": "uint256[]",
  729. "name": "amounts",
  730. "type": "uint256[]"
  731. }
  732. ],
  733. "stateMutability": "nonpayable",
  734. "type": "function"
  735. },
  736. {
  737. "inputs": [
  738. {
  739. "internalType": "uint256",
  740. "name": "amountIn",
  741. "type": "uint256"
  742. },
  743. {
  744. "internalType": "uint256",
  745. "name": "amountOutMin",
  746. "type": "uint256"
  747. },
  748. {
  749. "internalType": "address[]",
  750. "name": "path",
  751. "type": "address[]"
  752. },
  753. {
  754. "internalType": "address",
  755. "name": "to",
  756. "type": "address"
  757. },
  758. {
  759. "internalType": "uint256",
  760. "name": "deadline",
  761. "type": "uint256"
  762. },
  763. {
  764. "internalType": "bool[]",
  765. "name": "stable",
  766. "type": "bool[]"
  767. }
  768. ],
  769. "name": "swapExactTokensForETHSupportingFeeOnTransferTokens",
  770. "outputs": [],
  771. "stateMutability": "nonpayable",
  772. "type": "function"
  773. },
  774. {
  775. "inputs": [
  776. {
  777. "internalType": "uint256",
  778. "name": "amountIn",
  779. "type": "uint256"
  780. },
  781. {
  782. "internalType": "uint256",
  783. "name": "amountOutMin",
  784. "type": "uint256"
  785. },
  786. {
  787. "internalType": "address[]",
  788. "name": "path",
  789. "type": "address[]"
  790. },
  791. {
  792. "internalType": "address",
  793. "name": "to",
  794. "type": "address"
  795. },
  796. {
  797. "internalType": "uint256",
  798. "name": "deadline",
  799. "type": "uint256"
  800. },
  801. {
  802. "internalType": "bool[]",
  803. "name": "stable",
  804. "type": "bool[]"
  805. }
  806. ],
  807. "name": "swapExactTokensForTokens",
  808. "outputs": [
  809. {
  810. "internalType": "uint256[]",
  811. "name": "amounts",
  812. "type": "uint256[]"
  813. }
  814. ],
  815. "stateMutability": "nonpayable",
  816. "type": "function"
  817. },
  818. {
  819. "inputs": [
  820. {
  821. "internalType": "uint256",
  822. "name": "amountIn",
  823. "type": "uint256"
  824. },
  825. {
  826. "internalType": "uint256",
  827. "name": "amountOutMin",
  828. "type": "uint256"
  829. },
  830. {
  831. "internalType": "address[]",
  832. "name": "path",
  833. "type": "address[]"
  834. },
  835. {
  836. "internalType": "address",
  837. "name": "to",
  838. "type": "address"
  839. },
  840. {
  841. "internalType": "uint256",
  842. "name": "deadline",
  843. "type": "uint256"
  844. },
  845. {
  846. "internalType": "bool[]",
  847. "name": "stable",
  848. "type": "bool[]"
  849. }
  850. ],
  851. "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens",
  852. "outputs": [],
  853. "stateMutability": "nonpayable",
  854. "type": "function"
  855. }
  856. ]