@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,1504 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ ActionStorageV4,
8
+ ActionStorageV4Interface,
9
+ } from "../ActionStorageV4";
10
+
11
+ const _abi = [
12
+ {
13
+ anonymous: false,
14
+ inputs: [
15
+ {
16
+ indexed: true,
17
+ internalType: "address",
18
+ name: "caller",
19
+ type: "address",
20
+ },
21
+ {
22
+ indexed: true,
23
+ internalType: "address",
24
+ name: "market",
25
+ type: "address",
26
+ },
27
+ {
28
+ indexed: true,
29
+ internalType: "address",
30
+ name: "receiver",
31
+ type: "address",
32
+ },
33
+ {
34
+ indexed: false,
35
+ internalType: "uint256",
36
+ name: "netSyUsed",
37
+ type: "uint256",
38
+ },
39
+ {
40
+ indexed: false,
41
+ internalType: "uint256",
42
+ name: "netPtUsed",
43
+ type: "uint256",
44
+ },
45
+ {
46
+ indexed: false,
47
+ internalType: "uint256",
48
+ name: "netLpOut",
49
+ type: "uint256",
50
+ },
51
+ ],
52
+ name: "AddLiquidityDualSyAndPt",
53
+ type: "event",
54
+ },
55
+ {
56
+ anonymous: false,
57
+ inputs: [
58
+ {
59
+ indexed: true,
60
+ internalType: "address",
61
+ name: "caller",
62
+ type: "address",
63
+ },
64
+ {
65
+ indexed: true,
66
+ internalType: "address",
67
+ name: "market",
68
+ type: "address",
69
+ },
70
+ {
71
+ indexed: true,
72
+ internalType: "address",
73
+ name: "tokenIn",
74
+ type: "address",
75
+ },
76
+ {
77
+ indexed: false,
78
+ internalType: "address",
79
+ name: "receiver",
80
+ type: "address",
81
+ },
82
+ {
83
+ indexed: false,
84
+ internalType: "uint256",
85
+ name: "netTokenUsed",
86
+ type: "uint256",
87
+ },
88
+ {
89
+ indexed: false,
90
+ internalType: "uint256",
91
+ name: "netPtUsed",
92
+ type: "uint256",
93
+ },
94
+ {
95
+ indexed: false,
96
+ internalType: "uint256",
97
+ name: "netLpOut",
98
+ type: "uint256",
99
+ },
100
+ {
101
+ indexed: false,
102
+ internalType: "uint256",
103
+ name: "netSyInterm",
104
+ type: "uint256",
105
+ },
106
+ ],
107
+ name: "AddLiquidityDualTokenAndPt",
108
+ type: "event",
109
+ },
110
+ {
111
+ anonymous: false,
112
+ inputs: [
113
+ {
114
+ indexed: true,
115
+ internalType: "address",
116
+ name: "caller",
117
+ type: "address",
118
+ },
119
+ {
120
+ indexed: true,
121
+ internalType: "address",
122
+ name: "market",
123
+ type: "address",
124
+ },
125
+ {
126
+ indexed: true,
127
+ internalType: "address",
128
+ name: "receiver",
129
+ type: "address",
130
+ },
131
+ {
132
+ indexed: false,
133
+ internalType: "uint256",
134
+ name: "netPtIn",
135
+ type: "uint256",
136
+ },
137
+ {
138
+ indexed: false,
139
+ internalType: "uint256",
140
+ name: "netLpOut",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ name: "AddLiquiditySinglePt",
145
+ type: "event",
146
+ },
147
+ {
148
+ anonymous: false,
149
+ inputs: [
150
+ {
151
+ indexed: true,
152
+ internalType: "address",
153
+ name: "caller",
154
+ type: "address",
155
+ },
156
+ {
157
+ indexed: true,
158
+ internalType: "address",
159
+ name: "market",
160
+ type: "address",
161
+ },
162
+ {
163
+ indexed: true,
164
+ internalType: "address",
165
+ name: "receiver",
166
+ type: "address",
167
+ },
168
+ {
169
+ indexed: false,
170
+ internalType: "uint256",
171
+ name: "netSyIn",
172
+ type: "uint256",
173
+ },
174
+ {
175
+ indexed: false,
176
+ internalType: "uint256",
177
+ name: "netLpOut",
178
+ type: "uint256",
179
+ },
180
+ ],
181
+ name: "AddLiquiditySingleSy",
182
+ type: "event",
183
+ },
184
+ {
185
+ anonymous: false,
186
+ inputs: [
187
+ {
188
+ indexed: true,
189
+ internalType: "address",
190
+ name: "caller",
191
+ type: "address",
192
+ },
193
+ {
194
+ indexed: true,
195
+ internalType: "address",
196
+ name: "market",
197
+ type: "address",
198
+ },
199
+ {
200
+ indexed: true,
201
+ internalType: "address",
202
+ name: "receiver",
203
+ type: "address",
204
+ },
205
+ {
206
+ indexed: false,
207
+ internalType: "uint256",
208
+ name: "netSyIn",
209
+ type: "uint256",
210
+ },
211
+ {
212
+ indexed: false,
213
+ internalType: "uint256",
214
+ name: "netSyMintPy",
215
+ type: "uint256",
216
+ },
217
+ {
218
+ indexed: false,
219
+ internalType: "uint256",
220
+ name: "netLpOut",
221
+ type: "uint256",
222
+ },
223
+ {
224
+ indexed: false,
225
+ internalType: "uint256",
226
+ name: "netYtOut",
227
+ type: "uint256",
228
+ },
229
+ ],
230
+ name: "AddLiquiditySingleSyKeepYt",
231
+ type: "event",
232
+ },
233
+ {
234
+ anonymous: false,
235
+ inputs: [
236
+ {
237
+ indexed: true,
238
+ internalType: "address",
239
+ name: "caller",
240
+ type: "address",
241
+ },
242
+ {
243
+ indexed: true,
244
+ internalType: "address",
245
+ name: "market",
246
+ type: "address",
247
+ },
248
+ {
249
+ indexed: true,
250
+ internalType: "address",
251
+ name: "token",
252
+ type: "address",
253
+ },
254
+ {
255
+ indexed: false,
256
+ internalType: "address",
257
+ name: "receiver",
258
+ type: "address",
259
+ },
260
+ {
261
+ indexed: false,
262
+ internalType: "uint256",
263
+ name: "netTokenIn",
264
+ type: "uint256",
265
+ },
266
+ {
267
+ indexed: false,
268
+ internalType: "uint256",
269
+ name: "netLpOut",
270
+ type: "uint256",
271
+ },
272
+ {
273
+ indexed: false,
274
+ internalType: "uint256",
275
+ name: "netSyInterm",
276
+ type: "uint256",
277
+ },
278
+ ],
279
+ name: "AddLiquiditySingleToken",
280
+ type: "event",
281
+ },
282
+ {
283
+ anonymous: false,
284
+ inputs: [
285
+ {
286
+ indexed: true,
287
+ internalType: "address",
288
+ name: "caller",
289
+ type: "address",
290
+ },
291
+ {
292
+ indexed: true,
293
+ internalType: "address",
294
+ name: "market",
295
+ type: "address",
296
+ },
297
+ {
298
+ indexed: true,
299
+ internalType: "address",
300
+ name: "token",
301
+ type: "address",
302
+ },
303
+ {
304
+ indexed: false,
305
+ internalType: "address",
306
+ name: "receiver",
307
+ type: "address",
308
+ },
309
+ {
310
+ indexed: false,
311
+ internalType: "uint256",
312
+ name: "netTokenIn",
313
+ type: "uint256",
314
+ },
315
+ {
316
+ indexed: false,
317
+ internalType: "uint256",
318
+ name: "netLpOut",
319
+ type: "uint256",
320
+ },
321
+ {
322
+ indexed: false,
323
+ internalType: "uint256",
324
+ name: "netYtOut",
325
+ type: "uint256",
326
+ },
327
+ {
328
+ indexed: false,
329
+ internalType: "uint256",
330
+ name: "netSyMintPy",
331
+ type: "uint256",
332
+ },
333
+ {
334
+ indexed: false,
335
+ internalType: "uint256",
336
+ name: "netSyInterm",
337
+ type: "uint256",
338
+ },
339
+ ],
340
+ name: "AddLiquiditySingleTokenKeepYt",
341
+ type: "event",
342
+ },
343
+ {
344
+ anonymous: false,
345
+ inputs: [
346
+ {
347
+ indexed: true,
348
+ internalType: "address",
349
+ name: "caller",
350
+ type: "address",
351
+ },
352
+ {
353
+ indexed: true,
354
+ internalType: "address",
355
+ name: "market",
356
+ type: "address",
357
+ },
358
+ {
359
+ indexed: true,
360
+ internalType: "address",
361
+ name: "receiver",
362
+ type: "address",
363
+ },
364
+ {
365
+ indexed: false,
366
+ internalType: "uint256",
367
+ name: "netLpIn",
368
+ type: "uint256",
369
+ },
370
+ {
371
+ components: [
372
+ {
373
+ internalType: "uint256",
374
+ name: "netPtFromRemove",
375
+ type: "uint256",
376
+ },
377
+ {
378
+ internalType: "uint256",
379
+ name: "netSyFromRemove",
380
+ type: "uint256",
381
+ },
382
+ {
383
+ internalType: "uint256",
384
+ name: "netPtRedeem",
385
+ type: "uint256",
386
+ },
387
+ {
388
+ internalType: "uint256",
389
+ name: "netSyFromRedeem",
390
+ type: "uint256",
391
+ },
392
+ {
393
+ internalType: "uint256",
394
+ name: "totalSyOut",
395
+ type: "uint256",
396
+ },
397
+ ],
398
+ indexed: false,
399
+ internalType: "struct ExitPostExpReturnParams",
400
+ name: "params",
401
+ type: "tuple",
402
+ },
403
+ ],
404
+ name: "ExitPostExpToSy",
405
+ type: "event",
406
+ },
407
+ {
408
+ anonymous: false,
409
+ inputs: [
410
+ {
411
+ indexed: true,
412
+ internalType: "address",
413
+ name: "caller",
414
+ type: "address",
415
+ },
416
+ {
417
+ indexed: true,
418
+ internalType: "address",
419
+ name: "market",
420
+ type: "address",
421
+ },
422
+ {
423
+ indexed: true,
424
+ internalType: "address",
425
+ name: "token",
426
+ type: "address",
427
+ },
428
+ {
429
+ indexed: false,
430
+ internalType: "address",
431
+ name: "receiver",
432
+ type: "address",
433
+ },
434
+ {
435
+ indexed: false,
436
+ internalType: "uint256",
437
+ name: "netLpIn",
438
+ type: "uint256",
439
+ },
440
+ {
441
+ indexed: false,
442
+ internalType: "uint256",
443
+ name: "totalTokenOut",
444
+ type: "uint256",
445
+ },
446
+ {
447
+ components: [
448
+ {
449
+ internalType: "uint256",
450
+ name: "netPtFromRemove",
451
+ type: "uint256",
452
+ },
453
+ {
454
+ internalType: "uint256",
455
+ name: "netSyFromRemove",
456
+ type: "uint256",
457
+ },
458
+ {
459
+ internalType: "uint256",
460
+ name: "netPtRedeem",
461
+ type: "uint256",
462
+ },
463
+ {
464
+ internalType: "uint256",
465
+ name: "netSyFromRedeem",
466
+ type: "uint256",
467
+ },
468
+ {
469
+ internalType: "uint256",
470
+ name: "totalSyOut",
471
+ type: "uint256",
472
+ },
473
+ ],
474
+ indexed: false,
475
+ internalType: "struct ExitPostExpReturnParams",
476
+ name: "params",
477
+ type: "tuple",
478
+ },
479
+ ],
480
+ name: "ExitPostExpToToken",
481
+ type: "event",
482
+ },
483
+ {
484
+ anonymous: false,
485
+ inputs: [
486
+ {
487
+ indexed: true,
488
+ internalType: "address",
489
+ name: "caller",
490
+ type: "address",
491
+ },
492
+ {
493
+ indexed: true,
494
+ internalType: "address",
495
+ name: "market",
496
+ type: "address",
497
+ },
498
+ {
499
+ indexed: true,
500
+ internalType: "address",
501
+ name: "receiver",
502
+ type: "address",
503
+ },
504
+ {
505
+ indexed: false,
506
+ internalType: "uint256",
507
+ name: "netLpIn",
508
+ type: "uint256",
509
+ },
510
+ {
511
+ components: [
512
+ {
513
+ internalType: "uint256",
514
+ name: "netPtFromRemove",
515
+ type: "uint256",
516
+ },
517
+ {
518
+ internalType: "uint256",
519
+ name: "netSyFromRemove",
520
+ type: "uint256",
521
+ },
522
+ {
523
+ internalType: "uint256",
524
+ name: "netPyRedeem",
525
+ type: "uint256",
526
+ },
527
+ {
528
+ internalType: "uint256",
529
+ name: "netSyFromRedeem",
530
+ type: "uint256",
531
+ },
532
+ {
533
+ internalType: "uint256",
534
+ name: "netPtSwap",
535
+ type: "uint256",
536
+ },
537
+ {
538
+ internalType: "uint256",
539
+ name: "netYtSwap",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ internalType: "uint256",
544
+ name: "netSyFromSwap",
545
+ type: "uint256",
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "netSyFee",
550
+ type: "uint256",
551
+ },
552
+ {
553
+ internalType: "uint256",
554
+ name: "totalSyOut",
555
+ type: "uint256",
556
+ },
557
+ ],
558
+ indexed: false,
559
+ internalType: "struct ExitPreExpReturnParams",
560
+ name: "params",
561
+ type: "tuple",
562
+ },
563
+ ],
564
+ name: "ExitPreExpToSy",
565
+ type: "event",
566
+ },
567
+ {
568
+ anonymous: false,
569
+ inputs: [
570
+ {
571
+ indexed: true,
572
+ internalType: "address",
573
+ name: "caller",
574
+ type: "address",
575
+ },
576
+ {
577
+ indexed: true,
578
+ internalType: "address",
579
+ name: "market",
580
+ type: "address",
581
+ },
582
+ {
583
+ indexed: true,
584
+ internalType: "address",
585
+ name: "token",
586
+ type: "address",
587
+ },
588
+ {
589
+ indexed: false,
590
+ internalType: "address",
591
+ name: "receiver",
592
+ type: "address",
593
+ },
594
+ {
595
+ indexed: false,
596
+ internalType: "uint256",
597
+ name: "netLpIn",
598
+ type: "uint256",
599
+ },
600
+ {
601
+ indexed: false,
602
+ internalType: "uint256",
603
+ name: "totalTokenOut",
604
+ type: "uint256",
605
+ },
606
+ {
607
+ components: [
608
+ {
609
+ internalType: "uint256",
610
+ name: "netPtFromRemove",
611
+ type: "uint256",
612
+ },
613
+ {
614
+ internalType: "uint256",
615
+ name: "netSyFromRemove",
616
+ type: "uint256",
617
+ },
618
+ {
619
+ internalType: "uint256",
620
+ name: "netPyRedeem",
621
+ type: "uint256",
622
+ },
623
+ {
624
+ internalType: "uint256",
625
+ name: "netSyFromRedeem",
626
+ type: "uint256",
627
+ },
628
+ {
629
+ internalType: "uint256",
630
+ name: "netPtSwap",
631
+ type: "uint256",
632
+ },
633
+ {
634
+ internalType: "uint256",
635
+ name: "netYtSwap",
636
+ type: "uint256",
637
+ },
638
+ {
639
+ internalType: "uint256",
640
+ name: "netSyFromSwap",
641
+ type: "uint256",
642
+ },
643
+ {
644
+ internalType: "uint256",
645
+ name: "netSyFee",
646
+ type: "uint256",
647
+ },
648
+ {
649
+ internalType: "uint256",
650
+ name: "totalSyOut",
651
+ type: "uint256",
652
+ },
653
+ ],
654
+ indexed: false,
655
+ internalType: "struct ExitPreExpReturnParams",
656
+ name: "params",
657
+ type: "tuple",
658
+ },
659
+ ],
660
+ name: "ExitPreExpToToken",
661
+ type: "event",
662
+ },
663
+ {
664
+ anonymous: false,
665
+ inputs: [
666
+ {
667
+ indexed: true,
668
+ internalType: "address",
669
+ name: "caller",
670
+ type: "address",
671
+ },
672
+ {
673
+ indexed: true,
674
+ internalType: "address",
675
+ name: "receiver",
676
+ type: "address",
677
+ },
678
+ {
679
+ indexed: true,
680
+ internalType: "address",
681
+ name: "YT",
682
+ type: "address",
683
+ },
684
+ {
685
+ indexed: false,
686
+ internalType: "uint256",
687
+ name: "netSyIn",
688
+ type: "uint256",
689
+ },
690
+ {
691
+ indexed: false,
692
+ internalType: "uint256",
693
+ name: "netPyOut",
694
+ type: "uint256",
695
+ },
696
+ ],
697
+ name: "MintPyFromSy",
698
+ type: "event",
699
+ },
700
+ {
701
+ anonymous: false,
702
+ inputs: [
703
+ {
704
+ indexed: true,
705
+ internalType: "address",
706
+ name: "caller",
707
+ type: "address",
708
+ },
709
+ {
710
+ indexed: true,
711
+ internalType: "address",
712
+ name: "tokenIn",
713
+ type: "address",
714
+ },
715
+ {
716
+ indexed: true,
717
+ internalType: "address",
718
+ name: "YT",
719
+ type: "address",
720
+ },
721
+ {
722
+ indexed: false,
723
+ internalType: "address",
724
+ name: "receiver",
725
+ type: "address",
726
+ },
727
+ {
728
+ indexed: false,
729
+ internalType: "uint256",
730
+ name: "netTokenIn",
731
+ type: "uint256",
732
+ },
733
+ {
734
+ indexed: false,
735
+ internalType: "uint256",
736
+ name: "netPyOut",
737
+ type: "uint256",
738
+ },
739
+ {
740
+ indexed: false,
741
+ internalType: "uint256",
742
+ name: "netSyInterm",
743
+ type: "uint256",
744
+ },
745
+ ],
746
+ name: "MintPyFromToken",
747
+ type: "event",
748
+ },
749
+ {
750
+ anonymous: false,
751
+ inputs: [
752
+ {
753
+ indexed: true,
754
+ internalType: "address",
755
+ name: "caller",
756
+ type: "address",
757
+ },
758
+ {
759
+ indexed: true,
760
+ internalType: "address",
761
+ name: "tokenIn",
762
+ type: "address",
763
+ },
764
+ {
765
+ indexed: true,
766
+ internalType: "address",
767
+ name: "SY",
768
+ type: "address",
769
+ },
770
+ {
771
+ indexed: false,
772
+ internalType: "address",
773
+ name: "receiver",
774
+ type: "address",
775
+ },
776
+ {
777
+ indexed: false,
778
+ internalType: "uint256",
779
+ name: "netTokenIn",
780
+ type: "uint256",
781
+ },
782
+ {
783
+ indexed: false,
784
+ internalType: "uint256",
785
+ name: "netSyOut",
786
+ type: "uint256",
787
+ },
788
+ ],
789
+ name: "MintSyFromToken",
790
+ type: "event",
791
+ },
792
+ {
793
+ anonymous: false,
794
+ inputs: [
795
+ {
796
+ indexed: true,
797
+ internalType: "address",
798
+ name: "previousOwner",
799
+ type: "address",
800
+ },
801
+ {
802
+ indexed: true,
803
+ internalType: "address",
804
+ name: "newOwner",
805
+ type: "address",
806
+ },
807
+ ],
808
+ name: "OwnershipTransferred",
809
+ type: "event",
810
+ },
811
+ {
812
+ anonymous: false,
813
+ inputs: [
814
+ {
815
+ indexed: true,
816
+ internalType: "address",
817
+ name: "caller",
818
+ type: "address",
819
+ },
820
+ {
821
+ indexed: true,
822
+ internalType: "address",
823
+ name: "receiver",
824
+ type: "address",
825
+ },
826
+ {
827
+ indexed: true,
828
+ internalType: "address",
829
+ name: "YT",
830
+ type: "address",
831
+ },
832
+ {
833
+ indexed: false,
834
+ internalType: "uint256",
835
+ name: "netPyIn",
836
+ type: "uint256",
837
+ },
838
+ {
839
+ indexed: false,
840
+ internalType: "uint256",
841
+ name: "netSyOut",
842
+ type: "uint256",
843
+ },
844
+ ],
845
+ name: "RedeemPyToSy",
846
+ type: "event",
847
+ },
848
+ {
849
+ anonymous: false,
850
+ inputs: [
851
+ {
852
+ indexed: true,
853
+ internalType: "address",
854
+ name: "caller",
855
+ type: "address",
856
+ },
857
+ {
858
+ indexed: true,
859
+ internalType: "address",
860
+ name: "tokenOut",
861
+ type: "address",
862
+ },
863
+ {
864
+ indexed: true,
865
+ internalType: "address",
866
+ name: "YT",
867
+ type: "address",
868
+ },
869
+ {
870
+ indexed: false,
871
+ internalType: "address",
872
+ name: "receiver",
873
+ type: "address",
874
+ },
875
+ {
876
+ indexed: false,
877
+ internalType: "uint256",
878
+ name: "netPyIn",
879
+ type: "uint256",
880
+ },
881
+ {
882
+ indexed: false,
883
+ internalType: "uint256",
884
+ name: "netTokenOut",
885
+ type: "uint256",
886
+ },
887
+ {
888
+ indexed: false,
889
+ internalType: "uint256",
890
+ name: "netSyInterm",
891
+ type: "uint256",
892
+ },
893
+ ],
894
+ name: "RedeemPyToToken",
895
+ type: "event",
896
+ },
897
+ {
898
+ anonymous: false,
899
+ inputs: [
900
+ {
901
+ indexed: true,
902
+ internalType: "address",
903
+ name: "caller",
904
+ type: "address",
905
+ },
906
+ {
907
+ indexed: true,
908
+ internalType: "address",
909
+ name: "tokenOut",
910
+ type: "address",
911
+ },
912
+ {
913
+ indexed: true,
914
+ internalType: "address",
915
+ name: "SY",
916
+ type: "address",
917
+ },
918
+ {
919
+ indexed: false,
920
+ internalType: "address",
921
+ name: "receiver",
922
+ type: "address",
923
+ },
924
+ {
925
+ indexed: false,
926
+ internalType: "uint256",
927
+ name: "netSyIn",
928
+ type: "uint256",
929
+ },
930
+ {
931
+ indexed: false,
932
+ internalType: "uint256",
933
+ name: "netTokenOut",
934
+ type: "uint256",
935
+ },
936
+ ],
937
+ name: "RedeemSyToToken",
938
+ type: "event",
939
+ },
940
+ {
941
+ anonymous: false,
942
+ inputs: [
943
+ {
944
+ indexed: true,
945
+ internalType: "address",
946
+ name: "caller",
947
+ type: "address",
948
+ },
949
+ {
950
+ indexed: true,
951
+ internalType: "address",
952
+ name: "market",
953
+ type: "address",
954
+ },
955
+ {
956
+ indexed: true,
957
+ internalType: "address",
958
+ name: "receiver",
959
+ type: "address",
960
+ },
961
+ {
962
+ indexed: false,
963
+ internalType: "uint256",
964
+ name: "netLpToRemove",
965
+ type: "uint256",
966
+ },
967
+ {
968
+ indexed: false,
969
+ internalType: "uint256",
970
+ name: "netPtOut",
971
+ type: "uint256",
972
+ },
973
+ {
974
+ indexed: false,
975
+ internalType: "uint256",
976
+ name: "netSyOut",
977
+ type: "uint256",
978
+ },
979
+ ],
980
+ name: "RemoveLiquidityDualSyAndPt",
981
+ type: "event",
982
+ },
983
+ {
984
+ anonymous: false,
985
+ inputs: [
986
+ {
987
+ indexed: true,
988
+ internalType: "address",
989
+ name: "caller",
990
+ type: "address",
991
+ },
992
+ {
993
+ indexed: true,
994
+ internalType: "address",
995
+ name: "market",
996
+ type: "address",
997
+ },
998
+ {
999
+ indexed: true,
1000
+ internalType: "address",
1001
+ name: "tokenOut",
1002
+ type: "address",
1003
+ },
1004
+ {
1005
+ indexed: false,
1006
+ internalType: "address",
1007
+ name: "receiver",
1008
+ type: "address",
1009
+ },
1010
+ {
1011
+ indexed: false,
1012
+ internalType: "uint256",
1013
+ name: "netLpToRemove",
1014
+ type: "uint256",
1015
+ },
1016
+ {
1017
+ indexed: false,
1018
+ internalType: "uint256",
1019
+ name: "netPtOut",
1020
+ type: "uint256",
1021
+ },
1022
+ {
1023
+ indexed: false,
1024
+ internalType: "uint256",
1025
+ name: "netTokenOut",
1026
+ type: "uint256",
1027
+ },
1028
+ {
1029
+ indexed: false,
1030
+ internalType: "uint256",
1031
+ name: "netSyInterm",
1032
+ type: "uint256",
1033
+ },
1034
+ ],
1035
+ name: "RemoveLiquidityDualTokenAndPt",
1036
+ type: "event",
1037
+ },
1038
+ {
1039
+ anonymous: false,
1040
+ inputs: [
1041
+ {
1042
+ indexed: true,
1043
+ internalType: "address",
1044
+ name: "caller",
1045
+ type: "address",
1046
+ },
1047
+ {
1048
+ indexed: true,
1049
+ internalType: "address",
1050
+ name: "market",
1051
+ type: "address",
1052
+ },
1053
+ {
1054
+ indexed: true,
1055
+ internalType: "address",
1056
+ name: "receiver",
1057
+ type: "address",
1058
+ },
1059
+ {
1060
+ indexed: false,
1061
+ internalType: "uint256",
1062
+ name: "netLpToRemove",
1063
+ type: "uint256",
1064
+ },
1065
+ {
1066
+ indexed: false,
1067
+ internalType: "uint256",
1068
+ name: "netPtOut",
1069
+ type: "uint256",
1070
+ },
1071
+ ],
1072
+ name: "RemoveLiquiditySinglePt",
1073
+ type: "event",
1074
+ },
1075
+ {
1076
+ anonymous: false,
1077
+ inputs: [
1078
+ {
1079
+ indexed: true,
1080
+ internalType: "address",
1081
+ name: "caller",
1082
+ type: "address",
1083
+ },
1084
+ {
1085
+ indexed: true,
1086
+ internalType: "address",
1087
+ name: "market",
1088
+ type: "address",
1089
+ },
1090
+ {
1091
+ indexed: true,
1092
+ internalType: "address",
1093
+ name: "receiver",
1094
+ type: "address",
1095
+ },
1096
+ {
1097
+ indexed: false,
1098
+ internalType: "uint256",
1099
+ name: "netLpToRemove",
1100
+ type: "uint256",
1101
+ },
1102
+ {
1103
+ indexed: false,
1104
+ internalType: "uint256",
1105
+ name: "netSyOut",
1106
+ type: "uint256",
1107
+ },
1108
+ ],
1109
+ name: "RemoveLiquiditySingleSy",
1110
+ type: "event",
1111
+ },
1112
+ {
1113
+ anonymous: false,
1114
+ inputs: [
1115
+ {
1116
+ indexed: true,
1117
+ internalType: "address",
1118
+ name: "caller",
1119
+ type: "address",
1120
+ },
1121
+ {
1122
+ indexed: true,
1123
+ internalType: "address",
1124
+ name: "market",
1125
+ type: "address",
1126
+ },
1127
+ {
1128
+ indexed: true,
1129
+ internalType: "address",
1130
+ name: "token",
1131
+ type: "address",
1132
+ },
1133
+ {
1134
+ indexed: false,
1135
+ internalType: "address",
1136
+ name: "receiver",
1137
+ type: "address",
1138
+ },
1139
+ {
1140
+ indexed: false,
1141
+ internalType: "uint256",
1142
+ name: "netLpToRemove",
1143
+ type: "uint256",
1144
+ },
1145
+ {
1146
+ indexed: false,
1147
+ internalType: "uint256",
1148
+ name: "netTokenOut",
1149
+ type: "uint256",
1150
+ },
1151
+ {
1152
+ indexed: false,
1153
+ internalType: "uint256",
1154
+ name: "netSyInterm",
1155
+ type: "uint256",
1156
+ },
1157
+ ],
1158
+ name: "RemoveLiquiditySingleToken",
1159
+ type: "event",
1160
+ },
1161
+ {
1162
+ anonymous: false,
1163
+ inputs: [
1164
+ {
1165
+ indexed: true,
1166
+ internalType: "bytes4",
1167
+ name: "selector",
1168
+ type: "bytes4",
1169
+ },
1170
+ {
1171
+ indexed: true,
1172
+ internalType: "address",
1173
+ name: "facet",
1174
+ type: "address",
1175
+ },
1176
+ ],
1177
+ name: "SelectorToFacetSet",
1178
+ type: "event",
1179
+ },
1180
+ {
1181
+ anonymous: false,
1182
+ inputs: [
1183
+ {
1184
+ indexed: true,
1185
+ internalType: "address",
1186
+ name: "caller",
1187
+ type: "address",
1188
+ },
1189
+ {
1190
+ indexed: true,
1191
+ internalType: "address",
1192
+ name: "market",
1193
+ type: "address",
1194
+ },
1195
+ {
1196
+ indexed: true,
1197
+ internalType: "address",
1198
+ name: "receiver",
1199
+ type: "address",
1200
+ },
1201
+ {
1202
+ indexed: false,
1203
+ internalType: "int256",
1204
+ name: "netPtToAccount",
1205
+ type: "int256",
1206
+ },
1207
+ {
1208
+ indexed: false,
1209
+ internalType: "int256",
1210
+ name: "netSyToAccount",
1211
+ type: "int256",
1212
+ },
1213
+ ],
1214
+ name: "SwapPtAndSy",
1215
+ type: "event",
1216
+ },
1217
+ {
1218
+ anonymous: false,
1219
+ inputs: [
1220
+ {
1221
+ indexed: true,
1222
+ internalType: "address",
1223
+ name: "caller",
1224
+ type: "address",
1225
+ },
1226
+ {
1227
+ indexed: true,
1228
+ internalType: "address",
1229
+ name: "market",
1230
+ type: "address",
1231
+ },
1232
+ {
1233
+ indexed: true,
1234
+ internalType: "address",
1235
+ name: "token",
1236
+ type: "address",
1237
+ },
1238
+ {
1239
+ indexed: false,
1240
+ internalType: "address",
1241
+ name: "receiver",
1242
+ type: "address",
1243
+ },
1244
+ {
1245
+ indexed: false,
1246
+ internalType: "int256",
1247
+ name: "netPtToAccount",
1248
+ type: "int256",
1249
+ },
1250
+ {
1251
+ indexed: false,
1252
+ internalType: "int256",
1253
+ name: "netTokenToAccount",
1254
+ type: "int256",
1255
+ },
1256
+ {
1257
+ indexed: false,
1258
+ internalType: "uint256",
1259
+ name: "netSyInterm",
1260
+ type: "uint256",
1261
+ },
1262
+ ],
1263
+ name: "SwapPtAndToken",
1264
+ type: "event",
1265
+ },
1266
+ {
1267
+ anonymous: false,
1268
+ inputs: [
1269
+ {
1270
+ indexed: true,
1271
+ internalType: "address",
1272
+ name: "caller",
1273
+ type: "address",
1274
+ },
1275
+ {
1276
+ indexed: true,
1277
+ internalType: "address",
1278
+ name: "market",
1279
+ type: "address",
1280
+ },
1281
+ {
1282
+ indexed: true,
1283
+ internalType: "address",
1284
+ name: "receiver",
1285
+ type: "address",
1286
+ },
1287
+ {
1288
+ indexed: false,
1289
+ internalType: "int256",
1290
+ name: "netYtToAccount",
1291
+ type: "int256",
1292
+ },
1293
+ {
1294
+ indexed: false,
1295
+ internalType: "int256",
1296
+ name: "netSyToAccount",
1297
+ type: "int256",
1298
+ },
1299
+ ],
1300
+ name: "SwapYtAndSy",
1301
+ type: "event",
1302
+ },
1303
+ {
1304
+ anonymous: false,
1305
+ inputs: [
1306
+ {
1307
+ indexed: true,
1308
+ internalType: "address",
1309
+ name: "caller",
1310
+ type: "address",
1311
+ },
1312
+ {
1313
+ indexed: true,
1314
+ internalType: "address",
1315
+ name: "market",
1316
+ type: "address",
1317
+ },
1318
+ {
1319
+ indexed: true,
1320
+ internalType: "address",
1321
+ name: "token",
1322
+ type: "address",
1323
+ },
1324
+ {
1325
+ indexed: false,
1326
+ internalType: "address",
1327
+ name: "receiver",
1328
+ type: "address",
1329
+ },
1330
+ {
1331
+ indexed: false,
1332
+ internalType: "int256",
1333
+ name: "netYtToAccount",
1334
+ type: "int256",
1335
+ },
1336
+ {
1337
+ indexed: false,
1338
+ internalType: "int256",
1339
+ name: "netTokenToAccount",
1340
+ type: "int256",
1341
+ },
1342
+ {
1343
+ indexed: false,
1344
+ internalType: "uint256",
1345
+ name: "netSyInterm",
1346
+ type: "uint256",
1347
+ },
1348
+ ],
1349
+ name: "SwapYtAndToken",
1350
+ type: "event",
1351
+ },
1352
+ {
1353
+ inputs: [],
1354
+ name: "claimOwnership",
1355
+ outputs: [],
1356
+ stateMutability: "nonpayable",
1357
+ type: "function",
1358
+ },
1359
+ {
1360
+ inputs: [],
1361
+ name: "owner",
1362
+ outputs: [
1363
+ {
1364
+ internalType: "address",
1365
+ name: "",
1366
+ type: "address",
1367
+ },
1368
+ ],
1369
+ stateMutability: "view",
1370
+ type: "function",
1371
+ },
1372
+ {
1373
+ inputs: [],
1374
+ name: "pendingOwner",
1375
+ outputs: [
1376
+ {
1377
+ internalType: "address",
1378
+ name: "",
1379
+ type: "address",
1380
+ },
1381
+ ],
1382
+ stateMutability: "view",
1383
+ type: "function",
1384
+ },
1385
+ {
1386
+ inputs: [
1387
+ {
1388
+ internalType: "bytes4",
1389
+ name: "selector",
1390
+ type: "bytes4",
1391
+ },
1392
+ ],
1393
+ name: "selectorToFacet",
1394
+ outputs: [
1395
+ {
1396
+ internalType: "address",
1397
+ name: "",
1398
+ type: "address",
1399
+ },
1400
+ ],
1401
+ stateMutability: "view",
1402
+ type: "function",
1403
+ },
1404
+ {
1405
+ inputs: [
1406
+ {
1407
+ components: [
1408
+ {
1409
+ internalType: "address",
1410
+ name: "facet",
1411
+ type: "address",
1412
+ },
1413
+ {
1414
+ internalType: "bytes4[]",
1415
+ name: "selectors",
1416
+ type: "bytes4[]",
1417
+ },
1418
+ ],
1419
+ internalType: "struct IPActionStorageV4.SelectorsToFacet[]",
1420
+ name: "arr",
1421
+ type: "tuple[]",
1422
+ },
1423
+ ],
1424
+ name: "setSelectorToFacets",
1425
+ outputs: [],
1426
+ stateMutability: "nonpayable",
1427
+ type: "function",
1428
+ },
1429
+ {
1430
+ inputs: [
1431
+ {
1432
+ internalType: "address",
1433
+ name: "newOwner",
1434
+ type: "address",
1435
+ },
1436
+ {
1437
+ internalType: "bool",
1438
+ name: "direct",
1439
+ type: "bool",
1440
+ },
1441
+ {
1442
+ internalType: "bool",
1443
+ name: "renounce",
1444
+ type: "bool",
1445
+ },
1446
+ ],
1447
+ name: "transferOwnership",
1448
+ outputs: [],
1449
+ stateMutability: "nonpayable",
1450
+ type: "function",
1451
+ },
1452
+ ];
1453
+
1454
+ const _bytecode =
1455
+ "0x608060405234801561001057600080fd5b506107c7806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063078dfbe7146100675780634e71e0c81461007c5780638da5cb5b14610084578063a47dbf82146100a8578063ae7473ac146100bb578063e30c3978146100ce575b600080fd5b61007a6100753660046104e0565b6100d6565b005b61007a6101f7565b61008c6102b2565b6040516001600160a01b03909116815260200160405180910390f35b61007a6100b6366004610523565b6102cb565b61008c6100c93660046105af565b61043d565b61008c610474565b6100de6102b2565b6001600160a01b0316336001600160a01b0316146101175760405162461bcd60e51b815260040161010e906105d1565b60405180910390fd5b6000610121610490565b905082156101d3576001600160a01b03841615158061013d5750815b6101815760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640161010e565b80546040516001600160a01b0380871692169060008051602061077283398151915290600090a380546001600160a01b0385166001600160a01b031991821617825560018201805490911690556101f1565b6001810180546001600160a01b0319166001600160a01b0386161790555b50505050565b6000610201610490565b60018101549091506001600160a01b03163381146102615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161010e565b81546040516001600160a01b0380841692169060008051602061077283398151915290600090a381546001600160a01b039091166001600160a01b0319918216178255600190910180549091169055565b60006102bc610490565b546001600160a01b0316919050565b6102d36102b2565b6001600160a01b0316336001600160a01b0316146103035760405162461bcd60e51b815260040161010e906105d1565b600061030d610490565b905060005b828110156101f157600084848381811061032e5761032e610606565b9050602002810190610340919061061c565b610349906106aa565b905060005b8160200151518110156104335781600001518460020160008460200151848151811061037c5761037c610606565b60200260200101516001600160e01b0319166001600160e01b031916815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600001516001600160a01b0316826020015182815181106103ee576103ee610606565b60200260200101516001600160e01b0319167e38aaccfeca40ea50135fcc37980765ee22033e320eaf575624561bdbbe930060405160405180910390a360010161034e565b5050600101610312565b600080610448610490565b6001600160e01b031990931660009081526002909301602052505060409020546001600160a01b031690565b600061047e610490565b600101546001600160a01b0316919050565b7ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80090565b80356001600160a01b03811681146104cb57600080fd5b919050565b803580151581146104cb57600080fd5b6000806000606084860312156104f557600080fd5b6104fe846104b4565b925061050c602085016104d0565b915061051a604085016104d0565b90509250925092565b6000806020838503121561053657600080fd5b82356001600160401b038082111561054d57600080fd5b818501915085601f83011261056157600080fd5b81358181111561057057600080fd5b8660208260051b850101111561058557600080fd5b60209290920196919550909350505050565b80356001600160e01b0319811681146104cb57600080fd5b6000602082840312156105c157600080fd5b6105ca82610597565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261063257600080fd5b9190910192915050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156106745761067461063c565b60405290565b604051601f8201601f191681016001600160401b03811182821017156106a2576106a261063c565b604052919050565b6000604082360312156106bc57600080fd5b6106c4610652565b6106cd836104b4565b81526020838101356001600160401b03808211156106ea57600080fd5b9085019036601f8301126106fd57600080fd5b81358181111561070f5761070f61063c565b8060051b915061072084830161067a565b818152918301840191848101903684111561073a57600080fd5b938501935b8385101561075f5761075085610597565b8252938501939085019061073f565b9486019490945250929594505050505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220a3a6f1b7fca47d220c69a0ff34d227a9bb8dbe49fc2044af3726359b5ef597d564736f6c63430008170033";
1456
+
1457
+ type ActionStorageV4ConstructorParams =
1458
+ | [signer?: Signer]
1459
+ | ConstructorParameters<typeof ContractFactory>;
1460
+
1461
+ const isSuperArgs = (
1462
+ xs: ActionStorageV4ConstructorParams
1463
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
1464
+
1465
+ export class ActionStorageV4__factory extends ContractFactory {
1466
+ constructor(...args: ActionStorageV4ConstructorParams) {
1467
+ if (isSuperArgs(args)) {
1468
+ super(...args);
1469
+ } else {
1470
+ super(_abi, _bytecode, args[0]);
1471
+ }
1472
+ this.contractName = "ActionStorageV4";
1473
+ }
1474
+
1475
+ deploy(
1476
+ overrides?: Overrides & { from?: string | Promise<string> }
1477
+ ): Promise<ActionStorageV4> {
1478
+ return super.deploy(overrides || {}) as Promise<ActionStorageV4>;
1479
+ }
1480
+ getDeployTransaction(
1481
+ overrides?: Overrides & { from?: string | Promise<string> }
1482
+ ): TransactionRequest {
1483
+ return super.getDeployTransaction(overrides || {});
1484
+ }
1485
+ attach(address: string): ActionStorageV4 {
1486
+ return super.attach(address) as ActionStorageV4;
1487
+ }
1488
+ connect(signer: Signer): ActionStorageV4__factory {
1489
+ return super.connect(signer) as ActionStorageV4__factory;
1490
+ }
1491
+ static readonly contractName: "ActionStorageV4";
1492
+ public readonly contractName: "ActionStorageV4";
1493
+ static readonly bytecode = _bytecode;
1494
+ static readonly abi = _abi;
1495
+ static createInterface(): ActionStorageV4Interface {
1496
+ return new utils.Interface(_abi) as ActionStorageV4Interface;
1497
+ }
1498
+ static connect(
1499
+ address: string,
1500
+ signerOrProvider: Signer | Provider
1501
+ ): ActionStorageV4 {
1502
+ return new Contract(address, _abi, signerOrProvider) as ActionStorageV4;
1503
+ }
1504
+ }