@pendle/core-v2 0.20.1-testnet → 0.20.2-testnet

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 (353) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +34 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  36. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  38. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  40. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  45. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.json +141 -0
  49. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json +141 -0
  51. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +4 -0
  52. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +50 -0
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +143 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +4 -0
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +1296 -0
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +4 -0
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +1283 -0
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +4 -0
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +1218 -0
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +4 -0
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +1231 -0
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +4 -0
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +10 -0
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +4 -0
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +133 -0
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +4 -0
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +10 -0
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +4 -0
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +40 -0
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +4 -0
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +322 -0
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +4 -0
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.json +1171 -0
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +4 -0
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +10 -0
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +4 -0
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.json +133 -0
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +143 -2
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +143 -2
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +143 -2
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.json +141 -0
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +143 -2
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +143 -2
  93. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  94. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  95. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  96. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  97. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  99. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  101. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  102. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +76 -2
  103. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +4 -0
  104. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.json +10 -0
  105. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +4 -0
  106. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.json +24 -0
  107. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +4 -0
  108. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.json +133 -0
  109. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +4 -0
  110. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.json +328 -0
  111. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +4 -0
  112. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.json +467 -0
  113. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +4 -0
  114. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.json +61 -0
  115. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +4 -0
  116. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.json +30 -0
  117. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +4 -0
  118. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.json +398 -0
  119. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +4 -0
  120. package/build/artifacts/contracts/{router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json → interfaces/Balancer/IRateProvider.sol/IRateProvider.json} +5 -5
  121. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +4 -0
  122. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.json +278 -0
  123. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +18 -0
  125. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +80 -32
  128. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +100 -40
  130. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +40 -16
  132. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +40 -16
  135. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +260 -104
  137. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +19 -0
  140. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  143. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  144. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  145. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  146. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
  147. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +4 -0
  148. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +322 -0
  149. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  150. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +2 -2
  151. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  152. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +96 -53
  153. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  154. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
  155. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  156. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +116 -61
  157. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  158. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
  159. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  160. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +44 -25
  161. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  162. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  163. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  164. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +44 -25
  165. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  166. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  167. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  168. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +1 -1
  169. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  170. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  171. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  172. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  173. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +4 -0
  174. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +160 -0
  175. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +4 -0
  176. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +10 -0
  177. package/build/artifacts/contracts/router/swap-aggregator/ISwapAggregator.sol/ISwapAggregator.dbg.json +4 -0
  178. package/build/artifacts/contracts/router/swap-aggregator/ISwapAggregator.sol/ISwapAggregator.json +51 -0
  179. package/build/artifacts/contracts/router/swap-aggregator/SwapAggregator.sol/SwapAggregator.dbg.json +4 -0
  180. package/build/artifacts/contracts/router/swap-aggregator/SwapAggregator.sol/SwapAggregator.json +256 -0
  181. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.dbg.json +4 -0
  182. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.json +10 -0
  183. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +4 -0
  184. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +10 -0
  185. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  186. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
  187. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
  188. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +359 -0
  189. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +4 -0
  190. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.json +101 -0
  191. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.dbg.json +4 -0
  192. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.json +183 -0
  193. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  194. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
  195. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +7 -9
  196. package/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol +10 -0
  197. package/contracts/core/StandardizedYield/SYBase.sol +23 -5
  198. package/contracts/core/StandardizedYield/StEthHelper.sol +71 -0
  199. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol +170 -0
  200. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol +162 -0
  201. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +134 -0
  202. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +154 -0
  203. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol +289 -0
  204. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol +618 -0
  205. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol +68 -0
  206. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +322 -0
  207. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +390 -0
  208. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +329 -0
  209. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +30 -0
  210. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +189 -0
  211. package/contracts/core/libraries/ArrayLib.sol +6 -3
  212. package/contracts/core/libraries/Errors.sol +8 -0
  213. package/contracts/interfaces/Balancer/IAsset.sol +4 -0
  214. package/contracts/interfaces/Balancer/IBalancerFees.sol +6 -0
  215. package/contracts/interfaces/Balancer/IBalancerStablePreview.sol +22 -0
  216. package/contracts/interfaces/Balancer/IBasePool.sol +30 -0
  217. package/contracts/interfaces/Balancer/IComposableStable.sol +39 -0
  218. package/contracts/interfaces/Balancer/IGauge.sol +10 -0
  219. package/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol +6 -0
  220. package/contracts/interfaces/Balancer/IMetaStablePool.sol +31 -0
  221. package/contracts/interfaces/Balancer/IRateProvider.sol +6 -0
  222. package/contracts/interfaces/Balancer/IVault.sol +78 -0
  223. package/contracts/interfaces/ConvexCurve/IRewards.sol +5 -0
  224. package/contracts/interfaces/IPActionAddRemoveLiq.sol +1 -1
  225. package/contracts/interfaces/IPActionMintRedeem.sol +2 -3
  226. package/contracts/interfaces/IPActionSwapPT.sol +1 -1
  227. package/contracts/interfaces/IPActionSwapPTYT.sol +1 -1
  228. package/contracts/interfaces/IPActionSwapYT.sol +1 -1
  229. package/contracts/interfaces/IPFeeDistributor.sol +2 -0
  230. package/contracts/offchain-helpers/Multicall2.sol +103 -0
  231. package/contracts/router/ActionAddRemoveLiq.sol +2 -2
  232. package/contracts/router/ActionMintRedeem.sol +7 -9
  233. package/contracts/router/ActionSwapPT.sol +2 -2
  234. package/contracts/router/ActionSwapYT.sol +2 -2
  235. package/contracts/router/base/ActionBaseMintRedeem.sol +51 -14
  236. package/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol +45 -0
  237. package/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol +71 -0
  238. package/contracts/router/swap-aggregator/ISwapAggregator.sol +21 -0
  239. package/contracts/router/swap-aggregator/SwapAggregator.sol +62 -0
  240. package/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol +302 -0
  241. package/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol +134 -0
  242. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol +17 -0
  243. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol +185 -0
  244. package/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol +30 -0
  245. package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouter.sol +33 -0
  246. package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol +42 -0
  247. package/deployments/43113-core.json +1 -1
  248. package/deployments/80001-core.json +1 -1
  249. package/package.json +6 -6
  250. package/typechain-types/ActionAddRemoveLiq.ts +41 -35
  251. package/typechain-types/ActionBaseMintRedeem.ts +8 -8
  252. package/typechain-types/ActionMintRedeem.ts +45 -42
  253. package/typechain-types/ActionSwapPT.ts +28 -22
  254. package/typechain-types/ActionSwapYT.ts +28 -22
  255. package/typechain-types/I1inchAggregationRouterV5.ts +257 -0
  256. package/typechain-types/IAggregationExecutor.ts +182 -0
  257. package/typechain-types/IExecutorHelperEthereum1.ts +599 -0
  258. package/typechain-types/IHashflow.ts +159 -0
  259. package/typechain-types/IKyberSwapAggregationRouterHelper.ts +109 -0
  260. package/typechain-types/IMetaAggregationRouter.ts +213 -0
  261. package/typechain-types/IMetaAggregationRouterV2.ts +221 -0
  262. package/typechain-types/IPActionAddRemoveLiq.ts +22 -16
  263. package/typechain-types/IPActionMintRedeem.ts +26 -23
  264. package/typechain-types/IPActionSwapPT.ts +20 -14
  265. package/typechain-types/IPActionSwapYT.ts +20 -14
  266. package/typechain-types/IPAllAction.ts +34 -31
  267. package/typechain-types/IPFeeDistributor.ts +18 -0
  268. package/typechain-types/IRewards.ts +35 -5
  269. package/typechain-types/ISwapAggregator.ts +124 -0
  270. package/typechain-types/PendleConvexLPSY.ts +204 -0
  271. package/typechain-types/PendleCurveFraxUsdcSY.ts +204 -0
  272. package/typechain-types/PendleCurveUsdd3CrvSY.ts +204 -0
  273. package/typechain-types/PendleFeeDistributor.ts +37 -0
  274. package/typechain-types/PendleLooksStakingSY.ts +204 -0
  275. package/typechain-types/PendleQiTokenSY.ts +204 -0
  276. package/typechain-types/PendleWstEthSY.ts +204 -0
  277. package/typechain-types/SAPE.ts +204 -0
  278. package/typechain-types/SYBase.ts +204 -0
  279. package/typechain-types/SYBaseWithRewards.ts +204 -0
  280. package/typechain-types/SwapAggregator.ts +406 -0
  281. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +99 -56
  282. package/typechain-types/factories/ActionBaseMintRedeem__factory.ts +1 -1
  283. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  284. package/typechain-types/factories/ActionMintRedeem__factory.ts +119 -64
  285. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  286. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  287. package/typechain-types/factories/ActionSwapPT__factory.ts +47 -28
  288. package/typechain-types/factories/ActionSwapYT__factory.ts +47 -28
  289. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  290. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  291. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  292. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  293. package/typechain-types/factories/Errors__factory.ts +75 -1
  294. package/typechain-types/factories/I1inchAggregationRouterV5__factory.ts +179 -0
  295. package/typechain-types/factories/IAggregationExecutor__factory.ts +84 -0
  296. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +378 -0
  297. package/typechain-types/factories/IHashflow__factory.ts +113 -0
  298. package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +56 -0
  299. package/typechain-types/factories/IMetaAggregationRouterV2__factory.ts +234 -0
  300. package/typechain-types/factories/IMetaAggregationRouter__factory.ts +202 -0
  301. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +80 -32
  302. package/typechain-types/factories/IPActionMintRedeem__factory.ts +100 -40
  303. package/typechain-types/factories/IPActionSwapPT__factory.ts +40 -16
  304. package/typechain-types/factories/IPActionSwapYT__factory.ts +40 -16
  305. package/typechain-types/factories/IPAllAction__factory.ts +260 -104
  306. package/typechain-types/factories/IPFeeDistributor__factory.ts +19 -0
  307. package/typechain-types/factories/IRewards__factory.ts +18 -0
  308. package/typechain-types/factories/ISwapAggregator__factory.ts +66 -0
  309. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  310. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  311. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1 -1
  312. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1 -1
  313. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1 -1
  314. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1 -1
  315. package/typechain-types/factories/PendleConvexLPSY__factory.ts +141 -0
  316. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +142 -1
  317. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +142 -1
  318. package/typechain-types/factories/PendleFeeDistributor__factory.ts +33 -1
  319. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  320. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  321. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +142 -1
  322. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  323. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  324. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  325. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  326. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  327. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  328. package/typechain-types/factories/PendleQiTokenSY__factory.ts +142 -1
  329. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  330. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  331. package/typechain-types/factories/PendleWstEthSY__factory.ts +142 -1
  332. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  333. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  334. package/typechain-types/factories/RouterStatic__factory.ts +1 -1
  335. package/typechain-types/factories/SAPE__factory.ts +142 -1
  336. package/typechain-types/factories/SYBaseWithRewards__factory.ts +141 -0
  337. package/typechain-types/factories/SYBase__factory.ts +141 -0
  338. package/typechain-types/factories/SwapAggregator__factory.ts +309 -0
  339. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  340. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  341. package/typechain-types/hardhat.d.ts +56 -20
  342. package/typechain-types/index.ts +16 -8
  343. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +0 -4
  344. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +0 -224
  345. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +0 -4
  346. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.json +0 -35
  347. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +0 -4
  348. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json +0 -136
  349. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +0 -4
  350. package/contracts/router/kyberswap/AggregationRouterHelper.sol +0 -331
  351. package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +0 -10
  352. package/contracts/router/kyberswap/IMultihopRouterEthereum.sol +0 -141
  353. package/contracts/router/kyberswap/KyberSwapHelper.sol +0 -79
