@pendle/core-v2 1.3.0-mainnet → 1.4.0-mainnet

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +1 -41
  35. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +2 -41
  38. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +2 -41
  40. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +2 -41
  43. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  86. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  87. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  88. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  89. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +4 -0
  90. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +47 -0
  91. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  92. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  93. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  94. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  95. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  96. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  97. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  99. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  101. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  103. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  105. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +1 -1
  106. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  107. package/build/artifacts/contracts/router/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +4 -0
  108. package/build/artifacts/contracts/router/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +10 -0
  109. package/build/artifacts/contracts/router/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  110. package/build/artifacts/contracts/router/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
  111. package/build/artifacts/contracts/router/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
  112. package/build/artifacts/contracts/router/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +359 -0
  113. package/build/artifacts/contracts/router/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +4 -0
  114. package/build/artifacts/contracts/router/kyberswap/interfaces/IHashflow.sol/IHashflow.json +101 -0
  115. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.dbg.json +4 -0
  116. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.json +183 -0
  117. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  118. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
  119. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +7 -9
  120. package/contracts/core/StandardizedYield/StEthHelper.sol +4 -4
  121. package/contracts/offchain-helpers/PendleMulticall.sol +26 -0
  122. package/contracts/router/kyberswap/AggregationRouterHelper.sol +182 -206
  123. package/contracts/router/kyberswap/ScaleDataHelperEthereum1.sol +134 -0
  124. package/contracts/router/kyberswap/interfaces/IAggregationExecutor.sol +17 -0
  125. package/contracts/router/kyberswap/interfaces/IExecutorHelperEthereum1.sol +185 -0
  126. package/contracts/router/kyberswap/interfaces/IHashflow.sol +30 -0
  127. package/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol +33 -0
  128. package/contracts/router/kyberswap/interfaces/IMetaAggregationRouterV2.sol +42 -0
  129. package/deployments/1-markets/BALANCER-LP-AURA-WSTETH-WETH-JUN272024.json +10 -0
  130. package/deployments/1-offchain-helper.json +4 -0
  131. package/package.json +1 -1
  132. package/typechain-types/GMXPreviewHelper.ts +81 -0
  133. package/typechain-types/I1inchAggregationRouterV5.ts +257 -0
  134. package/typechain-types/IAggregationExecutor.ts +182 -0
  135. package/typechain-types/IExecutorHelperEthereum1.ts +599 -0
  136. package/typechain-types/IGMXVault.ts +494 -0
  137. package/typechain-types/IGlpManager.ts +115 -0
  138. package/typechain-types/IHashflow.ts +159 -0
  139. package/typechain-types/IKyberSwapAggregationRouterHelper.ts +109 -0
  140. package/typechain-types/IMetaAggregationRouter.ts +213 -0
  141. package/typechain-types/IMetaAggregationRouterV2.ts +221 -0
  142. package/typechain-types/IPYieldTokenV2.ts +915 -0
  143. package/typechain-types/IRewardRouterV2.ts +303 -0
  144. package/typechain-types/ISwapAggregator.ts +124 -0
  145. package/typechain-types/IVaultPriceFeed.ts +114 -0
  146. package/typechain-types/InterestManagerYTV2.ts +124 -0
  147. package/typechain-types/PendleAura3EthSY.ts +0 -39
  148. package/typechain-types/PendleAuraCbethWstethSY.ts +0 -39
  149. package/typechain-types/PendleAuraWethWstethSY.ts +0 -39
  150. package/typechain-types/PendleGlpSY.ts +1396 -0
  151. package/typechain-types/PendleMulticall.ts +110 -0
  152. package/typechain-types/PendlePrincipalTokenV2.ts +614 -0
  153. package/typechain-types/PendleYieldContractFactoryV2.ts +801 -0
  154. package/typechain-types/PendleYieldTokenV2.ts +1304 -0
  155. package/typechain-types/SwapAggregator.ts +406 -0
  156. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  157. package/typechain-types/factories/GMXPreviewHelper__factory.ts +39 -0
  158. package/typechain-types/factories/I1inchAggregationRouterV5__factory.ts +179 -0
  159. package/typechain-types/factories/IAggregationExecutor__factory.ts +84 -0
  160. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +378 -0
  161. package/typechain-types/factories/IGMXVault__factory.ts +320 -0
  162. package/typechain-types/factories/IGlpManager__factory.ts +55 -0
  163. package/typechain-types/factories/IHashflow__factory.ts +113 -0
  164. package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +56 -0
  165. package/typechain-types/factories/IMetaAggregationRouterV2__factory.ts +234 -0
  166. package/typechain-types/factories/IMetaAggregationRouter__factory.ts +202 -0
  167. package/typechain-types/factories/IPYieldTokenV2__factory.ts +702 -0
  168. package/typechain-types/factories/IRewardRouterV2__factory.ts +180 -0
  169. package/typechain-types/factories/ISwapAggregator__factory.ts +66 -0
  170. package/typechain-types/factories/IVaultPriceFeed__factory.ts +60 -0
  171. package/typechain-types/factories/InterestManagerYTV2__factory.ts +63 -0
  172. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1 -40
  173. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1 -40
  174. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1 -40
  175. package/typechain-types/factories/PendleGlpSY__factory.ts +1216 -0
  176. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  177. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  178. package/typechain-types/factories/PendleMulticall__factory.ts +100 -0
  179. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +564 -0
  180. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +674 -0
  181. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1122 -0
  182. package/typechain-types/factories/SwapAggregator__factory.ts +309 -0
  183. package/typechain-types/hardhat.d.ts +103 -13
  184. package/typechain-types/index.ts +24 -4
  185. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +0 -4
  186. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json +0 -136
  187. package/contracts/router/kyberswap/IMultihopRouterEthereum.sol +0 -141
