mutePairAbi.json 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364
  1. [
  2. {
  3. "inputs": [],
  4. "stateMutability": "nonpayable",
  5. "type": "constructor"
  6. },
  7. {
  8. "anonymous": false,
  9. "inputs": [
  10. {
  11. "indexed": true,
  12. "internalType": "address",
  13. "name": "owner",
  14. "type": "address"
  15. },
  16. {
  17. "indexed": true,
  18. "internalType": "address",
  19. "name": "spender",
  20. "type": "address"
  21. },
  22. {
  23. "indexed": false,
  24. "internalType": "uint256",
  25. "name": "value",
  26. "type": "uint256"
  27. }
  28. ],
  29. "name": "Approval",
  30. "type": "event"
  31. },
  32. {
  33. "anonymous": false,
  34. "inputs": [
  35. {
  36. "indexed": true,
  37. "internalType": "address",
  38. "name": "sender",
  39. "type": "address"
  40. },
  41. {
  42. "indexed": false,
  43. "internalType": "uint256",
  44. "name": "amount0",
  45. "type": "uint256"
  46. },
  47. {
  48. "indexed": false,
  49. "internalType": "uint256",
  50. "name": "amount1",
  51. "type": "uint256"
  52. },
  53. {
  54. "indexed": true,
  55. "internalType": "address",
  56. "name": "to",
  57. "type": "address"
  58. }
  59. ],
  60. "name": "Burn",
  61. "type": "event"
  62. },
  63. {
  64. "anonymous": false,
  65. "inputs": [
  66. {
  67. "indexed": false,
  68. "internalType": "uint256",
  69. "name": "pairFee",
  70. "type": "uint256"
  71. },
  72. {
  73. "indexed": false,
  74. "internalType": "uint256",
  75. "name": "liqFee",
  76. "type": "uint256"
  77. }
  78. ],
  79. "name": "ChangeFee",
  80. "type": "event"
  81. },
  82. {
  83. "anonymous": false,
  84. "inputs": [
  85. {
  86. "indexed": true,
  87. "internalType": "address",
  88. "name": "sender",
  89. "type": "address"
  90. },
  91. {
  92. "indexed": true,
  93. "internalType": "address",
  94. "name": "recipient",
  95. "type": "address"
  96. },
  97. {
  98. "indexed": false,
  99. "internalType": "uint256",
  100. "name": "amount0",
  101. "type": "uint256"
  102. },
  103. {
  104. "indexed": false,
  105. "internalType": "uint256",
  106. "name": "amount1",
  107. "type": "uint256"
  108. }
  109. ],
  110. "name": "Claim",
  111. "type": "event"
  112. },
  113. {
  114. "anonymous": false,
  115. "inputs": [
  116. {
  117. "indexed": true,
  118. "internalType": "address",
  119. "name": "delegator",
  120. "type": "address"
  121. },
  122. {
  123. "indexed": true,
  124. "internalType": "address",
  125. "name": "fromDelegate",
  126. "type": "address"
  127. },
  128. {
  129. "indexed": true,
  130. "internalType": "address",
  131. "name": "toDelegate",
  132. "type": "address"
  133. }
  134. ],
  135. "name": "DelegateChanged",
  136. "type": "event"
  137. },
  138. {
  139. "anonymous": false,
  140. "inputs": [
  141. {
  142. "indexed": true,
  143. "internalType": "address",
  144. "name": "delegate",
  145. "type": "address"
  146. },
  147. {
  148. "indexed": false,
  149. "internalType": "uint256",
  150. "name": "previousBalance",
  151. "type": "uint256"
  152. },
  153. {
  154. "indexed": false,
  155. "internalType": "uint256",
  156. "name": "newBalance",
  157. "type": "uint256"
  158. }
  159. ],
  160. "name": "DelegateVotesChanged",
  161. "type": "event"
  162. },
  163. {
  164. "anonymous": false,
  165. "inputs": [
  166. {
  167. "indexed": true,
  168. "internalType": "address",
  169. "name": "sender",
  170. "type": "address"
  171. },
  172. {
  173. "indexed": false,
  174. "internalType": "uint256",
  175. "name": "amount0",
  176. "type": "uint256"
  177. },
  178. {
  179. "indexed": false,
  180. "internalType": "uint256",
  181. "name": "amount1",
  182. "type": "uint256"
  183. },
  184. {
  185. "indexed": false,
  186. "internalType": "uint256",
  187. "name": "pAmount0",
  188. "type": "uint256"
  189. },
  190. {
  191. "indexed": false,
  192. "internalType": "uint256",
  193. "name": "pAmount1",
  194. "type": "uint256"
  195. }
  196. ],
  197. "name": "Fees",
  198. "type": "event"
  199. },
  200. {
  201. "anonymous": false,
  202. "inputs": [
  203. {
  204. "indexed": true,
  205. "internalType": "address",
  206. "name": "sender",
  207. "type": "address"
  208. },
  209. {
  210. "indexed": false,
  211. "internalType": "uint256",
  212. "name": "amount0",
  213. "type": "uint256"
  214. },
  215. {
  216. "indexed": false,
  217. "internalType": "uint256",
  218. "name": "amount1",
  219. "type": "uint256"
  220. }
  221. ],
  222. "name": "Mint",
  223. "type": "event"
  224. },
  225. {
  226. "anonymous": false,
  227. "inputs": [
  228. {
  229. "indexed": true,
  230. "internalType": "address",
  231. "name": "sender",
  232. "type": "address"
  233. },
  234. {
  235. "indexed": false,
  236. "internalType": "uint256",
  237. "name": "amount0In",
  238. "type": "uint256"
  239. },
  240. {
  241. "indexed": false,
  242. "internalType": "uint256",
  243. "name": "amount1In",
  244. "type": "uint256"
  245. },
  246. {
  247. "indexed": false,
  248. "internalType": "uint256",
  249. "name": "amount0Out",
  250. "type": "uint256"
  251. },
  252. {
  253. "indexed": false,
  254. "internalType": "uint256",
  255. "name": "amount1Out",
  256. "type": "uint256"
  257. },
  258. {
  259. "indexed": true,
  260. "internalType": "address",
  261. "name": "to",
  262. "type": "address"
  263. }
  264. ],
  265. "name": "Swap",
  266. "type": "event"
  267. },
  268. {
  269. "anonymous": false,
  270. "inputs": [
  271. {
  272. "indexed": false,
  273. "internalType": "uint256",
  274. "name": "reserve0",
  275. "type": "uint256"
  276. },
  277. {
  278. "indexed": false,
  279. "internalType": "uint256",
  280. "name": "reserve1",
  281. "type": "uint256"
  282. }
  283. ],
  284. "name": "Sync",
  285. "type": "event"
  286. },
  287. {
  288. "anonymous": false,
  289. "inputs": [
  290. {
  291. "indexed": true,
  292. "internalType": "address",
  293. "name": "from",
  294. "type": "address"
  295. },
  296. {
  297. "indexed": true,
  298. "internalType": "address",
  299. "name": "to",
  300. "type": "address"
  301. },
  302. {
  303. "indexed": false,
  304. "internalType": "uint256",
  305. "name": "value",
  306. "type": "uint256"
  307. }
  308. ],
  309. "name": "Transfer",
  310. "type": "event"
  311. },
  312. {
  313. "stateMutability": "payable",
  314. "type": "fallback"
  315. },
  316. {
  317. "inputs": [],
  318. "name": "DOMAIN_SEPARATOR",
  319. "outputs": [
  320. {
  321. "internalType": "bytes32",
  322. "name": "",
  323. "type": "bytes32"
  324. }
  325. ],
  326. "stateMutability": "view",
  327. "type": "function"
  328. },
  329. {
  330. "inputs": [],
  331. "name": "MINIMUM_LIQUIDITY",
  332. "outputs": [
  333. {
  334. "internalType": "uint256",
  335. "name": "",
  336. "type": "uint256"
  337. }
  338. ],
  339. "stateMutability": "view",
  340. "type": "function"
  341. },
  342. {
  343. "inputs": [
  344. {
  345. "internalType": "address",
  346. "name": "",
  347. "type": "address"
  348. },
  349. {
  350. "internalType": "address",
  351. "name": "",
  352. "type": "address"
  353. }
  354. ],
  355. "name": "allowance",
  356. "outputs": [
  357. {
  358. "internalType": "uint256",
  359. "name": "",
  360. "type": "uint256"
  361. }
  362. ],
  363. "stateMutability": "view",
  364. "type": "function"
  365. },
  366. {
  367. "inputs": [
  368. {
  369. "internalType": "address",
  370. "name": "spender",
  371. "type": "address"
  372. },
  373. {
  374. "internalType": "uint256",
  375. "name": "value",
  376. "type": "uint256"
  377. }
  378. ],
  379. "name": "approve",
  380. "outputs": [
  381. {
  382. "internalType": "bool",
  383. "name": "",
  384. "type": "bool"
  385. }
  386. ],
  387. "stateMutability": "nonpayable",
  388. "type": "function"
  389. },
  390. {
  391. "inputs": [
  392. {
  393. "internalType": "address",
  394. "name": "",
  395. "type": "address"
  396. }
  397. ],
  398. "name": "balanceOf",
  399. "outputs": [
  400. {
  401. "internalType": "uint256",
  402. "name": "",
  403. "type": "uint256"
  404. }
  405. ],
  406. "stateMutability": "view",
  407. "type": "function"
  408. },
  409. {
  410. "inputs": [
  411. {
  412. "internalType": "address",
  413. "name": "to",
  414. "type": "address"
  415. }
  416. ],
  417. "name": "burn",
  418. "outputs": [
  419. {
  420. "internalType": "uint256",
  421. "name": "amount0",
  422. "type": "uint256"
  423. },
  424. {
  425. "internalType": "uint256",
  426. "name": "amount1",
  427. "type": "uint256"
  428. }
  429. ],
  430. "stateMutability": "nonpayable",
  431. "type": "function"
  432. },
  433. {
  434. "inputs": [
  435. {
  436. "internalType": "uint256",
  437. "name": "_fee",
  438. "type": "uint256"
  439. }
  440. ],
  441. "name": "changeFeeType",
  442. "outputs": [],
  443. "stateMutability": "nonpayable",
  444. "type": "function"
  445. },
  446. {
  447. "inputs": [
  448. {
  449. "internalType": "address",
  450. "name": "",
  451. "type": "address"
  452. },
  453. {
  454. "internalType": "uint32",
  455. "name": "",
  456. "type": "uint32"
  457. }
  458. ],
  459. "name": "checkpoints",
  460. "outputs": [
  461. {
  462. "internalType": "uint32",
  463. "name": "fromBlock",
  464. "type": "uint32"
  465. },
  466. {
  467. "internalType": "uint256",
  468. "name": "votes",
  469. "type": "uint256"
  470. }
  471. ],
  472. "stateMutability": "view",
  473. "type": "function"
  474. },
  475. {
  476. "inputs": [],
  477. "name": "claimFees",
  478. "outputs": [
  479. {
  480. "internalType": "uint256",
  481. "name": "claimed0",
  482. "type": "uint256"
  483. },
  484. {
  485. "internalType": "uint256",
  486. "name": "claimed1",
  487. "type": "uint256"
  488. }
  489. ],
  490. "stateMutability": "nonpayable",
  491. "type": "function"
  492. },
  493. {
  494. "inputs": [
  495. {
  496. "internalType": "address",
  497. "name": "",
  498. "type": "address"
  499. }
  500. ],
  501. "name": "claimable0",
  502. "outputs": [
  503. {
  504. "internalType": "uint256",
  505. "name": "",
  506. "type": "uint256"
  507. }
  508. ],
  509. "stateMutability": "view",
  510. "type": "function"
  511. },
  512. {
  513. "inputs": [
  514. {
  515. "internalType": "address",
  516. "name": "",
  517. "type": "address"
  518. }
  519. ],
  520. "name": "claimable1",
  521. "outputs": [
  522. {
  523. "internalType": "uint256",
  524. "name": "",
  525. "type": "uint256"
  526. }
  527. ],
  528. "stateMutability": "view",
  529. "type": "function"
  530. },
  531. {
  532. "inputs": [
  533. {
  534. "internalType": "address",
  535. "name": "tokenIn",
  536. "type": "address"
  537. },
  538. {
  539. "internalType": "uint256",
  540. "name": "amountIn",
  541. "type": "uint256"
  542. }
  543. ],
  544. "name": "current",
  545. "outputs": [
  546. {
  547. "internalType": "uint256",
  548. "name": "amountOut",
  549. "type": "uint256"
  550. }
  551. ],
  552. "stateMutability": "view",
  553. "type": "function"
  554. },
  555. {
  556. "inputs": [],
  557. "name": "currentCumulativePrices",
  558. "outputs": [
  559. {
  560. "internalType": "uint256",
  561. "name": "reserve0Cumulative",
  562. "type": "uint256"
  563. },
  564. {
  565. "internalType": "uint256",
  566. "name": "reserve1Cumulative",
  567. "type": "uint256"
  568. },
  569. {
  570. "internalType": "uint256",
  571. "name": "blockTimestamp",
  572. "type": "uint256"
  573. }
  574. ],
  575. "stateMutability": "view",
  576. "type": "function"
  577. },
  578. {
  579. "inputs": [],
  580. "name": "decimals",
  581. "outputs": [
  582. {
  583. "internalType": "uint8",
  584. "name": "",
  585. "type": "uint8"
  586. }
  587. ],
  588. "stateMutability": "view",
  589. "type": "function"
  590. },
  591. {
  592. "inputs": [
  593. {
  594. "internalType": "address",
  595. "name": "delegatee",
  596. "type": "address"
  597. }
  598. ],
  599. "name": "delegate",
  600. "outputs": [],
  601. "stateMutability": "nonpayable",
  602. "type": "function"
  603. },
  604. {
  605. "inputs": [
  606. {
  607. "internalType": "address",
  608. "name": "delegator",
  609. "type": "address"
  610. }
  611. ],
  612. "name": "delegates",
  613. "outputs": [
  614. {
  615. "internalType": "address",
  616. "name": "",
  617. "type": "address"
  618. }
  619. ],
  620. "stateMutability": "view",
  621. "type": "function"
  622. },
  623. {
  624. "inputs": [],
  625. "name": "factory",
  626. "outputs": [
  627. {
  628. "internalType": "address",
  629. "name": "",
  630. "type": "address"
  631. }
  632. ],
  633. "stateMutability": "view",
  634. "type": "function"
  635. },
  636. {
  637. "inputs": [],
  638. "name": "fees",
  639. "outputs": [
  640. {
  641. "internalType": "address",
  642. "name": "",
  643. "type": "address"
  644. }
  645. ],
  646. "stateMutability": "view",
  647. "type": "function"
  648. },
  649. {
  650. "inputs": [
  651. {
  652. "internalType": "uint256",
  653. "name": "amountIn",
  654. "type": "uint256"
  655. },
  656. {
  657. "internalType": "address",
  658. "name": "tokenIn",
  659. "type": "address"
  660. }
  661. ],
  662. "name": "getAmountOut",
  663. "outputs": [
  664. {
  665. "internalType": "uint256",
  666. "name": "",
  667. "type": "uint256"
  668. }
  669. ],
  670. "stateMutability": "view",
  671. "type": "function"
  672. },
  673. {
  674. "inputs": [
  675. {
  676. "internalType": "address",
  677. "name": "account",
  678. "type": "address"
  679. }
  680. ],
  681. "name": "getCurrentVotes",
  682. "outputs": [
  683. {
  684. "internalType": "uint256",
  685. "name": "",
  686. "type": "uint256"
  687. }
  688. ],
  689. "stateMutability": "view",
  690. "type": "function"
  691. },
  692. {
  693. "inputs": [
  694. {
  695. "internalType": "address",
  696. "name": "account",
  697. "type": "address"
  698. },
  699. {
  700. "internalType": "uint256",
  701. "name": "blockNumber",
  702. "type": "uint256"
  703. }
  704. ],
  705. "name": "getPriorVotes",
  706. "outputs": [
  707. {
  708. "internalType": "uint256",
  709. "name": "",
  710. "type": "uint256"
  711. }
  712. ],
  713. "stateMutability": "view",
  714. "type": "function"
  715. },
  716. {
  717. "inputs": [],
  718. "name": "getReserves",
  719. "outputs": [
  720. {
  721. "internalType": "uint256",
  722. "name": "_reserve0",
  723. "type": "uint256"
  724. },
  725. {
  726. "internalType": "uint256",
  727. "name": "_reserve1",
  728. "type": "uint256"
  729. },
  730. {
  731. "internalType": "uint256",
  732. "name": "_blockTimestampLast",
  733. "type": "uint256"
  734. }
  735. ],
  736. "stateMutability": "view",
  737. "type": "function"
  738. },
  739. {
  740. "inputs": [],
  741. "name": "index0",
  742. "outputs": [
  743. {
  744. "internalType": "uint256",
  745. "name": "",
  746. "type": "uint256"
  747. }
  748. ],
  749. "stateMutability": "view",
  750. "type": "function"
  751. },
  752. {
  753. "inputs": [],
  754. "name": "index1",
  755. "outputs": [
  756. {
  757. "internalType": "uint256",
  758. "name": "",
  759. "type": "uint256"
  760. }
  761. ],
  762. "stateMutability": "view",
  763. "type": "function"
  764. },
  765. {
  766. "inputs": [
  767. {
  768. "internalType": "address",
  769. "name": "_token0",
  770. "type": "address"
  771. },
  772. {
  773. "internalType": "address",
  774. "name": "_token1",
  775. "type": "address"
  776. },
  777. {
  778. "internalType": "uint256",
  779. "name": "_fee",
  780. "type": "uint256"
  781. },
  782. {
  783. "internalType": "bool",
  784. "name": "_stable",
  785. "type": "bool"
  786. }
  787. ],
  788. "name": "initialize",
  789. "outputs": [],
  790. "stateMutability": "nonpayable",
  791. "type": "function"
  792. },
  793. {
  794. "inputs": [],
  795. "name": "lastObservation",
  796. "outputs": [
  797. {
  798. "components": [
  799. {
  800. "internalType": "uint256",
  801. "name": "timestamp",
  802. "type": "uint256"
  803. },
  804. {
  805. "internalType": "uint256",
  806. "name": "reserve0Cumulative",
  807. "type": "uint256"
  808. },
  809. {
  810. "internalType": "uint256",
  811. "name": "reserve1Cumulative",
  812. "type": "uint256"
  813. }
  814. ],
  815. "internalType": "struct MuteSwitchPairDynamic.Observation",
  816. "name": "",
  817. "type": "tuple"
  818. }
  819. ],
  820. "stateMutability": "view",
  821. "type": "function"
  822. },
  823. {
  824. "inputs": [],
  825. "name": "metadata",
  826. "outputs": [
  827. {
  828. "internalType": "uint256",
  829. "name": "dec0",
  830. "type": "uint256"
  831. },
  832. {
  833. "internalType": "uint256",
  834. "name": "dec1",
  835. "type": "uint256"
  836. },
  837. {
  838. "internalType": "uint256",
  839. "name": "r0",
  840. "type": "uint256"
  841. },
  842. {
  843. "internalType": "uint256",
  844. "name": "r1",
  845. "type": "uint256"
  846. },
  847. {
  848. "internalType": "bool",
  849. "name": "st",
  850. "type": "bool"
  851. },
  852. {
  853. "internalType": "address",
  854. "name": "t0",
  855. "type": "address"
  856. },
  857. {
  858. "internalType": "address",
  859. "name": "t1",
  860. "type": "address"
  861. }
  862. ],
  863. "stateMutability": "view",
  864. "type": "function"
  865. },
  866. {
  867. "inputs": [
  868. {
  869. "internalType": "address",
  870. "name": "to",
  871. "type": "address"
  872. }
  873. ],
  874. "name": "mint",
  875. "outputs": [
  876. {
  877. "internalType": "uint256",
  878. "name": "liquidity",
  879. "type": "uint256"
  880. }
  881. ],
  882. "stateMutability": "nonpayable",
  883. "type": "function"
  884. },
  885. {
  886. "inputs": [],
  887. "name": "name",
  888. "outputs": [
  889. {
  890. "internalType": "string",
  891. "name": "",
  892. "type": "string"
  893. }
  894. ],
  895. "stateMutability": "view",
  896. "type": "function"
  897. },
  898. {
  899. "inputs": [
  900. {
  901. "internalType": "address",
  902. "name": "",
  903. "type": "address"
  904. }
  905. ],
  906. "name": "nonces",
  907. "outputs": [
  908. {
  909. "internalType": "uint256",
  910. "name": "",
  911. "type": "uint256"
  912. }
  913. ],
  914. "stateMutability": "view",
  915. "type": "function"
  916. },
  917. {
  918. "inputs": [
  919. {
  920. "internalType": "address",
  921. "name": "",
  922. "type": "address"
  923. }
  924. ],
  925. "name": "numCheckpoints",
  926. "outputs": [
  927. {
  928. "internalType": "uint32",
  929. "name": "",
  930. "type": "uint32"
  931. }
  932. ],
  933. "stateMutability": "view",
  934. "type": "function"
  935. },
  936. {
  937. "inputs": [],
  938. "name": "observationLength",
  939. "outputs": [
  940. {
  941. "internalType": "uint256",
  942. "name": "",
  943. "type": "uint256"
  944. }
  945. ],
  946. "stateMutability": "view",
  947. "type": "function"
  948. },
  949. {
  950. "inputs": [
  951. {
  952. "internalType": "uint256",
  953. "name": "",
  954. "type": "uint256"
  955. }
  956. ],
  957. "name": "observations",
  958. "outputs": [
  959. {
  960. "internalType": "uint256",
  961. "name": "timestamp",
  962. "type": "uint256"
  963. },
  964. {
  965. "internalType": "uint256",
  966. "name": "reserve0Cumulative",
  967. "type": "uint256"
  968. },
  969. {
  970. "internalType": "uint256",
  971. "name": "reserve1Cumulative",
  972. "type": "uint256"
  973. }
  974. ],
  975. "stateMutability": "view",
  976. "type": "function"
  977. },
  978. {
  979. "inputs": [],
  980. "name": "pairFee",
  981. "outputs": [
  982. {
  983. "internalType": "uint256",
  984. "name": "",
  985. "type": "uint256"
  986. }
  987. ],
  988. "stateMutability": "view",
  989. "type": "function"
  990. },
  991. {
  992. "inputs": [
  993. {
  994. "internalType": "address",
  995. "name": "owner",
  996. "type": "address"
  997. },
  998. {
  999. "internalType": "address",
  1000. "name": "spender",
  1001. "type": "address"
  1002. },
  1003. {
  1004. "internalType": "uint256",
  1005. "name": "value",
  1006. "type": "uint256"
  1007. },
  1008. {
  1009. "internalType": "uint256",
  1010. "name": "deadline",
  1011. "type": "uint256"
  1012. },
  1013. {
  1014. "internalType": "bytes",
  1015. "name": "sig",
  1016. "type": "bytes"
  1017. }
  1018. ],
  1019. "name": "permit",
  1020. "outputs": [],
  1021. "stateMutability": "nonpayable",
  1022. "type": "function"
  1023. },
  1024. {
  1025. "inputs": [
  1026. {
  1027. "internalType": "address",
  1028. "name": "tokenIn",
  1029. "type": "address"
  1030. },
  1031. {
  1032. "internalType": "uint256",
  1033. "name": "amountIn",
  1034. "type": "uint256"
  1035. },
  1036. {
  1037. "internalType": "uint256",
  1038. "name": "points",
  1039. "type": "uint256"
  1040. }
  1041. ],
  1042. "name": "prices",
  1043. "outputs": [
  1044. {
  1045. "internalType": "uint256[]",
  1046. "name": "",
  1047. "type": "uint256[]"
  1048. }
  1049. ],
  1050. "stateMutability": "view",
  1051. "type": "function"
  1052. },
  1053. {
  1054. "inputs": [
  1055. {
  1056. "internalType": "address",
  1057. "name": "tokenIn",
  1058. "type": "address"
  1059. },
  1060. {
  1061. "internalType": "uint256",
  1062. "name": "amountIn",
  1063. "type": "uint256"
  1064. },
  1065. {
  1066. "internalType": "uint256",
  1067. "name": "granularity",
  1068. "type": "uint256"
  1069. }
  1070. ],
  1071. "name": "quote",
  1072. "outputs": [
  1073. {
  1074. "internalType": "uint256",
  1075. "name": "amountOut",
  1076. "type": "uint256"
  1077. }
  1078. ],
  1079. "stateMutability": "view",
  1080. "type": "function"
  1081. },
  1082. {
  1083. "inputs": [],
  1084. "name": "reserve0CumulativeLast",
  1085. "outputs": [
  1086. {
  1087. "internalType": "uint256",
  1088. "name": "",
  1089. "type": "uint256"
  1090. }
  1091. ],
  1092. "stateMutability": "view",
  1093. "type": "function"
  1094. },
  1095. {
  1096. "inputs": [],
  1097. "name": "reserve1CumulativeLast",
  1098. "outputs": [
  1099. {
  1100. "internalType": "uint256",
  1101. "name": "",
  1102. "type": "uint256"
  1103. }
  1104. ],
  1105. "stateMutability": "view",
  1106. "type": "function"
  1107. },
  1108. {
  1109. "inputs": [
  1110. {
  1111. "internalType": "address",
  1112. "name": "tokenIn",
  1113. "type": "address"
  1114. },
  1115. {
  1116. "internalType": "uint256",
  1117. "name": "amountIn",
  1118. "type": "uint256"
  1119. },
  1120. {
  1121. "internalType": "uint256",
  1122. "name": "points",
  1123. "type": "uint256"
  1124. },
  1125. {
  1126. "internalType": "uint256",
  1127. "name": "window",
  1128. "type": "uint256"
  1129. }
  1130. ],
  1131. "name": "sample",
  1132. "outputs": [
  1133. {
  1134. "internalType": "uint256[]",
  1135. "name": "",
  1136. "type": "uint256[]"
  1137. }
  1138. ],
  1139. "stateMutability": "view",
  1140. "type": "function"
  1141. },
  1142. {
  1143. "inputs": [
  1144. {
  1145. "internalType": "address",
  1146. "name": "to",
  1147. "type": "address"
  1148. }
  1149. ],
  1150. "name": "skim",
  1151. "outputs": [],
  1152. "stateMutability": "nonpayable",
  1153. "type": "function"
  1154. },
  1155. {
  1156. "inputs": [],
  1157. "name": "stable",
  1158. "outputs": [
  1159. {
  1160. "internalType": "bool",
  1161. "name": "",
  1162. "type": "bool"
  1163. }
  1164. ],
  1165. "stateMutability": "view",
  1166. "type": "function"
  1167. },
  1168. {
  1169. "inputs": [
  1170. {
  1171. "internalType": "address",
  1172. "name": "",
  1173. "type": "address"
  1174. }
  1175. ],
  1176. "name": "supplyIndex0",
  1177. "outputs": [
  1178. {
  1179. "internalType": "uint256",
  1180. "name": "",
  1181. "type": "uint256"
  1182. }
  1183. ],
  1184. "stateMutability": "view",
  1185. "type": "function"
  1186. },
  1187. {
  1188. "inputs": [
  1189. {
  1190. "internalType": "address",
  1191. "name": "",
  1192. "type": "address"
  1193. }
  1194. ],
  1195. "name": "supplyIndex1",
  1196. "outputs": [
  1197. {
  1198. "internalType": "uint256",
  1199. "name": "",
  1200. "type": "uint256"
  1201. }
  1202. ],
  1203. "stateMutability": "view",
  1204. "type": "function"
  1205. },
  1206. {
  1207. "inputs": [
  1208. {
  1209. "internalType": "uint256",
  1210. "name": "amount0Out",
  1211. "type": "uint256"
  1212. },
  1213. {
  1214. "internalType": "uint256",
  1215. "name": "amount1Out",
  1216. "type": "uint256"
  1217. },
  1218. {
  1219. "internalType": "address",
  1220. "name": "to",
  1221. "type": "address"
  1222. },
  1223. {
  1224. "internalType": "bytes",
  1225. "name": "data",
  1226. "type": "bytes"
  1227. }
  1228. ],
  1229. "name": "swap",
  1230. "outputs": [],
  1231. "stateMutability": "nonpayable",
  1232. "type": "function"
  1233. },
  1234. {
  1235. "inputs": [],
  1236. "name": "symbol",
  1237. "outputs": [
  1238. {
  1239. "internalType": "string",
  1240. "name": "",
  1241. "type": "string"
  1242. }
  1243. ],
  1244. "stateMutability": "view",
  1245. "type": "function"
  1246. },
  1247. {
  1248. "inputs": [],
  1249. "name": "sync",
  1250. "outputs": [],
  1251. "stateMutability": "nonpayable",
  1252. "type": "function"
  1253. },
  1254. {
  1255. "inputs": [],
  1256. "name": "token0",
  1257. "outputs": [
  1258. {
  1259. "internalType": "address",
  1260. "name": "",
  1261. "type": "address"
  1262. }
  1263. ],
  1264. "stateMutability": "view",
  1265. "type": "function"
  1266. },
  1267. {
  1268. "inputs": [],
  1269. "name": "token1",
  1270. "outputs": [
  1271. {
  1272. "internalType": "address",
  1273. "name": "",
  1274. "type": "address"
  1275. }
  1276. ],
  1277. "stateMutability": "view",
  1278. "type": "function"
  1279. },
  1280. {
  1281. "inputs": [],
  1282. "name": "tokens",
  1283. "outputs": [
  1284. {
  1285. "internalType": "address",
  1286. "name": "",
  1287. "type": "address"
  1288. },
  1289. {
  1290. "internalType": "address",
  1291. "name": "",
  1292. "type": "address"
  1293. }
  1294. ],
  1295. "stateMutability": "view",
  1296. "type": "function"
  1297. },
  1298. {
  1299. "inputs": [],
  1300. "name": "totalSupply",
  1301. "outputs": [
  1302. {
  1303. "internalType": "uint256",
  1304. "name": "",
  1305. "type": "uint256"
  1306. }
  1307. ],
  1308. "stateMutability": "view",
  1309. "type": "function"
  1310. },
  1311. {
  1312. "inputs": [
  1313. {
  1314. "internalType": "address",
  1315. "name": "to",
  1316. "type": "address"
  1317. },
  1318. {
  1319. "internalType": "uint256",
  1320. "name": "value",
  1321. "type": "uint256"
  1322. }
  1323. ],
  1324. "name": "transfer",
  1325. "outputs": [
  1326. {
  1327. "internalType": "bool",
  1328. "name": "",
  1329. "type": "bool"
  1330. }
  1331. ],
  1332. "stateMutability": "nonpayable",
  1333. "type": "function"
  1334. },
  1335. {
  1336. "inputs": [
  1337. {
  1338. "internalType": "address",
  1339. "name": "from",
  1340. "type": "address"
  1341. },
  1342. {
  1343. "internalType": "address",
  1344. "name": "to",
  1345. "type": "address"
  1346. },
  1347. {
  1348. "internalType": "uint256",
  1349. "name": "value",
  1350. "type": "uint256"
  1351. }
  1352. ],
  1353. "name": "transferFrom",
  1354. "outputs": [
  1355. {
  1356. "internalType": "bool",
  1357. "name": "",
  1358. "type": "bool"
  1359. }
  1360. ],
  1361. "stateMutability": "nonpayable",
  1362. "type": "function"
  1363. }
  1364. ]