@@ -1050,14 +1050,26 @@ const _abi = [
1050
1050
  type: "address",
1051
1051
  },
1052
1052
  {
1053
- internalType: "address",
1054
- name: "kyberRouter",
1055
- type: "address",
1056
- },
1057
- {
1058
- internalType: "bytes",
1059
- name: "kybercall",
1060
- type: "bytes",
1053
+ components: [
1054
+ {
1055
+ internalType: "enum AGGREGATOR",
1056
+ name: "aggregatorType",
1057
+ type: "uint8",
1058
+ },
1059
+ {
1060
+ internalType: "address",
1061
+ name: "router",
1062
+ type: "address",
1063
+ },
1064
+ {
1065
+ internalType: "bytes",
1066
+ name: "callData",
1067
+ type: "bytes",
1068
+ },
1069
+ ],
1070
+ internalType: "struct SwapData",
1071
+ name: "data",
1072
+ type: "tuple",
1061
1073
  },
1062
1074
  ],
1063
1075
  internalType: "struct TokenInput",
@@ -1310,14 +1322,26 @@ const _abi = [
1310
1322
  type: "address",
1311
1323
  },
1312
1324
  {
1313
- internalType: "address",
1314
- name: "kyberRouter",
1315
- type: "address",
1316
- },
1317
- {
1318
- internalType: "bytes",
1319
- name: "kybercall",
1320
- type: "bytes",
1325
+ components: [
1326
+ {
1327
+ internalType: "enum AGGREGATOR",
1328
+ name: "aggregatorType",
1329
+ type: "uint8",
1330
+ },
1331
+ {
1332
+ internalType: "address",
1333
+ name: "router",
1334
+ type: "address",
1335
+ },
1336
+ {
1337
+ internalType: "bytes",
1338
+ name: "callData",
1339
+ type: "bytes",
1340
+ },
1341
+ ],
1342
+ internalType: "struct SwapData",
1343
+ name: "data",
1344
+ type: "tuple",
1321
1345
  },
