@pendle/core-v2 0.6.4 → 0.6.5

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 (415) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.json +0 -13
  3. package/build/artifacts/contracts/SuperComposableYield/SCYUtils.sol/SCYUtils.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/implementations/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  5. package/build/artifacts/contracts/SuperComposableYield/implementations/RewardManager.sol/RewardManager.dbg.json +1 -1
  6. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  7. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.json +0 -13
  8. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  9. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +0 -13
  10. package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.dbg.json +1 -1
  11. package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.json +1 -1
  12. package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  13. package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.json +51 -56
  14. package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  15. package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.json +4 -30
  16. package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.dbg.json +4 -0
  17. package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.json +439 -0
  18. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  19. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
  20. package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +2 -20
  22. package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.json +16 -21
  25. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.json +16 -21
  27. package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.json +18 -23
  29. package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.json +17 -22
  31. package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +7 -7
  33. package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.json +9 -9
  35. package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.json +12 -628
  37. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +3 -3
  39. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +92 -128
  41. package/build/artifacts/contracts/core/actions/ActionRedeem.sol/PendleRouterRedeemUpg.dbg.json +4 -0
  42. package/build/artifacts/contracts/core/actions/ActionRedeem.sol/{ActionRedeem.json → PendleRouterRedeemUpg.json} +3 -3
  43. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +69 -105
  45. package/build/artifacts/contracts/core/actions/base/ActionSCYAndOTBase.sol/ActionSCYAndOTBase.dbg.json +4 -0
  46. package/build/artifacts/contracts/core/actions/base/{ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json → ActionSCYAndOTBase.sol/ActionSCYAndOTBase.json} +2 -2
  47. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYOBase.sol/ActionSCYAndYOBase.dbg.json +4 -0
  48. package/build/artifacts/contracts/core/actions/base/{ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json → ActionSCYAndYOBase.sol/ActionSCYAndYOBase.json} +14 -14
  49. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +12 -12
  51. package/build/artifacts/contracts/core/actions/base/ActionType.sol/ActionType.dbg.json +1 -1
  52. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  53. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  54. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  55. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  56. package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +1 -1
  57. package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +1 -1
  58. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
  59. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +78 -114
  60. package/build/artifacts/contracts/interfaces/IPActionRedeem.sol/IPActionRedeem.dbg.json +1 -1
  61. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
  62. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +54 -90
  63. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +138 -210
  65. package/build/artifacts/contracts/interfaces/IPBaseToken.sol/IPBaseToken.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +14 -14
  69. package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.json +2 -2
  71. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPOwnershipToken.sol/IPOwnershipToken.dbg.json +4 -0
  76. package/build/artifacts/contracts/interfaces/{IPPrincipalToken.sol/IPPrincipalToken.json → IPOwnershipToken.sol/IPOwnershipToken.json} +2 -2
  77. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +10 -626
  80. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.json +3 -3
  82. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +5 -5
  84. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  91. package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.dbg.json +1 -1
  92. package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.json +2 -2
  93. package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.dbg.json +1 -1
  94. package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.json +2 -2
  95. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  96. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  97. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
  98. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
  99. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +2 -2
  100. package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.dbg.json +1 -1
  101. package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.json +2 -2
  102. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  103. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
  104. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  105. package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
  106. package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
  107. package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.json +3 -3
  108. package/build/artifacts/contracts/periphery/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +1 -1
  109. package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
  110. package/deployments/kovan.json +21 -24
  111. package/package.json +1 -1
  112. package/typechain-types/ActionCallback.ts +5 -5
  113. package/typechain-types/ActionCore.ts +280 -232
  114. package/typechain-types/{ActionSCYAndPYBase.ts → ActionSCYAndYOBase.ts} +54 -54
  115. package/typechain-types/ActionSCYAndYTBase.ts +49 -49
  116. package/typechain-types/ActionYT.ts +140 -92
  117. package/typechain-types/AggregatorV2V3Interface.ts +380 -0
  118. package/typechain-types/BenqiChainlinkOracle.ts +362 -0
  119. package/typechain-types/BoringOwnable.ts +194 -0
  120. package/typechain-types/BoringOwnableData.ts +100 -0
  121. package/typechain-types/BoringOwnableUpg.ts +194 -0
  122. package/typechain-types/BoringOwnableUpgData.ts +100 -0
  123. package/typechain-types/Comptroller.ts +2860 -0
  124. package/typechain-types/ComptrollerErrorReporter.ts +70 -0
  125. package/typechain-types/ComptrollerInterface.ts +881 -0
  126. package/typechain-types/ComptrollerVXStorage.ts +781 -0
  127. package/typechain-types/CrosschainContract.ts +113 -0
  128. package/typechain-types/CrosschainReceiver.ts +347 -0
  129. package/typechain-types/CrosschainSender.ts +210 -0
  130. package/typechain-types/EIP20Interface.ts +337 -0
  131. package/typechain-types/EIP20NonStandardInterface.ts +298 -0
  132. package/typechain-types/ERC20Burnable.ts +473 -0
  133. package/typechain-types/ERC20Locker.ts +91 -0
  134. package/typechain-types/ERC20Premined.ts +473 -0
  135. package/typechain-types/ERC20PresetFixedSupply.ts +473 -0
  136. package/typechain-types/EpochController.ts +195 -0
  137. package/typechain-types/FundKeeper.ts +347 -0
  138. package/typechain-types/GaugeTypeControllerAbstract.ts +546 -0
  139. package/typechain-types/GaugeTypeControllerCrosschain.ts +733 -0
  140. package/typechain-types/GaugeTypeControllerMainchain.ts +604 -0
  141. package/typechain-types/IGaugeController.ts +99 -0
  142. package/typechain-types/ILiquidYieldToken.ts +639 -0
  143. package/typechain-types/ILiquidYieldTokenWrap.ts +790 -0
  144. package/typechain-types/IMessageBus.ts +543 -0
  145. package/typechain-types/IMessageReceiverApp.ts +110 -0
  146. package/typechain-types/IPActionCore.ts +231 -183
  147. package/typechain-types/IPActionYT.ts +91 -43
  148. package/typechain-types/IPAllAction.ts +322 -204
  149. package/typechain-types/IPFlashCallback.ts +115 -0
  150. package/typechain-types/IPLiquidYieldToken.ts +641 -0
  151. package/typechain-types/IPMarket.ts +55 -55
  152. package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
  153. package/typechain-types/IPMarketCallback.ts +107 -0
  154. package/typechain-types/IPMarketFactory.ts +3 -3
  155. package/typechain-types/IPMarketSwapCallback.ts +5 -5
  156. package/typechain-types/{IPPrincipalToken.ts → IPOwnershipToken.ts} +5 -5
  157. package/typechain-types/IPRouterCore.ts +769 -0
  158. package/typechain-types/IPRouterRedeem.ts +155 -0
  159. package/typechain-types/IPRouterStatic.ts +49 -529
  160. package/typechain-types/IPRouterYT.ts +489 -0
  161. package/typechain-types/IPYieldContractFactory.ts +19 -19
  162. package/typechain-types/IPYieldToken.ts +29 -29
  163. package/typechain-types/IPermissionsV2.ts +87 -0
  164. package/typechain-types/IRainbowBridge.ts +91 -0
  165. package/typechain-types/ISCYRewardIndex.ts +695 -0
  166. package/typechain-types/ISuperComposableYield.ts +0 -13
  167. package/typechain-types/IVEPendleToken.ts +121 -0
  168. package/typechain-types/IXPendle.ts +114 -0
  169. package/typechain-types/InterestRateModel.ts +178 -0
  170. package/typechain-types/JumpRateModel.ts +347 -0
  171. package/typechain-types/LYTBase.ts +721 -0
  172. package/typechain-types/LYTBaseWithRewards.ts +806 -0
  173. package/typechain-types/LYTWrap.ts +872 -0
  174. package/typechain-types/LYTWrapWithRewards.ts +979 -0
  175. package/typechain-types/LiquidityMining.ts +468 -0
  176. package/typechain-types/Maximillion.ts +145 -0
  177. package/typechain-types/Ownable.ts +160 -0
  178. package/typechain-types/PendleAaveV3LYT.ts +808 -0
  179. package/typechain-types/PendleAaveV3SCY.ts +0 -13
  180. package/typechain-types/PendleBaseToken.ts +1 -1
  181. package/typechain-types/PendleBenQiErc20LYT.ts +901 -0
  182. package/typechain-types/PendleBenQiErc20SCY.ts +20 -14
  183. package/typechain-types/PendleBenqiLiquidYieldToken.ts +1013 -0
  184. package/typechain-types/PendleBtrflyLYT.ts +781 -0
  185. package/typechain-types/PendleBtrflyScy.ts +20 -14
  186. package/typechain-types/PendleGauge.ts +469 -0
  187. package/typechain-types/PendleGovernanceManager.ts +5 -5
  188. package/typechain-types/PendleJoeSwapHelper.ts +92 -0
  189. package/typechain-types/PendleLYTMockYT.ts +894 -0
  190. package/typechain-types/PendleLiquidYieldToken.ts +814 -0
  191. package/typechain-types/PendleLiquidYieldTokenBase.ts +941 -0
  192. package/typechain-types/PendleMarket.ts +105 -102
  193. package/typechain-types/PendleMarketFactory.ts +8 -48
  194. package/typechain-types/{PendlePrincipalToken.ts → PendleOwnershipToken.ts} +6 -15
  195. package/typechain-types/PendleRouter01.ts +184 -0
  196. package/typechain-types/PendleRouter02.ts +564 -0
  197. package/typechain-types/PendleRouter03.ts +224 -0
  198. package/typechain-types/PendleRouterBase.ts +126 -0
  199. package/typechain-types/PendleRouterCore.ts +328 -0
  200. package/typechain-types/PendleRouterCoreUpg.ts +798 -0
  201. package/typechain-types/PendleRouterLytAndForge.ts +331 -0
  202. package/typechain-types/PendleRouterMarketBase.ts +82 -0
  203. package/typechain-types/PendleRouterOT.ts +463 -0
  204. package/typechain-types/PendleRouterProxy.ts +335 -0
  205. package/typechain-types/PendleRouterRawTokenOT.ts +865 -0
  206. package/typechain-types/PendleRouterRawTokenYT.ts +520 -0
  207. package/typechain-types/{ActionRedeem.ts → PendleRouterRedeemUpg.ts} +5 -5
  208. package/typechain-types/PendleRouterSCYAndForgeBaseUpg.ts +98 -0
  209. package/typechain-types/PendleRouterStaticUpg.ts +399 -0
  210. package/typechain-types/PendleRouterYT.ts +227 -0
  211. package/typechain-types/PendleRouterYTBaseUpg.ts +134 -0
  212. package/typechain-types/PendleRouterYTUpg.ts +537 -0
  213. package/typechain-types/PendleStEthSCY.ts +23 -15
  214. package/typechain-types/PendleYTLYTBenqi.ts +863 -0
  215. package/typechain-types/PendleYearnVaultLYT.ts +723 -0
  216. package/typechain-types/PendleYearnVaultScy.ts +23 -15
  217. package/typechain-types/PendleYieldContractFactory.ts +28 -28
  218. package/typechain-types/PendleYieldToken.ts +30 -30
  219. package/typechain-types/PermissionsV2.ts +87 -0
  220. package/typechain-types/PermlessAbstract.ts +57 -0
  221. package/typechain-types/PglStakingContract.ts +662 -0
  222. package/typechain-types/PglStakingContractProxy.ts +256 -0
  223. package/typechain-types/PglStakingContractProxyStorage.ts +136 -0
  224. package/typechain-types/PglStakingContractStorage.ts +397 -0
  225. package/typechain-types/PriceOracle.ts +116 -0
  226. package/typechain-types/ProtocolFakeUser.ts +105 -0
  227. package/typechain-types/Qi.ts +760 -0
  228. package/typechain-types/QiAvax.ts +1720 -0
  229. package/typechain-types/QiDelegateInterface.ts +145 -0
  230. package/typechain-types/QiDelegationStorage.ts +82 -0
  231. package/typechain-types/QiDelegatorInterface.ts +149 -0
  232. package/typechain-types/QiErc20.ts +1846 -0
  233. package/typechain-types/QiErc20Delegate.ts +1926 -0
  234. package/typechain-types/QiErc20Delegator.ts +1885 -0
  235. package/typechain-types/QiErc20Interface.ts +382 -0
  236. package/typechain-types/QiErc20Storage.ts +79 -0
  237. package/typechain-types/QiToken.ts +1475 -0
  238. package/typechain-types/QiTokenInterface.ts +1419 -0
  239. package/typechain-types/QiTokenSaleDistributor.ts +771 -0
  240. package/typechain-types/QiTokenSaleDistributorProxy.ts +256 -0
  241. package/typechain-types/QiTokenSaleDistributorProxyStorage.ts +136 -0
  242. package/typechain-types/QiTokenSaleDistributorStorage.ts +401 -0
  243. package/typechain-types/QiTokenStorage.ts +311 -0
  244. package/typechain-types/ReentrancyGuard.ts +52 -0
  245. package/typechain-types/RouterStatic.ts +49 -529
  246. package/typechain-types/SCYBase.ts +0 -13
  247. package/typechain-types/SCYBaseWithRewards.ts +0 -13
  248. package/typechain-types/SingleGaugeTypeController.ts +478 -0
  249. package/typechain-types/TokenErrorReporter.ts +70 -0
  250. package/typechain-types/Unitroller.ts +356 -0
  251. package/typechain-types/UnitrollerAdminStorage.ts +143 -0
  252. package/typechain-types/VePendle.ts +1156 -0
  253. package/typechain-types/VePendleCrosschain.ts +969 -0
  254. package/typechain-types/VePendleToken.ts +688 -0
  255. package/typechain-types/VotingController.ts +883 -0
  256. package/typechain-types/WETH9.ts +414 -0
  257. package/typechain-types/WhitePaperInterestRateModel.ts +304 -0
  258. package/typechain-types/XPendle.ts +618 -0
  259. package/typechain-types/factories/ActionCallback__factory.ts +2 -2
  260. package/typechain-types/factories/ActionCore__factory.ts +91 -127
  261. package/typechain-types/factories/{ActionSCYAndPYBase__factory.ts → ActionSCYAndYOBase__factory.ts} +20 -20
  262. package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +12 -12
  263. package/typechain-types/factories/ActionYT__factory.ts +68 -104
  264. package/typechain-types/factories/AggregatorV2V3Interface__factory.ts +288 -0
  265. package/typechain-types/factories/BenqiChainlinkOracle__factory.ts +311 -0
  266. package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
  267. package/typechain-types/factories/BoringOwnableUpgData__factory.ts +94 -0
  268. package/typechain-types/factories/BoringOwnableUpg__factory.ts +139 -0
  269. package/typechain-types/factories/BoringOwnable__factory.ts +149 -0
  270. package/typechain-types/factories/ComptrollerErrorReporter__factory.ts +93 -0
  271. package/typechain-types/factories/ComptrollerInterface__factory.ts +595 -0
  272. package/typechain-types/factories/ComptrollerVXStorage__factory.ts +610 -0
  273. package/typechain-types/factories/Comptroller__factory.ts +2189 -0
  274. package/typechain-types/factories/CrosschainContract__factory.ts +52 -0
  275. package/typechain-types/factories/CrosschainReceiver__factory.ts +187 -0
  276. package/typechain-types/factories/CrosschainSender__factory.ts +104 -0
  277. package/typechain-types/factories/EIP20Interface__factory.ts +248 -0
  278. package/typechain-types/factories/EIP20NonStandardInterface__factory.ts +213 -0
  279. package/typechain-types/factories/ERC20Burnable__factory.ts +324 -0
  280. package/typechain-types/factories/ERC20Locker__factory.ts +73 -0
  281. package/typechain-types/factories/ERC20Premined__factory.ts +393 -0
  282. package/typechain-types/factories/ERC20PresetFixedSupply__factory.ts +422 -0
  283. package/typechain-types/factories/EpochController__factory.ts +170 -0
  284. package/typechain-types/factories/FundKeeper__factory.ts +212 -0
  285. package/typechain-types/factories/GaugeTypeControllerAbstract__factory.ts +387 -0
  286. package/typechain-types/factories/GaugeTypeControllerCrosschain__factory.ts +522 -0
  287. package/typechain-types/factories/GaugeTypeControllerMainchain__factory.ts +431 -0
  288. package/typechain-types/factories/IGaugeController__factory.ts +45 -0
  289. package/typechain-types/factories/ILiquidYieldTokenWrap__factory.ts +533 -0
  290. package/typechain-types/factories/ILiquidYieldToken__factory.ts +429 -0
  291. package/typechain-types/factories/IMessageBus__factory.ts +396 -0
  292. package/typechain-types/factories/IMessageReceiverApp__factory.ts +55 -0
  293. package/typechain-types/factories/IPActionCore__factory.ts +78 -114
  294. package/typechain-types/factories/IPActionYT__factory.ts +54 -90
  295. package/typechain-types/factories/IPAllAction__factory.ts +138 -210
  296. package/typechain-types/factories/IPFlashCallback__factory.ts +49 -0
  297. package/typechain-types/factories/IPLiquidYieldToken__factory.ts +433 -0
  298. package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
  299. package/typechain-types/factories/IPMarketCallback__factory.ts +55 -0
  300. package/typechain-types/factories/IPMarketFactory__factory.ts +1 -1
  301. package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
  302. package/typechain-types/factories/IPMarket__factory.ts +14 -14
  303. package/typechain-types/factories/{IPPrincipalToken__factory.ts → IPOwnershipToken__factory.ts} +8 -8
  304. package/typechain-types/factories/IPRouterCore__factory.ts +531 -0
  305. package/typechain-types/factories/IPRouterRedeem__factory.ts +72 -0
  306. package/typechain-types/factories/IPRouterStatic__factory.ts +10 -626
  307. package/typechain-types/factories/IPRouterYT__factory.ts +305 -0
  308. package/typechain-types/factories/IPYieldContractFactory__factory.ts +3 -3
  309. package/typechain-types/factories/IPYieldToken__factory.ts +5 -5
  310. package/typechain-types/factories/IPermissionsV2__factory.ts +39 -0
  311. package/typechain-types/factories/IRainbowBridge__factory.ts +76 -0
  312. package/typechain-types/factories/ISCYRewardIndex__factory.ts +465 -0
  313. package/typechain-types/factories/ISuperComposableYield__factory.ts +0 -13
  314. package/typechain-types/factories/IVEPendleToken__factory.ts +71 -0
  315. package/typechain-types/factories/IXPendle__factory.ts +61 -0
  316. package/typechain-types/factories/InterestRateModel__factory.ts +108 -0
  317. package/typechain-types/factories/JumpRateModel__factory.ts +334 -0
  318. package/typechain-types/factories/LYTBaseWithRewards__factory.ts +530 -0
  319. package/typechain-types/factories/LYTBase__factory.ts +474 -0
  320. package/typechain-types/factories/LYTWrapWithRewards__factory.ts +643 -0
  321. package/typechain-types/factories/LYTWrap__factory.ts +574 -0
  322. package/typechain-types/factories/LiquidityMining__factory.ts +367 -0
  323. package/typechain-types/factories/Maximillion__factory.ts +125 -0
  324. package/typechain-types/factories/Ownable__factory.ts +75 -0
  325. package/typechain-types/factories/PendleAaveV3LYT__factory.ts +657 -0
  326. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -24
  327. package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
  328. package/typechain-types/factories/PendleBenQiErc20LYT__factory.ts +748 -0
  329. package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +15 -25
  330. package/typechain-types/factories/PendleBenqiLiquidYieldToken__factory.ts +785 -0
  331. package/typechain-types/factories/PendleBtrflyLYT__factory.ts +647 -0
  332. package/typechain-types/factories/PendleBtrflyScy__factory.ts +15 -25
  333. package/typechain-types/factories/PendleGauge__factory.ts +383 -0
  334. package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
  335. package/typechain-types/factories/PendleJoeSwapHelper__factory.ts +52 -0
  336. package/typechain-types/factories/PendleLYTMockYT__factory.ts +732 -0
  337. package/typechain-types/factories/PendleLiquidYieldTokenBase__factory.ts +603 -0
  338. package/typechain-types/factories/PendleLiquidYieldToken__factory.ts +510 -0
  339. package/typechain-types/factories/PendleMarketFactory__factory.ts +3 -29
  340. package/typechain-types/factories/PendleMarket__factory.ts +54 -59
  341. package/typechain-types/factories/PendleOwnershipToken__factory.ts +527 -0
  342. package/typechain-types/factories/PendleRouter01__factory.ts +152 -0
  343. package/typechain-types/factories/PendleRouter02__factory.ts +438 -0
  344. package/typechain-types/factories/PendleRouter03__factory.ts +190 -0
  345. package/typechain-types/factories/PendleRouterBase__factory.ts +68 -0
  346. package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +635 -0
  347. package/typechain-types/factories/PendleRouterCore__factory.ts +268 -0
  348. package/typechain-types/factories/PendleRouterLytAndForge__factory.ts +294 -0
  349. package/typechain-types/factories/PendleRouterMarketBase__factory.ts +43 -0
  350. package/typechain-types/factories/PendleRouterOT__factory.ts +372 -0
  351. package/typechain-types/factories/PendleRouterProxy__factory.ts +285 -0
  352. package/typechain-types/factories/PendleRouterRawTokenOT__factory.ts +697 -0
  353. package/typechain-types/factories/PendleRouterRawTokenYT__factory.ts +431 -0
  354. package/typechain-types/factories/{ActionRedeem__factory.ts → PendleRouterRedeemUpg__factory.ts} +26 -19
  355. package/typechain-types/factories/PendleRouterSCYAndForgeBaseUpg__factory.ts +56 -0
  356. package/typechain-types/factories/PendleRouterStaticUpg__factory.ts +315 -0
  357. package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +66 -0
  358. package/typechain-types/factories/PendleRouterYTUpg__factory.ts +422 -0
  359. package/typechain-types/factories/PendleRouterYT__factory.ts +184 -0
  360. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  361. package/typechain-types/factories/PendleStEthSCY__factory.ts +17 -27
  362. package/typechain-types/factories/PendleYTLYTBenqi__factory.ts +713 -0
  363. package/typechain-types/factories/PendleYearnVaultLYT__factory.ts +586 -0
  364. package/typechain-types/factories/PendleYearnVaultScy__factory.ts +16 -26
  365. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +6 -6
  366. package/typechain-types/factories/PendleYieldToken__factory.ts +12 -12
  367. package/typechain-types/factories/PermissionsV2__factory.ts +36 -0
  368. package/typechain-types/factories/PermlessAbstract__factory.ts +30 -0
  369. package/typechain-types/factories/PglStakingContractProxyStorage__factory.ts +130 -0
  370. package/typechain-types/factories/PglStakingContractProxy__factory.ts +187 -0
  371. package/typechain-types/factories/PglStakingContractStorage__factory.ts +309 -0
  372. package/typechain-types/factories/PglStakingContract__factory.ts +446 -0
  373. package/typechain-types/factories/PriceOracle__factory.ts +59 -0
  374. package/typechain-types/factories/ProtocolFakeUser__factory.ts +87 -0
  375. package/typechain-types/factories/QiAvax__factory.ts +1471 -0
  376. package/typechain-types/factories/QiDelegateInterface__factory.ts +65 -0
  377. package/typechain-types/factories/QiDelegationStorage__factory.ts +79 -0
  378. package/typechain-types/factories/QiDelegatorInterface__factory.ts +89 -0
  379. package/typechain-types/factories/QiErc20Delegate__factory.ts +1563 -0
  380. package/typechain-types/factories/QiErc20Delegator__factory.ts +1648 -0
  381. package/typechain-types/factories/QiErc20Interface__factory.ts +239 -0
  382. package/typechain-types/factories/QiErc20Storage__factory.ts +79 -0
  383. package/typechain-types/factories/QiErc20__factory.ts +1515 -0
  384. package/typechain-types/factories/QiTokenInterface__factory.ts +1182 -0
  385. package/typechain-types/factories/QiTokenSaleDistributorProxyStorage__factory.ts +124 -0
  386. package/typechain-types/factories/QiTokenSaleDistributorProxy__factory.ts +171 -0
  387. package/typechain-types/factories/QiTokenSaleDistributorStorage__factory.ts +289 -0
  388. package/typechain-types/factories/QiTokenSaleDistributor__factory.ts +480 -0
  389. package/typechain-types/factories/QiTokenStorage__factory.ts +274 -0
  390. package/typechain-types/factories/QiToken__factory.ts +1219 -0
  391. package/typechain-types/factories/Qi__factory.ts +648 -0
  392. package/typechain-types/factories/ReentrancyGuard__factory.ts +69 -0
  393. package/typechain-types/factories/RouterStatic__factory.ts +11 -627
  394. package/typechain-types/factories/SCYBaseWithRewards__factory.ts +0 -13
  395. package/typechain-types/factories/SCYBase__factory.ts +0 -13
  396. package/typechain-types/factories/SingleGaugeTypeController__factory.ts +341 -0
  397. package/typechain-types/factories/TokenErrorReporter__factory.ts +89 -0
  398. package/typechain-types/factories/UnitrollerAdminStorage__factory.ts +128 -0
  399. package/typechain-types/factories/Unitroller__factory.ts +305 -0
  400. package/typechain-types/factories/VePendleCrosschain__factory.ts +727 -0
  401. package/typechain-types/factories/VePendleToken__factory.ts +494 -0
  402. package/typechain-types/factories/VePendle__factory.ts +800 -0
  403. package/typechain-types/factories/VotingController__factory.ts +610 -0
  404. package/typechain-types/factories/WETH9__factory.ts +342 -0
  405. package/typechain-types/factories/WhitePaperInterestRateModel__factory.ts +281 -0
  406. package/typechain-types/factories/XPendle__factory.ts +473 -0
  407. package/typechain-types/hardhat.d.ts +20 -20
  408. package/typechain-types/index.ts +8 -8
  409. package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +0 -4
  410. package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.json +0 -452
  411. package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.dbg.json +0 -4
  412. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +0 -4
  413. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +0 -4
  414. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +0 -4
  415. package/typechain-types/factories/PendlePrincipalToken__factory.ts +0 -540
