@pendle/core-v2 5.3.0 → 5.4.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 (255) hide show
  1. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.json +0 -37
  3. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +0 -115
  6. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.json +0 -37
  8. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.json +0 -37
  10. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.json +0 -37
  12. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.json +0 -37
  14. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.json +0 -179
  16. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -257
  19. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  20. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  22. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  23. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.json +0 -37
  25. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  26. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.json +0 -37
  27. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +13 -0
  29. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -37
  31. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  32. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +2 -2
  33. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  34. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  38. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  39. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  40. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  41. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  42. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  43. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  44. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  45. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  46. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -39
  47. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  48. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  49. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +4 -0
  50. package/build/artifacts/contracts/{router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.json → offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json} +4 -4
  51. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +4 -0
  52. package/build/artifacts/contracts/{router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol/BytesHelper.json → offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json} +4 -4
  53. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  54. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -39
  56. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -117
  58. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  59. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -39
  60. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  61. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -39
  62. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  63. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -39
  64. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  65. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -181
  66. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  67. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  68. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  69. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  70. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  71. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  73. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  75. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  77. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  78. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  79. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +4 -0
  80. package/build/artifacts/contracts/router/math/{MarketApproxLib.sol/MarketApproxPtInLib.json → MarketApproxLibV2.sol/MarketApproxPtInLibV2.json} +4 -4
  81. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +4 -0
  82. package/build/artifacts/contracts/router/math/{MarketApproxLib.sol/MarketApproxPtOutLib.json → MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json} +4 -4
  83. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  84. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  86. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  87. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  88. package/contracts/interfaces/IPActionAddRemoveLiqV3.sol +1 -1
  89. package/contracts/interfaces/IPActionMarketAuxStatic.sol +2 -1
  90. package/contracts/interfaces/IPActionMiscV3.sol +1 -7
  91. package/contracts/interfaces/IPActionStorageStatic.sol +1 -1
  92. package/contracts/interfaces/IPActionSwapPTV3.sol +1 -1
  93. package/contracts/interfaces/IPActionSwapYTV3.sol +1 -17
  94. package/contracts/interfaces/IPActionVePendleStatic.sol +1 -0
  95. package/contracts/interfaces/IPAllEventsV3.sol +0 -8
  96. package/contracts/interfaces/IPPausingInterface.sol +2 -0
  97. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +2 -2
  98. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +8 -7
  99. package/contracts/{router/math/MarketApproxLib.sol → offchain-helpers/router-static/base/MarketApproxLibV1.sol} +13 -13
  100. package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +1 -1
  101. package/contracts/router/ActionAddRemoveLiqV3.sol +4 -4
  102. package/contracts/router/ActionMiscV3.sol +0 -14
  103. package/contracts/router/ActionSwapYTV3.sol +2 -65
  104. package/contracts/router/base/ActionBase.sol +5 -6
  105. package/contracts/router/math/MarketApproxLibV2.sol +479 -0
  106. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +8 -1
  107. package/contracts/router/swap-aggregator/PendleSwap.sol +0 -2
  108. package/deployments/1-core.json +5 -5
  109. package/deployments/merkle-distribution/2024-10-31.json +23370 -0
  110. package/deployments/merkle-distribution/2024-11-28.json +24040 -0
  111. package/package.json +1 -1
  112. package/typechain-types/ActionAddRemoveLiqV3.ts +2000 -0
  113. package/typechain-types/ActionInfoStatic.ts +310 -0
  114. package/typechain-types/ActionMarketAuxStatic.ts +903 -0
  115. package/typechain-types/ActionMarketCoreStatic.ts +1974 -0
  116. package/typechain-types/ActionMintRedeemStatic.ts +435 -0
  117. package/typechain-types/ActionMiscV3.ts +2213 -0
  118. package/typechain-types/ActionSimple.ts +1544 -0
  119. package/typechain-types/ActionStorageStatic.ts +1345 -0
  120. package/typechain-types/ActionStorageV4.ts +1270 -0
  121. package/typechain-types/ActionSwapPTV3.ts +1507 -0
  122. package/typechain-types/ActionSwapYTV3.ts +1507 -0
  123. package/typechain-types/ActionVePendleStatic.ts +113 -0
  124. package/typechain-types/IKyberScalingHelper.ts +108 -0
  125. package/typechain-types/IOdosRouterV2.ts +147 -0
  126. package/typechain-types/IPActionAddRemoveLiqV3.ts +2000 -0
  127. package/typechain-types/IPActionAddRemoveLiqV3Events.ts +499 -0
  128. package/typechain-types/IPActionMarketAuxStatic.ts +859 -0
  129. package/typechain-types/IPActionMiscV3.ts +2213 -0
  130. package/typechain-types/IPActionMiscV3Events.ts +463 -0
  131. package/typechain-types/IPActionSimple.ts +1544 -0
  132. package/typechain-types/IPActionStorageEvents.ts +97 -0
  133. package/typechain-types/IPActionStorageStatic.ts +1268 -0
  134. package/typechain-types/IPActionStorageV4.ts +1270 -0
  135. package/typechain-types/IPActionSwapPTV3.ts +1507 -0
  136. package/typechain-types/IPActionSwapPTV3Events.ts +125 -0
  137. package/typechain-types/IPActionSwapYTV3.ts +1507 -0
  138. package/typechain-types/IPActionSwapYTV3Events.ts +125 -0
  139. package/typechain-types/IPActionVePendleStatic.ts +113 -0
  140. package/typechain-types/IPAllActionV3.ts +4210 -0
  141. package/typechain-types/IPAllEventsV3.ts +1080 -0
  142. package/typechain-types/IPPausingInterface.ts +125 -0
  143. package/typechain-types/IPRouterStatic.ts +4633 -0
  144. package/typechain-types/IPSwapAggregator.ts +187 -0
  145. package/typechain-types/PendleGovernanceProxy.ts +603 -0
  146. package/typechain-types/PendlePoolDeployHelper.ts +342 -0
  147. package/typechain-types/PendleRouterStatic.ts +57 -0
  148. package/typechain-types/PendleRouterV4.ts +57 -0
  149. package/typechain-types/PendleSwap.ts +208 -0
  150. package/typechain-types/Reflector.ts +95 -0
  151. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +3533 -0
  152. package/typechain-types/factories/ActionInfoStatic__factory.ts +360 -0
  153. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +780 -0
  154. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1449 -0
  155. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +304 -0
  156. package/typechain-types/factories/ActionMiscV3__factory.ts +3056 -0
  157. package/typechain-types/factories/ActionSimple__factory.ts +1939 -0
  158. package/typechain-types/factories/ActionStorageStatic__factory.ts +1576 -0
  159. package/typechain-types/factories/ActionStorageV4__factory.ts +1504 -0
  160. package/typechain-types/factories/ActionSwapPTV3__factory.ts +2556 -0
  161. package/typechain-types/factories/ActionSwapYTV3__factory.ts +2556 -0
  162. package/typechain-types/factories/ActionVePendleStatic__factory.ts +155 -0
  163. package/typechain-types/factories/IKyberScalingHelper__factory.ts +55 -0
  164. package/typechain-types/factories/IOdosRouterV2__factory.ts +94 -0
  165. package/typechain-types/factories/IPActionAddRemoveLiqV3Events__factory.ts +582 -0
  166. package/typechain-types/factories/IPActionAddRemoveLiqV3__factory.ts +3421 -0
  167. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +622 -0
  168. package/typechain-types/factories/IPActionMiscV3Events__factory.ts +608 -0
  169. package/typechain-types/factories/IPActionMiscV3__factory.ts +3005 -0
  170. package/typechain-types/factories/IPActionSimple__factory.ts +1840 -0
  171. package/typechain-types/factories/IPActionStorageEvents__factory.ts +68 -0
  172. package/typechain-types/factories/IPActionStorageStatic__factory.ts +1498 -0
  173. package/typechain-types/factories/IPActionStorageV4__factory.ts +1466 -0
  174. package/typechain-types/factories/IPActionSwapPTV3Events__factory.ts +116 -0
  175. package/typechain-types/factories/IPActionSwapPTV3__factory.ts +2454 -0
  176. package/typechain-types/factories/IPActionSwapYTV3Events__factory.ts +116 -0
  177. package/typechain-types/factories/IPActionSwapYTV3__factory.ts +2454 -0
  178. package/typechain-types/factories/IPActionVePendleStatic__factory.ts +59 -0
  179. package/typechain-types/factories/IPAllActionV3__factory.ts +7860 -0
  180. package/typechain-types/factories/IPAllEventsV3__factory.ts +1363 -0
  181. package/typechain-types/factories/IPPausingInterface__factory.ts +53 -0
  182. package/typechain-types/factories/IPRouterStatic__factory.ts +3956 -0
  183. package/typechain-types/factories/IPSwapAggregator__factory.ts +136 -0
  184. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
  185. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +345 -0
  186. package/typechain-types/factories/PendleRouterStatic__factory.ts +88 -0
  187. package/typechain-types/factories/PendleRouterV4__factory.ts +96 -0
  188. package/typechain-types/factories/PendleSwap__factory.ts +188 -0
  189. package/typechain-types/factories/Reflector__factory.ts +84 -0
  190. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +0 -4
  191. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +0 -4
  192. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  193. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +0 -65
  194. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.dbg.json +0 -4
  195. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.json +0 -194
  196. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +0 -4
  197. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.json +0 -1787
  198. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +0 -4
  199. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.json +0 -2873
  200. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol/IExecutorHelperL2Struct.dbg.json +0 -4
  201. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol/IExecutorHelperL2Struct.json +0 -10
  202. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol/IExecutorHelperStruct.dbg.json +0 -4
  203. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol/IExecutorHelperStruct.json +0 -10
  204. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  205. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +0 -215
  206. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol/IBebopV3.dbg.json +0 -4
  207. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol/IBebopV3.json +0 -10
  208. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol/IKyberDSLO.dbg.json +0 -4
  209. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol/IKyberDSLO.json +0 -10
  210. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol/IKyberLO.dbg.json +0 -4
  211. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol/IKyberLO.json +0 -10
  212. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +0 -4
  213. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.json +0 -10
  214. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +0 -4
  215. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol/BytesHelper.dbg.json +0 -4
  216. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.dbg.json +0 -4
  217. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.json +0 -10
  218. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +0 -4
  219. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.json +0 -10
  220. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.dbg.json +0 -4
  221. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.json +0 -10
  222. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +0 -4
  223. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.json +0 -10
  224. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.dbg.json +0 -4
  225. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.json +0 -10
  226. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +0 -4
  227. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.json +0 -10
  228. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +0 -4
  229. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.json +0 -10
  230. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol/BytesHelper.dbg.json +0 -4
  231. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol/BytesHelper.json +0 -10
  232. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol/RevertReasonParser.dbg.json +0 -4
  233. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol/RevertReasonParser.json +0 -10
  234. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol +0 -31
  235. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol +0 -63
  236. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol +0 -164
  237. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol +0 -483
  238. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol +0 -412
  239. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol +0 -459
  240. package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol +0 -47
  241. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol +0 -23
  242. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol +0 -36
  243. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol +0 -32
  244. package/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol +0 -354
  245. package/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol +0 -521
  246. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol +0 -93
  247. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol +0 -404
  248. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol +0 -118
  249. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol +0 -41
  250. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol +0 -684
  251. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol +0 -61
  252. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol +0 -373
  253. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol +0 -273
  254. package/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol +0 -32
  255. package/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol +0 -75