1322
1346
  ],
1323
1347
  internalType: "struct TokenInput",
@@ -1439,14 +1463,26 @@ const _abi = [
1439
1463
  type: "address",
1440
1464
  },
1441
1465
  {
1442
- internalType: "address",
1443
- name: "kyberRouter",
1444
- type: "address",
1445
- },
1446
- {
1447
- internalType: "bytes",
1448
- name: "kybercall",
1449
- type: "bytes",
1466
+ components: [
1467
+ {
1468
+ internalType: "enum AGGREGATOR",
1469
+ name: "aggregatorType",
1470
+ type: "uint8",
1471
+ },
1472
+ {
1473
+ internalType: "address",
1474
+ name: "router",
1475
+ type: "address",
1476
+ },
1477
+ {
1478
+ internalType: "bytes",
1479
+ name: "callData",
1480
+ type: "bytes",
1481
+ },
1482
+ ],
1483
+ internalType: "struct SwapData",
1484
+ name: "data",
1485
+ type: "tuple",
1450
1486
  },
1451
1487
  ],
1452
1488
  internalType: "struct TokenInput",
@@ -1505,14 +1541,26 @@ const _abi = [
1505
1541
  type: "address",
1506
1542
  },
1507
1543
  {
1508
- internalType: "address",
1509
- name: "kyberRouter",
1510
- type: "address",
1511
- },
1512
- {
1513
- internalType: "bytes",
1514
- name: "kybercall",
1515
- type: "bytes",
1544
+ components: [
1545
+ {
1546
+ internalType: "enum AGGREGATOR",
1547
+ name: "aggregatorType",
1548
+ type: "uint8",
1549
+ },
1550
+ {
1551
+ internalType: "address",
1552
+ name: "router",
1553
+ type: "address",
1554
+ },
1555
+ {
1556
+ internalType: "bytes",
1557
+ name: "callData",
1558
+ type: "bytes",
1559
+ },
1560
+ ],
1561
+ internalType: "struct SwapData",
1562
+ name: "data",
1563
+ type: "tuple",
1516
1564
  },
