@pendle/core-v2 0.21.0-testnet → 1.0.1-mainnet

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 (401) 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/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +4 -0
  10. package/build/artifacts/contracts/{interfaces/IApeStaking.sol/IApeStaking.json → LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json} +52 -70
  11. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
  12. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +310 -0
  13. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +4 -0
  14. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +389 -0
  15. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  22. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  27. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  32. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  33. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  38. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  40. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  42. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  44. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  47. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  49. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  66. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  68. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  70. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  72. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  74. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +5 -134
  76. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +0 -18
  78. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +32 -43
  87. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +4 -0
  88. package/build/artifacts/contracts/interfaces/{Balancer/IGauge.sol/IGauge.json → IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json} +33 -18
  89. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  92. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  93. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  94. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  95. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -42
  96. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  97. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +100 -73
  98. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  99. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  100. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  101. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
  102. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  103. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  104. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  105. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
  106. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  107. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  108. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  109. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  110. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  111. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  112. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  113. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  114. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  115. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  116. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  117. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  118. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  119. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  120. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  121. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +1 -1
  122. package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +4 -0
  123. package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.json +136 -0
  124. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  125. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +9 -7
  126. package/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol +159 -0
  127. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +99 -0
  128. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +70 -0
  129. package/contracts/core/BulkSeller/BulkSeller.sol +1 -1
  130. package/contracts/core/StandardizedYield/SYBaseWithRewards.sol +3 -1
  131. package/contracts/core/libraries/ArrayLib.sol +0 -12
  132. package/contracts/core/libraries/Errors.sol +2 -15
  133. package/contracts/interfaces/ConvexCurve/IRewards.sol +0 -5
  134. package/contracts/interfaces/IPFeeDistributor.sol +10 -12
  135. package/contracts/interfaces/IPFeeDistributorFactory.sol +14 -0
  136. package/contracts/offchain-helpers/MarketMathStatic.sol +1 -1
  137. package/contracts/router/kyberswap/AggregationRouterHelper.sol +192 -194
  138. package/contracts/router/kyberswap/IMultihopRouter.sol +139 -0
  139. package/deployments/1-core.json +29 -0
  140. package/deployments/1-markets/FRAXUSDC-CURVELP-MARCH30.json +11 -0
  141. package/deployments/1-markets/LOOKS-STAKING-MARCH30.json +10 -0
  142. package/deployments/1-markets/STETH-JUNE29.json +10 -0
  143. package/deployments/1-markets/STETH-MARCH30.json +10 -0
  144. package/package.json +6 -6
  145. package/typechain-types/IApeStaking.ts +0 -31
  146. package/typechain-types/IPFeeDistributor.ts +78 -61
  147. package/typechain-types/IPFeeDistributorFactory.ts +139 -53
  148. package/typechain-types/IRewards.ts +5 -35
  149. package/typechain-types/MarketMathStatic.ts +0 -49
  150. package/typechain-types/PendleApeStakingSY.ts +204 -88
  151. package/typechain-types/PendleFeeDistributor.ts +117 -409
  152. package/typechain-types/RouterStatic.ts +49 -0
  153. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  154. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  155. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  156. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  157. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  158. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  159. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  160. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  161. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  162. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  163. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  164. package/typechain-types/factories/Errors__factory.ts +4 -133
  165. package/typechain-types/factories/IApeStaking__factory.ts +0 -34
  166. package/typechain-types/factories/IPFeeDistributorFactory__factory.ts +34 -25
  167. package/typechain-types/factories/IPFeeDistributor__factory.ts +31 -42
  168. package/typechain-types/factories/IRewards__factory.ts +0 -18
  169. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -41
  170. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  171. package/typechain-types/factories/PendleApeStakingSY__factory.ts +141 -57
  172. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  173. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  174. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
  175. package/typechain-types/factories/PendleFeeDistributor__factory.ts +66 -341
  176. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  177. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  178. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  179. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  180. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  181. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  182. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  183. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  184. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  185. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  186. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  187. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  188. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  189. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  190. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  191. package/typechain-types/factories/RouterStatic__factory.ts +41 -18
  192. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  193. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  194. package/typechain-types/hardhat.d.ts +40 -301
  195. package/typechain-types/index.ts +10 -68
  196. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
  197. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -592
  198. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +0 -4
  199. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +0 -10
  200. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +0 -4
  201. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +0 -1075
  202. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +0 -4
  203. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +0 -1257
  204. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +0 -4
  205. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +0 -1244
  206. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +0 -4
  207. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +0 -1218
  208. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +0 -4
  209. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +0 -1192
  210. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +0 -4
  211. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +0 -10
  212. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +0 -4
  213. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +0 -133
  214. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +0 -4
  215. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +0 -10
  216. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +0 -4
  217. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +0 -40
  218. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +0 -4
  219. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +0 -322
  220. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +0 -4
  221. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.json +0 -1171
  222. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +0 -4
  223. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +0 -10
  224. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +0 -4
  225. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.json +0 -133
  226. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +0 -4
  227. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.json +0 -10
  228. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +0 -4
  229. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.json +0 -24
  230. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +0 -4
  231. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.json +0 -133
  232. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +0 -4
  233. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.json +0 -328
  234. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +0 -4
  235. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.json +0 -467
  236. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +0 -4
  237. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +0 -4
  238. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.json +0 -30
  239. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +0 -4
  240. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.json +0 -398
  241. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +0 -4
  242. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.json +0 -24
  243. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +0 -4
  244. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.json +0 -278
  245. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +0 -4
  246. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +0 -4
  247. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +0 -322
  248. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +0 -4
  249. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +0 -47
  250. package/build/artifacts/contracts/router/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +0 -4
  251. package/build/artifacts/contracts/router/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +0 -10
  252. package/build/artifacts/contracts/router/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  253. package/build/artifacts/contracts/router/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +0 -65
  254. package/build/artifacts/contracts/router/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +0 -4
  255. package/build/artifacts/contracts/router/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +0 -388
  256. package/build/artifacts/contracts/router/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +0 -4
  257. package/build/artifacts/contracts/router/kyberswap/interfaces/IHashflow.sol/IHashflow.json +0 -101
  258. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.dbg.json +0 -4
  259. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.json +0 -183
  260. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  261. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +0 -215
  262. package/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol +0 -224
  263. package/contracts/core/StandardizedYield/StEthHelper.sol +0 -71
  264. package/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol +0 -197
  265. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol +0 -170
  266. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol +0 -162
  267. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +0 -134
  268. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +0 -154
  269. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol +0 -289
  270. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol +0 -618
  271. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol +0 -68
  272. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +0 -322
  273. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +0 -390
  274. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +0 -329
  275. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +0 -30
  276. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +0 -189
  277. package/contracts/interfaces/Balancer/IAsset.sol +0 -4
  278. package/contracts/interfaces/Balancer/IBalancerFees.sol +0 -6
  279. package/contracts/interfaces/Balancer/IBalancerStablePreview.sol +0 -22
  280. package/contracts/interfaces/Balancer/IBasePool.sol +0 -30
  281. package/contracts/interfaces/Balancer/IComposableStable.sol +0 -39
  282. package/contracts/interfaces/Balancer/IGauge.sol +0 -10
  283. package/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol +0 -6
  284. package/contracts/interfaces/Balancer/IMetaStablePool.sol +0 -31
  285. package/contracts/interfaces/Balancer/IRateProvider.sol +0 -6
  286. package/contracts/interfaces/Balancer/IVault.sol +0 -78
  287. package/contracts/interfaces/IApeStaking.sol +0 -30
  288. package/contracts/offchain-helpers/Multicall2.sol +0 -103
  289. package/contracts/offchain-helpers/PendleMulticall.sol +0 -26
  290. package/contracts/router/kyberswap/ScaleDataHelperEthereum1.sol +0 -147
  291. package/contracts/router/kyberswap/interfaces/IAggregationExecutor.sol +0 -17
  292. package/contracts/router/kyberswap/interfaces/IExecutorHelperEthereum1.sol +0 -191
  293. package/contracts/router/kyberswap/interfaces/IHashflow.sol +0 -30
  294. package/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol +0 -33
  295. package/contracts/router/kyberswap/interfaces/IMetaAggregationRouterV2.sol +0 -42
  296. package/deployments/43113-core.json +0 -29
  297. package/deployments/43113-helper.json +0 -4
  298. package/deployments/43113-markets/APE-30-MARCH.json +0 -10
  299. package/deployments/43113-markets/USDC-FEB-2ND.json +0 -10
  300. package/deployments/43113-markets/USDC-FEB-4TH.json +0 -10
  301. package/deployments/43113-markets/WETH-FEB-2ND.json +0 -11
  302. package/deployments/43113-markets/WETH-FEB-4TH.json +0 -11
  303. package/deployments/43113-testenv.json +0 -22
  304. package/deployments/80001-core.json +0 -28
  305. package/deployments/80001-helper.json +0 -4
  306. package/deployments/80001-markets/USDC-DEC-8TH.json +0 -10
  307. package/deployments/80001-markets/USDC-FEB-4TH.json +0 -10
  308. package/deployments/80001-markets/WETH-FEB-4TH.json +0 -11
  309. package/deployments/80001-testenv.json +0 -22
  310. package/typechain-types/BribeDistributor.ts +0 -363
  311. package/typechain-types/ComposableStablePreview.ts +0 -217
  312. package/typechain-types/DistributorBase.ts +0 -363
  313. package/typechain-types/FeeDistributor.ts +0 -416
  314. package/typechain-types/GMXPreviewHelper.ts +0 -134
  315. package/typechain-types/I1inchAggregationRouterV5.ts +0 -257
  316. package/typechain-types/IAggregationExecutor.ts +0 -182
  317. package/typechain-types/IBalancerFees.ts +0 -89
  318. package/typechain-types/IBalancerStablePreview.ts +0 -217
  319. package/typechain-types/IBasePool.ts +0 -482
  320. package/typechain-types/IComposableStable.ts +0 -730
  321. package/typechain-types/IExecutorHelperEthereum1.ts +0 -643
  322. package/typechain-types/IGMXVault.ts +0 -494
  323. package/typechain-types/IGauge.ts +0 -160
  324. package/typechain-types/IGlpManager.ts +0 -115
  325. package/typechain-types/IHashflow.ts +0 -159
  326. package/typechain-types/IKyberSwapAggregationRouterHelper.ts +0 -109
  327. package/typechain-types/ILiquidityGaugeFactory.ts +0 -99
  328. package/typechain-types/IMetaAggregationRouter.ts +0 -213
  329. package/typechain-types/IMetaAggregationRouterV2.ts +0 -221
  330. package/typechain-types/IMetaStablePool.ts +0 -619
  331. package/typechain-types/IMultihopRouterEthereum.ts +0 -209
  332. package/typechain-types/IPYieldTokenV2.ts +0 -915
  333. package/typechain-types/IRateProvider.ts +0 -81
  334. package/typechain-types/IRewardRouterV2.ts +0 -303
  335. package/typechain-types/ISwapAggregator.ts +0 -124
  336. package/typechain-types/IVault.ts +0 -410
  337. package/typechain-types/IVaultPriceFeed.ts +0 -114
  338. package/typechain-types/InterestManagerYTV2.ts +0 -124
  339. package/typechain-types/MetaStableMath.ts +0 -113
  340. package/typechain-types/MetaStablePreview.ts +0 -501
  341. package/typechain-types/Multicall2.ts +0 -437
  342. package/typechain-types/PendleAura3EthSY.ts +0 -1600
  343. package/typechain-types/PendleAuraBalancerStableLPSY.ts +0 -1523
  344. package/typechain-types/PendleAuraCbethWstethSY.ts +0 -1587
  345. package/typechain-types/PendleAuraWethRethSY.ts +0 -1549
  346. package/typechain-types/PendleAuraWethWstethSY.ts +0 -1523
  347. package/typechain-types/PendleGlpSY.ts +0 -1449
  348. package/typechain-types/PendleMulticall.ts +0 -110
  349. package/typechain-types/PendlePrincipalTokenV2.ts +0 -614
  350. package/typechain-types/PendleYieldContractFactoryV2.ts +0 -801
  351. package/typechain-types/PendleYieldTokenV2.ts +0 -1304
  352. package/typechain-types/SAPE.ts +0 -1395
  353. package/typechain-types/StEthHelper.ts +0 -107
  354. package/typechain-types/StablePreviewBase.ts +0 -217
  355. package/typechain-types/SwapAggregator.ts +0 -406
  356. package/typechain-types/factories/BribeDistributor__factory.ts +0 -303
  357. package/typechain-types/factories/ComposableStablePreview__factory.ts +0 -190
  358. package/typechain-types/factories/DistributorBase__factory.ts +0 -249
  359. package/typechain-types/factories/FeeDistributor__factory.ts +0 -339
  360. package/typechain-types/factories/GMXPreviewHelper__factory.ts +0 -78
  361. package/typechain-types/factories/I1inchAggregationRouterV5__factory.ts +0 -179
  362. package/typechain-types/factories/IAggregationExecutor__factory.ts +0 -84
  363. package/typechain-types/factories/IBalancerFees__factory.ts +0 -36
  364. package/typechain-types/factories/IBalancerStablePreview__factory.ts +0 -152
  365. package/typechain-types/factories/IBasePool__factory.ts +0 -340
  366. package/typechain-types/factories/IComposableStable__factory.ts +0 -482
  367. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +0 -407
  368. package/typechain-types/factories/IGMXVault__factory.ts +0 -320
  369. package/typechain-types/factories/IGauge__factory.ts +0 -70
  370. package/typechain-types/factories/IGlpManager__factory.ts +0 -55
  371. package/typechain-types/factories/IHashflow__factory.ts +0 -113
  372. package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +0 -56
  373. package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +0 -49
  374. package/typechain-types/factories/IMetaAggregationRouterV2__factory.ts +0 -234
  375. package/typechain-types/factories/IMetaAggregationRouter__factory.ts +0 -202
  376. package/typechain-types/factories/IMetaStablePool__factory.ts +0 -413
  377. package/typechain-types/factories/IMultihopRouterEthereum__factory.ts +0 -155
  378. package/typechain-types/factories/IPYieldTokenV2__factory.ts +0 -702
  379. package/typechain-types/factories/IRateProvider__factory.ts +0 -36
  380. package/typechain-types/factories/IRewardRouterV2__factory.ts +0 -180
  381. package/typechain-types/factories/ISwapAggregator__factory.ts +0 -66
  382. package/typechain-types/factories/IVaultPriceFeed__factory.ts +0 -60
  383. package/typechain-types/factories/IVault__factory.ts +0 -287
  384. package/typechain-types/factories/InterestManagerYTV2__factory.ts +0 -63
  385. package/typechain-types/factories/MetaStableMath__factory.ts +0 -93
  386. package/typechain-types/factories/MetaStablePreview__factory.ts +0 -375
  387. package/typechain-types/factories/Multicall2__factory.ts +0 -372
  388. package/typechain-types/factories/PendleAura3EthSY__factory.ts +0 -1326
  389. package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +0 -1190
  390. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +0 -1317
  391. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +0 -1291
  392. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +0 -1265
  393. package/typechain-types/factories/PendleGlpSY__factory.ts +0 -1255
  394. package/typechain-types/factories/PendleMulticall__factory.ts +0 -100
  395. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +0 -564
  396. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +0 -674
  397. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +0 -1122
  398. package/typechain-types/factories/SAPE__factory.ts +0 -1142
  399. package/typechain-types/factories/StEthHelper__factory.ts +0 -62
  400. package/typechain-types/factories/StablePreviewBase__factory.ts +0 -148
  401. package/typechain-types/factories/SwapAggregator__factory.ts +0 -309