@@ -0,0 +1,622 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPActionMarketAuxStatic,
9
+ IPActionMarketAuxStaticInterface,
10
+ } from "../IPActionMarketAuxStatic";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "market",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "int256",
22
+ name: "netPtOut",
23
+ type: "int256",
24
+ },
25
+ ],
26
+ name: "calcPriceImpactPY",
27
+ outputs: [
28
+ {
29
+ internalType: "uint256",
30
+ name: "",
31
+ type: "uint256",
32
+ },
33
+ ],
34
+ stateMutability: "view",
35
+ type: "function",
36
+ },
37
+ {
38
+ inputs: [
39
+ {
40
+ internalType: "address",
41
+ name: "market",
42
+ type: "address",
43
+ },
44
+ {
45
+ internalType: "int256",
46
+ name: "netPtOut",
47
+ type: "int256",
48
+ },
49
+ ],
50
+ name: "calcPriceImpactPt",
51
+ outputs: [
52
+ {
53
+ internalType: "uint256",
54
+ name: "",
55
+ type: "uint256",
56
+ },
57
+ ],
58
+ stateMutability: "view",
59
+ type: "function",
60
+ },
61
+ {
62
+ inputs: [
63
+ {
64
+ internalType: "address",
65
+ name: "market",
66
+ type: "address",
67
+ },
68
+ {
69
+ internalType: "int256",
70
+ name: "netPtOut",
71
+ type: "int256",
72
+ },
73
+ ],
74
+ name: "calcPriceImpactYt",
75
+ outputs: [
76
+ {
77
+ internalType: "uint256",
78
+ name: "",
79
+ type: "uint256",
80
+ },
81
+ ],
82
+ stateMutability: "view",
83
+ type: "function",
84
+ },
85
+ {
86
+ inputs: [
87
+ {
88
+ internalType: "address",
89
+ name: "market",
90
+ type: "address",
91
+ },
92
+ ],
93
+ name: "getLpToAssetRate",
94
+ outputs: [
95
+ {
96
+ internalType: "uint256",
97
+ name: "",
98
+ type: "uint256",
99
+ },
100
+ ],
101
+ stateMutability: "view",
102
+ type: "function",
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "address",
108
+ name: "market",
109
+ type: "address",
110
+ },
111
+ ],
112
+ name: "getLpToSyRate",
113
+ outputs: [
114
+ {
115
+ internalType: "uint256",
116
+ name: "",
117
+ type: "uint256",
118
+ },
119
+ ],
120
+ stateMutability: "view",
121
+ type: "function",
122
+ },
123
+ {
124
+ inputs: [
125
+ {
126
+ internalType: "address",
127
+ name: "market",
128
+ type: "address",
129
+ },
130
+ ],
131
+ name: "getMarketState",
132
+ outputs: [
133
+ {
134
+ internalType: "address",
135
+ name: "pt",
136
+ type: "address",
137
+ },
138
+ {
139
+ internalType: "address",
140
+ name: "yt",
141
+ type: "address",
142
+ },
143
+ {
144
+ internalType: "address",
145
+ name: "sy",
146
+ type: "address",
147
+ },
148
+ {
149
+ internalType: "int256",
150
+ name: "impliedYield",
151
+ type: "int256",
152
+ },
153
+ {
154
+ internalType: "uint256",
155
+ name: "marketExchangeRateExcludeFee",
156
+ type: "uint256",
157
+ },
158
+ {
159
+ components: [
160
+ {
161
+ internalType: "int256",
162
+ name: "totalPt",
163
+ type: "int256",
164
+ },
165
+ {
166
+ internalType: "int256",
167
+ name: "totalSy",
168
+ type: "int256",
169
+ },
170
+ {
171
+ internalType: "int256",
172
+ name: "totalLp",
173
+ type: "int256",
174
+ },
175
+ {
176
+ internalType: "address",
177
+ name: "treasury",
178
+ type: "address",
179
+ },
180
+ {
181
+ internalType: "int256",
182
+ name: "scalarRoot",
183
+ type: "int256",
184
+ },
185
+ {
186
+ internalType: "uint256",
187
+ name: "expiry",
188
+ type: "uint256",
189
+ },
190
+ {
191
+ internalType: "uint256",
192
+ name: "lnFeeRateRoot",
193
+ type: "uint256",
194
+ },
195
+ {
196
+ internalType: "uint256",
197
+ name: "reserveFeePercent",
198
+ type: "uint256",
199
+ },
200
+ {
201
+ internalType: "uint256",
202
+ name: "lastLnImpliedRate",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ internalType: "struct MarketState",
207
+ name: "state",
208
+ type: "tuple",
209
+ },
210
+ ],
211
+ stateMutability: "view",
212
+ type: "function",
213
+ },
214
+ {
215
+ inputs: [
216
+ {
217
+ internalType: "address",
218
+ name: "market",
219
+ type: "address",
220
+ },
221
+ ],
222
+ name: "getPtToAssetRate",
223
+ outputs: [
224
+ {
225
+ internalType: "uint256",
226
+ name: "",
227
+ type: "uint256",
228
+ },
229
+ ],
230
+ stateMutability: "view",
231
+ type: "function",
232
+ },
233
+ {
234
+ inputs: [
235
+ {
236
+ internalType: "address",
237
+ name: "market",
238
+ type: "address",
239
+ },
240
+ ],
241
+ name: "getPtToSyRate",
242
+ outputs: [
243
+ {
244
+ internalType: "uint256",
245
+ name: "",
246
+ type: "uint256",
247
+ },
248
+ ],
249
+ stateMutability: "view",
250
+ type: "function",
251
+ },
252
+ {
253
+ inputs: [
254
+ {
255
+ internalType: "address",
256
+ name: "market",
257
+ type: "address",
258
+ },
259
+ {
260
+ components: [
261
+ {
262
+ internalType: "int256",
263
+ name: "totalPt",
264
+ type: "int256",
265
+ },
266
+ {
267
+ internalType: "int256",
268
+ name: "totalSy",
269
+ type: "int256",
270
+ },
271
+ {
272
+ internalType: "int256",
273
+ name: "totalLp",
274
+ type: "int256",
275
+ },
276
+ {
277
+ internalType: "address",
278
+ name: "treasury",
279
+ type: "address",
280
+ },
281
+ {
282
+ internalType: "int256",
283
+ name: "scalarRoot",
284
+ type: "int256",
285
+ },
286
+ {
287
+ internalType: "uint256",
288
+ name: "expiry",
289
+ type: "uint256",
290
+ },
291
+ {
292
+ internalType: "uint256",
293
+ name: "lnFeeRateRoot",
294
+ type: "uint256",
295
+ },
296
+ {
297
+ internalType: "uint256",
298
+ name: "reserveFeePercent",
299
+ type: "uint256",
300
+ },
301
+ {
302
+ internalType: "uint256",
303
+ name: "lastLnImpliedRate",
304
+ type: "uint256",
305
+ },
306
+ ],
307
+ internalType: "struct MarketState",
308
+ name: "state",
309
+ type: "tuple",
310
+ },
311
+ ],
312
+ name: "getTradeExchangeRateExcludeFee",
313
+ outputs: [
314
+ {
315
+ internalType: "uint256",
316
+ name: "",
317
+ type: "uint256",
318
+ },
319
+ ],
320
+ stateMutability: "view",
321
+ type: "function",
322
+ },
323
+ {
324
+ inputs: [
325
+ {
326
+ internalType: "address",
327
+ name: "market",
328
+ type: "address",
329
+ },
330
+ {
331
+ internalType: "int256",
332
+ name: "netPtOut",
333
+ type: "int256",
334
+ },
335
+ ],
336
+ name: "getTradeExchangeRateIncludeFee",
337
+ outputs: [
338
+ {
339
+ internalType: "uint256",
340
+ name: "",
341
+ type: "uint256",
342
+ },
343
+ ],
344
+ stateMutability: "view",
345
+ type: "function",
346
+ },
347
+ {
348
+ inputs: [
349
+ {
350
+ internalType: "address",
351
+ name: "market",
352
+ type: "address",
353
+ },
354
+ ],
355
+ name: "getYieldTokenAndPtRate",
356
+ outputs: [
357
+ {
358
+ internalType: "address",
359
+ name: "yieldToken",
360
+ type: "address",
361
+ },
362
+ {
363
+ internalType: "uint256",
364
+ name: "netPtOut",
365
+ type: "uint256",
366
+ },
367
+ {
368
+ internalType: "uint256",
369
+ name: "netYieldTokenOut",
370
+ type: "uint256",
371
+ },
372
+ ],
373
+ stateMutability: "view",
374
+ type: "function",
375
+ },
376
+ {
377
+ inputs: [
378
+ {
379
+ internalType: "address",
380
+ name: "market",
381
+ type: "address",
382
+ },
383
+ ],
384
+ name: "getYieldTokenAndYtRate",
385
+ outputs: [
386
+ {
387
+ internalType: "address",
388
+ name: "yieldToken",
389
+ type: "address",
390
+ },
391
+ {
392
+ internalType: "uint256",
393
+ name: "netYtOut",
394
+ type: "uint256",
395
+ },
396
+ {
397
+ internalType: "uint256",
398
+ name: "netYieldTokenOut",
399
+ type: "uint256",
400
+ },
401
+ ],
402
+ stateMutability: "view",
403
+ type: "function",
404
+ },
405
+ {
406
+ inputs: [
407
+ {
408
+ internalType: "address",
409
+ name: "market",
410
+ type: "address",
411
+ },
412
+ ],
413
+ name: "getYtToAssetRate",
414
+ outputs: [
415
+ {
416
+ internalType: "uint256",
417
+ name: "",
418
+ type: "uint256",
419
+ },
420
+ ],
421
+ stateMutability: "view",
422
+ type: "function",
423
+ },
424
+ {
425
+ inputs: [
426
+ {
427
+ internalType: "address",
428
+ name: "market",
429
+ type: "address",
430
+ },
431
+ ],
432
+ name: "getYtToSyRate",
433
+ outputs: [
434
+ {
435
+ internalType: "uint256",
436
+ name: "",
437
+ type: "uint256",
438
+ },
439
+ ],
440
+ stateMutability: "view",
441
+ type: "function",
442
+ },
443
+ {
444
+ inputs: [
445
+ {
446
+ internalType: "address",
447
+ name: "market",
448
+ type: "address",
449
+ },
450
+ {
451
+ internalType: "uint256",
452
+ name: "exactSyIn",
453
+ type: "uint256",
454
+ },
455
+ {
456
+ internalType: "uint256",
457
+ name: "slippage",
458
+ type: "uint256",
459
+ },
460
+ ],
461
+ name: "swapExactSyForPtStaticAndGenerateApproxParams",
462
+ outputs: [
463
+ {
464
+ internalType: "uint256",
465
+ name: "netPtOut",
466
+ type: "uint256",
467
+ },
468
+ {
469
+ internalType: "uint256",
470
+ name: "netSyFee",
471
+ type: "uint256",
472
+ },
473
+ {
474
+ internalType: "uint256",
475
+ name: "priceImpact",
476
+ type: "uint256",
477
+ },
478
+ {
479
+ internalType: "uint256",
480
+ name: "exchangeRateAfter",
481
+ type: "uint256",
482
+ },
483
+ {
484
+ components: [
485
+ {
486
+ internalType: "uint256",
487
+ name: "guessMin",
488
+ type: "uint256",
489
+ },
490
+ {
491
+ internalType: "uint256",
492
+ name: "guessMax",
493
+ type: "uint256",
494
+ },
495
+ {
496
+ internalType: "uint256",
497
+ name: "guessOffchain",
498
+ type: "uint256",
499
+ },
500
+ {
501
+ internalType: "uint256",
502
+ name: "maxIteration",
503
+ type: "uint256",
504
+ },
505
+ {
506
+ internalType: "uint256",
507
+ name: "eps",
508
+ type: "uint256",
509
+ },
510
+ ],
511
+ internalType: "struct ApproxParams",
512
+ name: "approxParams",
513
+ type: "tuple",
514
+ },
515
+ ],
516
+ stateMutability: "view",
517
+ type: "function",
518
+ },
519
+ {
520
+ inputs: [
521
+ {
522
+ internalType: "address",
523
+ name: "market",
524
+ type: "address",
525
+ },
526
+ {
527
+ internalType: "address",
528
+ name: "tokenIn",
529
+ type: "address",
530
+ },
531
+ {
532
+ internalType: "uint256",
533
+ name: "amountTokenIn",
534
+ type: "uint256",
535
+ },
536
+ {
537
+ internalType: "uint256",
538
+ name: "slippage",
539
+ type: "uint256",
540
+ },
541
+ ],
542
+ name: "swapExactTokenForPtStaticAndGenerateApproxParams",
543
+ outputs: [
544
+ {
545
+ internalType: "uint256",
546
+ name: "netPtOut",
547
+ type: "uint256",
548
+ },
549
+ {
550
+ internalType: "uint256",
551
+ name: "netSyMinted",
552
+ type: "uint256",
553
+ },
554
+ {
555
+ internalType: "uint256",
556
+ name: "netSyFee",
557
+ type: "uint256",
558
+ },
559
+ {
560
+ internalType: "uint256",
561
+ name: "priceImpact",
562
+ type: "uint256",
563
+ },
564
+ {
565
+ internalType: "uint256",
566
+ name: "exchangeRateAfter",
567
+ type: "uint256",
568
+ },
569
+ {
570
+ components: [
571
+ {
572
+ internalType: "uint256",
573
+ name: "guessMin",
574
+ type: "uint256",
575
+ },
576
+ {
577
+ internalType: "uint256",
578
+ name: "guessMax",
579
+ type: "uint256",
580
+ },
581
+ {
582
+ internalType: "uint256",
583
+ name: "guessOffchain",
584
+ type: "uint256",
585
+ },
586
+ {
587
+ internalType: "uint256",
588
+ name: "maxIteration",
589
+ type: "uint256",
590
+ },
591
+ {
592
+ internalType: "uint256",
593
+ name: "eps",
594
+ type: "uint256",
595
+ },
596
+ ],
597
+ internalType: "struct ApproxParams",
598
+ name: "approxParams",
599
+ type: "tuple",
600
+ },
601
+ ],
602
+ stateMutability: "view",
603
+ type: "function",
604
+ },
605
+ ];
606
+
607
+ export class IPActionMarketAuxStatic__factory {
608
+ static readonly abi = _abi;
609
+ static createInterface(): IPActionMarketAuxStaticInterface {
610
+ return new utils.Interface(_abi) as IPActionMarketAuxStaticInterface;
611
+ }
612
+ static connect(
613
+ address: string,
614
+ signerOrProvider: Signer | Provider
615
+ ): IPActionMarketAuxStatic {
616
+ return new Contract(
617
+ address,
618
+ _abi,
619
+ signerOrProvider
620
+ ) as IPActionMarketAuxStatic;
621
+ }
622
+ }