1517
1565
  ],
1518
1566
  internalType: "struct TokenInput",
@@ -1627,14 +1675,26 @@ const _abi = [
1627
1675
  type: "address[]",
1628
1676
  },
1629
1677
  {
1630
- internalType: "bytes[]",
1631
- name: "kybercalls",
1632
- type: "bytes[]",
1633
- },
1634
- {
1635
- internalType: "address",
1636
- name: "kyberRouter",
1637
- type: "address",
1678
+ components: [
1679
+ {
1680
+ internalType: "enum AGGREGATOR",
1681
+ name: "aggregatorType",
1682
+ type: "uint8",
1683
+ },
1684
+ {
1685
+ internalType: "address",
1686
+ name: "router",
1687
+ type: "address",
1688
+ },
1689
+ {
1690
+ internalType: "bytes",
1691
+ name: "callData",
1692
+ type: "bytes",
1693
+ },
1694
+ ],
1695
+ internalType: "struct SwapData[]",
1696
+ name: "data",
1697
+ type: "tuple[]",
1638
1698
  },
1639
1699
  {
1640
1700
  internalType: "address",
@@ -1742,14 +1802,26 @@ const _abi = [
1742
1802
  type: "address",
1743
1803
  },
1744
1804
  {
1745
- internalType: "address",
1746
- name: "kyberRouter",
1747
- type: "address",
1748
- },
1749
- {
1750
- internalType: "bytes",
1751
- name: "kybercall",
1752
- type: "bytes",
1805
+ components: [
1806
+ {
1807
+ internalType: "enum AGGREGATOR",
1808
+ name: "aggregatorType",
1809
+ type: "uint8",
1810
+ },
1811
+ {
1812
+ internalType: "address",
1813
+ name: "router",
1814
+ type: "address",
1815
+ },
1816
+ {
1817
+ internalType: "bytes",
1818
+ name: "callData",
1819
+ type: "bytes",
1820
+ },
1821
+ ],
1822
+ internalType: "struct SwapData",
1823
+ name: "data",
1824
+ type: "tuple",
1753
1825
  },
1754
1826
  ],
