@stake-dao/reader 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/dist/esm/bytecodes/index.js +16 -0
  2. package/dist/esm/bytecodes/index.js.map +1 -0
  3. package/dist/esm/bytecodes/strategies/batches/batchBalancerStrats.js +68 -0
  4. package/dist/esm/bytecodes/strategies/batches/batchBalancerStrats.js.map +1 -0
  5. package/dist/esm/{batches/curveStrats.js → bytecodes/strategies/batches/batchCurveStrats.js} +3 -3
  6. package/dist/esm/bytecodes/strategies/batches/batchCurveStrats.js.map +1 -0
  7. package/dist/esm/bytecodes/strategies/batches/batchPancakeSwapErc20Strats.js +61 -0
  8. package/dist/esm/bytecodes/strategies/batches/batchPancakeSwapErc20Strats.js.map +1 -0
  9. package/dist/esm/bytecodes/strategies/batches/batchPancakeSwapPositions.js +44 -0
  10. package/dist/esm/bytecodes/strategies/batches/batchPancakeSwapPositions.js.map +1 -0
  11. package/dist/esm/bytecodes/strategies/batches/batchPancakeswapStrats.js +48 -0
  12. package/dist/esm/bytecodes/strategies/batches/batchPancakeswapStrats.js.map +1 -0
  13. package/dist/esm/bytecodes/strategies/batches/batchPendleStrats.js +63 -0
  14. package/dist/esm/bytecodes/strategies/batches/batchPendleStrats.js.map +1 -0
  15. package/dist/esm/bytecodes/strategies/builds/buildBalancerStrats.js +54 -0
  16. package/dist/esm/bytecodes/strategies/builds/buildBalancerStrats.js.map +1 -0
  17. package/dist/esm/bytecodes/strategies/builds/buildPancakeSwapErc20Strats.js +64 -0
  18. package/dist/esm/bytecodes/strategies/builds/buildPancakeSwapErc20Strats.js.map +1 -0
  19. package/dist/esm/bytecodes/strategies/builds/buildPancakeSwapStrats.js +51 -0
  20. package/dist/esm/bytecodes/strategies/builds/buildPancakeSwapStrats.js.map +1 -0
  21. package/dist/esm/bytecodes/strategies/builds/buildPancakeswapNotDeployedErc20Strats.js +54 -0
  22. package/dist/esm/bytecodes/strategies/builds/buildPancakeswapNotDeployedErc20Strats.js.map +1 -0
  23. package/dist/esm/bytecodes/strategies/builds/buildPendleStrats.js +39 -0
  24. package/dist/esm/bytecodes/strategies/builds/buildPendleStrats.js.map +1 -0
  25. package/dist/esm/{batches → bytecodes/strategies/builds}/buildYearnStrats.js +2 -2
  26. package/dist/esm/bytecodes/strategies/builds/buildYearnStrats.js.map +1 -0
  27. package/dist/esm/bytecodes/strategies/fetchYearnGauges.js.map +1 -0
  28. package/dist/esm/{batches → bytecodes/strategies}/sdtGaugeRewards.js +1 -1
  29. package/dist/esm/bytecodes/strategies/sdtGaugeRewards.js.map +1 -0
  30. package/dist/esm/bytecodes/tokenData.js.map +1 -0
  31. package/dist/esm/{batches → bytecodes}/types.js.map +1 -1
  32. package/dist/esm/endpoints.js +1 -0
  33. package/dist/esm/endpoints.js.map +1 -1
  34. package/dist/esm/index.js +33 -5
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/lockers/utils/endpoints.js +1 -1
  37. package/dist/esm/lockers/utils/endpoints.js.map +1 -1
  38. package/dist/esm/prices.js +39 -3
  39. package/dist/esm/prices.js.map +1 -1
  40. package/dist/esm/strategies/balancer/build.js +51 -0
  41. package/dist/esm/strategies/balancer/build.js.map +1 -0
  42. package/dist/esm/strategies/balancer/endpoints.js +27 -0
  43. package/dist/esm/strategies/balancer/endpoints.js.map +1 -0
  44. package/dist/esm/strategies/balancer/fetch.js +190 -0
  45. package/dist/esm/strategies/balancer/fetch.js.map +1 -0
  46. package/dist/esm/strategies/curve/build.js +4 -3
  47. package/dist/esm/strategies/curve/build.js.map +1 -1
  48. package/dist/esm/strategies/curve/fetch/curveApiData/bytecode.js +0 -1
  49. package/dist/esm/strategies/curve/fetch/curveApiData/bytecode.js.map +1 -1
  50. package/dist/esm/strategies/curve/fetch/curveApiData/getCurveApiData.js +3 -2
  51. package/dist/esm/strategies/curve/fetch/curveApiData/getCurveApiData.js.map +1 -1
  52. package/dist/esm/strategies/curve/fetch/curveApiData/getGaugesFromRegistry.js +3 -2
  53. package/dist/esm/strategies/curve/fetch/curveApiData/getGaugesFromRegistry.js.map +1 -1
  54. package/dist/esm/strategies/curve/fetch/curveApiData/getGaugesWeights.js +2 -1
  55. package/dist/esm/strategies/curve/fetch/curveApiData/getGaugesWeights.js.map +1 -1
  56. package/dist/esm/strategies/curve/fetch/curveApiData/getPoolsFromRegistries.ts.js +2 -1
  57. package/dist/esm/strategies/curve/fetch/curveApiData/getPoolsFromRegistries.ts.js.map +1 -1
  58. package/dist/esm/strategies/curve/fetch/index.js +22 -4
  59. package/dist/esm/strategies/curve/fetch/index.js.map +1 -1
  60. package/dist/esm/strategies/curve/httpCalls.js +3 -3
  61. package/dist/esm/strategies/curve/httpCalls.js.map +1 -1
  62. package/dist/esm/strategies/curve/onChainCalls.js +3 -2
  63. package/dist/esm/strategies/curve/onChainCalls.js.map +1 -1
  64. package/dist/esm/strategies/pancakeswap/abis/PancakeSwapMasterchef.json +1575 -0
  65. package/dist/esm/strategies/pancakeswap/build.js +48 -0
  66. package/dist/esm/strategies/pancakeswap/build.js.map +1 -0
  67. package/dist/esm/strategies/pancakeswap/buildErc20.js +63 -0
  68. package/dist/esm/strategies/pancakeswap/buildErc20.js.map +1 -0
  69. package/dist/esm/strategies/pancakeswap/config.js +7 -0
  70. package/dist/esm/strategies/pancakeswap/config.js.map +1 -0
  71. package/dist/esm/strategies/pancakeswap/endpoints.js +10 -0
  72. package/dist/esm/strategies/pancakeswap/endpoints.js.map +1 -0
  73. package/dist/esm/strategies/pancakeswap/fetch/getPancakeApisData.js +24 -0
  74. package/dist/esm/strategies/pancakeswap/fetch/getPancakeApisData.js.map +1 -0
  75. package/dist/esm/strategies/pancakeswap/fetch/getPancakeErc20Vaults.js +134 -0
  76. package/dist/esm/strategies/pancakeswap/fetch/getPancakeErc20Vaults.js.map +1 -0
  77. package/dist/esm/strategies/pancakeswap/fetch/getPancakeNotDeployed.js +102 -0
  78. package/dist/esm/strategies/pancakeswap/fetch/getPancakeNotDeployed.js.map +1 -0
  79. package/dist/esm/strategies/pancakeswap/fetch/getPancakeV3Vaults.js +142 -0
  80. package/dist/esm/strategies/pancakeswap/fetch/getPancakeV3Vaults.js.map +1 -0
  81. package/dist/esm/strategies/pancakeswap/fetch/index.js +25 -0
  82. package/dist/esm/strategies/pancakeswap/fetch/index.js.map +1 -0
  83. package/dist/esm/strategies/pancakeswap/fetch/pancakePositions.js +87 -0
  84. package/dist/esm/strategies/pancakeswap/fetch/pancakePositions.js.map +1 -0
  85. package/dist/esm/strategies/pancakeswap/fetch/pancakeswapMath.js +199 -0
  86. package/dist/esm/strategies/pancakeswap/fetch/pancakeswapMath.js.map +1 -0
  87. package/dist/esm/strategies/pendle/abis/MulticallPendleStratsAbi.json +103 -0
  88. package/dist/esm/strategies/pendle/build.js +70 -0
  89. package/dist/esm/strategies/pendle/build.js.map +1 -0
  90. package/dist/esm/strategies/pendle/fetch.js +267 -0
  91. package/dist/esm/strategies/pendle/fetch.js.map +1 -0
  92. package/dist/esm/strategies/pendle/getPendleApiData.js +15 -0
  93. package/dist/esm/strategies/pendle/getPendleApiData.js.map +1 -0
  94. package/dist/esm/strategies/pendle/pendlePoints.js +71 -0
  95. package/dist/esm/strategies/pendle/pendlePoints.js.map +1 -0
  96. package/dist/esm/strategies/utils/getAprBreakdown.js +9 -9
  97. package/dist/esm/strategies/utils/getAprBreakdown.js.map +1 -1
  98. package/dist/esm/strategies/utils/index.js +10 -1
  99. package/dist/esm/strategies/utils/index.js.map +1 -1
  100. package/dist/esm/strategies/yearn/build.js +5 -4
  101. package/dist/esm/strategies/yearn/build.js.map +1 -1
  102. package/dist/esm/strategies/yearn/fetch/fetchAllYearnGauges.js +3 -2
  103. package/dist/esm/strategies/yearn/fetch/fetchAllYearnGauges.js.map +1 -1
  104. package/dist/esm/strategies/yearn/fetch/index.js +1 -1
  105. package/dist/esm/strategies/yearn/fetch/index.js.map +1 -1
  106. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  107. package/dist/esm/utils.js +1 -1
  108. package/dist/esm/utils.js.map +1 -1
  109. package/dist/types/bytecodes/index.d.ts +16 -0
  110. package/dist/types/bytecodes/index.d.ts.map +1 -0
  111. package/dist/types/bytecodes/strategies/batches/batchBalancerStrats.d.ts +4 -0
  112. package/dist/types/bytecodes/strategies/batches/batchBalancerStrats.d.ts.map +1 -0
  113. package/dist/types/bytecodes/strategies/batches/batchCurveStrats.d.ts +4 -0
  114. package/dist/types/bytecodes/strategies/batches/batchCurveStrats.d.ts.map +1 -0
  115. package/dist/types/bytecodes/strategies/batches/batchPancakeSwapErc20Strats.d.ts +4 -0
  116. package/dist/types/bytecodes/strategies/batches/batchPancakeSwapErc20Strats.d.ts.map +1 -0
  117. package/dist/types/bytecodes/strategies/batches/batchPancakeSwapPositions.d.ts +4 -0
  118. package/dist/types/bytecodes/strategies/batches/batchPancakeSwapPositions.d.ts.map +1 -0
  119. package/dist/types/bytecodes/strategies/batches/batchPancakeswapStrats.d.ts +4 -0
  120. package/dist/types/bytecodes/strategies/batches/batchPancakeswapStrats.d.ts.map +1 -0
  121. package/dist/types/bytecodes/strategies/batches/batchPendleStrats.d.ts +4 -0
  122. package/dist/types/bytecodes/strategies/batches/batchPendleStrats.d.ts.map +1 -0
  123. package/dist/types/bytecodes/strategies/builds/buildBalancerStrats.d.ts +4 -0
  124. package/dist/types/bytecodes/strategies/builds/buildBalancerStrats.d.ts.map +1 -0
  125. package/dist/types/bytecodes/strategies/builds/buildPancakeSwapErc20Strats.d.ts +4 -0
  126. package/dist/types/bytecodes/strategies/builds/buildPancakeSwapErc20Strats.d.ts.map +1 -0
  127. package/dist/types/bytecodes/strategies/builds/buildPancakeSwapStrats.d.ts +4 -0
  128. package/dist/types/bytecodes/strategies/builds/buildPancakeSwapStrats.d.ts.map +1 -0
  129. package/dist/types/bytecodes/strategies/builds/buildPancakeswapNotDeployedErc20Strats.d.ts +4 -0
  130. package/dist/types/bytecodes/strategies/builds/buildPancakeswapNotDeployedErc20Strats.d.ts.map +1 -0
  131. package/dist/types/bytecodes/strategies/builds/buildPendleStrats.d.ts +4 -0
  132. package/dist/types/bytecodes/strategies/builds/buildPendleStrats.d.ts.map +1 -0
  133. package/dist/types/bytecodes/strategies/builds/buildYearnStrats.d.ts +4 -0
  134. package/dist/types/bytecodes/strategies/builds/buildYearnStrats.d.ts.map +1 -0
  135. package/dist/types/bytecodes/strategies/fetchYearnGauges.d.ts +4 -0
  136. package/dist/types/bytecodes/strategies/fetchYearnGauges.d.ts.map +1 -0
  137. package/dist/types/bytecodes/strategies/sdtGaugeRewards.d.ts +4 -0
  138. package/dist/types/bytecodes/strategies/sdtGaugeRewards.d.ts.map +1 -0
  139. package/dist/types/bytecodes/tokenData.d.ts.map +1 -0
  140. package/dist/types/bytecodes/types.d.ts.map +1 -0
  141. package/dist/types/endpoints.d.ts +1 -0
  142. package/dist/types/endpoints.d.ts.map +1 -1
  143. package/dist/types/index.d.ts +15 -5
  144. package/dist/types/index.d.ts.map +1 -1
  145. package/dist/types/lockers/utils/endpoints.d.ts +1 -1
  146. package/dist/types/lockers/utils/endpoints.d.ts.map +1 -1
  147. package/dist/types/prices.d.ts +8 -1
  148. package/dist/types/prices.d.ts.map +1 -1
  149. package/dist/types/strategies/balancer/build.d.ts +21 -0
  150. package/dist/types/strategies/balancer/build.d.ts.map +1 -0
  151. package/dist/types/strategies/balancer/endpoints.d.ts +3 -0
  152. package/dist/types/strategies/balancer/endpoints.d.ts.map +1 -0
  153. package/dist/types/strategies/balancer/fetch.d.ts +11 -0
  154. package/dist/types/strategies/balancer/fetch.d.ts.map +1 -0
  155. package/dist/types/strategies/curve/build.d.ts.map +1 -1
  156. package/dist/types/strategies/curve/fetch/curveApiData/bytecode.d.ts.map +1 -1
  157. package/dist/types/strategies/curve/fetch/curveApiData/getCurveApiData.d.ts +1 -1
  158. package/dist/types/strategies/curve/fetch/curveApiData/getCurveApiData.d.ts.map +1 -1
  159. package/dist/types/strategies/curve/fetch/curveApiData/getGaugesFromRegistry.d.ts.map +1 -1
  160. package/dist/types/strategies/curve/fetch/curveApiData/getGaugesWeights.d.ts.map +1 -1
  161. package/dist/types/strategies/curve/fetch/curveApiData/getPoolsFromRegistries.ts.d.ts.map +1 -1
  162. package/dist/types/strategies/curve/fetch/index.d.ts +15 -2
  163. package/dist/types/strategies/curve/fetch/index.d.ts.map +1 -1
  164. package/dist/types/strategies/curve/onChainCalls.d.ts.map +1 -1
  165. package/dist/types/strategies/pancakeswap/build.d.ts +2 -0
  166. package/dist/types/strategies/pancakeswap/build.d.ts.map +1 -0
  167. package/dist/types/strategies/pancakeswap/buildErc20.d.ts +7 -0
  168. package/dist/types/strategies/pancakeswap/buildErc20.d.ts.map +1 -0
  169. package/dist/types/strategies/pancakeswap/config.d.ts +7 -0
  170. package/dist/types/strategies/pancakeswap/config.d.ts.map +1 -0
  171. package/dist/types/strategies/pancakeswap/endpoints.d.ts +8 -0
  172. package/dist/types/strategies/pancakeswap/endpoints.d.ts.map +1 -0
  173. package/dist/types/strategies/pancakeswap/fetch/getPancakeApisData.d.ts +10 -0
  174. package/dist/types/strategies/pancakeswap/fetch/getPancakeApisData.d.ts.map +1 -0
  175. package/dist/types/strategies/pancakeswap/fetch/getPancakeErc20Vaults.d.ts +44 -0
  176. package/dist/types/strategies/pancakeswap/fetch/getPancakeErc20Vaults.d.ts.map +1 -0
  177. package/dist/types/strategies/pancakeswap/fetch/getPancakeNotDeployed.d.ts +3 -0
  178. package/dist/types/strategies/pancakeswap/fetch/getPancakeNotDeployed.d.ts.map +1 -0
  179. package/dist/types/strategies/pancakeswap/fetch/getPancakeV3Vaults.d.ts +7 -0
  180. package/dist/types/strategies/pancakeswap/fetch/getPancakeV3Vaults.d.ts.map +1 -0
  181. package/dist/types/strategies/pancakeswap/fetch/index.d.ts +17 -0
  182. package/dist/types/strategies/pancakeswap/fetch/index.d.ts.map +1 -0
  183. package/dist/types/strategies/pancakeswap/fetch/pancakePositions.d.ts +11 -0
  184. package/dist/types/strategies/pancakeswap/fetch/pancakePositions.d.ts.map +1 -0
  185. package/dist/types/strategies/pancakeswap/fetch/pancakeswapMath.d.ts +33 -0
  186. package/dist/types/strategies/pancakeswap/fetch/pancakeswapMath.d.ts.map +1 -0
  187. package/dist/types/strategies/pendle/build.d.ts +42 -0
  188. package/dist/types/strategies/pendle/build.d.ts.map +1 -0
  189. package/dist/types/strategies/pendle/fetch.d.ts +60 -0
  190. package/dist/types/strategies/pendle/fetch.d.ts.map +1 -0
  191. package/dist/types/strategies/pendle/getPendleApiData.d.ts +3 -0
  192. package/dist/types/strategies/pendle/getPendleApiData.d.ts.map +1 -0
  193. package/dist/types/strategies/pendle/pendlePoints.d.ts +80 -0
  194. package/dist/types/strategies/pendle/pendlePoints.d.ts.map +1 -0
  195. package/dist/types/strategies/types.d.ts +17 -3
  196. package/dist/types/strategies/types.d.ts.map +1 -1
  197. package/dist/types/strategies/utils/getAprBreakdown.d.ts +1 -4
  198. package/dist/types/strategies/utils/getAprBreakdown.d.ts.map +1 -1
  199. package/dist/types/strategies/utils/index.d.ts +2 -0
  200. package/dist/types/strategies/utils/index.d.ts.map +1 -1
  201. package/dist/types/strategies/yearn/build.d.ts.map +1 -1
  202. package/dist/types/strategies/yearn/fetch/fetchAllYearnGauges.d.ts.map +1 -1
  203. package/dist/types/strategies/yearn/fetch/index.d.ts +13 -2
  204. package/dist/types/strategies/yearn/fetch/index.d.ts.map +1 -1
  205. package/dist/types/utils.d.ts.map +1 -1
  206. package/package.json +3 -2
  207. package/src/bytecodes/index.ts +18 -0
  208. package/src/bytecodes/strategies/batches/batchBalancerStrats.ts +70 -0
  209. package/src/{batches/curveStrats.ts → bytecodes/strategies/batches/batchCurveStrats.ts} +3 -3
  210. package/src/bytecodes/strategies/batches/batchPancakeSwapErc20Strats.ts +67 -0
  211. package/src/bytecodes/strategies/batches/batchPancakeSwapPositions.ts +50 -0
  212. package/src/bytecodes/strategies/batches/batchPancakeswapStrats.ts +54 -0
  213. package/src/bytecodes/strategies/batches/batchPendleStrats.ts +65 -0
  214. package/src/bytecodes/strategies/builds/buildBalancerStrats.ts +56 -0
  215. package/src/bytecodes/strategies/builds/buildPancakeSwapErc20Strats.ts +70 -0
  216. package/src/bytecodes/strategies/builds/buildPancakeSwapStrats.ts +57 -0
  217. package/src/bytecodes/strategies/builds/buildPancakeswapNotDeployedErc20Strats.ts +60 -0
  218. package/src/bytecodes/strategies/builds/buildPendleStrats.ts +41 -0
  219. package/src/{batches → bytecodes/strategies/builds}/buildYearnStrats.ts +3 -3
  220. package/src/{batches → bytecodes/strategies}/fetchYearnGauges.ts +1 -1
  221. package/src/{batches → bytecodes/strategies}/sdtGaugeRewards.ts +2 -2
  222. package/src/endpoints.ts +2 -0
  223. package/src/index.ts +43 -5
  224. package/src/lockers/utils/endpoints.ts +2 -1
  225. package/src/prices.ts +57 -6
  226. package/src/strategies/balancer/build.ts +66 -0
  227. package/src/strategies/balancer/endpoints.ts +27 -0
  228. package/src/strategies/balancer/fetch.ts +266 -0
  229. package/src/strategies/curve/build.ts +4 -3
  230. package/src/strategies/curve/fetch/curveApiData/bytecode.ts +0 -1
  231. package/src/strategies/curve/fetch/curveApiData/getCurveApiData.ts +3 -2
  232. package/src/strategies/curve/fetch/curveApiData/getGaugesFromRegistry.ts +6 -2
  233. package/src/strategies/curve/fetch/curveApiData/getGaugesWeights.ts +2 -1
  234. package/src/strategies/curve/fetch/curveApiData/getPoolsFromRegistries.ts.ts +2 -1
  235. package/src/strategies/curve/fetch/index.ts +53 -15
  236. package/src/strategies/curve/httpCalls.ts +3 -3
  237. package/src/strategies/curve/onChainCalls.ts +3 -2
  238. package/src/strategies/pancakeswap/build.ts +57 -0
  239. package/src/strategies/pancakeswap/buildErc20.ts +73 -0
  240. package/src/strategies/pancakeswap/config.ts +7 -0
  241. package/src/strategies/pancakeswap/endpoints.ts +12 -0
  242. package/src/strategies/pancakeswap/fetch/getPancakeApisData.ts +32 -0
  243. package/src/strategies/pancakeswap/fetch/getPancakeErc20Vaults.ts +184 -0
  244. package/src/strategies/pancakeswap/fetch/getPancakeNotDeployed.ts +132 -0
  245. package/src/strategies/pancakeswap/fetch/getPancakeV3Vaults.ts +191 -0
  246. package/src/strategies/pancakeswap/fetch/index.ts +50 -0
  247. package/src/strategies/pancakeswap/fetch/pancakePositions.ts +147 -0
  248. package/src/strategies/pancakeswap/fetch/pancakeswapMath.ts +305 -0
  249. package/src/strategies/pendle/build.ts +93 -0
  250. package/src/strategies/pendle/fetch.ts +348 -0
  251. package/src/strategies/pendle/getPendleApiData.ts +20 -0
  252. package/src/strategies/pendle/pendlePoints.ts +71 -0
  253. package/src/strategies/types.ts +20 -3
  254. package/src/strategies/utils/getAprBreakdown.ts +9 -9
  255. package/src/strategies/utils/index.ts +14 -1
  256. package/src/strategies/yearn/build.ts +5 -4
  257. package/src/strategies/yearn/fetch/fetchAllYearnGauges.ts +3 -2
  258. package/src/strategies/yearn/fetch/index.ts +22 -11
  259. package/src/utils.ts +1 -1
  260. package/dist/esm/batches/buildYearnStrats.js.map +0 -1
  261. package/dist/esm/batches/curveStrats.js.map +0 -1
  262. package/dist/esm/batches/fetchYearnGauges.js.map +0 -1
  263. package/dist/esm/batches/index.js +0 -6
  264. package/dist/esm/batches/index.js.map +0 -1
  265. package/dist/esm/batches/sdtGaugeRewards.js.map +0 -1
  266. package/dist/esm/batches/tokenData.js.map +0 -1
  267. package/dist/types/batches/buildYearnStrats.d.ts +0 -4
  268. package/dist/types/batches/buildYearnStrats.d.ts.map +0 -1
  269. package/dist/types/batches/curveStrats.d.ts +0 -4
  270. package/dist/types/batches/curveStrats.d.ts.map +0 -1
  271. package/dist/types/batches/fetchYearnGauges.d.ts +0 -4
  272. package/dist/types/batches/fetchYearnGauges.d.ts.map +0 -1
  273. package/dist/types/batches/index.d.ts +0 -6
  274. package/dist/types/batches/index.d.ts.map +0 -1
  275. package/dist/types/batches/sdtGaugeRewards.d.ts +0 -4
  276. package/dist/types/batches/sdtGaugeRewards.d.ts.map +0 -1
  277. package/dist/types/batches/tokenData.d.ts.map +0 -1
  278. package/dist/types/batches/types.d.ts.map +0 -1
  279. package/src/batches/index.ts +0 -5
  280. /package/dist/esm/{batches → bytecodes/strategies}/fetchYearnGauges.js +0 -0
  281. /package/dist/esm/{batches → bytecodes}/tokenData.js +0 -0
  282. /package/dist/esm/{batches → bytecodes}/types.js +0 -0
  283. /package/dist/types/{batches → bytecodes}/tokenData.d.ts +0 -0
  284. /package/dist/types/{batches → bytecodes}/types.d.ts +0 -0
  285. /package/src/{batches → bytecodes}/tokenData.ts +0 -0
  286. /package/src/{batches → bytecodes}/types.ts +0 -0