@@ -0,0 +1,320 @@
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 { IGMXVault, IGMXVaultInterface } from "../IGMXVault";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "BASIS_POINTS_DIVISOR",
13
+ outputs: [
14
+ {
15
+ internalType: "uint256",
16
+ name: "",
17
+ type: "uint256",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "PRICE_PRECISION",
26
+ outputs: [
27
+ {
28
+ internalType: "uint256",
29
+ name: "",
30
+ type: "uint256",
31
+ },
32
+ ],
33
+ stateMutability: "view",
34
+ type: "function",
35
+ },
36
+ {
37
+ inputs: [
38
+ {
39
+ internalType: "uint256",
40
+ name: "_amount",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ internalType: "address",
45
+ name: "_tokenDiv",
46
+ type: "address",
47
+ },
48
+ {
49
+ internalType: "address",
50
+ name: "_tokenMul",
51
+ type: "address",
52
+ },
53
+ ],
54
+ name: "adjustForDecimals",
55
+ outputs: [
56
+ {
57
+ internalType: "uint256",
58
+ name: "",
59
+ type: "uint256",
60
+ },
61
+ ],
62
+ stateMutability: "view",
63
+ type: "function",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "uint256",
69
+ name: "",
70
+ type: "uint256",
71
+ },
72
+ ],
73
+ name: "allWhitelistedTokens",
74
+ outputs: [
75
+ {
76
+ internalType: "address",
77
+ name: "",
78
+ type: "address",
79
+ },
80
+ ],
81
+ stateMutability: "view",
82
+ type: "function",
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: "allWhitelistedTokensLength",
87
+ outputs: [
88
+ {
89
+ internalType: "uint256",
90
+ name: "",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ stateMutability: "view",
95
+ type: "function",
96
+ },
97
+ {
98
+ inputs: [
99
+ {
100
+ internalType: "address",
101
+ name: "_token",
102
+ type: "address",
103
+ },
104
+ ],
105
+ name: "getMinPrice",
106
+ outputs: [
107
+ {
108
+ internalType: "uint256",
109
+ name: "",
110
+ type: "uint256",
111
+ },
112
+ ],
113
+ stateMutability: "view",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [
118
+ {
119
+ internalType: "address",
120
+ name: "_token",
121
+ type: "address",
122
+ },
123
+ {
124
+ internalType: "uint256",
125
+ name: "_usdgAmount",
126
+ type: "uint256",
127
+ },
128
+ ],
129
+ name: "getRedemptionAmount",
130
+ outputs: [
131
+ {
132
+ internalType: "uint256",
133
+ name: "",
134
+ type: "uint256",
135
+ },
136
+ ],
137
+ stateMutability: "view",
138
+ type: "function",
139
+ },
140
+ {
141
+ inputs: [],
142
+ name: "hasDynamicFees",
143
+ outputs: [
144
+ {
145
+ internalType: "bool",
146
+ name: "",
147
+ type: "bool",
148
+ },
149
+ ],
150
+ stateMutability: "view",
151
+ type: "function",
152
+ },
153
+ {
154
+ inputs: [],
155
+ name: "mintBurnFeeBasisPoints",
156
+ outputs: [
157
+ {
158
+ internalType: "uint256",
159
+ name: "",
160
+ type: "uint256",
161
+ },
162
+ ],
163
+ stateMutability: "view",
164
+ type: "function",
165
+ },
166
+ {
167
+ inputs: [],
168
+ name: "priceFeed",
169
+ outputs: [
170
+ {
171
+ internalType: "address",
172
+ name: "",
173
+ type: "address",
174
+ },
175
+ ],
176
+ stateMutability: "view",
177
+ type: "function",
178
+ },
179
+ {
180
+ inputs: [],
181
+ name: "taxBasisPoints",
182
+ outputs: [
183
+ {
184
+ internalType: "uint256",
185
+ name: "",
186
+ type: "uint256",
187
+ },
188
+ ],
189
+ stateMutability: "view",
190
+ type: "function",
191
+ },
192
+ {
193
+ inputs: [
194
+ {
195
+ internalType: "address",
196
+ name: "",
197
+ type: "address",
198
+ },
199
+ ],
200
+ name: "tokenBalances",
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
+ internalType: "address",
215
+ name: "_token",
216
+ type: "address",
217
+ },
218
+ ],
219
+ name: "tokenWeights",
220
+ outputs: [
221
+ {
222
+ internalType: "uint256",
223
+ name: "",
224
+ type: "uint256",
225
+ },
226
+ ],
227
+ stateMutability: "view",
228
+ type: "function",
229
+ },
230
+ {
231
+ inputs: [],
232
+ name: "totalTokenWeights",
233
+ outputs: [
234
+ {
235
+ internalType: "uint256",
236
+ name: "",
237
+ type: "uint256",
238
+ },
239
+ ],
240
+ stateMutability: "view",
241
+ type: "function",
242
+ },
243
+ {
244
+ inputs: [],
245
+ name: "usdg",
246
+ outputs: [
247
+ {
248
+ internalType: "address",
249
+ name: "",
250
+ type: "address",
251
+ },
252
+ ],
253
+ stateMutability: "view",
254
+ type: "function",
255
+ },
256
+ {
257
+ inputs: [
258
+ {
259
+ internalType: "address",
260
+ name: "",
261
+ type: "address",
262
+ },
263
+ ],
264
+ name: "usdgAmounts",
265
+ outputs: [
266
+ {
267
+ internalType: "uint256",
268
+ name: "",
269
+ type: "uint256",
270
+ },
271
+ ],
272
+ stateMutability: "view",
273
+ type: "function",
274
+ },
275
+ {
276
+ inputs: [],
277
+ name: "whitelistedTokenCount",
278
+ outputs: [
279
+ {
280
+ internalType: "uint256",
281
+ name: "",
282
+ type: "uint256",
283
+ },
284
+ ],
285
+ stateMutability: "view",
286
+ type: "function",
287
+ },
288
+ {
289
+ inputs: [
290
+ {
291
+ internalType: "address",
292
+ name: "",
293
+ type: "address",
294
+ },
295
+ ],
296
+ name: "whitelistedTokens",
297
+ outputs: [
298
+ {
299
+ internalType: "bool",
300
+ name: "",
301
+ type: "bool",
302
+ },
303
+ ],
304
+ stateMutability: "view",
305
+ type: "function",
306
+ },
307
+ ];
308
+
309
+ export class IGMXVault__factory {
310
+ static readonly abi = _abi;
311
+ static createInterface(): IGMXVaultInterface {
312
+ return new utils.Interface(_abi) as IGMXVaultInterface;
313
+ }
314
+ static connect(
315
+ address: string,
316
+ signerOrProvider: Signer | Provider
317
+ ): IGMXVault {
318
+ return new Contract(address, _abi, signerOrProvider) as IGMXVault;
319
+ }
320
+ }
@@ -0,0 +1,55 @@
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 { IGlpManager, IGlpManagerInterface } from "../IGlpManager";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "bool",
14
+ name: "maximise",
15
+ type: "bool",
16
+ },
17
+ ],
18
+ name: "getAumInUsdg",
19
+ outputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ stateMutability: "view",
27
+ type: "function",
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: "vault",
32
+ outputs: [
33
+ {
34
+ internalType: "address",
35
+ name: "",
36
+ type: "address",
37
+ },
38
+ ],
39
+ stateMutability: "view",
40
+ type: "function",
41
+ },
42
+ ];
43
+
44
+ export class IGlpManager__factory {
45
+ static readonly abi = _abi;
46
+ static createInterface(): IGlpManagerInterface {
47
+ return new utils.Interface(_abi) as IGlpManagerInterface;
48
+ }
49
+ static connect(
50
+ address: string,
51
+ signerOrProvider: Signer | Provider
52
+ ): IGlpManager {
53
+ return new Contract(address, _abi, signerOrProvider) as IGlpManager;
54
+ }
55
+ }
@@ -0,0 +1,113 @@
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 { IHashflow, IHashflowInterface } from "../IHashflow";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ components: [
14
+ {
15
+ internalType: "enum IHashflow.RFQType",
16
+ name: "rfqType",
17
+ type: "uint8",
18
+ },
19
+ {
20
+ internalType: "address",
21
+ name: "pool",
22
+ type: "address",
23
+ },
24
+ {
25
+ internalType: "address",
26
+ name: "eoa",
27
+ type: "address",
28
+ },
29
+ {
30
+ internalType: "address",
31
+ name: "trader",
32
+ type: "address",
33
+ },
34
+ {
35
+ internalType: "address",
36
+ name: "effectiveTrader",
37
+ type: "address",
38
+ },
39
+ {
40
+ internalType: "address",
41
+ name: "baseToken",
42
+ type: "address",
43
+ },
44
+ {
45
+ internalType: "address",
46
+ name: "quoteToken",
47
+ type: "address",
48
+ },
49
+ {
50
+ internalType: "uint256",
51
+ name: "effectiveBaseTokenAmount",
52
+ type: "uint256",
53
+ },
54
+ {
55
+ internalType: "uint256",
56
+ name: "maxBaseTokenAmount",
57
+ type: "uint256",
58
+ },
59
+ {
60
+ internalType: "uint256",
61
+ name: "maxQuoteTokenAmount",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ internalType: "uint256",
66
+ name: "fees",
67
+ type: "uint256",
68
+ },
69
+ {
70
+ internalType: "uint256",
71
+ name: "quoteExpiry",
72
+ type: "uint256",
73
+ },
74
+ {
75
+ internalType: "uint256",
76
+ name: "nonce",
77
+ type: "uint256",
78
+ },
79
+ {
80
+ internalType: "bytes32",
81
+ name: "txid",
82
+ type: "bytes32",
83
+ },
84
+ {
85
+ internalType: "bytes",
86
+ name: "signedQuote",
87
+ type: "bytes",
88
+ },
89
+ ],
90
+ internalType: "struct IHashflow.Quote",
91
+ name: "quote",
92
+ type: "tuple",
93
+ },
94
+ ],
95
+ name: "tradeSingleHop",
96
+ outputs: [],
97
+ stateMutability: "payable",
98
+ type: "function",
99
+ },
100
+ ];
101
+
102
+ export class IHashflow__factory {
103
+ static readonly abi = _abi;
104
+ static createInterface(): IHashflowInterface {
105
+ return new utils.Interface(_abi) as IHashflowInterface;
106
+ }
107
+ static connect(
108
+ address: string,
109
+ signerOrProvider: Signer | Provider
110
+ ): IHashflow {
111
+ return new Contract(address, _abi, signerOrProvider) as IHashflow;
112
+ }
113
+ }
@@ -0,0 +1,56 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IKyberSwapAggregationRouterHelper,
9
+ IKyberSwapAggregationRouterHelperInterface,
10
+ } from "../IKyberSwapAggregationRouterHelper";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "bytes",
17
+ name: "kybercall",
18
+ type: "bytes",
19
+ },
20
+ {
21
+ internalType: "uint256",
22
+ name: "newAmount",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ name: "getScaledInputData",
27
+ outputs: [
28
+ {
29
+ internalType: "bytes",
30
+ name: "",
31
+ type: "bytes",
32
+ },
33
+ ],
34
+ stateMutability: "pure",
35
+ type: "function",
36
+ },
37
+ ];
38
+
39
+ export class IKyberSwapAggregationRouterHelper__factory {
40
+ static readonly abi = _abi;
41
+ static createInterface(): IKyberSwapAggregationRouterHelperInterface {
42
+ return new utils.Interface(
43
+ _abi
44
+ ) as IKyberSwapAggregationRouterHelperInterface;
45
+ }
46
+ static connect(
47
+ address: string,
48
+ signerOrProvider: Signer | Provider
49
+ ): IKyberSwapAggregationRouterHelper {
50
+ return new Contract(
51
+ address,
52
+ _abi,
53
+ signerOrProvider
54
+ ) as IKyberSwapAggregationRouterHelper;
55
+ }
56
+ }