1755
1827
  internalType: "struct TokenOutput",
@@ -1808,14 +1880,26 @@ const _abi = [
1808
1880
  type: "address",
1809
1881
  },
1810
1882
  {
1811
- internalType: "address",
1812
- name: "kyberRouter",
1813
- type: "address",
1814
- },
1815
- {
1816
- internalType: "bytes",
1817
- name: "kybercall",
1818
- type: "bytes",
1883
+ components: [
1884
+ {
1885
+ internalType: "enum AGGREGATOR",
1886
+ name: "aggregatorType",
1887
+ type: "uint8",
1888
+ },
1889
+ {
1890
+ internalType: "address",
1891
+ name: "router",
1892
+ type: "address",
1893
+ },
1894
+ {
1895
+ internalType: "bytes",
1896
+ name: "callData",
1897
+ type: "bytes",
1898
+ },
1899
+ ],
1900
+ internalType: "struct SwapData",
1901
+ name: "data",
1902
+ type: "tuple",
1819
1903
  },
1820
1904
  ],
1821
1905
  internalType: "struct TokenOutput",
@@ -1918,14 +2002,26 @@ const _abi = [
1918
2002
  type: "address",
1919
2003
  },
1920
2004
  {
1921
- internalType: "address",
1922
- name: "kyberRouter",
1923
- type: "address",
1924
- },
1925
- {
1926
- internalType: "bytes",
1927
- name: "kybercall",
1928
- type: "bytes",
2005
+ components: [
2006
+ {
2007
+ internalType: "enum AGGREGATOR",
2008
+ name: "aggregatorType",
2009
+ type: "uint8",
2010
+ },
2011
+ {
2012
+ internalType: "address",
2013
+ name: "router",
2014
+ type: "address",
2015
+ },
2016
+ {
2017
+ internalType: "bytes",
2018
+ name: "callData",
2019
+ type: "bytes",
2020
+ },
2021
+ ],
2022
+ internalType: "struct SwapData",
2023
+ name: "data",
2024
+ type: "tuple",
1929
2025
  },