@@ -1,339 +0,0 @@
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
- FeeDistributor,
8
- FeeDistributorInterface,
9
- } from "../FeeDistributor";
10
-
11
- const _abi = [
12
- {
13
- inputs: [],
14
- name: "FDEpochLengthMismatch",
15
- type: "error",
16
- },
17
- {
18
- inputs: [
19
- {
20
- internalType: "uint256",
21
- name: "epoch",
22
- type: "uint256",
23
- },
24
- {
25
- internalType: "uint256",
26
- name: "startTime",
27
- type: "uint256",
28
- },
29
- {
30
- internalType: "uint256",
31
- name: "currentWeekStart",
32
- type: "uint256",
33
- },
34
- ],
35
- name: "FDInvalidEpoch",
36
- type: "error",
37
- },
38
- {
39
- inputs: [],
40
- name: "FDNotAdmin",
41
- type: "error",
42
- },
43
- {
44
- anonymous: false,
45
- inputs: [
46
- {
47
- indexed: true,
48
- internalType: "address",
49
- name: "user",
50
- type: "address",
51
- },
52
- {
53
- indexed: true,
54
- internalType: "address",
55
- name: "rewardToken",
56
- type: "address",
57
- },
58
- {
59
- indexed: false,
60
- internalType: "uint256",
61
- name: "lastEpochClaimed",
62
- type: "uint256",
63
- },
64
- {
65
- indexed: false,
66
- internalType: "uint256",
67
- name: "totalReward",
68
- type: "uint256",
69
- },
70
- ],
71
- name: "ClaimReward",
72
- type: "event",
73
- },
74
- {
75
- anonymous: false,
76
- inputs: [
77
- {
78
- indexed: true,
79
- internalType: "uint256",
80
- name: "epoch",
81
- type: "uint256",
82
- },
83
- {
84
- indexed: false,
85
- internalType: "uint256",
86
- name: "incentive",
87
- type: "uint256",
88
- },
89
- ],
90
- name: "Fund",
91
- type: "event",
92
- },
93
- {
94
- anonymous: false,
95
- inputs: [
96
- {
97
- indexed: false,
98
- internalType: "uint8",
99
- name: "version",
100
- type: "uint8",
101
- },
102
- ],
103
- name: "Initialized",
104
- type: "event",
105
- },
106
- {
107
- inputs: [
108
- {
109
- internalType: "address",
110
- name: "user",
111
- type: "address",
112
- },
113
- ],
114
- name: "claimReward",
115
- outputs: [
116
- {
117
- internalType: "uint256",
118
- name: "amountRewardOut",
119
- type: "uint256",
120
- },
121
- ],
122
- stateMutability: "nonpayable",
123
- type: "function",
124
- },
125
- {
126
- inputs: [],
127
- name: "factory",
128
- outputs: [
129
- {
130
- internalType: "address",
131
- name: "",
132
- type: "address",
133
- },
134
- ],
135
- stateMutability: "view",
136
- type: "function",
137
- },
138
- {
139
- inputs: [
140
- {
141
- internalType: "uint256[]",
142
- name: "epochs",
143
- type: "uint256[]",
144
- },
145
- {
146
- internalType: "uint256[]",
147
- name: "rewardsForEpoch",
148
- type: "uint256[]",
149
- },
150
- ],
151
- name: "fund",
152
- outputs: [],
153
- stateMutability: "nonpayable",
154
- type: "function",
155
- },
156
- {
157
- inputs: [
158
- {
159
- internalType: "uint256",
160
- name: "",
161
- type: "uint256",
162
- },
163
- ],
164
- name: "incentivesForEpoch",
165
- outputs: [
166
- {
167
- internalType: "uint256",
168
- name: "",
169
- type: "uint256",
170
- },
171
- ],
172
- stateMutability: "view",
173
- type: "function",
174
- },
175
- {
176
- inputs: [
177
- {
178
- internalType: "address",
179
- name: "_pool",
180
- type: "address",
181
- },
182
- {
183
- internalType: "address",
184
- name: "_rewardToken",
185
- type: "address",
186
- },
187
- {
188
- internalType: "uint256",
189
- name: "_startEpoch",
190
- type: "uint256",
191
- },
192
- {
193
- internalType: "address",
194
- name: "_factory",
195
- type: "address",
196
- },
197
- ],
198
- name: "initialize",
199
- outputs: [],
200
- stateMutability: "nonpayable",
201
- type: "function",
202
- },
203
- {
204
- inputs: [],
205
- name: "lastFinishedEpoch",
206
- outputs: [
207
- {
208
- internalType: "uint256",
209
- name: "",
210
- type: "uint256",
211
- },
212
- ],
213
- stateMutability: "view",
214
- type: "function",
215
- },
216
- {
217
- inputs: [],
218
- name: "pool",
219
- outputs: [
220
- {
221
- internalType: "address",
222
- name: "",
223
- type: "address",
224
- },
225
- ],
226
- stateMutability: "view",
227
- type: "function",
228
- },
229
- {
230
- inputs: [],
231
- name: "rewardToken",
232
- outputs: [
233
- {
234
- internalType: "address",
235
- name: "",
236
- type: "address",
237
- },
238
- ],
239
- stateMutability: "view",
240
- type: "function",
241
- },
242
- {
243
- inputs: [
244
- {
245
- internalType: "uint256",
246
- name: "newLastFinishedEpoch",
247
- type: "uint256",
248
- },
249
- ],
250
- name: "setLastFinishedEpoch",
251
- outputs: [],
252
- stateMutability: "nonpayable",
253
- type: "function",
254
- },
255
- {
256
- inputs: [],
257
- name: "startEpoch",
258
- outputs: [
259
- {
260
- internalType: "uint256",
261
- name: "",
262
- type: "uint256",
263
- },
264
- ],
265
- stateMutability: "view",
266
- type: "function",
267
- },
268
- {
269
- inputs: [
270
- {
271
- internalType: "address",
272
- name: "",
273
- type: "address",
274
- },
275
- ],
276
- name: "userUnclaimedEpoch",
277
- outputs: [
278
- {
279
- internalType: "uint256",
280
- name: "",
281
- type: "uint256",
282
- },
283
- ],
284
- stateMutability: "view",
285
- type: "function",
286
- },
287
- ];
288
-
289
- const _bytecode =
290
- "0x608060405234801561001057600080fd5b50610e25806100206000396000f3fe608060405234801561001057600080fd5b50600436106100985760003560e01c8062bd0e4b1461009d57806316f0115b146100b257806321a56181146100e15780638413bb89146100f4578063a2c8b17714610122578063b9a53a841461012b578063be20309414610134578063c45a015514610147578063d279c1911461015a578063f4466f071461016d578063f7c618c11461018d575b600080fd5b6100b06100ab366004610af8565b6101a0565b005b6000546100cb906201000090046001600160a01b031681565b6040516100d89190610b63565b60405180910390f35b6100b06100ef366004610b77565b61030b565b610114610102366004610b77565b60056020526000908152604090205481565b6040519081526020016100d8565b61011460025481565b61011460065481565b6100b0610142366004610bac565b61039e565b6003546100cb906001600160a01b031681565b610114610168366004610bf9565b61050d565b61011461017b366004610bf9565b60046020526000908152604090205481565b6001546100cb906001600160a01b031681565b8281146101c057604051635174addf60e11b815260040160405180910390fd5b6000805b8281101561028b5760008686838181106101e0576101e0610c14565b9050602002013590506101f281610742565b600085858481811061020657610206610c14565b905060200201359050806005600084815260200190815260200160002060008282546102329190610c40565b909155505060405181815282907fe10598fa0628b6878df33dddd270fc68abc6bc5b8b864e07ac2d9313cf31043e9060200160405180910390a26102768185610c40565b935050508061028490610c53565b90506101c4565b506001546040516323b872dd60e01b81526001600160a01b03909116906323b872dd906102c090339030908690600401610c6c565b6020604051808303816000875af11580156102df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103039190610c90565b505050505050565b600354604051630935e01b60e21b81526001600160a01b03909116906324d7806c9061033b903390600401610b63565b602060405180830381865afa158015610358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037c9190610c90565b610399576040516360ce039160e01b815260040160405180910390fd5b600655565b600054610100900460ff16158080156103be5750600054600160ff909116105b806103df57506103cd306107ae565b1580156103df575060005460ff166001145b6104475760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff19166001179055801561046a576000805461ff0019166101001790555b600080546001600160a01b03808816620100000262010000600160b01b031990921691909117909155600180548683166001600160a01b031991821617909155600285905560038054928516929091169190911790558015610506576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b60035460008054604051633c771a6f60e01b81526001600160a01b038581166004830152620100009092048216602482015291921690633c771a6f90604401600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b50505050600061058960065490565b6001600160a01b0384166000908152600460205260409020549091508181036105b6575060009392505050565b806000036105d2576002546105cf9062093a8090610c40565b90505b8181116106b857600081815260056020526040808220546003548354925163c0aabb0d60e01b815291939283926001600160a01b039283169263c0aabb0d9261062c928c9262010000909204909116908990600401610c6c565b6040805180830381865afa158015610648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066c9190610cb2565b9150915081600003610680575050506105d2565b8061068b8484610cd6565b6106959190610d03565b61069f9087610c40565b95506106ae62093a8085610c40565b93505050506105d2565b6001600160a01b038416600090815260046020526040902082905582156106f0576001546106f0906001600160a01b031685856107bd565b60015460408051848152602081018690526001600160a01b03928316928716917ffe7c5fc89da23a432c91f264decb100ab9d08ab7b14650c3cdb9b6b4f84a60e9910160405180910390a35050919050565b600061074c610814565b6001600160801b0316905060025482108061076657508082115b80610777575061077582610824565b155b156107aa57600254604051637ee6bc2d60e01b81526004810184905260248101919091526044810182905260640161043e565b5050565b6001600160a01b03163b151590565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261080f90849061083a565b505050565b600061081f4261090c565b905090565b600061083362093a8083610d17565b1592915050565b600061088f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661092c9092919063ffffffff16565b80519091501561080f57808060200190518101906108ad9190610c90565b61080f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161043e565b600062093a8061091c8184610d2b565b6109269190610d51565b92915050565b606061093b8484600085610945565b90505b9392505050565b6060824710156109a65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161043e565b6109af856107ae565b6109fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161043e565b600080866001600160a01b03168587604051610a179190610da0565b60006040518083038185875af1925050503d8060008114610a54576040519150601f19603f3d011682016040523d82523d6000602084013e610a59565b606091505b5091509150610a69828286610a74565b979650505050505050565b60608315610a8357508161093e565b825115610a935782518084602001fd5b8160405162461bcd60e51b815260040161043e9190610dbc565b60008083601f840112610abf57600080fd5b5081356001600160401b03811115610ad657600080fd5b6020830191508360208260051b8501011115610af157600080fd5b9250929050565b60008060008060408587031215610b0e57600080fd5b84356001600160401b0380821115610b2557600080fd5b610b3188838901610aad565b90965094506020870135915080821115610b4a57600080fd5b50610b5787828801610aad565b95989497509550505050565b6001600160a01b0391909116815260200190565b600060208284031215610b8957600080fd5b5035919050565b80356001600160a01b0381168114610ba757600080fd5b919050565b60008060008060808587031215610bc257600080fd5b610bcb85610b90565b9350610bd960208601610b90565b925060408501359150610bee60608601610b90565b905092959194509250565b600060208284031215610c0b57600080fd5b61093e82610b90565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561092657610926610c2a565b600060018201610c6557610c65610c2a565b5060010190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215610ca257600080fd5b8151801515811461093e57600080fd5b60008060408385031215610cc557600080fd5b505080516020909101519092909150565b808202811582820484141761092657610926610c2a565b634e487b7160e01b600052601260045260246000fd5b600082610d1257610d12610ced565b500490565b600082610d2657610d26610ced565b500690565b60006001600160801b0383811680610d4557610d45610ced565b92169190910492915050565b6001600160801b03818116838216028082169190828114610d7457610d74610c2a565b505092915050565b60005b83811015610d97578181015183820152602001610d7f565b50506000910152565b60008251610db2818460208701610d7c565b9190910192915050565b6020815260008251806020840152610ddb816040850160208701610d7c565b601f01601f1916919091016040019291505056fea2646970667358221220c2966d5fdaf4a3caafd675d58bae4b1b1b40a6843e6356203d96050d443550c064736f6c63430008110033";
291
-
292
- type FeeDistributorConstructorParams =
293
- | [signer?: Signer]
294
- | ConstructorParameters<typeof ContractFactory>;
295
-
296
- const isSuperArgs = (
297
- xs: FeeDistributorConstructorParams
298
- ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
299
-
300
- export class FeeDistributor__factory extends ContractFactory {
301
- constructor(...args: FeeDistributorConstructorParams) {
302
- if (isSuperArgs(args)) {
303
- super(...args);
304
- } else {
305
- super(_abi, _bytecode, args[0]);
306
- }
307
- this.contractName = "FeeDistributor";
308
- }
309
-
310
- deploy(
311
- overrides?: Overrides & { from?: string | Promise<string> }
312
- ): Promise<FeeDistributor> {
313
- return super.deploy(overrides || {}) as Promise<FeeDistributor>;
314
- }
315
- getDeployTransaction(
316
- overrides?: Overrides & { from?: string | Promise<string> }
317
- ): TransactionRequest {
318
- return super.getDeployTransaction(overrides || {});
319
- }
320
- attach(address: string): FeeDistributor {
321
- return super.attach(address) as FeeDistributor;
322
- }
323
- connect(signer: Signer): FeeDistributor__factory {
324
- return super.connect(signer) as FeeDistributor__factory;
325
- }
326
- static readonly contractName: "FeeDistributor";
327
- public readonly contractName: "FeeDistributor";
328
- static readonly bytecode = _bytecode;
329
- static readonly abi = _abi;
330
- static createInterface(): FeeDistributorInterface {
331
- return new utils.Interface(_abi) as FeeDistributorInterface;
332
- }
333
- static connect(
334
- address: string,
335
- signerOrProvider: Signer | Provider
336
- ): FeeDistributor {
337
- return new Contract(address, _abi, signerOrProvider) as FeeDistributor;
338
- }
339
- }
@@ -1,78 +0,0 @@
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
- GMXPreviewHelper,
9
- GMXPreviewHelperInterface,
10
- } from "../GMXPreviewHelper";
11
-
12
- const _abi = [
13
- {
14
- inputs: [],
15
- name: "BASIS_POINTS_DIVISOR",
16
- outputs: [
17
- {
18
- internalType: "uint256",
19
- name: "",
20
- type: "uint256",
21
- },
22
- ],
23
- stateMutability: "view",
24
- type: "function",
25
- },
26
- {
27
- inputs: [],
28
- name: "PRICE_PRECISION",
29
- outputs: [
30
- {
31
- internalType: "uint256",
32
- name: "",
33
- type: "uint256",
34
- },
35
- ],
36
- stateMutability: "view",
37
- type: "function",
38
- },
39
- {
40
- inputs: [],
41
- name: "usdg",
42
- outputs: [
43
- {
44
- internalType: "address",
45
- name: "",
46
- type: "address",
47
- },
48
- ],
49
- stateMutability: "view",
50
- type: "function",
51
- },
52
- {
53
- inputs: [],
54
- name: "vault",
55
- outputs: [
56
- {
57
- internalType: "contract IGMXVault",
58
- name: "",
59
- type: "address",
60
- },
61
- ],
62
- stateMutability: "view",
63
- type: "function",
64
- },
65
- ];
66
-
67
- export class GMXPreviewHelper__factory {
68
- static readonly abi = _abi;
69
- static createInterface(): GMXPreviewHelperInterface {
70
- return new utils.Interface(_abi) as GMXPreviewHelperInterface;
71
- }
72
- static connect(
73
- address: string,
74
- signerOrProvider: Signer | Provider
75
- ): GMXPreviewHelper {
76
- return new Contract(address, _abi, signerOrProvider) as GMXPreviewHelper;
77
- }
78
- }
@@ -1,179 +0,0 @@
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
- I1inchAggregationRouterV5,
9
- I1inchAggregationRouterV5Interface,
10
- } from "../I1inchAggregationRouterV5";
11
-
12
- const _abi = [
13
- {
14
- inputs: [
15
- {
16
- internalType: "address",
17
- name: "executor",
18
- type: "address",
19
- },
20
- {
21
- components: [
22
- {
23
- internalType: "contract IERC20",
24
- name: "srcToken",
25
- type: "address",
26
- },
27
- {
28
- internalType: "contract IERC20",
29
- name: "dstToken",
30
- type: "address",
31
- },
32
- {
33
- internalType: "address payable",
34
- name: "srcReceiver",
35
- type: "address",
36
- },
37
- {
38
- internalType: "address payable",
39
- name: "dstReceiver",
40
- type: "address",
41
- },
42
- {
43
- internalType: "uint256",
44
- name: "amount",
45
- type: "uint256",
46
- },
47
- {
48
- internalType: "uint256",
49
- name: "minReturnAmount",
50
- type: "uint256",
51
- },
52
- {
53
- internalType: "uint256",
54
- name: "flags",
55
- type: "uint256",
56
- },
57
- ],
58
- internalType: "struct I1inchAggregationRouterV5.SwapDescription",
59
- name: "desc",
60
- type: "tuple",
61
- },
62
- {
63
- internalType: "bytes",
64
- name: "permit",
65
- type: "bytes",
66
- },
67
- {
68
- internalType: "bytes",
69
- name: "data",
70
- type: "bytes",
71
- },
72
- ],
73
- name: "swap",
74
- outputs: [
75
- {
76
- internalType: "uint256",
77
- name: "returnAmount",
78
- type: "uint256",
79
- },
80
- {
81
- internalType: "uint256",
82
- name: "spentAmount",
83
- type: "uint256",
84
- },
85
- ],
86
- stateMutability: "payable",
87
- type: "function",
88
- },
89
- {
90
- inputs: [
91
- {
92
- internalType: "address payable",
93
- name: "recipient",
94
- type: "address",
95
- },
96
- {
97
- internalType: "uint256",
98
- name: "amount",
99
- type: "uint256",
100
- },
101
- {
102
- internalType: "uint256",
103
- name: "minReturn",
104
- type: "uint256",
105
- },
106
- {
107
- internalType: "uint256[]",
108
- name: "pools",
109
- type: "uint256[]",
110
- },
111
- ],
112
- name: "uniswapV3SwapTo",
113
- outputs: [
114
- {
115
- internalType: "uint256",
116
- name: "returnAmount",
117
- type: "uint256",
118
- },
119
- ],
120
- stateMutability: "payable",
121
- type: "function",
122
- },
123
- {
124
- inputs: [
125
- {
126
- internalType: "address payable",
127
- name: "recipient",
128
- type: "address",
129
- },
130
- {
131
- internalType: "address",
132
- name: "srcToken",
133
- type: "address",
134
- },
135
- {
136
- internalType: "uint256",
137
- name: "amount",
138
- type: "uint256",
139
- },
140
- {
141
- internalType: "uint256",
142
- name: "minReturn",
143
- type: "uint256",
144
- },
145
- {
146
- internalType: "uint256[]",
147
- name: "pools",
148
- type: "uint256[]",
149
- },
150
- ],
151
- name: "unoswapTo",
152
- outputs: [
153
- {
154
- internalType: "uint256",
155
- name: "returnAmount",
156
- type: "uint256",
157
- },
158
- ],
159
- stateMutability: "payable",
160
- type: "function",
161
- },
162
- ];
163
-
164
- export class I1inchAggregationRouterV5__factory {
165
- static readonly abi = _abi;
166
- static createInterface(): I1inchAggregationRouterV5Interface {
167
- return new utils.Interface(_abi) as I1inchAggregationRouterV5Interface;
168
- }
169
- static connect(
170
- address: string,
171
- signerOrProvider: Signer | Provider
172
- ): I1inchAggregationRouterV5 {
173
- return new Contract(
174
- address,
175
- _abi,
176
- signerOrProvider
177
- ) as I1inchAggregationRouterV5;
178
- }
179
- }
@@ -1,84 +0,0 @@
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
- IAggregationExecutor,
9
- IAggregationExecutorInterface,
10
- } from "../IAggregationExecutor";
11
-
12
- const _abi = [
13
- {
14
- inputs: [
15
- {
16
- internalType: "bytes",
17
- name: "data",
18
- type: "bytes",
19
- },
20
- ],
21
- name: "callBytes",
22
- outputs: [],
23
- stateMutability: "payable",
24
- type: "function",
25
- },
26
- {
27
- inputs: [
28
- {
29
- internalType: "address",
30
- name: "tokenIn",
31
- type: "address",
32
- },
33
- {
34
- internalType: "address",
35
- name: "tokenOut",
36
- type: "address",
37
- },
38
- {
39
- internalType: "address",
40
- name: "to",
41
- type: "address",
42
- },
43
- {
44
- internalType: "bytes",
45
- name: "destTokenFeeData",
46
- type: "bytes",
47
- },
48
- ],
49
- name: "finalTransactionProcessing",
50
- outputs: [],
51
- stateMutability: "nonpayable",
52
- type: "function",
53
- },
54
- {
55
- inputs: [
56
- {
57
- internalType: "bytes",
58
- name: "data",
59
- type: "bytes",
60
- },
61
- ],
62
- name: "swapSingleSequence",
63
- outputs: [],
64
- stateMutability: "nonpayable",
65
- type: "function",
66
- },
67
- ];
68
-
69
- export class IAggregationExecutor__factory {
70
- static readonly abi = _abi;
71
- static createInterface(): IAggregationExecutorInterface {
72
- return new utils.Interface(_abi) as IAggregationExecutorInterface;
73
- }
74
- static connect(
75
- address: string,
76
- signerOrProvider: Signer | Provider
77
- ): IAggregationExecutor {
78
- return new Contract(
79
- address,
80
- _abi,
81
- signerOrProvider
82
- ) as IAggregationExecutor;
83
- }
84
- }