@@ -0,0 +1,727 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ Signer,
6
+ utils,
7
+ Contract,
8
+ ContractFactory,
9
+ Overrides,
10
+ BigNumberish,
11
+ } from "ethers";
12
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
13
+ import type {
14
+ VePendleCrosschain,
15
+ VePendleCrosschainInterface,
16
+ } from "../VePendleCrosschain";
17
+
18
+ const _abi = [
19
+ {
20
+ inputs: [
21
+ {
22
+ internalType: "contract IERC20",
23
+ name: "_pendle",
24
+ type: "address",
25
+ },
26
+ {
27
+ internalType: "uint256",
28
+ name: "_startTime",
29
+ type: "uint256",
30
+ },
31
+ ],
32
+ stateMutability: "nonpayable",
33
+ type: "constructor",
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [
38
+ {
39
+ indexed: true,
40
+ internalType: "address",
41
+ name: "previousOwner",
42
+ type: "address",
43
+ },
44
+ {
45
+ indexed: true,
46
+ internalType: "address",
47
+ name: "newOwner",
48
+ type: "address",
49
+ },
50
+ ],
51
+ name: "OwnershipTransferred",
52
+ type: "event",
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: "EPOCH_DURATION",
57
+ outputs: [
58
+ {
59
+ internalType: "uint256",
60
+ name: "",
61
+ type: "uint256",
62
+ },
63
+ ],
64
+ stateMutability: "view",
65
+ type: "function",
66
+ },
67
+ {
68
+ inputs: [],
69
+ name: "ZERO_ADDRESS",
70
+ outputs: [
71
+ {
72
+ internalType: "address",
73
+ name: "",
74
+ type: "address",
75
+ },
76
+ ],
77
+ stateMutability: "view",
78
+ type: "function",
79
+ },
80
+ {
81
+ inputs: [
82
+ {
83
+ internalType: "address",
84
+ name: "user",
85
+ type: "address",
86
+ },
87
+ ],
88
+ name: "acceptDelegation",
89
+ outputs: [],
90
+ stateMutability: "nonpayable",
91
+ type: "function",
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ internalType: "address",
97
+ name: "user",
98
+ type: "address",
99
+ },
100
+ ],
101
+ name: "balanceOf",
102
+ outputs: [
103
+ {
104
+ internalType: "uint256",
105
+ name: "",
106
+ type: "uint256",
107
+ },
108
+ ],
109
+ stateMutability: "view",
110
+ type: "function",
111
+ },
112
+ {
113
+ inputs: [
114
+ {
115
+ internalType: "address",
116
+ name: "user",
117
+ type: "address",
118
+ },
119
+ ],
120
+ name: "delegateTo",
121
+ outputs: [],
122
+ stateMutability: "nonpayable",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [
127
+ {
128
+ internalType: "address",
129
+ name: "",
130
+ type: "address",
131
+ },
132
+ ],
133
+ name: "delegateeOf",
134
+ outputs: [
135
+ {
136
+ internalType: "address",
137
+ name: "",
138
+ type: "address",
139
+ },
140
+ ],
141
+ stateMutability: "view",
142
+ type: "function",
143
+ },
144
+ {
145
+ inputs: [
146
+ {
147
+ internalType: "address",
148
+ name: "",
149
+ type: "address",
150
+ },
151
+ ],
152
+ name: "delegatorOf",
153
+ outputs: [
154
+ {
155
+ internalType: "address",
156
+ name: "",
157
+ type: "address",
158
+ },
159
+ ],
160
+ stateMutability: "view",
161
+ type: "function",
162
+ },
163
+ {
164
+ inputs: [
165
+ {
166
+ internalType: "address",
167
+ name: "_sender",
168
+ type: "address",
169
+ },
170
+ {
171
+ internalType: "uint64",
172
+ name: "_srcChainId",
173
+ type: "uint64",
174
+ },
175
+ {
176
+ internalType: "bytes",
177
+ name: "_message",
178
+ type: "bytes",
179
+ },
180
+ ],
181
+ name: "executeMessage",
182
+ outputs: [
183
+ {
184
+ internalType: "bool",
185
+ name: "",
186
+ type: "bool",
187
+ },
188
+ ],
189
+ stateMutability: "payable",
190
+ type: "function",
191
+ },
192
+ {
193
+ inputs: [
194
+ {
195
+ internalType: "uint256",
196
+ name: "",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ name: "expiredVotes",
201
+ outputs: [
202
+ {
203
+ internalType: "uint256",
204
+ name: "",
205
+ type: "uint256",
206
+ },
207
+ ],
208
+ stateMutability: "view",
209
+ type: "function",
210
+ },
211
+ {
212
+ inputs: [
213
+ {
214
+ components: [
215
+ {
216
+ components: [
217
+ {
218
+ internalType: "uint256",
219
+ name: "slope",
220
+ type: "uint256",
221
+ },
222
+ {
223
+ internalType: "uint256",
224
+ name: "bias",
225
+ type: "uint256",
226
+ },
227
+ ],
228
+ internalType: "struct Line",
229
+ name: "value",
230
+ type: "tuple",
231
+ },
232
+ {
233
+ internalType: "uint256",
234
+ name: "timestamp",
235
+ type: "uint256",
236
+ },
237
+ ],
238
+ internalType: "struct vePendleToken.Checkpoint[]",
239
+ name: "checkpoints",
240
+ type: "tuple[]",
241
+ },
242
+ {
243
+ internalType: "uint256",
244
+ name: "timestamp",
245
+ type: "uint256",
246
+ },
247
+ ],
248
+ name: "getCheckpointAt",
249
+ outputs: [
250
+ {
251
+ components: [
252
+ {
253
+ components: [
254
+ {
255
+ internalType: "uint256",
256
+ name: "slope",
257
+ type: "uint256",
258
+ },
259
+ {
260
+ internalType: "uint256",
261
+ name: "bias",
262
+ type: "uint256",
263
+ },
264
+ ],
265
+ internalType: "struct Line",
266
+ name: "value",
267
+ type: "tuple",
268
+ },
269
+ {
270
+ internalType: "uint256",
271
+ name: "timestamp",
272
+ type: "uint256",
273
+ },
274
+ ],
275
+ internalType: "struct vePendleToken.Checkpoint",
276
+ name: "",
277
+ type: "tuple",
278
+ },
279
+ ],
280
+ stateMutability: "pure",
281
+ type: "function",
282
+ },
283
+ {
284
+ inputs: [
285
+ {
286
+ internalType: "uint256",
287
+ name: "epochId",
288
+ type: "uint256",
289
+ },
290
+ ],
291
+ name: "getEpochEndingTimestamp",
292
+ outputs: [
293
+ {
294
+ internalType: "uint256",
295
+ name: "",
296
+ type: "uint256",
297
+ },
298
+ ],
299
+ stateMutability: "view",
300
+ type: "function",
301
+ },
302
+ {
303
+ inputs: [
304
+ {
305
+ internalType: "uint256",
306
+ name: "timestamp",
307
+ type: "uint256",
308
+ },
309
+ ],
310
+ name: "getEpochId",
311
+ outputs: [
312
+ {
313
+ internalType: "uint256",
314
+ name: "",
315
+ type: "uint256",
316
+ },
317
+ ],
318
+ stateMutability: "view",
319
+ type: "function",
320
+ },
321
+ {
322
+ inputs: [
323
+ {
324
+ internalType: "uint256",
325
+ name: "epochId",
326
+ type: "uint256",
327
+ },
328
+ ],
329
+ name: "getEpochStartingTimestamp",
330
+ outputs: [
331
+ {
332
+ internalType: "uint256",
333
+ name: "",
334
+ type: "uint256",
335
+ },
336
+ ],
337
+ stateMutability: "view",
338
+ type: "function",
339
+ },
340
+ {
341
+ inputs: [
342
+ {
343
+ internalType: "uint256",
344
+ name: "timestamp",
345
+ type: "uint256",
346
+ },
347
+ ],
348
+ name: "getSupplyAt",
349
+ outputs: [
350
+ {
351
+ internalType: "uint256",
352
+ name: "",
353
+ type: "uint256",
354
+ },
355
+ ],
356
+ stateMutability: "view",
357
+ type: "function",
358
+ },
359
+ {
360
+ inputs: [
361
+ {
362
+ internalType: "address",
363
+ name: "user",
364
+ type: "address",
365
+ },
366
+ {
367
+ internalType: "uint256",
368
+ name: "timestamp",
369
+ type: "uint256",
370
+ },
371
+ ],
372
+ name: "getUserBalanceAt",
373
+ outputs: [
374
+ {
375
+ internalType: "uint256",
376
+ name: "",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ stateMutability: "view",
381
+ type: "function",
382
+ },
383
+ {
384
+ inputs: [],
385
+ name: "lastEpoch",
386
+ outputs: [
387
+ {
388
+ internalType: "uint256",
389
+ name: "",
390
+ type: "uint256",
391
+ },
392
+ ],
393
+ stateMutability: "view",
394
+ type: "function",
395
+ },
396
+ {
397
+ inputs: [],
398
+ name: "messageOrigin",
399
+ outputs: [
400
+ {
401
+ internalType: "address",
402
+ name: "addr",
403
+ type: "address",
404
+ },
405
+ {
406
+ internalType: "uint64",
407
+ name: "chainId",
408
+ type: "uint64",
409
+ },
410
+ ],
411
+ stateMutability: "view",
412
+ type: "function",
413
+ },
414
+ {
415
+ inputs: [],
416
+ name: "owner",
417
+ outputs: [
418
+ {
419
+ internalType: "address",
420
+ name: "",
421
+ type: "address",
422
+ },
423
+ ],
424
+ stateMutability: "view",
425
+ type: "function",
426
+ },
427
+ {
428
+ inputs: [],
429
+ name: "pendle",
430
+ outputs: [
431
+ {
432
+ internalType: "contract IERC20",
433
+ name: "",
434
+ type: "address",
435
+ },
436
+ ],
437
+ stateMutability: "view",
438
+ type: "function",
439
+ },
440
+ {
441
+ inputs: [],
442
+ name: "renounceOwnership",
443
+ outputs: [],
444
+ stateMutability: "nonpayable",
445
+ type: "function",
446
+ },
447
+ {
448
+ inputs: [
449
+ {
450
+ internalType: "address",
451
+ name: "messageBus",
452
+ type: "address",
453
+ },
454
+ {
455
+ internalType: "bool",
456
+ name: "state",
457
+ type: "bool",
458
+ },
459
+ ],
460
+ name: "setMessageBusWhitelist",
461
+ outputs: [],
462
+ stateMutability: "nonpayable",
463
+ type: "function",
464
+ },
465
+ {
466
+ inputs: [
467
+ {
468
+ components: [
469
+ {
470
+ internalType: "address",
471
+ name: "addr",
472
+ type: "address",
473
+ },
474
+ {
475
+ internalType: "uint64",
476
+ name: "chainId",
477
+ type: "uint64",
478
+ },
479
+ ],
480
+ internalType: "struct CrosschainReceiver.MessageOrigin",
481
+ name: "newMessageOrigin",
482
+ type: "tuple",
483
+ },
484
+ ],
485
+ name: "setMessageOrigin",
486
+ outputs: [],
487
+ stateMutability: "nonpayable",
488
+ type: "function",
489
+ },
490
+ {
491
+ inputs: [],
492
+ name: "startTime",
493
+ outputs: [
494
+ {
495
+ internalType: "uint256",
496
+ name: "",
497
+ type: "uint256",
498
+ },
499
+ ],
500
+ stateMutability: "view",
501
+ type: "function",
502
+ },
503
+ {
504
+ inputs: [],
505
+ name: "supply",
506
+ outputs: [
507
+ {
508
+ internalType: "uint256",
509
+ name: "slope",
510
+ type: "uint256",
511
+ },
512
+ {
513
+ internalType: "uint256",
514
+ name: "bias",
515
+ type: "uint256",
516
+ },
517
+ ],
518
+ stateMutability: "view",
519
+ type: "function",
520
+ },
521
+ {
522
+ inputs: [
523
+ {
524
+ internalType: "uint256",
525
+ name: "",
526
+ type: "uint256",
527
+ },
528
+ ],
529
+ name: "supplyCheckpoints",
530
+ outputs: [
531
+ {
532
+ components: [
533
+ {
534
+ internalType: "uint256",
535
+ name: "slope",
536
+ type: "uint256",
537
+ },
538
+ {
539
+ internalType: "uint256",
540
+ name: "bias",
541
+ type: "uint256",
542
+ },
543
+ ],
544
+ internalType: "struct Line",
545
+ name: "value",
546
+ type: "tuple",
547
+ },
548
+ {
549
+ internalType: "uint256",
550
+ name: "timestamp",
551
+ type: "uint256",
552
+ },
553
+ ],
554
+ stateMutability: "view",
555
+ type: "function",
556
+ },
557
+ {
558
+ inputs: [],
559
+ name: "totalSupply",
560
+ outputs: [
561
+ {
562
+ internalType: "uint256",
563
+ name: "",
564
+ type: "uint256",
565
+ },
566
+ ],
567
+ stateMutability: "nonpayable",
568
+ type: "function",
569
+ },
570
+ {
571
+ inputs: [
572
+ {
573
+ internalType: "address",
574
+ name: "newOwner",
575
+ type: "address",
576
+ },
577
+ ],
578
+ name: "transferOwnership",
579
+ outputs: [],
580
+ stateMutability: "nonpayable",
581
+ type: "function",
582
+ },
583
+ {
584
+ inputs: [
585
+ {
586
+ internalType: "address",
587
+ name: "",
588
+ type: "address",
589
+ },
590
+ {
591
+ internalType: "uint256",
592
+ name: "",
593
+ type: "uint256",
594
+ },
595
+ ],
596
+ name: "userCheckpoints",
597
+ outputs: [
598
+ {
599
+ components: [
600
+ {
601
+ internalType: "uint256",
602
+ name: "slope",
603
+ type: "uint256",
604
+ },
605
+ {
606
+ internalType: "uint256",
607
+ name: "bias",
608
+ type: "uint256",
609
+ },
610
+ ],
611
+ internalType: "struct Line",
612
+ name: "value",
613
+ type: "tuple",
614
+ },
615
+ {
616
+ internalType: "uint256",
617
+ name: "timestamp",
618
+ type: "uint256",
619
+ },
620
+ ],
621
+ stateMutability: "view",
622
+ type: "function",
623
+ },
624
+ {
625
+ inputs: [
626
+ {
627
+ internalType: "address",
628
+ name: "",
629
+ type: "address",
630
+ },
631
+ ],
632
+ name: "userLock",
633
+ outputs: [
634
+ {
635
+ internalType: "uint256",
636
+ name: "slope",
637
+ type: "uint256",
638
+ },
639
+ {
640
+ internalType: "uint256",
641
+ name: "bias",
642
+ type: "uint256",
643
+ },
644
+ ],
645
+ stateMutability: "view",
646
+ type: "function",
647
+ },
648
+ {
649
+ inputs: [
650
+ {
651
+ internalType: "address",
652
+ name: "",
653
+ type: "address",
654
+ },
655
+ ],
656
+ name: "whitelistedMessageBus",
657
+ outputs: [
658
+ {
659
+ internalType: "bool",
660
+ name: "",
661
+ type: "bool",
662
+ },
663
+ ],
664
+ stateMutability: "view",
665
+ type: "function",
666
+ },
667
+ ];
668
+
669
+ const _bytecode =
670
+ "0x60c060405234801561001057600080fd5b5060405161196538038061196583398101604081905261002f916100a1565b608081905261003d3361004f565b506001600160a01b031660a0526100db565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080604083850312156100b457600080fd5b82516001600160a01b03811681146100cb57600080fd5b6020939093015192949293505050565b60805160a05161185061011560003960006105830152600081816105110152818161087601528181610931015261099c01526118506000f3fe6080604052600436106101cd5760003560e01c80635617a6e8116100f7578063a2c530da11610095578063e7b58bdd11610064578063e7b58bdd146105fc578063ee1c2dcb14610640578063f2fde38b14610660578063f7412baf1461068057600080fd5b8063a2c530da14610571578063a70b9f0c146105a5578063ac637c7a146105bc578063b48a9634146105dc57600080fd5b8063715018a6116100d1578063715018a6146104ea57806378e97925146104ff57806382c8ab53146105335780638da5cb5b1461055357600080fd5b80635617a6e814610460578063605d47291461049457806370a08231146104ca57600080fd5b806327c8e9b61161016f5780634b31197e1161013e5780634b31197e146103e95780635303548b1461040b578063532051ca1461042b578063538ba4f91461044b57600080fd5b806327c8e9b61461032157806336d5a7e3146103415780633b1623fe1461036e57806343a3a397146103c957600080fd5b80631599d265116101ab5780631599d2651461026b578063176bca561461028e57806318160ddd146102be5780632222ef9f146102d357600080fd5b8063047fc9aa146101d257806306a4c98314610207578063094383201461022b575b600080fd5b3480156101de57600080fd5b506001546002546101ed919082565b604080519283526020830191909152015b60405180910390f35b34801561021357600080fd5b5061021d60035481565b6040519081526020016101fe565b34801561023757600080fd5b5061024b6102463660046113f0565b6106a0565b6040805183518152602093840151938101939093528201526060016101fe565b61027e610279366004611432565b6106f5565b60405190151581526020016101fe565b34801561029a57600080fd5b5061027e6102a93660046114c4565b600b6020526000908152604090205460ff1681565b3480156102ca57600080fd5b5061021d6107e4565b3480156102df57600080fd5b506103096102ee3660046114c4565b6007602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b34801561032d57600080fd5b5061021d61033c3660046114e1565b610813565b34801561034d57600080fd5b5061021d61035c3660046114e1565b60046020526000908152604090205481565b34801561037a57600080fd5b50600a546103a1906001600160a01b03811690600160a01b900467ffffffffffffffff1682565b604080516001600160a01b03909316835267ffffffffffffffff9091166020830152016101fe565b3480156103d557600080fd5b5061021d6103e43660046114e1565b6108a0565b3480156103f557600080fd5b506104096104043660046114fa565b6108f1565b005b34801561041757600080fd5b5061021d6104263660046114e1565b61092d565b34801561043757600080fd5b5061021d6104463660046113f0565b6109d6565b34801561045757600080fd5b50610309600081565b34801561046c57600080fd5b506101ed61047b3660046114c4565b6000602081905290815260409020805460019091015482565b3480156104a057600080fd5b506103096104af3660046114c4565b6008602052600090815260409020546001600160a01b031681565b3480156104d657600080fd5b5061021d6104e53660046114c4565b610a8b565b3480156104f657600080fd5b50610409610b52565b34801561050b57600080fd5b5061021d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561053f57600080fd5b5061021d61054e3660046114e1565b610b88565b34801561055f57600080fd5b506009546001600160a01b0316610309565b34801561057d57600080fd5b506103097f000000000000000000000000000000000000000000000000000000000000000081565b3480156105b157600080fd5b5061021d62093a8081565b3480156105c857600080fd5b506104096105d73660046114c4565b610c85565b3480156105e857600080fd5b506104096105f73660046114c4565b610d2a565b34801561060857600080fd5b5061061c610617366004611582565b610d7f565b604080518251805182526020908101518183015290920151908201526060016101fe565b34801561064c57600080fd5b5061040961065b366004611674565b610e95565b34801561066c57600080fd5b5061040961067b3660046114c4565b610eea565b34801561068c57600080fd5b5061024b61069b3660046114e1565b610f85565b600660205281600052604060002081815481106106bc57600080fd5b60009182526020918290206040805180820190915260039092020180548252600181015492820192909252600290910154909250905082565b336000908152600b602052604081205460ff166107595760405162461bcd60e51b815260206004820152601b60248201527f4e4f545f57484954454c49535445445f4d4553534147455f425553000000000060448201526064015b60405180910390fd5b600a546001600160a01b03868116911614158061078c5750600a5467ffffffffffffffff858116600160a01b9092041614155b15610799575060006107dc565b6107d883838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fcc92505050565b5060015b949350505050565b60006107ee61100f565b604080518082019091526001548152600254602082015261080e906110bf565b905090565b60008082116108575760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b6044820152606401610750565b62093a806108666001846116c8565b61087091906116df565b61089a907f00000000000000000000000000000000000000000000000000000000000000006116fe565b92915050565b60008082116108e45760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b6044820152606401610750565b61087062093a80836116df565b6009546001600160a01b0316331461091b5760405162461bcd60e51b815260040161075090611716565b80600a610928828261174b565b505050565b60007f00000000000000000000000000000000000000000000000000000000000000008210156109935760405162461bcd60e51b81526020600482015260116024820152700494e56414c49445f54494d455354414d5607c1b6044820152606401610750565b62093a806109c17f0000000000000000000000000000000000000000000000000000000000000000846116c8565b6109cb91906117ab565b61089a9060016116fe565b6000610a8482610a7d60066000876001600160a01b03166001600160a01b03168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015610a7357600084815260209081902060408051608081018252600386029092018054918301918252600180820154606085015291835260020154828401529083529092019101610a24565b5050505085610d7f565b51906110c7565b9392505050565b6001600160a01b0381811660009081526007602052604081205490911615610af3576001600160a01b03808316600090815260076020908152604080832054909316825281815290829020825180840190935280548352600101549082015261089a906110bf565b6001600160a01b038281166000908152600860205260409020541615610b1b57506000919050565b6001600160a01b03821660009081526020818152604091829020825180840190935280548352600101549082015261089a906110bf565b6009546001600160a01b03163314610b7c5760405162461bcd60e51b815260040161075090611716565b610b8660006110fd565b565b600080610c096005805480602002602001604051908101604052809291908181526020016000905b82821015610bff57600084815260209081902060408051608081018252600386029092018054918301918252600180820154606085015291835260020154828401529083529092019101610bb0565b5050505084610d7f565b90506000610c1d6103e4836020015161092d565b90505b83811015610c785760008181526004602090815260409182902054825180840190935280835291610c61918101610c5785856116df565b905284519061114f565b835250610c7162093a80826116fe565b9050610c20565b508051610a8490846110c7565b6001600160a01b038082166000908152600860205260409020543391168015801590610ccd57506001600160a01b038181166000908152600760205260409020548116908316145b15610cf9576001600160a01b038116600090815260076020526040902080546001600160a01b03191690555b506001600160a01b0390811660009081526008602052604090208054919092166001600160a01b0319909116179055565b6001600160a01b03818116600090815260086020526040902054163314610d5057600080fd5b33600090815260076020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516080810182526000918101828152606082018390528152602081019190915282511580610dcd57508183600081518110610dbf57610dbf6117cd565b602002602001015160200151115b15610dfb5750604080516080810182526000918101828152606082018390528152602081019190915261089a565b60008060018551610e0c91906116c8565b90505b80821015610e715760006002610e2583856116fe565b610e2f91906117ab565b905084868281518110610e4457610e446117cd565b60200260200101516020015111610e5d57809250610e6b565b610e686001826116c8565b91505b50610e0f565b848281518110610e8357610e836117cd565b60200260200101519250505092915050565b6009546001600160a01b03163314610ebf5760405162461bcd60e51b815260040161075090611716565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6009546001600160a01b03163314610f145760405162461bcd60e51b815260040161075090611716565b6001600160a01b038116610f795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610750565b610f82816110fd565b50565b60058181548110610f9557600080fd5b6000918252602091829020604080518082019091526003909202018054825260018101549282019290925260029091015490915082565b600080600083806020019051810190610fe591906117e3565b92509250925061100983604051806040016040528085815260200184815250611192565b50505050565b600061102360035460016103e491906116fe565b9050805b428110156110bb576000818152600460209081526040918290205482518084019093528083529161107d91810161105e85856116df565b905260408051808201909152600154815260025460208201529061114f565b805160019081556020909101516002556003805460009061109f9084906116fe565b909155506110b4915062093a809050826116fe565b9050611027565b5050565b600061089a82425b81516000906110d79083906116df565b83602001511061089a5782516110ee9083906116df565b8360200151610a8491906116c8565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051808201909152600080825260208201528151835161117191906116c8565b81526020808301519084015161118791906116c8565b602082015292915050565b61119a61100f565b6001600160a01b0382166000908152602081815260408083208151808301909252805480835260019091015492820192909252916004906111da84611390565b815260200190815260200160002060008282546111f791906116c8565b909155505081516004600061120b85611390565b8152602001908152602001600020600082825461122891906116fe565b90915550506001600160a01b03831660009081526020818152604091829020845181558185015160019182015582518084019093525482526002549082015261127d908390611277908461114f565b906113a3565b8051600190815560209182015160029081556001600160a01b03959095166000908152600683526040808220815180830183529687524287860181815282548087018455928552868520985180516003948502909a01998a55870151898701555197890197909755815160808101835284549281019283529754606089015290875286840195865260058054938401815590915294518051919095027f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db08101919091559301517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db184015550517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db290910155565b8051602082015160009161089a916117ab565b6040805180820190915260008082526020820152815183516113c591906116fe565b81526020808301519084015161118791906116fe565b6001600160a01b0381168114610f8257600080fd5b6000806040838503121561140357600080fd5b823561140e816113db565b946020939093013593505050565b67ffffffffffffffff81168114610f8257600080fd5b6000806000806060858703121561144857600080fd5b8435611453816113db565b935060208501356114638161141c565b9250604085013567ffffffffffffffff8082111561148057600080fd5b818701915087601f83011261149457600080fd5b8135818111156114a357600080fd5b8860208285010111156114b557600080fd5b95989497505060200194505050565b6000602082840312156114d657600080fd5b8135610a84816113db565b6000602082840312156114f357600080fd5b5035919050565b60006040828403121561150c57600080fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561154b5761154b611512565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561157a5761157a611512565b604052919050565b600080604080848603121561159657600080fd5b833567ffffffffffffffff808211156115ae57600080fd5b818601915086601f8301126115c257600080fd5b81356020828211156115d6576115d6611512565b6115e4818360051b01611551565b8281528181019350606092830285018201928a84111561160357600080fd5b948201945b8386101561166557858b03818112156116215760008081fd5b611629611528565b888212156116375760008081fd5b61163f611528565b883581528589013586820152815288880135818601528652509485019493820193611608565b50999701359750505050505050565b6000806040838503121561168757600080fd5b8235611692816113db565b9150602083013580151581146116a757600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b6000828210156116da576116da6116b2565b500390565b60008160001904831182151516156116f9576116f96116b2565b500290565b60008219821115611711576117116116b2565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8135611756816113db565b81546001600160a01b031981166001600160a01b0392909216918217835560208401356117828161141c565b6001600160e01b03199190911690911760a09190911b67ffffffffffffffff60a01b1617905550565b6000826117c857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000806000606084860312156117f857600080fd5b8351611803816113db565b60208501516040909501519096949550939250505056fea2646970667358221220f1f9cdfaeeb74942f2c596ea95d754bd8cda767e93479ac350881d9e59a77e8164736f6c63430008090033";
671
+
672
+ type VePendleCrosschainConstructorParams =
673
+ | [signer?: Signer]
674
+ | ConstructorParameters<typeof ContractFactory>;
675
+
676
+ const isSuperArgs = (
677
+ xs: VePendleCrosschainConstructorParams
678
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
679
+
680
+ export class VePendleCrosschain__factory extends ContractFactory {
681
+ constructor(...args: VePendleCrosschainConstructorParams) {
682
+ if (isSuperArgs(args)) {
683
+ super(...args);
684
+ } else {
685
+ super(_abi, _bytecode, args[0]);
686
+ }
687
+ this.contractName = "VePendleCrosschain";
688
+ }
689
+
690
+ deploy(
691
+ _pendle: string,
692
+ _startTime: BigNumberish,
693
+ overrides?: Overrides & { from?: string | Promise<string> }
694
+ ): Promise<VePendleCrosschain> {
695
+ return super.deploy(
696
+ _pendle,
697
+ _startTime,
698
+ overrides || {}
699
+ ) as Promise<VePendleCrosschain>;
700
+ }
701
+ getDeployTransaction(
702
+ _pendle: string,
703
+ _startTime: BigNumberish,
704
+ overrides?: Overrides & { from?: string | Promise<string> }
705
+ ): TransactionRequest {
706
+ return super.getDeployTransaction(_pendle, _startTime, overrides || {});
707
+ }
708
+ attach(address: string): VePendleCrosschain {
709
+ return super.attach(address) as VePendleCrosschain;
710
+ }
711
+ connect(signer: Signer): VePendleCrosschain__factory {
712
+ return super.connect(signer) as VePendleCrosschain__factory;
713
+ }
714
+ static readonly contractName: "VePendleCrosschain";
715
+ public readonly contractName: "VePendleCrosschain";
716
+ static readonly bytecode = _bytecode;
717
+ static readonly abi = _abi;
718
+ static createInterface(): VePendleCrosschainInterface {
719
+ return new utils.Interface(_abi) as VePendleCrosschainInterface;
720
+ }
721
+ static connect(
722
+ address: string,
723
+ signerOrProvider: Signer | Provider
724
+ ): VePendleCrosschain {
725
+ return new Contract(address, _abi, signerOrProvider) as VePendleCrosschain;
726
+ }
727
+ }