1930
2026
  ],
1931
2027
  internalType: "struct TokenOutput",
@@ -2104,14 +2200,26 @@ const _abi = [
2104
2200
  type: "address",
2105
2201
  },
2106
2202
  {
2107
- internalType: "address",
2108
- name: "kyberRouter",
2109
- type: "address",
2110
- },
2111
- {
2112
- internalType: "bytes",
2113
- name: "kybercall",
2114
- type: "bytes",
2203
+ components: [
2204
+ {
2205
+ internalType: "enum AGGREGATOR",
2206
+ name: "aggregatorType",
2207
+ type: "uint8",
2208
+ },
2209
+ {
2210
+ internalType: "address",
2211
+ name: "router",
2212
+ type: "address",
2213
+ },
2214
+ {
2215
+ internalType: "bytes",
2216
+ name: "callData",
2217
+ type: "bytes",
2218
+ },
2219
+ ],
2220
+ internalType: "struct SwapData",
2221
+ name: "data",
2222
+ type: "tuple",
2115
2223
  },
2116
2224
  ],
2117
2225
  internalType: "struct TokenOutput",
@@ -2214,14 +2322,26 @@ const _abi = [
2214
2322
  type: "address",
2215
2323
  },
2216
2324
  {
2217
- internalType: "address",
2218
- name: "kyberRouter",
2219
- type: "address",
2220
- },
2221
- {
2222
- internalType: "bytes",
2223
- name: "kybercall",
2224
- type: "bytes",
2325
+ components: [
2326
+ {
2327
+ internalType: "enum AGGREGATOR",
2328
+ name: "aggregatorType",
2329
+ type: "uint8",
2330
+ },
2331
+ {
2332
+ internalType: "address",
2333
+ name: "router",
2334
+ type: "address",
2335
+ },
2336
+ {
2337
+ internalType: "bytes",
2338
+ name: "callData",
2339
+ type: "bytes",
2340
+ },
2341
+ ],
2342
+ internalType: "struct SwapData",
2343
+ name: "data",
2344
+ type: "tuple",
2225
2345
  },
2226
2346
  ],
2227
2347
  internalType: "struct TokenOutput",
@@ -2530,14 +2650,26 @@ const _abi = [
2530
2650
  type: "address",
2531
2651
  },
2532
2652
  {
2533
- internalType: "address",
2534
- name: "kyberRouter",
2535
- type: "address",
2536
- },
2537
- {
2538
- internalType: "bytes",
2539
- name: "kybercall",
2540
- type: "bytes",
2653
+ components: [
2654
+ {
2655
+ internalType: "enum AGGREGATOR",
2656
+ name: "aggregatorType",
2657
+ type: "uint8",
2658
+ },
2659
+ {
2660
+ internalType: "address",
2661
+ name: "router",
2662
+ type: "address",
2663
+ },
2664
+ {
2665
+ internalType: "bytes",
2666
+ name: "callData",
2667
+ type: "bytes",
2668
+ },
2669
+ ],
2670
+ internalType: "struct SwapData",
2671
+ name: "data",
2672
+ type: "tuple",
2541
2673
  },
2542
2674
  ],
2543
2675
  internalType: "struct TokenInput",
@@ -2633,14 +2765,26 @@ const _abi = [
2633
2765
  type: "address",
2634
2766
  },
2635
2767
  {
2636
- internalType: "address",
2637
- name: "kyberRouter",
2638
- type: "address",
2639
- },
2640
- {
2641
- internalType: "bytes",
2642
- name: "kybercall",
2643
- type: "bytes",
2768
+ components: [
2769
+ {
2770
+ internalType: "enum AGGREGATOR",
2771
+ name: "aggregatorType",
2772
+ type: "uint8",
2773
+ },
2774
+ {
2775
+ internalType: "address",
2776
+ name: "router",
2777
+ type: "address",
2778
+ },
2779
+ {
2780
+ internalType: "bytes",
2781
+ name: "callData",
2782
+ type: "bytes",
2783
+ },
2784
+ ],
2785
+ internalType: "struct SwapData",
2786
+ name: "data",
2787
+ type: "tuple",
2644
2788
  },
