@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,1219 @@
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 { QiToken, QiTokenInterface } from "../QiToken";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: false,
15
+ internalType: "uint256",
16
+ name: "cashPrior",
17
+ type: "uint256",
18
+ },
19
+ {
20
+ indexed: false,
21
+ internalType: "uint256",
22
+ name: "interestAccumulated",
23
+ type: "uint256",
24
+ },
25
+ {
26
+ indexed: false,
27
+ internalType: "uint256",
28
+ name: "borrowIndex",
29
+ type: "uint256",
30
+ },
31
+ {
32
+ indexed: false,
33
+ internalType: "uint256",
34
+ name: "totalBorrows",
35
+ type: "uint256",
36
+ },
37
+ ],
38
+ name: "AccrueInterest",
39
+ type: "event",
40
+ },
41
+ {
42
+ anonymous: false,
43
+ inputs: [
44
+ {
45
+ indexed: true,
46
+ internalType: "address",
47
+ name: "owner",
48
+ type: "address",
49
+ },
50
+ {
51
+ indexed: true,
52
+ internalType: "address",
53
+ name: "spender",
54
+ type: "address",
55
+ },
56
+ {
57
+ indexed: false,
58
+ internalType: "uint256",
59
+ name: "amount",
60
+ type: "uint256",
61
+ },
62
+ ],
63
+ name: "Approval",
64
+ type: "event",
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: false,
71
+ internalType: "address",
72
+ name: "borrower",
73
+ type: "address",
74
+ },
75
+ {
76
+ indexed: false,
77
+ internalType: "uint256",
78
+ name: "borrowAmount",
79
+ type: "uint256",
80
+ },
81
+ {
82
+ indexed: false,
83
+ internalType: "uint256",
84
+ name: "accountBorrows",
85
+ type: "uint256",
86
+ },
87
+ {
88
+ indexed: false,
89
+ internalType: "uint256",
90
+ name: "totalBorrows",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ name: "Borrow",
95
+ type: "event",
96
+ },
97
+ {
98
+ anonymous: false,
99
+ inputs: [
100
+ {
101
+ indexed: false,
102
+ internalType: "uint256",
103
+ name: "error",
104
+ type: "uint256",
105
+ },
106
+ {
107
+ indexed: false,
108
+ internalType: "uint256",
109
+ name: "info",
110
+ type: "uint256",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "uint256",
115
+ name: "detail",
116
+ type: "uint256",
117
+ },
118
+ ],
119
+ name: "Failure",
120
+ type: "event",
121
+ },
122
+ {
123
+ anonymous: false,
124
+ inputs: [
125
+ {
126
+ indexed: false,
127
+ internalType: "address",
128
+ name: "liquidator",
129
+ type: "address",
130
+ },
131
+ {
132
+ indexed: false,
133
+ internalType: "address",
134
+ name: "borrower",
135
+ type: "address",
136
+ },
137
+ {
138
+ indexed: false,
139
+ internalType: "uint256",
140
+ name: "repayAmount",
141
+ type: "uint256",
142
+ },
143
+ {
144
+ indexed: false,
145
+ internalType: "address",
146
+ name: "qiTokenCollateral",
147
+ type: "address",
148
+ },
149
+ {
150
+ indexed: false,
151
+ internalType: "uint256",
152
+ name: "seizeTokens",
153
+ type: "uint256",
154
+ },
155
+ ],
156
+ name: "LiquidateBorrow",
157
+ type: "event",
158
+ },
159
+ {
160
+ anonymous: false,
161
+ inputs: [
162
+ {
163
+ indexed: false,
164
+ internalType: "address",
165
+ name: "minter",
166
+ type: "address",
167
+ },
168
+ {
169
+ indexed: false,
170
+ internalType: "uint256",
171
+ name: "mintAmount",
172
+ type: "uint256",
173
+ },
174
+ {
175
+ indexed: false,
176
+ internalType: "uint256",
177
+ name: "mintTokens",
178
+ type: "uint256",
179
+ },
180
+ ],
181
+ name: "Mint",
182
+ type: "event",
183
+ },
184
+ {
185
+ anonymous: false,
186
+ inputs: [
187
+ {
188
+ indexed: false,
189
+ internalType: "address",
190
+ name: "oldAdmin",
191
+ type: "address",
192
+ },
193
+ {
194
+ indexed: false,
195
+ internalType: "address",
196
+ name: "newAdmin",
197
+ type: "address",
198
+ },
199
+ ],
200
+ name: "NewAdmin",
201
+ type: "event",
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ {
207
+ indexed: false,
208
+ internalType: "contract ComptrollerInterface",
209
+ name: "oldComptroller",
210
+ type: "address",
211
+ },
212
+ {
213
+ indexed: false,
214
+ internalType: "contract ComptrollerInterface",
215
+ name: "newComptroller",
216
+ type: "address",
217
+ },
218
+ ],
219
+ name: "NewComptroller",
220
+ type: "event",
221
+ },
222
+ {
223
+ anonymous: false,
224
+ inputs: [
225
+ {
226
+ indexed: false,
227
+ internalType: "contract InterestRateModel",
228
+ name: "oldInterestRateModel",
229
+ type: "address",
230
+ },
231
+ {
232
+ indexed: false,
233
+ internalType: "contract InterestRateModel",
234
+ name: "newInterestRateModel",
235
+ type: "address",
236
+ },
237
+ ],
238
+ name: "NewMarketInterestRateModel",
239
+ type: "event",
240
+ },
241
+ {
242
+ anonymous: false,
243
+ inputs: [
244
+ {
245
+ indexed: false,
246
+ internalType: "address",
247
+ name: "oldPendingAdmin",
248
+ type: "address",
249
+ },
250
+ {
251
+ indexed: false,
252
+ internalType: "address",
253
+ name: "newPendingAdmin",
254
+ type: "address",
255
+ },
256
+ ],
257
+ name: "NewPendingAdmin",
258
+ type: "event",
259
+ },
260
+ {
261
+ anonymous: false,
262
+ inputs: [
263
+ {
264
+ indexed: false,
265
+ internalType: "uint256",
266
+ name: "oldProtocolSeizeShareMantissa",
267
+ type: "uint256",
268
+ },
269
+ {
270
+ indexed: false,
271
+ internalType: "uint256",
272
+ name: "newProtocolSeizeShareMantissa",
273
+ type: "uint256",
274
+ },
275
+ ],
276
+ name: "NewProtocolSeizeShare",
277
+ type: "event",
278
+ },
279
+ {
280
+ anonymous: false,
281
+ inputs: [
282
+ {
283
+ indexed: false,
284
+ internalType: "uint256",
285
+ name: "oldReserveFactorMantissa",
286
+ type: "uint256",
287
+ },
288
+ {
289
+ indexed: false,
290
+ internalType: "uint256",
291
+ name: "newReserveFactorMantissa",
292
+ type: "uint256",
293
+ },
294
+ ],
295
+ name: "NewReserveFactor",
296
+ type: "event",
297
+ },
298
+ {
299
+ anonymous: false,
300
+ inputs: [
301
+ {
302
+ indexed: false,
303
+ internalType: "address",
304
+ name: "redeemer",
305
+ type: "address",
306
+ },
307
+ {
308
+ indexed: false,
309
+ internalType: "uint256",
310
+ name: "redeemAmount",
311
+ type: "uint256",
312
+ },
313
+ {
314
+ indexed: false,
315
+ internalType: "uint256",
316
+ name: "redeemTokens",
317
+ type: "uint256",
318
+ },
319
+ ],
320
+ name: "Redeem",
321
+ type: "event",
322
+ },
323
+ {
324
+ anonymous: false,
325
+ inputs: [
326
+ {
327
+ indexed: false,
328
+ internalType: "address",
329
+ name: "payer",
330
+ type: "address",
331
+ },
332
+ {
333
+ indexed: false,
334
+ internalType: "address",
335
+ name: "borrower",
336
+ type: "address",
337
+ },
338
+ {
339
+ indexed: false,
340
+ internalType: "uint256",
341
+ name: "repayAmount",
342
+ type: "uint256",
343
+ },
344
+ {
345
+ indexed: false,
346
+ internalType: "uint256",
347
+ name: "accountBorrows",
348
+ type: "uint256",
349
+ },
350
+ {
351
+ indexed: false,
352
+ internalType: "uint256",
353
+ name: "totalBorrows",
354
+ type: "uint256",
355
+ },
356
+ ],
357
+ name: "RepayBorrow",
358
+ type: "event",
359
+ },
360
+ {
361
+ anonymous: false,
362
+ inputs: [
363
+ {
364
+ indexed: false,
365
+ internalType: "address",
366
+ name: "benefactor",
367
+ type: "address",
368
+ },
369
+ {
370
+ indexed: false,
371
+ internalType: "uint256",
372
+ name: "addAmount",
373
+ type: "uint256",
374
+ },
375
+ {
376
+ indexed: false,
377
+ internalType: "uint256",
378
+ name: "newTotalReserves",
379
+ type: "uint256",
380
+ },
381
+ ],
382
+ name: "ReservesAdded",
383
+ type: "event",
384
+ },
385
+ {
386
+ anonymous: false,
387
+ inputs: [
388
+ {
389
+ indexed: false,
390
+ internalType: "address",
391
+ name: "admin",
392
+ type: "address",
393
+ },
394
+ {
395
+ indexed: false,
396
+ internalType: "uint256",
397
+ name: "reduceAmount",
398
+ type: "uint256",
399
+ },
400
+ {
401
+ indexed: false,
402
+ internalType: "uint256",
403
+ name: "newTotalReserves",
404
+ type: "uint256",
405
+ },
406
+ ],
407
+ name: "ReservesReduced",
408
+ type: "event",
409
+ },
410
+ {
411
+ anonymous: false,
412
+ inputs: [
413
+ {
414
+ indexed: true,
415
+ internalType: "address",
416
+ name: "from",
417
+ type: "address",
418
+ },
419
+ {
420
+ indexed: true,
421
+ internalType: "address",
422
+ name: "to",
423
+ type: "address",
424
+ },
425
+ {
426
+ indexed: false,
427
+ internalType: "uint256",
428
+ name: "amount",
429
+ type: "uint256",
430
+ },
431
+ ],
432
+ name: "Transfer",
433
+ type: "event",
434
+ },
435
+ {
436
+ constant: false,
437
+ inputs: [],
438
+ name: "_acceptAdmin",
439
+ outputs: [
440
+ {
441
+ internalType: "uint256",
442
+ name: "",
443
+ type: "uint256",
444
+ },
445
+ ],
446
+ payable: false,
447
+ stateMutability: "nonpayable",
448
+ type: "function",
449
+ },
450
+ {
451
+ constant: false,
452
+ inputs: [
453
+ {
454
+ internalType: "uint256",
455
+ name: "reduceAmount",
456
+ type: "uint256",
457
+ },
458
+ ],
459
+ name: "_reduceReserves",
460
+ outputs: [
461
+ {
462
+ internalType: "uint256",
463
+ name: "",
464
+ type: "uint256",
465
+ },
466
+ ],
467
+ payable: false,
468
+ stateMutability: "nonpayable",
469
+ type: "function",
470
+ },
471
+ {
472
+ constant: false,
473
+ inputs: [
474
+ {
475
+ internalType: "contract ComptrollerInterface",
476
+ name: "newComptroller",
477
+ type: "address",
478
+ },
479
+ ],
480
+ name: "_setComptroller",
481
+ outputs: [
482
+ {
483
+ internalType: "uint256",
484
+ name: "",
485
+ type: "uint256",
486
+ },
487
+ ],
488
+ payable: false,
489
+ stateMutability: "nonpayable",
490
+ type: "function",
491
+ },
492
+ {
493
+ constant: false,
494
+ inputs: [
495
+ {
496
+ internalType: "contract InterestRateModel",
497
+ name: "newInterestRateModel",
498
+ type: "address",
499
+ },
500
+ ],
501
+ name: "_setInterestRateModel",
502
+ outputs: [
503
+ {
504
+ internalType: "uint256",
505
+ name: "",
506
+ type: "uint256",
507
+ },
508
+ ],
509
+ payable: false,
510
+ stateMutability: "nonpayable",
511
+ type: "function",
512
+ },
513
+ {
514
+ constant: false,
515
+ inputs: [
516
+ {
517
+ internalType: "address payable",
518
+ name: "newPendingAdmin",
519
+ type: "address",
520
+ },
521
+ ],
522
+ name: "_setPendingAdmin",
523
+ outputs: [
524
+ {
525
+ internalType: "uint256",
526
+ name: "",
527
+ type: "uint256",
528
+ },
529
+ ],
530
+ payable: false,
531
+ stateMutability: "nonpayable",
532
+ type: "function",
533
+ },
534
+ {
535
+ constant: false,
536
+ inputs: [
537
+ {
538
+ internalType: "uint256",
539
+ name: "newProtocolSeizeShareMantissa",
540
+ type: "uint256",
541
+ },
542
+ ],
543
+ name: "_setProtocolSeizeShare",
544
+ outputs: [
545
+ {
546
+ internalType: "uint256",
547
+ name: "",
548
+ type: "uint256",
549
+ },
550
+ ],
551
+ payable: false,
552
+ stateMutability: "nonpayable",
553
+ type: "function",
554
+ },
555
+ {
556
+ constant: false,
557
+ inputs: [
558
+ {
559
+ internalType: "uint256",
560
+ name: "newReserveFactorMantissa",
561
+ type: "uint256",
562
+ },
563
+ ],
564
+ name: "_setReserveFactor",
565
+ outputs: [
566
+ {
567
+ internalType: "uint256",
568
+ name: "",
569
+ type: "uint256",
570
+ },
571
+ ],
572
+ payable: false,
573
+ stateMutability: "nonpayable",
574
+ type: "function",
575
+ },
576
+ {
577
+ constant: true,
578
+ inputs: [],
579
+ name: "accrualBlockTimestamp",
580
+ outputs: [
581
+ {
582
+ internalType: "uint256",
583
+ name: "",
584
+ type: "uint256",
585
+ },
586
+ ],
587
+ payable: false,
588
+ stateMutability: "view",
589
+ type: "function",
590
+ },
591
+ {
592
+ constant: false,
593
+ inputs: [],
594
+ name: "accrueInterest",
595
+ outputs: [
596
+ {
597
+ internalType: "uint256",
598
+ name: "",
599
+ type: "uint256",
600
+ },
601
+ ],
602
+ payable: false,
603
+ stateMutability: "nonpayable",
604
+ type: "function",
605
+ },
606
+ {
607
+ constant: true,
608
+ inputs: [],
609
+ name: "admin",
610
+ outputs: [
611
+ {
612
+ internalType: "address payable",
613
+ name: "",
614
+ type: "address",
615
+ },
616
+ ],
617
+ payable: false,
618
+ stateMutability: "view",
619
+ type: "function",
620
+ },
621
+ {
622
+ constant: true,
623
+ inputs: [
624
+ {
625
+ internalType: "address",
626
+ name: "owner",
627
+ type: "address",
628
+ },
629
+ {
630
+ internalType: "address",
631
+ name: "spender",
632
+ type: "address",
633
+ },
634
+ ],
635
+ name: "allowance",
636
+ outputs: [
637
+ {
638
+ internalType: "uint256",
639
+ name: "",
640
+ type: "uint256",
641
+ },
642
+ ],
643
+ payable: false,
644
+ stateMutability: "view",
645
+ type: "function",
646
+ },
647
+ {
648
+ constant: false,
649
+ inputs: [
650
+ {
651
+ internalType: "address",
652
+ name: "spender",
653
+ type: "address",
654
+ },
655
+ {
656
+ internalType: "uint256",
657
+ name: "amount",
658
+ type: "uint256",
659
+ },
660
+ ],
661
+ name: "approve",
662
+ outputs: [
663
+ {
664
+ internalType: "bool",
665
+ name: "",
666
+ type: "bool",
667
+ },
668
+ ],
669
+ payable: false,
670
+ stateMutability: "nonpayable",
671
+ type: "function",
672
+ },
673
+ {
674
+ constant: true,
675
+ inputs: [
676
+ {
677
+ internalType: "address",
678
+ name: "owner",
679
+ type: "address",
680
+ },
681
+ ],
682
+ name: "balanceOf",
683
+ outputs: [
684
+ {
685
+ internalType: "uint256",
686
+ name: "",
687
+ type: "uint256",
688
+ },
689
+ ],
690
+ payable: false,
691
+ stateMutability: "view",
692
+ type: "function",
693
+ },
694
+ {
695
+ constant: false,
696
+ inputs: [
697
+ {
698
+ internalType: "address",
699
+ name: "owner",
700
+ type: "address",
701
+ },
702
+ ],
703
+ name: "balanceOfUnderlying",
704
+ outputs: [
705
+ {
706
+ internalType: "uint256",
707
+ name: "",
708
+ type: "uint256",
709
+ },
710
+ ],
711
+ payable: false,
712
+ stateMutability: "nonpayable",
713
+ type: "function",
714
+ },
715
+ {
716
+ constant: false,
717
+ inputs: [
718
+ {
719
+ internalType: "address",
720
+ name: "account",
721
+ type: "address",
722
+ },
723
+ ],
724
+ name: "borrowBalanceCurrent",
725
+ outputs: [
726
+ {
727
+ internalType: "uint256",
728
+ name: "",
729
+ type: "uint256",
730
+ },
731
+ ],
732
+ payable: false,
733
+ stateMutability: "nonpayable",
734
+ type: "function",
735
+ },
736
+ {
737
+ constant: true,
738
+ inputs: [
739
+ {
740
+ internalType: "address",
741
+ name: "account",
742
+ type: "address",
743
+ },
744
+ ],
745
+ name: "borrowBalanceStored",
746
+ outputs: [
747
+ {
748
+ internalType: "uint256",
749
+ name: "",
750
+ type: "uint256",
751
+ },
752
+ ],
753
+ payable: false,
754
+ stateMutability: "view",
755
+ type: "function",
756
+ },
757
+ {
758
+ constant: true,
759
+ inputs: [],
760
+ name: "borrowIndex",
761
+ outputs: [
762
+ {
763
+ internalType: "uint256",
764
+ name: "",
765
+ type: "uint256",
766
+ },
767
+ ],
768
+ payable: false,
769
+ stateMutability: "view",
770
+ type: "function",
771
+ },
772
+ {
773
+ constant: true,
774
+ inputs: [],
775
+ name: "borrowRatePerTimestamp",
776
+ outputs: [
777
+ {
778
+ internalType: "uint256",
779
+ name: "",
780
+ type: "uint256",
781
+ },
782
+ ],
783
+ payable: false,
784
+ stateMutability: "view",
785
+ type: "function",
786
+ },
787
+ {
788
+ constant: true,
789
+ inputs: [],
790
+ name: "comptroller",
791
+ outputs: [
792
+ {
793
+ internalType: "contract ComptrollerInterface",
794
+ name: "",
795
+ type: "address",
796
+ },
797
+ ],
798
+ payable: false,
799
+ stateMutability: "view",
800
+ type: "function",
801
+ },
802
+ {
803
+ constant: true,
804
+ inputs: [],
805
+ name: "decimals",
806
+ outputs: [
807
+ {
808
+ internalType: "uint8",
809
+ name: "",
810
+ type: "uint8",
811
+ },
812
+ ],
813
+ payable: false,
814
+ stateMutability: "view",
815
+ type: "function",
816
+ },
817
+ {
818
+ constant: false,
819
+ inputs: [],
820
+ name: "exchangeRateCurrent",
821
+ outputs: [
822
+ {
823
+ internalType: "uint256",
824
+ name: "",
825
+ type: "uint256",
826
+ },
827
+ ],
828
+ payable: false,
829
+ stateMutability: "nonpayable",
830
+ type: "function",
831
+ },
832
+ {
833
+ constant: true,
834
+ inputs: [],
835
+ name: "exchangeRateStored",
836
+ outputs: [
837
+ {
838
+ internalType: "uint256",
839
+ name: "",
840
+ type: "uint256",
841
+ },
842
+ ],
843
+ payable: false,
844
+ stateMutability: "view",
845
+ type: "function",
846
+ },
847
+ {
848
+ constant: true,
849
+ inputs: [
850
+ {
851
+ internalType: "address",
852
+ name: "account",
853
+ type: "address",
854
+ },
855
+ ],
856
+ name: "getAccountSnapshot",
857
+ outputs: [
858
+ {
859
+ internalType: "uint256",
860
+ name: "",
861
+ type: "uint256",
862
+ },
863
+ {
864
+ internalType: "uint256",
865
+ name: "",
866
+ type: "uint256",
867
+ },
868
+ {
869
+ internalType: "uint256",
870
+ name: "",
871
+ type: "uint256",
872
+ },
873
+ {
874
+ internalType: "uint256",
875
+ name: "",
876
+ type: "uint256",
877
+ },
878
+ ],
879
+ payable: false,
880
+ stateMutability: "view",
881
+ type: "function",
882
+ },
883
+ {
884
+ constant: true,
885
+ inputs: [],
886
+ name: "getCash",
887
+ outputs: [
888
+ {
889
+ internalType: "uint256",
890
+ name: "",
891
+ type: "uint256",
892
+ },
893
+ ],
894
+ payable: false,
895
+ stateMutability: "view",
896
+ type: "function",
897
+ },
898
+ {
899
+ constant: false,
900
+ inputs: [
901
+ {
902
+ internalType: "contract ComptrollerInterface",
903
+ name: "comptroller_",
904
+ type: "address",
905
+ },
906
+ {
907
+ internalType: "contract InterestRateModel",
908
+ name: "interestRateModel_",
909
+ type: "address",
910
+ },
911
+ {
912
+ internalType: "uint256",
913
+ name: "initialExchangeRateMantissa_",
914
+ type: "uint256",
915
+ },
916
+ {
917
+ internalType: "string",
918
+ name: "name_",
919
+ type: "string",
920
+ },
921
+ {
922
+ internalType: "string",
923
+ name: "symbol_",
924
+ type: "string",
925
+ },
926
+ {
927
+ internalType: "uint8",
928
+ name: "decimals_",
929
+ type: "uint8",
930
+ },
931
+ ],
932
+ name: "initialize",
933
+ outputs: [],
934
+ payable: false,
935
+ stateMutability: "nonpayable",
936
+ type: "function",
937
+ },
938
+ {
939
+ constant: true,
940
+ inputs: [],
941
+ name: "interestRateModel",
942
+ outputs: [
943
+ {
944
+ internalType: "contract InterestRateModel",
945
+ name: "",
946
+ type: "address",
947
+ },
948
+ ],
949
+ payable: false,
950
+ stateMutability: "view",
951
+ type: "function",
952
+ },
953
+ {
954
+ constant: true,
955
+ inputs: [],
956
+ name: "isQiToken",
957
+ outputs: [
958
+ {
959
+ internalType: "bool",
960
+ name: "",
961
+ type: "bool",
962
+ },
963
+ ],
964
+ payable: false,
965
+ stateMutability: "view",
966
+ type: "function",
967
+ },
968
+ {
969
+ constant: true,
970
+ inputs: [],
971
+ name: "name",
972
+ outputs: [
973
+ {
974
+ internalType: "string",
975
+ name: "",
976
+ type: "string",
977
+ },
978
+ ],
979
+ payable: false,
980
+ stateMutability: "view",
981
+ type: "function",
982
+ },
983
+ {
984
+ constant: true,
985
+ inputs: [],
986
+ name: "pendingAdmin",
987
+ outputs: [
988
+ {
989
+ internalType: "address payable",
990
+ name: "",
991
+ type: "address",
992
+ },
993
+ ],
994
+ payable: false,
995
+ stateMutability: "view",
996
+ type: "function",
997
+ },
998
+ {
999
+ constant: true,
1000
+ inputs: [],
1001
+ name: "protocolSeizeShareMantissa",
1002
+ outputs: [
1003
+ {
1004
+ internalType: "uint256",
1005
+ name: "",
1006
+ type: "uint256",
1007
+ },
1008
+ ],
1009
+ payable: false,
1010
+ stateMutability: "view",
1011
+ type: "function",
1012
+ },
1013
+ {
1014
+ constant: true,
1015
+ inputs: [],
1016
+ name: "reserveFactorMantissa",
1017
+ outputs: [
1018
+ {
1019
+ internalType: "uint256",
1020
+ name: "",
1021
+ type: "uint256",
1022
+ },
1023
+ ],
1024
+ payable: false,
1025
+ stateMutability: "view",
1026
+ type: "function",
1027
+ },
1028
+ {
1029
+ constant: false,
1030
+ inputs: [
1031
+ {
1032
+ internalType: "address",
1033
+ name: "liquidator",
1034
+ type: "address",
1035
+ },
1036
+ {
1037
+ internalType: "address",
1038
+ name: "borrower",
1039
+ type: "address",
1040
+ },
1041
+ {
1042
+ internalType: "uint256",
1043
+ name: "seizeTokens",
1044
+ type: "uint256",
1045
+ },
1046
+ ],
1047
+ name: "seize",
1048
+ outputs: [
1049
+ {
1050
+ internalType: "uint256",
1051
+ name: "",
1052
+ type: "uint256",
1053
+ },
1054
+ ],
1055
+ payable: false,
1056
+ stateMutability: "nonpayable",
1057
+ type: "function",
1058
+ },
1059
+ {
1060
+ constant: true,
1061
+ inputs: [],
1062
+ name: "supplyRatePerTimestamp",
1063
+ outputs: [
1064
+ {
1065
+ internalType: "uint256",
1066
+ name: "",
1067
+ type: "uint256",
1068
+ },
1069
+ ],
1070
+ payable: false,
1071
+ stateMutability: "view",
1072
+ type: "function",
1073
+ },
1074
+ {
1075
+ constant: true,
1076
+ inputs: [],
1077
+ name: "symbol",
1078
+ outputs: [
1079
+ {
1080
+ internalType: "string",
1081
+ name: "",
1082
+ type: "string",
1083
+ },
1084
+ ],
1085
+ payable: false,
1086
+ stateMutability: "view",
1087
+ type: "function",
1088
+ },
1089
+ {
1090
+ constant: true,
1091
+ inputs: [],
1092
+ name: "totalBorrows",
1093
+ outputs: [
1094
+ {
1095
+ internalType: "uint256",
1096
+ name: "",
1097
+ type: "uint256",
1098
+ },
1099
+ ],
1100
+ payable: false,
1101
+ stateMutability: "view",
1102
+ type: "function",
1103
+ },
1104
+ {
1105
+ constant: false,
1106
+ inputs: [],
1107
+ name: "totalBorrowsCurrent",
1108
+ outputs: [
1109
+ {
1110
+ internalType: "uint256",
1111
+ name: "",
1112
+ type: "uint256",
1113
+ },
1114
+ ],
1115
+ payable: false,
1116
+ stateMutability: "nonpayable",
1117
+ type: "function",
1118
+ },
1119
+ {
1120
+ constant: true,
1121
+ inputs: [],
1122
+ name: "totalReserves",
1123
+ outputs: [
1124
+ {
1125
+ internalType: "uint256",
1126
+ name: "",
1127
+ type: "uint256",
1128
+ },
1129
+ ],
1130
+ payable: false,
1131
+ stateMutability: "view",
1132
+ type: "function",
1133
+ },
1134
+ {
1135
+ constant: true,
1136
+ inputs: [],
1137
+ name: "totalSupply",
1138
+ outputs: [
1139
+ {
1140
+ internalType: "uint256",
1141
+ name: "",
1142
+ type: "uint256",
1143
+ },
1144
+ ],
1145
+ payable: false,
1146
+ stateMutability: "view",
1147
+ type: "function",
1148
+ },
1149
+ {
1150
+ constant: false,
1151
+ inputs: [
1152
+ {
1153
+ internalType: "address",
1154
+ name: "dst",
1155
+ type: "address",
1156
+ },
1157
+ {
1158
+ internalType: "uint256",
1159
+ name: "amount",
1160
+ type: "uint256",
1161
+ },
1162
+ ],
1163
+ name: "transfer",
1164
+ outputs: [
1165
+ {
1166
+ internalType: "bool",
1167
+ name: "",
1168
+ type: "bool",
1169
+ },
1170
+ ],
1171
+ payable: false,
1172
+ stateMutability: "nonpayable",
1173
+ type: "function",
1174
+ },
1175
+ {
1176
+ constant: false,
1177
+ inputs: [
1178
+ {
1179
+ internalType: "address",
1180
+ name: "src",
1181
+ type: "address",
1182
+ },
1183
+ {
1184
+ internalType: "address",
1185
+ name: "dst",
1186
+ type: "address",
1187
+ },
1188
+ {
1189
+ internalType: "uint256",
1190
+ name: "amount",
1191
+ type: "uint256",
1192
+ },
1193
+ ],
1194
+ name: "transferFrom",
1195
+ outputs: [
1196
+ {
1197
+ internalType: "bool",
1198
+ name: "",
1199
+ type: "bool",
1200
+ },
1201
+ ],
1202
+ payable: false,
1203
+ stateMutability: "nonpayable",
1204
+ type: "function",
1205
+ },
1206
+ ];
1207
+
1208
+ export class QiToken__factory {
1209
+ static readonly abi = _abi;
1210
+ static createInterface(): QiTokenInterface {
1211
+ return new utils.Interface(_abi) as QiTokenInterface;
1212
+ }
1213
+ static connect(
1214
+ address: string,
1215
+ signerOrProvider: Signer | Provider
1216
+ ): QiToken {
1217
+ return new Contract(address, _abi, signerOrProvider) as QiToken;
1218
+ }
1219
+ }