@@ -0,0 +1,1575 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IERC20",
6
+ "name": "_CAKE",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "contract INonfungiblePositionManager",
11
+ "name": "_nonfungiblePositionManager",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_WETH",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "pid",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "name": "DuplicatedPool",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "InconsistentAmount",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "InsufficientAmount",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "InvalidNFT",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "InvalidPeriodDuration",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "InvalidPid",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "NoBalance",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "NoLMPool",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "NoLiquidity",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "NotEmpty",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "NotOwner",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "NotOwnerOrOperator",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "NotPancakeNFT",
92
+ "type": "error"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "WrongReceiver",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ZeroAddress",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "anonymous": false,
106
+ "inputs": [
107
+ {
108
+ "indexed": true,
109
+ "internalType": "uint256",
110
+ "name": "pid",
111
+ "type": "uint256"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "uint256",
116
+ "name": "allocPoint",
117
+ "type": "uint256"
118
+ },
119
+ {
120
+ "indexed": true,
121
+ "internalType": "contract IPancakeV3Pool",
122
+ "name": "v3Pool",
123
+ "type": "address"
124
+ },
125
+ {
126
+ "indexed": true,
127
+ "internalType": "contract ILMPool",
128
+ "name": "lmPool",
129
+ "type": "address"
130
+ }
131
+ ],
132
+ "name": "AddPool",
133
+ "type": "event"
134
+ },
135
+ {
136
+ "anonymous": false,
137
+ "inputs": [
138
+ {
139
+ "indexed": true,
140
+ "internalType": "address",
141
+ "name": "from",
142
+ "type": "address"
143
+ },
144
+ {
145
+ "indexed": true,
146
+ "internalType": "uint256",
147
+ "name": "pid",
148
+ "type": "uint256"
149
+ },
150
+ {
151
+ "indexed": true,
152
+ "internalType": "uint256",
153
+ "name": "tokenId",
154
+ "type": "uint256"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "uint256",
159
+ "name": "liquidity",
160
+ "type": "uint256"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "int24",
165
+ "name": "tickLower",
166
+ "type": "int24"
167
+ },
168
+ {
169
+ "indexed": false,
170
+ "internalType": "int24",
171
+ "name": "tickUpper",
172
+ "type": "int24"
173
+ }
174
+ ],
175
+ "name": "Deposit",
176
+ "type": "event"
177
+ },
178
+ {
179
+ "anonymous": false,
180
+ "inputs": [
181
+ {
182
+ "indexed": true,
183
+ "internalType": "address",
184
+ "name": "sender",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "indexed": false,
189
+ "internalType": "address",
190
+ "name": "to",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "indexed": true,
195
+ "internalType": "uint256",
196
+ "name": "pid",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "indexed": true,
201
+ "internalType": "uint256",
202
+ "name": "tokenId",
203
+ "type": "uint256"
204
+ },
205
+ {
206
+ "indexed": false,
207
+ "internalType": "uint256",
208
+ "name": "reward",
209
+ "type": "uint256"
210
+ }
211
+ ],
212
+ "name": "Harvest",
213
+ "type": "event"
214
+ },
215
+ {
216
+ "anonymous": false,
217
+ "inputs": [
218
+ {
219
+ "indexed": false,
220
+ "internalType": "address",
221
+ "name": "deployer",
222
+ "type": "address"
223
+ }
224
+ ],
225
+ "name": "NewLMPoolDeployerAddress",
226
+ "type": "event"
227
+ },
228
+ {
229
+ "anonymous": false,
230
+ "inputs": [
231
+ {
232
+ "indexed": false,
233
+ "internalType": "address",
234
+ "name": "operator",
235
+ "type": "address"
236
+ }
237
+ ],
238
+ "name": "NewOperatorAddress",
239
+ "type": "event"
240
+ },
241
+ {
242
+ "anonymous": false,
243
+ "inputs": [
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint256",
247
+ "name": "periodDuration",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "NewPeriodDuration",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [
257
+ {
258
+ "indexed": false,
259
+ "internalType": "address",
260
+ "name": "receiver",
261
+ "type": "address"
262
+ }
263
+ ],
264
+ "name": "NewReceiver",
265
+ "type": "event"
266
+ },
267
+ {
268
+ "anonymous": false,
269
+ "inputs": [
270
+ {
271
+ "indexed": true,
272
+ "internalType": "uint256",
273
+ "name": "periodNumber",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "indexed": false,
278
+ "internalType": "uint256",
279
+ "name": "startTime",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "indexed": false,
284
+ "internalType": "uint256",
285
+ "name": "endTime",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "indexed": false,
290
+ "internalType": "uint256",
291
+ "name": "cakePerSecond",
292
+ "type": "uint256"
293
+ },
294
+ {
295
+ "indexed": false,
296
+ "internalType": "uint256",
297
+ "name": "cakeAmount",
298
+ "type": "uint256"
299
+ }
300
+ ],
301
+ "name": "NewUpkeepPeriod",
302
+ "type": "event"
303
+ },
304
+ {
305
+ "anonymous": false,
306
+ "inputs": [
307
+ {
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "previousOwner",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": true,
315
+ "internalType": "address",
316
+ "name": "newOwner",
317
+ "type": "address"
318
+ }
319
+ ],
320
+ "name": "OwnershipTransferred",
321
+ "type": "event"
322
+ },
323
+ {
324
+ "anonymous": false,
325
+ "inputs": [
326
+ {
327
+ "indexed": false,
328
+ "internalType": "bool",
329
+ "name": "emergency",
330
+ "type": "bool"
331
+ }
332
+ ],
333
+ "name": "SetEmergency",
334
+ "type": "event"
335
+ },
336
+ {
337
+ "anonymous": false,
338
+ "inputs": [
339
+ {
340
+ "indexed": true,
341
+ "internalType": "uint256",
342
+ "name": "pid",
343
+ "type": "uint256"
344
+ },
345
+ {
346
+ "indexed": false,
347
+ "internalType": "uint256",
348
+ "name": "allocPoint",
349
+ "type": "uint256"
350
+ }
351
+ ],
352
+ "name": "SetPool",
353
+ "type": "event"
354
+ },
355
+ {
356
+ "anonymous": false,
357
+ "inputs": [
358
+ {
359
+ "indexed": true,
360
+ "internalType": "address",
361
+ "name": "farmBoostContract",
362
+ "type": "address"
363
+ }
364
+ ],
365
+ "name": "UpdateFarmBoostContract",
366
+ "type": "event"
367
+ },
368
+ {
369
+ "anonymous": false,
370
+ "inputs": [
371
+ {
372
+ "indexed": true,
373
+ "internalType": "address",
374
+ "name": "from",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "indexed": true,
379
+ "internalType": "uint256",
380
+ "name": "pid",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "indexed": true,
385
+ "internalType": "uint256",
386
+ "name": "tokenId",
387
+ "type": "uint256"
388
+ },
389
+ {
390
+ "indexed": false,
391
+ "internalType": "int128",
392
+ "name": "liquidity",
393
+ "type": "int128"
394
+ },
395
+ {
396
+ "indexed": false,
397
+ "internalType": "int24",
398
+ "name": "tickLower",
399
+ "type": "int24"
400
+ },
401
+ {
402
+ "indexed": false,
403
+ "internalType": "int24",
404
+ "name": "tickUpper",
405
+ "type": "int24"
406
+ }
407
+ ],
408
+ "name": "UpdateLiquidity",
409
+ "type": "event"
410
+ },
411
+ {
412
+ "anonymous": false,
413
+ "inputs": [
414
+ {
415
+ "indexed": true,
416
+ "internalType": "uint256",
417
+ "name": "periodNumber",
418
+ "type": "uint256"
419
+ },
420
+ {
421
+ "indexed": false,
422
+ "internalType": "uint256",
423
+ "name": "oldEndTime",
424
+ "type": "uint256"
425
+ },
426
+ {
427
+ "indexed": false,
428
+ "internalType": "uint256",
429
+ "name": "newEndTime",
430
+ "type": "uint256"
431
+ },
432
+ {
433
+ "indexed": false,
434
+ "internalType": "uint256",
435
+ "name": "remainingCake",
436
+ "type": "uint256"
437
+ }
438
+ ],
439
+ "name": "UpdateUpkeepPeriod",
440
+ "type": "event"
441
+ },
442
+ {
443
+ "anonymous": false,
444
+ "inputs": [
445
+ {
446
+ "indexed": true,
447
+ "internalType": "address",
448
+ "name": "from",
449
+ "type": "address"
450
+ },
451
+ {
452
+ "indexed": false,
453
+ "internalType": "address",
454
+ "name": "to",
455
+ "type": "address"
456
+ },
457
+ {
458
+ "indexed": true,
459
+ "internalType": "uint256",
460
+ "name": "pid",
461
+ "type": "uint256"
462
+ },
463
+ {
464
+ "indexed": true,
465
+ "internalType": "uint256",
466
+ "name": "tokenId",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "name": "Withdraw",
471
+ "type": "event"
472
+ },
473
+ {
474
+ "inputs": [],
475
+ "name": "BOOST_PRECISION",
476
+ "outputs": [
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "",
480
+ "type": "uint256"
481
+ }
482
+ ],
483
+ "stateMutability": "view",
484
+ "type": "function"
485
+ },
486
+ {
487
+ "inputs": [],
488
+ "name": "CAKE",
489
+ "outputs": [
490
+ {
491
+ "internalType": "contract IERC20",
492
+ "name": "",
493
+ "type": "address"
494
+ }
495
+ ],
496
+ "stateMutability": "view",
497
+ "type": "function"
498
+ },
499
+ {
500
+ "inputs": [],
501
+ "name": "FARM_BOOSTER",
502
+ "outputs": [
503
+ {
504
+ "internalType": "contract IFarmBooster",
505
+ "name": "",
506
+ "type": "address"
507
+ }
508
+ ],
509
+ "stateMutability": "view",
510
+ "type": "function"
511
+ },
512
+ {
513
+ "inputs": [],
514
+ "name": "LMPoolDeployer",
515
+ "outputs": [
516
+ {
517
+ "internalType": "contract ILMPoolDeployer",
518
+ "name": "",
519
+ "type": "address"
520
+ }
521
+ ],
522
+ "stateMutability": "view",
523
+ "type": "function"
524
+ },
525
+ {
526
+ "inputs": [],
527
+ "name": "MAX_BOOST_PRECISION",
528
+ "outputs": [
529
+ {
530
+ "internalType": "uint256",
531
+ "name": "",
532
+ "type": "uint256"
533
+ }
534
+ ],
535
+ "stateMutability": "view",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [],
540
+ "name": "MAX_DURATION",
541
+ "outputs": [
542
+ {
543
+ "internalType": "uint256",
544
+ "name": "",
545
+ "type": "uint256"
546
+ }
547
+ ],
548
+ "stateMutability": "view",
549
+ "type": "function"
550
+ },
551
+ {
552
+ "inputs": [],
553
+ "name": "MIN_DURATION",
554
+ "outputs": [
555
+ {
556
+ "internalType": "uint256",
557
+ "name": "",
558
+ "type": "uint256"
559
+ }
560
+ ],
561
+ "stateMutability": "view",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [],
566
+ "name": "PERIOD_DURATION",
567
+ "outputs": [
568
+ {
569
+ "internalType": "uint256",
570
+ "name": "",
571
+ "type": "uint256"
572
+ }
573
+ ],
574
+ "stateMutability": "view",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [],
579
+ "name": "PRECISION",
580
+ "outputs": [
581
+ {
582
+ "internalType": "uint256",
583
+ "name": "",
584
+ "type": "uint256"
585
+ }
586
+ ],
587
+ "stateMutability": "view",
588
+ "type": "function"
589
+ },
590
+ {
591
+ "inputs": [],
592
+ "name": "WETH",
593
+ "outputs": [
594
+ {
595
+ "internalType": "address",
596
+ "name": "",
597
+ "type": "address"
598
+ }
599
+ ],
600
+ "stateMutability": "view",
601
+ "type": "function"
602
+ },
603
+ {
604
+ "inputs": [
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "_allocPoint",
608
+ "type": "uint256"
609
+ },
610
+ {
611
+ "internalType": "contract IPancakeV3Pool",
612
+ "name": "_v3Pool",
613
+ "type": "address"
614
+ },
615
+ {
616
+ "internalType": "bool",
617
+ "name": "_withUpdate",
618
+ "type": "bool"
619
+ }
620
+ ],
621
+ "name": "add",
622
+ "outputs": [],
623
+ "stateMutability": "nonpayable",
624
+ "type": "function"
625
+ },
626
+ {
627
+ "inputs": [
628
+ {
629
+ "internalType": "address",
630
+ "name": "owner",
631
+ "type": "address"
632
+ }
633
+ ],
634
+ "name": "balanceOf",
635
+ "outputs": [
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "",
639
+ "type": "uint256"
640
+ }
641
+ ],
642
+ "stateMutability": "view",
643
+ "type": "function"
644
+ },
645
+ {
646
+ "inputs": [
647
+ {
648
+ "internalType": "uint256",
649
+ "name": "_tokenId",
650
+ "type": "uint256"
651
+ }
652
+ ],
653
+ "name": "burn",
654
+ "outputs": [],
655
+ "stateMutability": "nonpayable",
656
+ "type": "function"
657
+ },
658
+ {
659
+ "inputs": [],
660
+ "name": "cakeAmountBelongToMC",
661
+ "outputs": [
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "",
665
+ "type": "uint256"
666
+ }
667
+ ],
668
+ "stateMutability": "view",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [
673
+ {
674
+ "components": [
675
+ {
676
+ "internalType": "uint256",
677
+ "name": "tokenId",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "internalType": "address",
682
+ "name": "recipient",
683
+ "type": "address"
684
+ },
685
+ {
686
+ "internalType": "uint128",
687
+ "name": "amount0Max",
688
+ "type": "uint128"
689
+ },
690
+ {
691
+ "internalType": "uint128",
692
+ "name": "amount1Max",
693
+ "type": "uint128"
694
+ }
695
+ ],
696
+ "internalType": "struct INonfungiblePositionManagerStruct.CollectParams",
697
+ "name": "params",
698
+ "type": "tuple"
699
+ }
700
+ ],
701
+ "name": "collect",
702
+ "outputs": [
703
+ {
704
+ "internalType": "uint256",
705
+ "name": "amount0",
706
+ "type": "uint256"
707
+ },
708
+ {
709
+ "internalType": "uint256",
710
+ "name": "amount1",
711
+ "type": "uint256"
712
+ }
713
+ ],
714
+ "stateMutability": "nonpayable",
715
+ "type": "function"
716
+ },
717
+ {
718
+ "inputs": [
719
+ {
720
+ "components": [
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "tokenId",
724
+ "type": "uint256"
725
+ },
726
+ {
727
+ "internalType": "address",
728
+ "name": "recipient",
729
+ "type": "address"
730
+ },
731
+ {
732
+ "internalType": "uint128",
733
+ "name": "amount0Max",
734
+ "type": "uint128"
735
+ },
736
+ {
737
+ "internalType": "uint128",
738
+ "name": "amount1Max",
739
+ "type": "uint128"
740
+ }
741
+ ],
742
+ "internalType": "struct INonfungiblePositionManagerStruct.CollectParams",
743
+ "name": "params",
744
+ "type": "tuple"
745
+ },
746
+ {
747
+ "internalType": "address",
748
+ "name": "to",
749
+ "type": "address"
750
+ }
751
+ ],
752
+ "name": "collectTo",
753
+ "outputs": [
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "amount0",
757
+ "type": "uint256"
758
+ },
759
+ {
760
+ "internalType": "uint256",
761
+ "name": "amount1",
762
+ "type": "uint256"
763
+ }
764
+ ],
765
+ "stateMutability": "nonpayable",
766
+ "type": "function"
767
+ },
768
+ {
769
+ "inputs": [
770
+ {
771
+ "components": [
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "tokenId",
775
+ "type": "uint256"
776
+ },
777
+ {
778
+ "internalType": "uint128",
779
+ "name": "liquidity",
780
+ "type": "uint128"
781
+ },
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "amount0Min",
785
+ "type": "uint256"
786
+ },
787
+ {
788
+ "internalType": "uint256",
789
+ "name": "amount1Min",
790
+ "type": "uint256"
791
+ },
792
+ {
793
+ "internalType": "uint256",
794
+ "name": "deadline",
795
+ "type": "uint256"
796
+ }
797
+ ],
798
+ "internalType": "struct INonfungiblePositionManagerStruct.DecreaseLiquidityParams",
799
+ "name": "params",
800
+ "type": "tuple"
801
+ }
802
+ ],
803
+ "name": "decreaseLiquidity",
804
+ "outputs": [
805
+ {
806
+ "internalType": "uint256",
807
+ "name": "amount0",
808
+ "type": "uint256"
809
+ },
810
+ {
811
+ "internalType": "uint256",
812
+ "name": "amount1",
813
+ "type": "uint256"
814
+ }
815
+ ],
816
+ "stateMutability": "nonpayable",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "inputs": [],
821
+ "name": "emergency",
822
+ "outputs": [
823
+ {
824
+ "internalType": "bool",
825
+ "name": "",
826
+ "type": "bool"
827
+ }
828
+ ],
829
+ "stateMutability": "view",
830
+ "type": "function"
831
+ },
832
+ {
833
+ "inputs": [
834
+ {
835
+ "internalType": "address",
836
+ "name": "_v3Pool",
837
+ "type": "address"
838
+ }
839
+ ],
840
+ "name": "getLatestPeriodInfo",
841
+ "outputs": [
842
+ {
843
+ "internalType": "uint256",
844
+ "name": "cakePerSecond",
845
+ "type": "uint256"
846
+ },
847
+ {
848
+ "internalType": "uint256",
849
+ "name": "endTime",
850
+ "type": "uint256"
851
+ }
852
+ ],
853
+ "stateMutability": "view",
854
+ "type": "function"
855
+ },
856
+ {
857
+ "inputs": [
858
+ {
859
+ "internalType": "uint256",
860
+ "name": "_pid",
861
+ "type": "uint256"
862
+ }
863
+ ],
864
+ "name": "getLatestPeriodInfoByPid",
865
+ "outputs": [
866
+ {
867
+ "internalType": "uint256",
868
+ "name": "cakePerSecond",
869
+ "type": "uint256"
870
+ },
871
+ {
872
+ "internalType": "uint256",
873
+ "name": "endTime",
874
+ "type": "uint256"
875
+ }
876
+ ],
877
+ "stateMutability": "view",
878
+ "type": "function"
879
+ },
880
+ {
881
+ "inputs": [
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "_tokenId",
885
+ "type": "uint256"
886
+ },
887
+ {
888
+ "internalType": "address",
889
+ "name": "_to",
890
+ "type": "address"
891
+ }
892
+ ],
893
+ "name": "harvest",
894
+ "outputs": [
895
+ {
896
+ "internalType": "uint256",
897
+ "name": "reward",
898
+ "type": "uint256"
899
+ }
900
+ ],
901
+ "stateMutability": "nonpayable",
902
+ "type": "function"
903
+ },
904
+ {
905
+ "inputs": [
906
+ {
907
+ "components": [
908
+ {
909
+ "internalType": "uint256",
910
+ "name": "tokenId",
911
+ "type": "uint256"
912
+ },
913
+ {
914
+ "internalType": "uint256",
915
+ "name": "amount0Desired",
916
+ "type": "uint256"
917
+ },
918
+ {
919
+ "internalType": "uint256",
920
+ "name": "amount1Desired",
921
+ "type": "uint256"
922
+ },
923
+ {
924
+ "internalType": "uint256",
925
+ "name": "amount0Min",
926
+ "type": "uint256"
927
+ },
928
+ {
929
+ "internalType": "uint256",
930
+ "name": "amount1Min",
931
+ "type": "uint256"
932
+ },
933
+ {
934
+ "internalType": "uint256",
935
+ "name": "deadline",
936
+ "type": "uint256"
937
+ }
938
+ ],
939
+ "internalType": "struct INonfungiblePositionManagerStruct.IncreaseLiquidityParams",
940
+ "name": "params",
941
+ "type": "tuple"
942
+ }
943
+ ],
944
+ "name": "increaseLiquidity",
945
+ "outputs": [
946
+ {
947
+ "internalType": "uint128",
948
+ "name": "liquidity",
949
+ "type": "uint128"
950
+ },
951
+ {
952
+ "internalType": "uint256",
953
+ "name": "amount0",
954
+ "type": "uint256"
955
+ },
956
+ {
957
+ "internalType": "uint256",
958
+ "name": "amount1",
959
+ "type": "uint256"
960
+ }
961
+ ],
962
+ "stateMutability": "payable",
963
+ "type": "function"
964
+ },
965
+ {
966
+ "inputs": [],
967
+ "name": "latestPeriodCakePerSecond",
968
+ "outputs": [
969
+ {
970
+ "internalType": "uint256",
971
+ "name": "",
972
+ "type": "uint256"
973
+ }
974
+ ],
975
+ "stateMutability": "view",
976
+ "type": "function"
977
+ },
978
+ {
979
+ "inputs": [],
980
+ "name": "latestPeriodEndTime",
981
+ "outputs": [
982
+ {
983
+ "internalType": "uint256",
984
+ "name": "",
985
+ "type": "uint256"
986
+ }
987
+ ],
988
+ "stateMutability": "view",
989
+ "type": "function"
990
+ },
991
+ {
992
+ "inputs": [],
993
+ "name": "latestPeriodNumber",
994
+ "outputs": [
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "",
998
+ "type": "uint256"
999
+ }
1000
+ ],
1001
+ "stateMutability": "view",
1002
+ "type": "function"
1003
+ },
1004
+ {
1005
+ "inputs": [],
1006
+ "name": "latestPeriodStartTime",
1007
+ "outputs": [
1008
+ {
1009
+ "internalType": "uint256",
1010
+ "name": "",
1011
+ "type": "uint256"
1012
+ }
1013
+ ],
1014
+ "stateMutability": "view",
1015
+ "type": "function"
1016
+ },
1017
+ {
1018
+ "inputs": [
1019
+ {
1020
+ "internalType": "bytes[]",
1021
+ "name": "data",
1022
+ "type": "bytes[]"
1023
+ }
1024
+ ],
1025
+ "name": "multicall",
1026
+ "outputs": [
1027
+ {
1028
+ "internalType": "bytes[]",
1029
+ "name": "results",
1030
+ "type": "bytes[]"
1031
+ }
1032
+ ],
1033
+ "stateMutability": "payable",
1034
+ "type": "function"
1035
+ },
1036
+ {
1037
+ "inputs": [],
1038
+ "name": "nonfungiblePositionManager",
1039
+ "outputs": [
1040
+ {
1041
+ "internalType": "contract INonfungiblePositionManager",
1042
+ "name": "",
1043
+ "type": "address"
1044
+ }
1045
+ ],
1046
+ "stateMutability": "view",
1047
+ "type": "function"
1048
+ },
1049
+ {
1050
+ "inputs": [
1051
+ {
1052
+ "internalType": "address",
1053
+ "name": "",
1054
+ "type": "address"
1055
+ },
1056
+ {
1057
+ "internalType": "address",
1058
+ "name": "_from",
1059
+ "type": "address"
1060
+ },
1061
+ {
1062
+ "internalType": "uint256",
1063
+ "name": "_tokenId",
1064
+ "type": "uint256"
1065
+ },
1066
+ {
1067
+ "internalType": "bytes",
1068
+ "name": "",
1069
+ "type": "bytes"
1070
+ }
1071
+ ],
1072
+ "name": "onERC721Received",
1073
+ "outputs": [
1074
+ {
1075
+ "internalType": "bytes4",
1076
+ "name": "",
1077
+ "type": "bytes4"
1078
+ }
1079
+ ],
1080
+ "stateMutability": "nonpayable",
1081
+ "type": "function"
1082
+ },
1083
+ {
1084
+ "inputs": [],
1085
+ "name": "operatorAddress",
1086
+ "outputs": [
1087
+ {
1088
+ "internalType": "address",
1089
+ "name": "",
1090
+ "type": "address"
1091
+ }
1092
+ ],
1093
+ "stateMutability": "view",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [],
1098
+ "name": "owner",
1099
+ "outputs": [
1100
+ {
1101
+ "internalType": "address",
1102
+ "name": "",
1103
+ "type": "address"
1104
+ }
1105
+ ],
1106
+ "stateMutability": "view",
1107
+ "type": "function"
1108
+ },
1109
+ {
1110
+ "inputs": [
1111
+ {
1112
+ "internalType": "uint256",
1113
+ "name": "_tokenId",
1114
+ "type": "uint256"
1115
+ }
1116
+ ],
1117
+ "name": "pendingCake",
1118
+ "outputs": [
1119
+ {
1120
+ "internalType": "uint256",
1121
+ "name": "reward",
1122
+ "type": "uint256"
1123
+ }
1124
+ ],
1125
+ "stateMutability": "view",
1126
+ "type": "function"
1127
+ },
1128
+ {
1129
+ "inputs": [
1130
+ {
1131
+ "internalType": "uint256",
1132
+ "name": "",
1133
+ "type": "uint256"
1134
+ }
1135
+ ],
1136
+ "name": "poolInfo",
1137
+ "outputs": [
1138
+ {
1139
+ "internalType": "uint256",
1140
+ "name": "allocPoint",
1141
+ "type": "uint256"
1142
+ },
1143
+ {
1144
+ "internalType": "contract IPancakeV3Pool",
1145
+ "name": "v3Pool",
1146
+ "type": "address"
1147
+ },
1148
+ {
1149
+ "internalType": "address",
1150
+ "name": "token0",
1151
+ "type": "address"
1152
+ },
1153
+ {
1154
+ "internalType": "address",
1155
+ "name": "token1",
1156
+ "type": "address"
1157
+ },
1158
+ {
1159
+ "internalType": "uint24",
1160
+ "name": "fee",
1161
+ "type": "uint24"
1162
+ },
1163
+ {
1164
+ "internalType": "uint256",
1165
+ "name": "totalLiquidity",
1166
+ "type": "uint256"
1167
+ },
1168
+ {
1169
+ "internalType": "uint256",
1170
+ "name": "totalBoostLiquidity",
1171
+ "type": "uint256"
1172
+ }
1173
+ ],
1174
+ "stateMutability": "view",
1175
+ "type": "function"
1176
+ },
1177
+ {
1178
+ "inputs": [],
1179
+ "name": "poolLength",
1180
+ "outputs": [
1181
+ {
1182
+ "internalType": "uint256",
1183
+ "name": "",
1184
+ "type": "uint256"
1185
+ }
1186
+ ],
1187
+ "stateMutability": "view",
1188
+ "type": "function"
1189
+ },
1190
+ {
1191
+ "inputs": [],
1192
+ "name": "receiver",
1193
+ "outputs": [
1194
+ {
1195
+ "internalType": "address",
1196
+ "name": "",
1197
+ "type": "address"
1198
+ }
1199
+ ],
1200
+ "stateMutability": "view",
1201
+ "type": "function"
1202
+ },
1203
+ {
1204
+ "inputs": [],
1205
+ "name": "renounceOwnership",
1206
+ "outputs": [],
1207
+ "stateMutability": "nonpayable",
1208
+ "type": "function"
1209
+ },
1210
+ {
1211
+ "inputs": [
1212
+ {
1213
+ "internalType": "uint256",
1214
+ "name": "_pid",
1215
+ "type": "uint256"
1216
+ },
1217
+ {
1218
+ "internalType": "uint256",
1219
+ "name": "_allocPoint",
1220
+ "type": "uint256"
1221
+ },
1222
+ {
1223
+ "internalType": "bool",
1224
+ "name": "_withUpdate",
1225
+ "type": "bool"
1226
+ }
1227
+ ],
1228
+ "name": "set",
1229
+ "outputs": [],
1230
+ "stateMutability": "nonpayable",
1231
+ "type": "function"
1232
+ },
1233
+ {
1234
+ "inputs": [
1235
+ {
1236
+ "internalType": "bool",
1237
+ "name": "_emergency",
1238
+ "type": "bool"
1239
+ }
1240
+ ],
1241
+ "name": "setEmergency",
1242
+ "outputs": [],
1243
+ "stateMutability": "nonpayable",
1244
+ "type": "function"
1245
+ },
1246
+ {
1247
+ "inputs": [
1248
+ {
1249
+ "internalType": "contract ILMPoolDeployer",
1250
+ "name": "_LMPoolDeployer",
1251
+ "type": "address"
1252
+ }
1253
+ ],
1254
+ "name": "setLMPoolDeployer",
1255
+ "outputs": [],
1256
+ "stateMutability": "nonpayable",
1257
+ "type": "function"
1258
+ },
1259
+ {
1260
+ "inputs": [
1261
+ {
1262
+ "internalType": "address",
1263
+ "name": "_operatorAddress",
1264
+ "type": "address"
1265
+ }
1266
+ ],
1267
+ "name": "setOperator",
1268
+ "outputs": [],
1269
+ "stateMutability": "nonpayable",
1270
+ "type": "function"
1271
+ },
1272
+ {
1273
+ "inputs": [
1274
+ {
1275
+ "internalType": "uint256",
1276
+ "name": "_periodDuration",
1277
+ "type": "uint256"
1278
+ }
1279
+ ],
1280
+ "name": "setPeriodDuration",
1281
+ "outputs": [],
1282
+ "stateMutability": "nonpayable",
1283
+ "type": "function"
1284
+ },
1285
+ {
1286
+ "inputs": [
1287
+ {
1288
+ "internalType": "address",
1289
+ "name": "_receiver",
1290
+ "type": "address"
1291
+ }
1292
+ ],
1293
+ "name": "setReceiver",
1294
+ "outputs": [],
1295
+ "stateMutability": "nonpayable",
1296
+ "type": "function"
1297
+ },
1298
+ {
1299
+ "inputs": [
1300
+ {
1301
+ "internalType": "address",
1302
+ "name": "token",
1303
+ "type": "address"
1304
+ },
1305
+ {
1306
+ "internalType": "uint256",
1307
+ "name": "amountMinimum",
1308
+ "type": "uint256"
1309
+ },
1310
+ {
1311
+ "internalType": "address",
1312
+ "name": "recipient",
1313
+ "type": "address"
1314
+ }
1315
+ ],
1316
+ "name": "sweepToken",
1317
+ "outputs": [],
1318
+ "stateMutability": "nonpayable",
1319
+ "type": "function"
1320
+ },
1321
+ {
1322
+ "inputs": [
1323
+ {
1324
+ "internalType": "address",
1325
+ "name": "owner",
1326
+ "type": "address"
1327
+ },
1328
+ {
1329
+ "internalType": "uint256",
1330
+ "name": "index",
1331
+ "type": "uint256"
1332
+ }
1333
+ ],
1334
+ "name": "tokenOfOwnerByIndex",
1335
+ "outputs": [
1336
+ {
1337
+ "internalType": "uint256",
1338
+ "name": "",
1339
+ "type": "uint256"
1340
+ }
1341
+ ],
1342
+ "stateMutability": "view",
1343
+ "type": "function"
1344
+ },
1345
+ {
1346
+ "inputs": [],
1347
+ "name": "totalAllocPoint",
1348
+ "outputs": [
1349
+ {
1350
+ "internalType": "uint256",
1351
+ "name": "",
1352
+ "type": "uint256"
1353
+ }
1354
+ ],
1355
+ "stateMutability": "view",
1356
+ "type": "function"
1357
+ },
1358
+ {
1359
+ "inputs": [
1360
+ {
1361
+ "internalType": "address",
1362
+ "name": "newOwner",
1363
+ "type": "address"
1364
+ }
1365
+ ],
1366
+ "name": "transferOwnership",
1367
+ "outputs": [],
1368
+ "stateMutability": "nonpayable",
1369
+ "type": "function"
1370
+ },
1371
+ {
1372
+ "inputs": [
1373
+ {
1374
+ "internalType": "uint256",
1375
+ "name": "amountMinimum",
1376
+ "type": "uint256"
1377
+ },
1378
+ {
1379
+ "internalType": "address",
1380
+ "name": "recipient",
1381
+ "type": "address"
1382
+ }
1383
+ ],
1384
+ "name": "unwrapWETH9",
1385
+ "outputs": [],
1386
+ "stateMutability": "nonpayable",
1387
+ "type": "function"
1388
+ },
1389
+ {
1390
+ "inputs": [
1391
+ {
1392
+ "internalType": "uint256",
1393
+ "name": "_tokenId",
1394
+ "type": "uint256"
1395
+ },
1396
+ {
1397
+ "internalType": "uint256",
1398
+ "name": "_newMultiplier",
1399
+ "type": "uint256"
1400
+ }
1401
+ ],
1402
+ "name": "updateBoostMultiplier",
1403
+ "outputs": [],
1404
+ "stateMutability": "nonpayable",
1405
+ "type": "function"
1406
+ },
1407
+ {
1408
+ "inputs": [
1409
+ {
1410
+ "internalType": "address",
1411
+ "name": "_newFarmBoostContract",
1412
+ "type": "address"
1413
+ }
1414
+ ],
1415
+ "name": "updateFarmBoostContract",
1416
+ "outputs": [],
1417
+ "stateMutability": "nonpayable",
1418
+ "type": "function"
1419
+ },
1420
+ {
1421
+ "inputs": [
1422
+ {
1423
+ "internalType": "uint256",
1424
+ "name": "_tokenId",
1425
+ "type": "uint256"
1426
+ }
1427
+ ],
1428
+ "name": "updateLiquidity",
1429
+ "outputs": [],
1430
+ "stateMutability": "nonpayable",
1431
+ "type": "function"
1432
+ },
1433
+ {
1434
+ "inputs": [
1435
+ {
1436
+ "internalType": "uint256[]",
1437
+ "name": "pids",
1438
+ "type": "uint256[]"
1439
+ }
1440
+ ],
1441
+ "name": "updatePools",
1442
+ "outputs": [],
1443
+ "stateMutability": "nonpayable",
1444
+ "type": "function"
1445
+ },
1446
+ {
1447
+ "inputs": [
1448
+ {
1449
+ "internalType": "uint256",
1450
+ "name": "_amount",
1451
+ "type": "uint256"
1452
+ },
1453
+ {
1454
+ "internalType": "uint256",
1455
+ "name": "_duration",
1456
+ "type": "uint256"
1457
+ },
1458
+ {
1459
+ "internalType": "bool",
1460
+ "name": "_withUpdate",
1461
+ "type": "bool"
1462
+ }
1463
+ ],
1464
+ "name": "upkeep",
1465
+ "outputs": [],
1466
+ "stateMutability": "nonpayable",
1467
+ "type": "function"
1468
+ },
1469
+ {
1470
+ "inputs": [
1471
+ {
1472
+ "internalType": "uint256",
1473
+ "name": "",
1474
+ "type": "uint256"
1475
+ }
1476
+ ],
1477
+ "name": "userPositionInfos",
1478
+ "outputs": [
1479
+ {
1480
+ "internalType": "uint128",
1481
+ "name": "liquidity",
1482
+ "type": "uint128"
1483
+ },
1484
+ {
1485
+ "internalType": "uint128",
1486
+ "name": "boostLiquidity",
1487
+ "type": "uint128"
1488
+ },
1489
+ {
1490
+ "internalType": "int24",
1491
+ "name": "tickLower",
1492
+ "type": "int24"
1493
+ },
1494
+ {
1495
+ "internalType": "int24",
1496
+ "name": "tickUpper",
1497
+ "type": "int24"
1498
+ },
1499
+ {
1500
+ "internalType": "uint256",
1501
+ "name": "rewardGrowthInside",
1502
+ "type": "uint256"
1503
+ },
1504
+ {
1505
+ "internalType": "uint256",
1506
+ "name": "reward",
1507
+ "type": "uint256"
1508
+ },
1509
+ {
1510
+ "internalType": "address",
1511
+ "name": "user",
1512
+ "type": "address"
1513
+ },
1514
+ {
1515
+ "internalType": "uint256",
1516
+ "name": "pid",
1517
+ "type": "uint256"
1518
+ },
1519
+ {
1520
+ "internalType": "uint256",
1521
+ "name": "boostMultiplier",
1522
+ "type": "uint256"
1523
+ }
1524
+ ],
1525
+ "stateMutability": "view",
1526
+ "type": "function"
1527
+ },
1528
+ {
1529
+ "inputs": [
1530
+ {
1531
+ "internalType": "address",
1532
+ "name": "",
1533
+ "type": "address"
1534
+ }
1535
+ ],
1536
+ "name": "v3PoolAddressPid",
1537
+ "outputs": [
1538
+ {
1539
+ "internalType": "uint256",
1540
+ "name": "",
1541
+ "type": "uint256"
1542
+ }
1543
+ ],
1544
+ "stateMutability": "view",
1545
+ "type": "function"
1546
+ },
1547
+ {
1548
+ "inputs": [
1549
+ {
1550
+ "internalType": "uint256",
1551
+ "name": "_tokenId",
1552
+ "type": "uint256"
1553
+ },
1554
+ {
1555
+ "internalType": "address",
1556
+ "name": "_to",
1557
+ "type": "address"
1558
+ }
1559
+ ],
1560
+ "name": "withdraw",
1561
+ "outputs": [
1562
+ {
1563
+ "internalType": "uint256",
1564
+ "name": "reward",
1565
+ "type": "uint256"
1566
+ }
1567
+ ],
1568
+ "stateMutability": "nonpayable",
1569
+ "type": "function"
1570
+ },
1571
+ {
1572
+ "stateMutability": "payable",
1573
+ "type": "receive"
1574
+ }
1575
+ ]