2645
2789
  ],
2646
2790
  internalType: "struct TokenInput",
@@ -2814,14 +2958,26 @@ const _abi = [
2814
2958
  type: "address",
2815
2959
  },
2816
2960
  {
2817
- internalType: "address",
2818
- name: "kyberRouter",
2819
- type: "address",
2820
- },
2821
- {
2822
- internalType: "bytes",
2823
- name: "kybercall",
2824
- type: "bytes",
2961
+ components: [
2962
+ {
2963
+ internalType: "enum AGGREGATOR",
2964
+ name: "aggregatorType",
2965
+ type: "uint8",
2966
+ },
2967
+ {
2968
+ internalType: "address",
2969
+ name: "router",
2970
+ type: "address",
2971
+ },
2972
+ {
2973
+ internalType: "bytes",
2974
+ name: "callData",
2975
+ type: "bytes",
2976
+ },
2977
+ ],
2978
+ internalType: "struct SwapData",
2979
+ name: "data",
2980
+ type: "tuple",
2825
2981
  },
2826
2982
  ],
2827
2983
  internalType: "struct TokenOutput",
@@ -41,6 +41,25 @@ const _abi = [
41
41
  name: "ClaimReward",
42
42
  type: "event",
43
43
  },
44
+ {
45
+ anonymous: false,
46
+ inputs: [
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "pool",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: true,
55
+ internalType: "uint256",
56
+ name: "startWeek",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ name: "PoolAdded",
61
+ type: "event",
62
+ },
44
63
  {
45
64
  anonymous: false,
46
65
  inputs: [
@@ -72,6 +72,24 @@ const _abi = [
72
72
  stateMutability: "nonpayable",
73
73
  type: "function",
74
74
  },
75
+ {
76
+ inputs: [
77
+ {
78
+ internalType: "address",
79
+ name: "",
80
+ type: "address",
81
+ },
82
+ {
83
+ internalType: "bool",
84
+ name: "",
85
+ type: "bool",
86
+ },
87
+ ],
88
+ name: "getReward",
89
+ outputs: [],
90
+ stateMutability: "nonpayable",
91
+ type: "function",
92
+ },
75
93
  {
76
94
  inputs: [],
77
95
  name: "lastTimeRewardApplicable",
@@ -0,0 +1,66 @@
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
+ ISwapAggregator,
9
+ ISwapAggregatorInterface,
10
+ } from "../ISwapAggregator";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "tokenIn",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "uint256",
22
+ name: "amountIn",
23
+ type: "uint256",
24
+ },
25
+ {
26
+ components: [
27
+ {
28
+ internalType: "enum AGGREGATOR",
29
+ name: "aggregatorType",
30
+ type: "uint8",
31
+ },
32
+ {
33
+ internalType: "address",
34
+ name: "router",
35
+ type: "address",
36
+ },
37
+ {
38
+ internalType: "bytes",
39
+ name: "callData",
40
+ type: "bytes",
41
+ },
42
+ ],
43
+ internalType: "struct SwapData",
44
+ name: "swapData",
45
+ type: "tuple",
46
+ },
47
+ ],
48
+ name: "swap",
49
+ outputs: [],
50
+ stateMutability: "payable",
51
+ type: "function",
52
+ },
53
+ ];
54
+
55
+ export class ISwapAggregator__factory {
56
+ static readonly abi = _abi;
57
+ static createInterface(): ISwapAggregatorInterface {
58
+ return new utils.Interface(_abi) as ISwapAggregatorInterface;
59
+ }
60
+ static connect(
61
+ address: string,
62
+ signerOrProvider: Signer | Provider
63
+ ): ISwapAggregator {
64
+ return new Contract(address, _abi, signerOrProvider) as ISwapAggregator;
65
+ }
66
+ }