SyncSwapClassicPool.json 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. [
  2. {
  3. "inputs": [],
  4. "stateMutability": "nonpayable",
  5. "type": "constructor"
  6. },
  7. {
  8. "inputs": [],
  9. "name": "Expired",
  10. "type": "error"
  11. },
  12. {
  13. "inputs": [],
  14. "name": "InsufficientLiquidityMinted",
  15. "type": "error"
  16. },
  17. {
  18. "inputs": [],
  19. "name": "InvalidSignature",
  20. "type": "error"
  21. },
  22. {
  23. "inputs": [],
  24. "name": "Overflow",
  25. "type": "error"
  26. },
  27. {
  28. "anonymous": false,
  29. "inputs": [
  30. {
  31. "indexed": true,
  32. "internalType": "address",
  33. "name": "owner",
  34. "type": "address"
  35. },
  36. {
  37. "indexed": true,
  38. "internalType": "address",
  39. "name": "spender",
  40. "type": "address"
  41. },
  42. {
  43. "indexed": false,
  44. "internalType": "uint256",
  45. "name": "amount",
  46. "type": "uint256"
  47. }
  48. ],
  49. "name": "Approval",
  50. "type": "event"
  51. },
  52. {
  53. "anonymous": false,
  54. "inputs": [
  55. {
  56. "indexed": true,
  57. "internalType": "address",
  58. "name": "sender",
  59. "type": "address"
  60. },
  61. {
  62. "indexed": false,
  63. "internalType": "uint256",
  64. "name": "amount0",
  65. "type": "uint256"
  66. },
  67. {
  68. "indexed": false,
  69. "internalType": "uint256",
  70. "name": "amount1",
  71. "type": "uint256"
  72. },
  73. {
  74. "indexed": false,
  75. "internalType": "uint256",
  76. "name": "liquidity",
  77. "type": "uint256"
  78. },
  79. {
  80. "indexed": true,
  81. "internalType": "address",
  82. "name": "to",
  83. "type": "address"
  84. }
  85. ],
  86. "name": "Burn",
  87. "type": "event"
  88. },
  89. {
  90. "anonymous": false,
  91. "inputs": [
  92. {
  93. "indexed": true,
  94. "internalType": "address",
  95. "name": "sender",
  96. "type": "address"
  97. },
  98. {
  99. "indexed": false,
  100. "internalType": "uint256",
  101. "name": "amount0",
  102. "type": "uint256"
  103. },
  104. {
  105. "indexed": false,
  106. "internalType": "uint256",
  107. "name": "amount1",
  108. "type": "uint256"
  109. },
  110. {
  111. "indexed": false,
  112. "internalType": "uint256",
  113. "name": "liquidity",
  114. "type": "uint256"
  115. },
  116. {
  117. "indexed": true,
  118. "internalType": "address",
  119. "name": "to",
  120. "type": "address"
  121. }
  122. ],
  123. "name": "Mint",
  124. "type": "event"
  125. },
  126. {
  127. "anonymous": false,
  128. "inputs": [
  129. {
  130. "indexed": true,
  131. "internalType": "address",
  132. "name": "sender",
  133. "type": "address"
  134. },
  135. {
  136. "indexed": false,
  137. "internalType": "uint256",
  138. "name": "amount0In",
  139. "type": "uint256"
  140. },
  141. {
  142. "indexed": false,
  143. "internalType": "uint256",
  144. "name": "amount1In",
  145. "type": "uint256"
  146. },
  147. {
  148. "indexed": false,
  149. "internalType": "uint256",
  150. "name": "amount0Out",
  151. "type": "uint256"
  152. },
  153. {
  154. "indexed": false,
  155. "internalType": "uint256",
  156. "name": "amount1Out",
  157. "type": "uint256"
  158. },
  159. {
  160. "indexed": true,
  161. "internalType": "address",
  162. "name": "to",
  163. "type": "address"
  164. }
  165. ],
  166. "name": "Swap",
  167. "type": "event"
  168. },
  169. {
  170. "anonymous": false,
  171. "inputs": [
  172. {
  173. "indexed": false,
  174. "internalType": "uint256",
  175. "name": "reserve0",
  176. "type": "uint256"
  177. },
  178. {
  179. "indexed": false,
  180. "internalType": "uint256",
  181. "name": "reserve1",
  182. "type": "uint256"
  183. }
  184. ],
  185. "name": "Sync",
  186. "type": "event"
  187. },
  188. {
  189. "anonymous": false,
  190. "inputs": [
  191. {
  192. "indexed": true,
  193. "internalType": "address",
  194. "name": "from",
  195. "type": "address"
  196. },
  197. {
  198. "indexed": true,
  199. "internalType": "address",
  200. "name": "to",
  201. "type": "address"
  202. },
  203. {
  204. "indexed": false,
  205. "internalType": "uint256",
  206. "name": "amount",
  207. "type": "uint256"
  208. }
  209. ],
  210. "name": "Transfer",
  211. "type": "event"
  212. },
  213. {
  214. "inputs": [],
  215. "name": "DOMAIN_SEPARATOR",
  216. "outputs": [
  217. {
  218. "internalType": "bytes32",
  219. "name": "",
  220. "type": "bytes32"
  221. }
  222. ],
  223. "stateMutability": "view",
  224. "type": "function"
  225. },
  226. {
  227. "inputs": [
  228. {
  229. "internalType": "address",
  230. "name": "",
  231. "type": "address"
  232. },
  233. {
  234. "internalType": "address",
  235. "name": "",
  236. "type": "address"
  237. }
  238. ],
  239. "name": "allowance",
  240. "outputs": [
  241. {
  242. "internalType": "uint256",
  243. "name": "",
  244. "type": "uint256"
  245. }
  246. ],
  247. "stateMutability": "view",
  248. "type": "function"
  249. },
  250. {
  251. "inputs": [
  252. {
  253. "internalType": "address",
  254. "name": "_spender",
  255. "type": "address"
  256. },
  257. {
  258. "internalType": "uint256",
  259. "name": "_amount",
  260. "type": "uint256"
  261. }
  262. ],
  263. "name": "approve",
  264. "outputs": [
  265. {
  266. "internalType": "bool",
  267. "name": "",
  268. "type": "bool"
  269. }
  270. ],
  271. "stateMutability": "nonpayable",
  272. "type": "function"
  273. },
  274. {
  275. "inputs": [
  276. {
  277. "internalType": "address",
  278. "name": "",
  279. "type": "address"
  280. }
  281. ],
  282. "name": "balanceOf",
  283. "outputs": [
  284. {
  285. "internalType": "uint256",
  286. "name": "",
  287. "type": "uint256"
  288. }
  289. ],
  290. "stateMutability": "view",
  291. "type": "function"
  292. },
  293. {
  294. "inputs": [
  295. {
  296. "internalType": "bytes",
  297. "name": "_data",
  298. "type": "bytes"
  299. },
  300. {
  301. "internalType": "address",
  302. "name": "_sender",
  303. "type": "address"
  304. },
  305. {
  306. "internalType": "address",
  307. "name": "_callback",
  308. "type": "address"
  309. },
  310. {
  311. "internalType": "bytes",
  312. "name": "_callbackData",
  313. "type": "bytes"
  314. }
  315. ],
  316. "name": "burn",
  317. "outputs": [
  318. {
  319. "components": [
  320. {
  321. "internalType": "address",
  322. "name": "token",
  323. "type": "address"
  324. },
  325. {
  326. "internalType": "uint256",
  327. "name": "amount",
  328. "type": "uint256"
  329. }
  330. ],
  331. "internalType": "struct IPool.TokenAmount[]",
  332. "name": "_amounts",
  333. "type": "tuple[]"
  334. }
  335. ],
  336. "stateMutability": "nonpayable",
  337. "type": "function"
  338. },
  339. {
  340. "inputs": [
  341. {
  342. "internalType": "bytes",
  343. "name": "_data",
  344. "type": "bytes"
  345. },
  346. {
  347. "internalType": "address",
  348. "name": "_sender",
  349. "type": "address"
  350. },
  351. {
  352. "internalType": "address",
  353. "name": "_callback",
  354. "type": "address"
  355. },
  356. {
  357. "internalType": "bytes",
  358. "name": "_callbackData",
  359. "type": "bytes"
  360. }
  361. ],
  362. "name": "burnSingle",
  363. "outputs": [
  364. {
  365. "components": [
  366. {
  367. "internalType": "address",
  368. "name": "token",
  369. "type": "address"
  370. },
  371. {
  372. "internalType": "uint256",
  373. "name": "amount",
  374. "type": "uint256"
  375. }
  376. ],
  377. "internalType": "struct IPool.TokenAmount",
  378. "name": "_tokenAmount",
  379. "type": "tuple"
  380. }
  381. ],
  382. "stateMutability": "nonpayable",
  383. "type": "function"
  384. },
  385. {
  386. "inputs": [],
  387. "name": "decimals",
  388. "outputs": [
  389. {
  390. "internalType": "uint8",
  391. "name": "",
  392. "type": "uint8"
  393. }
  394. ],
  395. "stateMutability": "view",
  396. "type": "function"
  397. },
  398. {
  399. "inputs": [
  400. {
  401. "internalType": "address",
  402. "name": "_tokenOut",
  403. "type": "address"
  404. },
  405. {
  406. "internalType": "uint256",
  407. "name": "_amountOut",
  408. "type": "uint256"
  409. },
  410. {
  411. "internalType": "address",
  412. "name": "_sender",
  413. "type": "address"
  414. }
  415. ],
  416. "name": "getAmountIn",
  417. "outputs": [
  418. {
  419. "internalType": "uint256",
  420. "name": "_amountIn",
  421. "type": "uint256"
  422. }
  423. ],
  424. "stateMutability": "view",
  425. "type": "function"
  426. },
  427. {
  428. "inputs": [
  429. {
  430. "internalType": "address",
  431. "name": "_tokenIn",
  432. "type": "address"
  433. },
  434. {
  435. "internalType": "uint256",
  436. "name": "_amountIn",
  437. "type": "uint256"
  438. },
  439. {
  440. "internalType": "address",
  441. "name": "_sender",
  442. "type": "address"
  443. }
  444. ],
  445. "name": "getAmountOut",
  446. "outputs": [
  447. {
  448. "internalType": "uint256",
  449. "name": "_amountOut",
  450. "type": "uint256"
  451. }
  452. ],
  453. "stateMutability": "view",
  454. "type": "function"
  455. },
  456. {
  457. "inputs": [],
  458. "name": "getAssets",
  459. "outputs": [
  460. {
  461. "internalType": "address[]",
  462. "name": "assets",
  463. "type": "address[]"
  464. }
  465. ],
  466. "stateMutability": "view",
  467. "type": "function"
  468. },
  469. {
  470. "inputs": [],
  471. "name": "getProtocolFee",
  472. "outputs": [
  473. {
  474. "internalType": "uint24",
  475. "name": "_protocolFee",
  476. "type": "uint24"
  477. }
  478. ],
  479. "stateMutability": "view",
  480. "type": "function"
  481. },
  482. {
  483. "inputs": [],
  484. "name": "getReserves",
  485. "outputs": [
  486. {
  487. "internalType": "uint256",
  488. "name": "_reserve0",
  489. "type": "uint256"
  490. },
  491. {
  492. "internalType": "uint256",
  493. "name": "_reserve1",
  494. "type": "uint256"
  495. }
  496. ],
  497. "stateMutability": "view",
  498. "type": "function"
  499. },
  500. {
  501. "inputs": [
  502. {
  503. "internalType": "address",
  504. "name": "_sender",
  505. "type": "address"
  506. },
  507. {
  508. "internalType": "address",
  509. "name": "_tokenIn",
  510. "type": "address"
  511. },
  512. {
  513. "internalType": "address",
  514. "name": "_tokenOut",
  515. "type": "address"
  516. },
  517. {
  518. "internalType": "bytes",
  519. "name": "data",
  520. "type": "bytes"
  521. }
  522. ],
  523. "name": "getSwapFee",
  524. "outputs": [
  525. {
  526. "internalType": "uint24",
  527. "name": "_swapFee",
  528. "type": "uint24"
  529. }
  530. ],
  531. "stateMutability": "view",
  532. "type": "function"
  533. },
  534. {
  535. "inputs": [],
  536. "name": "invariantLast",
  537. "outputs": [
  538. {
  539. "internalType": "uint256",
  540. "name": "",
  541. "type": "uint256"
  542. }
  543. ],
  544. "stateMutability": "view",
  545. "type": "function"
  546. },
  547. {
  548. "inputs": [],
  549. "name": "master",
  550. "outputs": [
  551. {
  552. "internalType": "address",
  553. "name": "",
  554. "type": "address"
  555. }
  556. ],
  557. "stateMutability": "view",
  558. "type": "function"
  559. },
  560. {
  561. "inputs": [
  562. {
  563. "internalType": "bytes",
  564. "name": "_data",
  565. "type": "bytes"
  566. },
  567. {
  568. "internalType": "address",
  569. "name": "_sender",
  570. "type": "address"
  571. },
  572. {
  573. "internalType": "address",
  574. "name": "_callback",
  575. "type": "address"
  576. },
  577. {
  578. "internalType": "bytes",
  579. "name": "_callbackData",
  580. "type": "bytes"
  581. }
  582. ],
  583. "name": "mint",
  584. "outputs": [
  585. {
  586. "internalType": "uint256",
  587. "name": "",
  588. "type": "uint256"
  589. }
  590. ],
  591. "stateMutability": "nonpayable",
  592. "type": "function"
  593. },
  594. {
  595. "inputs": [],
  596. "name": "name",
  597. "outputs": [
  598. {
  599. "internalType": "string",
  600. "name": "",
  601. "type": "string"
  602. }
  603. ],
  604. "stateMutability": "view",
  605. "type": "function"
  606. },
  607. {
  608. "inputs": [
  609. {
  610. "internalType": "address",
  611. "name": "",
  612. "type": "address"
  613. }
  614. ],
  615. "name": "nonces",
  616. "outputs": [
  617. {
  618. "internalType": "uint256",
  619. "name": "",
  620. "type": "uint256"
  621. }
  622. ],
  623. "stateMutability": "view",
  624. "type": "function"
  625. },
  626. {
  627. "inputs": [
  628. {
  629. "internalType": "address",
  630. "name": "_owner",
  631. "type": "address"
  632. },
  633. {
  634. "internalType": "address",
  635. "name": "_spender",
  636. "type": "address"
  637. },
  638. {
  639. "internalType": "uint256",
  640. "name": "_amount",
  641. "type": "uint256"
  642. },
  643. {
  644. "internalType": "uint256",
  645. "name": "_deadline",
  646. "type": "uint256"
  647. },
  648. {
  649. "internalType": "uint8",
  650. "name": "_v",
  651. "type": "uint8"
  652. },
  653. {
  654. "internalType": "bytes32",
  655. "name": "_r",
  656. "type": "bytes32"
  657. },
  658. {
  659. "internalType": "bytes32",
  660. "name": "_s",
  661. "type": "bytes32"
  662. }
  663. ],
  664. "name": "permit",
  665. "outputs": [],
  666. "stateMutability": "nonpayable",
  667. "type": "function"
  668. },
  669. {
  670. "inputs": [
  671. {
  672. "internalType": "address",
  673. "name": "_owner",
  674. "type": "address"
  675. },
  676. {
  677. "internalType": "address",
  678. "name": "_spender",
  679. "type": "address"
  680. },
  681. {
  682. "internalType": "uint256",
  683. "name": "_amount",
  684. "type": "uint256"
  685. },
  686. {
  687. "internalType": "uint256",
  688. "name": "_deadline",
  689. "type": "uint256"
  690. },
  691. {
  692. "internalType": "bytes",
  693. "name": "_signature",
  694. "type": "bytes"
  695. }
  696. ],
  697. "name": "permit2",
  698. "outputs": [],
  699. "stateMutability": "nonpayable",
  700. "type": "function"
  701. },
  702. {
  703. "inputs": [],
  704. "name": "poolType",
  705. "outputs": [
  706. {
  707. "internalType": "uint16",
  708. "name": "",
  709. "type": "uint16"
  710. }
  711. ],
  712. "stateMutability": "view",
  713. "type": "function"
  714. },
  715. {
  716. "inputs": [],
  717. "name": "reserve0",
  718. "outputs": [
  719. {
  720. "internalType": "uint256",
  721. "name": "",
  722. "type": "uint256"
  723. }
  724. ],
  725. "stateMutability": "view",
  726. "type": "function"
  727. },
  728. {
  729. "inputs": [],
  730. "name": "reserve1",
  731. "outputs": [
  732. {
  733. "internalType": "uint256",
  734. "name": "",
  735. "type": "uint256"
  736. }
  737. ],
  738. "stateMutability": "view",
  739. "type": "function"
  740. },
  741. {
  742. "inputs": [
  743. {
  744. "internalType": "bytes4",
  745. "name": "interfaceID",
  746. "type": "bytes4"
  747. }
  748. ],
  749. "name": "supportsInterface",
  750. "outputs": [
  751. {
  752. "internalType": "bool",
  753. "name": "",
  754. "type": "bool"
  755. }
  756. ],
  757. "stateMutability": "pure",
  758. "type": "function"
  759. },
  760. {
  761. "inputs": [
  762. {
  763. "internalType": "bytes",
  764. "name": "_data",
  765. "type": "bytes"
  766. },
  767. {
  768. "internalType": "address",
  769. "name": "_sender",
  770. "type": "address"
  771. },
  772. {
  773. "internalType": "address",
  774. "name": "_callback",
  775. "type": "address"
  776. },
  777. {
  778. "internalType": "bytes",
  779. "name": "_callbackData",
  780. "type": "bytes"
  781. }
  782. ],
  783. "name": "swap",
  784. "outputs": [
  785. {
  786. "components": [
  787. {
  788. "internalType": "address",
  789. "name": "token",
  790. "type": "address"
  791. },
  792. {
  793. "internalType": "uint256",
  794. "name": "amount",
  795. "type": "uint256"
  796. }
  797. ],
  798. "internalType": "struct IPool.TokenAmount",
  799. "name": "_tokenAmount",
  800. "type": "tuple"
  801. }
  802. ],
  803. "stateMutability": "nonpayable",
  804. "type": "function"
  805. },
  806. {
  807. "inputs": [],
  808. "name": "symbol",
  809. "outputs": [
  810. {
  811. "internalType": "string",
  812. "name": "",
  813. "type": "string"
  814. }
  815. ],
  816. "stateMutability": "view",
  817. "type": "function"
  818. },
  819. {
  820. "inputs": [],
  821. "name": "token0",
  822. "outputs": [
  823. {
  824. "internalType": "address",
  825. "name": "",
  826. "type": "address"
  827. }
  828. ],
  829. "stateMutability": "view",
  830. "type": "function"
  831. },
  832. {
  833. "inputs": [],
  834. "name": "token1",
  835. "outputs": [
  836. {
  837. "internalType": "address",
  838. "name": "",
  839. "type": "address"
  840. }
  841. ],
  842. "stateMutability": "view",
  843. "type": "function"
  844. },
  845. {
  846. "inputs": [],
  847. "name": "totalSupply",
  848. "outputs": [
  849. {
  850. "internalType": "uint256",
  851. "name": "",
  852. "type": "uint256"
  853. }
  854. ],
  855. "stateMutability": "view",
  856. "type": "function"
  857. },
  858. {
  859. "inputs": [
  860. {
  861. "internalType": "address",
  862. "name": "_to",
  863. "type": "address"
  864. },
  865. {
  866. "internalType": "uint256",
  867. "name": "_amount",
  868. "type": "uint256"
  869. }
  870. ],
  871. "name": "transfer",
  872. "outputs": [
  873. {
  874. "internalType": "bool",
  875. "name": "",
  876. "type": "bool"
  877. }
  878. ],
  879. "stateMutability": "nonpayable",
  880. "type": "function"
  881. },
  882. {
  883. "inputs": [
  884. {
  885. "internalType": "address",
  886. "name": "_from",
  887. "type": "address"
  888. },
  889. {
  890. "internalType": "address",
  891. "name": "_to",
  892. "type": "address"
  893. },
  894. {
  895. "internalType": "uint256",
  896. "name": "_amount",
  897. "type": "uint256"
  898. }
  899. ],
  900. "name": "transferFrom",
  901. "outputs": [
  902. {
  903. "internalType": "bool",
  904. "name": "",
  905. "type": "bool"
  906. }
  907. ],
  908. "stateMutability": "nonpayable",
  909. "type": "function"
  910. },
  911. {
  912. "inputs": [],
  913. "name": "vault",
  914. "outputs": [
  915. {
  916. "internalType": "address",
  917. "name": "",
  918. "type": "address"
  919. }
  920. ],
  921. "stateMutability": "view",
  922. "type": "function"
  923. }
  924. ]