@pendle/core-v2 0.14.0-testnet → 0.15.1-mainnet
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +97 -48
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +62 -21
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json +26 -0
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +10 -0
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +10 -0
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +33 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +39 -8
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +6 -6
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.json +2 -12
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +3 -3
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +37 -6
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +10 -0
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.json +19 -0
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +119 -0
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +39 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.json +12 -2
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.json +182 -0
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +89 -60
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +20 -4
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +4 -4
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +27 -96
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +12 -40
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol +5 -24
- package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +3 -3
- package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +7 -2
- package/contracts/core/Market/MarketMathCore.sol +1 -1
- package/contracts/core/StandardizedYield/SYBase.sol +0 -5
- package/contracts/core/StandardizedYield/SYBaseWithRewards.sol +1 -4
- package/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol +8 -5
- package/contracts/core/YieldContracts/PendleYieldToken.sol +2 -2
- package/contracts/core/erc20/PendleERC20Permit.sol +1 -1
- package/contracts/core/libraries/Errors.sol +1 -3
- package/contracts/interfaces/ICelerMessageBus.sol +28 -0
- package/contracts/interfaces/ICelerMessageReceiverApp.sol +25 -0
- package/contracts/interfaces/IPMsgSendEndpoint.sol +2 -4
- package/deployments/1-core.json +16 -0
- package/deployments/1-markets/STETH_MARCH_30.json +8 -0
- package/package.json +2 -2
- package/typechain-types/ICrvPool.ts +16 -0
- package/typechain-types/ILayerZeroEndpoint.ts +256 -0
- package/typechain-types/ILayerZeroReceiver.ts +117 -0
- package/typechain-types/ILooksFeeSharing.ts +102 -0
- package/typechain-types/ILooksStaking.ts +162 -0
- package/typechain-types/IPMsgSendEndpoint.ts +24 -14
- package/typechain-types/ImplicitSwapfeeContract.ts +9 -17
- package/typechain-types/PendleConvex2TokensSY.ts +1215 -0
- package/typechain-types/PendleLooksStaking.ts +1052 -0
- package/typechain-types/PendleMsgReceiveEndpointUpg.ts +126 -68
- package/typechain-types/PendleMsgSendEndpointUpg.ts +99 -39
- package/typechain-types/PendleMsgSenderAppUpg.ts +55 -0
- package/typechain-types/PendleVotingControllerUpg.ts +55 -0
- package/typechain-types/PendleWstEthSY.ts +1 -3
- package/typechain-types/RouterStatic.ts +44 -0
- package/typechain-types/VotingEscrowPendleMainchain.ts +61 -6
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +17 -1
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionMisc__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +36 -5
- package/typechain-types/factories/ICrvPool__factory.ts +19 -0
- package/typechain-types/factories/ILayerZeroEndpoint__factory.ts +134 -0
- package/typechain-types/factories/ILayerZeroReceiver__factory.ts +54 -0
- package/typechain-types/factories/ILooksFeeSharing__factory.ts +45 -0
- package/typechain-types/factories/ILooksStaking__factory.ts +81 -0
- package/typechain-types/factories/IPMsgSendEndpoint__factory.ts +12 -2
- package/typechain-types/factories/ImplicitSwapfeeContract__factory.ts +4 -12
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvAndTokenSY__factory.ts +1 -19
- package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleConvex2TokensSY__factory.ts +1093 -0
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleLooksStaking__factory.ts +933 -0
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +100 -51
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +71 -23
- package/typechain-types/factories/PendleMsgSenderAppUpg__factory.ts +26 -0
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +44 -2
- package/typechain-types/factories/PendleWstEthSY__factory.ts +2 -2
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +30 -1
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +50 -8
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +27 -18
- package/typechain-types/index.ts +6 -4
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.json +0 -53
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.json +0 -45
- package/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol +0 -133
- package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +0 -33
- package/contracts/interfaces/ILayerZeroEndpoint.sol +0 -39
- package/contracts/interfaces/ILayerZeroReceiver.sol +0 -12
- package/deployments/43113-core.json +0 -16
- package/deployments/43113-helper.json +0 -3
- package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +0 -8
- package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +0 -8
- package/deployments/43113-testenv.json +0 -22
- package/deployments/80001-core.json +0 -15
- package/deployments/80001-testenv.json +0 -22
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pendle/core-v2",
|
|
3
3
|
"description": "Core smart contracts of Pendle Protocol.",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.15.1-mainnet",
|
|
6
6
|
"homepage": "https://pendle.finance",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"pendle",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
},
|
|
45
45
|
"packageManager": "yarn@3.2.2",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@openzeppelin/contracts": "^4.
|
|
47
|
+
"@openzeppelin/contracts": "^4.7.3"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -28,6 +28,7 @@ export interface ICrvPoolInterface extends utils.Interface {
|
|
|
28
28
|
"add_liquidity(uint256[2],uint256)": FunctionFragment;
|
|
29
29
|
"calc_token_amount(uint256[3],bool)": FunctionFragment;
|
|
30
30
|
"calc_withdraw_one_coin(uint256,int128)": FunctionFragment;
|
|
31
|
+
"coins(uint256)": FunctionFragment;
|
|
31
32
|
"exchange(int128,int128,uint256,uint256,address)": FunctionFragment;
|
|
32
33
|
"get_dy(int128,int128,uint256)": FunctionFragment;
|
|
33
34
|
"get_virtual_price()": FunctionFragment;
|
|
@@ -47,6 +48,7 @@ export interface ICrvPoolInterface extends utils.Interface {
|
|
|
47
48
|
functionFragment: "calc_withdraw_one_coin",
|
|
48
49
|
values: [BigNumberish, BigNumberish]
|
|
49
50
|
): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "coins", values: [BigNumberish]): string;
|
|
50
52
|
encodeFunctionData(
|
|
51
53
|
functionFragment: "exchange",
|
|
52
54
|
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, string]
|
|
@@ -80,6 +82,7 @@ export interface ICrvPoolInterface extends utils.Interface {
|
|
|
80
82
|
functionFragment: "calc_withdraw_one_coin",
|
|
81
83
|
data: BytesLike
|
|
82
84
|
): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "coins", data: BytesLike): Result;
|
|
83
86
|
decodeFunctionResult(functionFragment: "exchange", data: BytesLike): Result;
|
|
84
87
|
decodeFunctionResult(functionFragment: "get_dy", data: BytesLike): Result;
|
|
85
88
|
decodeFunctionResult(
|
|
@@ -169,6 +172,8 @@ export interface ICrvPool extends BaseContract {
|
|
|
169
172
|
overrides?: CallOverrides
|
|
170
173
|
): Promise<[BigNumber]>;
|
|
171
174
|
|
|
175
|
+
coins(i: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
|
176
|
+
|
|
172
177
|
exchange(
|
|
173
178
|
i: BigNumberish,
|
|
174
179
|
j: BigNumberish,
|
|
@@ -245,6 +250,8 @@ export interface ICrvPool extends BaseContract {
|
|
|
245
250
|
overrides?: CallOverrides
|
|
246
251
|
): Promise<BigNumber>;
|
|
247
252
|
|
|
253
|
+
coins(i: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
254
|
+
|
|
248
255
|
exchange(
|
|
249
256
|
i: BigNumberish,
|
|
250
257
|
j: BigNumberish,
|
|
@@ -321,6 +328,8 @@ export interface ICrvPool extends BaseContract {
|
|
|
321
328
|
overrides?: CallOverrides
|
|
322
329
|
): Promise<BigNumber>;
|
|
323
330
|
|
|
331
|
+
coins(i: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
332
|
+
|
|
324
333
|
exchange(
|
|
325
334
|
i: BigNumberish,
|
|
326
335
|
j: BigNumberish,
|
|
@@ -400,6 +409,8 @@ export interface ICrvPool extends BaseContract {
|
|
|
400
409
|
overrides?: CallOverrides
|
|
401
410
|
): Promise<BigNumber>;
|
|
402
411
|
|
|
412
|
+
coins(i: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
413
|
+
|
|
403
414
|
exchange(
|
|
404
415
|
i: BigNumberish,
|
|
405
416
|
j: BigNumberish,
|
|
@@ -477,6 +488,11 @@ export interface ICrvPool extends BaseContract {
|
|
|
477
488
|
overrides?: CallOverrides
|
|
478
489
|
): Promise<PopulatedTransaction>;
|
|
479
490
|
|
|
491
|
+
coins(
|
|
492
|
+
i: BigNumberish,
|
|
493
|
+
overrides?: CallOverrides
|
|
494
|
+
): Promise<PopulatedTransaction>;
|
|
495
|
+
|
|
480
496
|
exchange(
|
|
481
497
|
i: BigNumberish,
|
|
482
498
|
j: BigNumberish,
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PayableOverrides,
|
|
13
|
+
PopulatedTransaction,
|
|
14
|
+
Signer,
|
|
15
|
+
utils,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
18
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
19
|
+
import type {
|
|
20
|
+
TypedEventFilter,
|
|
21
|
+
TypedEvent,
|
|
22
|
+
TypedListener,
|
|
23
|
+
OnEvent,
|
|
24
|
+
} from "./common";
|
|
25
|
+
|
|
26
|
+
export interface ILayerZeroEndpointInterface extends utils.Interface {
|
|
27
|
+
contractName: "ILayerZeroEndpoint";
|
|
28
|
+
functions: {
|
|
29
|
+
"estimateFees(uint16,address,bytes,bool,bytes)": FunctionFragment;
|
|
30
|
+
"send(uint16,bytes,bytes,address,address,bytes)": FunctionFragment;
|
|
31
|
+
"setReceiveVersion(uint16)": FunctionFragment;
|
|
32
|
+
"setSendVersion(uint16)": FunctionFragment;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
encodeFunctionData(
|
|
36
|
+
functionFragment: "estimateFees",
|
|
37
|
+
values: [BigNumberish, string, BytesLike, boolean, BytesLike]
|
|
38
|
+
): string;
|
|
39
|
+
encodeFunctionData(
|
|
40
|
+
functionFragment: "send",
|
|
41
|
+
values: [BigNumberish, BytesLike, BytesLike, string, string, BytesLike]
|
|
42
|
+
): string;
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "setReceiveVersion",
|
|
45
|
+
values: [BigNumberish]
|
|
46
|
+
): string;
|
|
47
|
+
encodeFunctionData(
|
|
48
|
+
functionFragment: "setSendVersion",
|
|
49
|
+
values: [BigNumberish]
|
|
50
|
+
): string;
|
|
51
|
+
|
|
52
|
+
decodeFunctionResult(
|
|
53
|
+
functionFragment: "estimateFees",
|
|
54
|
+
data: BytesLike
|
|
55
|
+
): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "send", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(
|
|
58
|
+
functionFragment: "setReceiveVersion",
|
|
59
|
+
data: BytesLike
|
|
60
|
+
): Result;
|
|
61
|
+
decodeFunctionResult(
|
|
62
|
+
functionFragment: "setSendVersion",
|
|
63
|
+
data: BytesLike
|
|
64
|
+
): Result;
|
|
65
|
+
|
|
66
|
+
events: {};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ILayerZeroEndpoint extends BaseContract {
|
|
70
|
+
contractName: "ILayerZeroEndpoint";
|
|
71
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
72
|
+
attach(addressOrName: string): this;
|
|
73
|
+
deployed(): Promise<this>;
|
|
74
|
+
|
|
75
|
+
interface: ILayerZeroEndpointInterface;
|
|
76
|
+
|
|
77
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
78
|
+
event: TypedEventFilter<TEvent>,
|
|
79
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
80
|
+
toBlock?: string | number | undefined
|
|
81
|
+
): Promise<Array<TEvent>>;
|
|
82
|
+
|
|
83
|
+
listeners<TEvent extends TypedEvent>(
|
|
84
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
85
|
+
): Array<TypedListener<TEvent>>;
|
|
86
|
+
listeners(eventName?: string): Array<Listener>;
|
|
87
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
88
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
89
|
+
): this;
|
|
90
|
+
removeAllListeners(eventName?: string): this;
|
|
91
|
+
off: OnEvent<this>;
|
|
92
|
+
on: OnEvent<this>;
|
|
93
|
+
once: OnEvent<this>;
|
|
94
|
+
removeListener: OnEvent<this>;
|
|
95
|
+
|
|
96
|
+
functions: {
|
|
97
|
+
estimateFees(
|
|
98
|
+
_dstChainId: BigNumberish,
|
|
99
|
+
_userApplication: string,
|
|
100
|
+
_payload: BytesLike,
|
|
101
|
+
_payInZRO: boolean,
|
|
102
|
+
_adapterParam: BytesLike,
|
|
103
|
+
overrides?: CallOverrides
|
|
104
|
+
): Promise<
|
|
105
|
+
[BigNumber, BigNumber] & { nativeFee: BigNumber; zroFee: BigNumber }
|
|
106
|
+
>;
|
|
107
|
+
|
|
108
|
+
send(
|
|
109
|
+
_dstChainId: BigNumberish,
|
|
110
|
+
_destination: BytesLike,
|
|
111
|
+
_payload: BytesLike,
|
|
112
|
+
_refundAddress: string,
|
|
113
|
+
_zroPaymentAddress: string,
|
|
114
|
+
_adapterParams: BytesLike,
|
|
115
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
116
|
+
): Promise<ContractTransaction>;
|
|
117
|
+
|
|
118
|
+
setReceiveVersion(
|
|
119
|
+
_newVersion: BigNumberish,
|
|
120
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
121
|
+
): Promise<ContractTransaction>;
|
|
122
|
+
|
|
123
|
+
setSendVersion(
|
|
124
|
+
_newVersion: BigNumberish,
|
|
125
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
126
|
+
): Promise<ContractTransaction>;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
estimateFees(
|
|
130
|
+
_dstChainId: BigNumberish,
|
|
131
|
+
_userApplication: string,
|
|
132
|
+
_payload: BytesLike,
|
|
133
|
+
_payInZRO: boolean,
|
|
134
|
+
_adapterParam: BytesLike,
|
|
135
|
+
overrides?: CallOverrides
|
|
136
|
+
): Promise<
|
|
137
|
+
[BigNumber, BigNumber] & { nativeFee: BigNumber; zroFee: BigNumber }
|
|
138
|
+
>;
|
|
139
|
+
|
|
140
|
+
send(
|
|
141
|
+
_dstChainId: BigNumberish,
|
|
142
|
+
_destination: BytesLike,
|
|
143
|
+
_payload: BytesLike,
|
|
144
|
+
_refundAddress: string,
|
|
145
|
+
_zroPaymentAddress: string,
|
|
146
|
+
_adapterParams: BytesLike,
|
|
147
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
148
|
+
): Promise<ContractTransaction>;
|
|
149
|
+
|
|
150
|
+
setReceiveVersion(
|
|
151
|
+
_newVersion: BigNumberish,
|
|
152
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
153
|
+
): Promise<ContractTransaction>;
|
|
154
|
+
|
|
155
|
+
setSendVersion(
|
|
156
|
+
_newVersion: BigNumberish,
|
|
157
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
158
|
+
): Promise<ContractTransaction>;
|
|
159
|
+
|
|
160
|
+
callStatic: {
|
|
161
|
+
estimateFees(
|
|
162
|
+
_dstChainId: BigNumberish,
|
|
163
|
+
_userApplication: string,
|
|
164
|
+
_payload: BytesLike,
|
|
165
|
+
_payInZRO: boolean,
|
|
166
|
+
_adapterParam: BytesLike,
|
|
167
|
+
overrides?: CallOverrides
|
|
168
|
+
): Promise<
|
|
169
|
+
[BigNumber, BigNumber] & { nativeFee: BigNumber; zroFee: BigNumber }
|
|
170
|
+
>;
|
|
171
|
+
|
|
172
|
+
send(
|
|
173
|
+
_dstChainId: BigNumberish,
|
|
174
|
+
_destination: BytesLike,
|
|
175
|
+
_payload: BytesLike,
|
|
176
|
+
_refundAddress: string,
|
|
177
|
+
_zroPaymentAddress: string,
|
|
178
|
+
_adapterParams: BytesLike,
|
|
179
|
+
overrides?: CallOverrides
|
|
180
|
+
): Promise<void>;
|
|
181
|
+
|
|
182
|
+
setReceiveVersion(
|
|
183
|
+
_newVersion: BigNumberish,
|
|
184
|
+
overrides?: CallOverrides
|
|
185
|
+
): Promise<void>;
|
|
186
|
+
|
|
187
|
+
setSendVersion(
|
|
188
|
+
_newVersion: BigNumberish,
|
|
189
|
+
overrides?: CallOverrides
|
|
190
|
+
): Promise<void>;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
filters: {};
|
|
194
|
+
|
|
195
|
+
estimateGas: {
|
|
196
|
+
estimateFees(
|
|
197
|
+
_dstChainId: BigNumberish,
|
|
198
|
+
_userApplication: string,
|
|
199
|
+
_payload: BytesLike,
|
|
200
|
+
_payInZRO: boolean,
|
|
201
|
+
_adapterParam: BytesLike,
|
|
202
|
+
overrides?: CallOverrides
|
|
203
|
+
): Promise<BigNumber>;
|
|
204
|
+
|
|
205
|
+
send(
|
|
206
|
+
_dstChainId: BigNumberish,
|
|
207
|
+
_destination: BytesLike,
|
|
208
|
+
_payload: BytesLike,
|
|
209
|
+
_refundAddress: string,
|
|
210
|
+
_zroPaymentAddress: string,
|
|
211
|
+
_adapterParams: BytesLike,
|
|
212
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
213
|
+
): Promise<BigNumber>;
|
|
214
|
+
|
|
215
|
+
setReceiveVersion(
|
|
216
|
+
_newVersion: BigNumberish,
|
|
217
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
218
|
+
): Promise<BigNumber>;
|
|
219
|
+
|
|
220
|
+
setSendVersion(
|
|
221
|
+
_newVersion: BigNumberish,
|
|
222
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
223
|
+
): Promise<BigNumber>;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
populateTransaction: {
|
|
227
|
+
estimateFees(
|
|
228
|
+
_dstChainId: BigNumberish,
|
|
229
|
+
_userApplication: string,
|
|
230
|
+
_payload: BytesLike,
|
|
231
|
+
_payInZRO: boolean,
|
|
232
|
+
_adapterParam: BytesLike,
|
|
233
|
+
overrides?: CallOverrides
|
|
234
|
+
): Promise<PopulatedTransaction>;
|
|
235
|
+
|
|
236
|
+
send(
|
|
237
|
+
_dstChainId: BigNumberish,
|
|
238
|
+
_destination: BytesLike,
|
|
239
|
+
_payload: BytesLike,
|
|
240
|
+
_refundAddress: string,
|
|
241
|
+
_zroPaymentAddress: string,
|
|
242
|
+
_adapterParams: BytesLike,
|
|
243
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
244
|
+
): Promise<PopulatedTransaction>;
|
|
245
|
+
|
|
246
|
+
setReceiveVersion(
|
|
247
|
+
_newVersion: BigNumberish,
|
|
248
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
249
|
+
): Promise<PopulatedTransaction>;
|
|
250
|
+
|
|
251
|
+
setSendVersion(
|
|
252
|
+
_newVersion: BigNumberish,
|
|
253
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
254
|
+
): Promise<PopulatedTransaction>;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "./common";
|
|
24
|
+
|
|
25
|
+
export interface ILayerZeroReceiverInterface extends utils.Interface {
|
|
26
|
+
contractName: "ILayerZeroReceiver";
|
|
27
|
+
functions: {
|
|
28
|
+
"lzReceive(uint16,bytes,uint64,bytes)": FunctionFragment;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
encodeFunctionData(
|
|
32
|
+
functionFragment: "lzReceive",
|
|
33
|
+
values: [BigNumberish, BytesLike, BigNumberish, BytesLike]
|
|
34
|
+
): string;
|
|
35
|
+
|
|
36
|
+
decodeFunctionResult(functionFragment: "lzReceive", data: BytesLike): Result;
|
|
37
|
+
|
|
38
|
+
events: {};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ILayerZeroReceiver extends BaseContract {
|
|
42
|
+
contractName: "ILayerZeroReceiver";
|
|
43
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
44
|
+
attach(addressOrName: string): this;
|
|
45
|
+
deployed(): Promise<this>;
|
|
46
|
+
|
|
47
|
+
interface: ILayerZeroReceiverInterface;
|
|
48
|
+
|
|
49
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
50
|
+
event: TypedEventFilter<TEvent>,
|
|
51
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
52
|
+
toBlock?: string | number | undefined
|
|
53
|
+
): Promise<Array<TEvent>>;
|
|
54
|
+
|
|
55
|
+
listeners<TEvent extends TypedEvent>(
|
|
56
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
57
|
+
): Array<TypedListener<TEvent>>;
|
|
58
|
+
listeners(eventName?: string): Array<Listener>;
|
|
59
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
60
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
61
|
+
): this;
|
|
62
|
+
removeAllListeners(eventName?: string): this;
|
|
63
|
+
off: OnEvent<this>;
|
|
64
|
+
on: OnEvent<this>;
|
|
65
|
+
once: OnEvent<this>;
|
|
66
|
+
removeListener: OnEvent<this>;
|
|
67
|
+
|
|
68
|
+
functions: {
|
|
69
|
+
lzReceive(
|
|
70
|
+
_srcChainId: BigNumberish,
|
|
71
|
+
_srcAddress: BytesLike,
|
|
72
|
+
_nonce: BigNumberish,
|
|
73
|
+
_payload: BytesLike,
|
|
74
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
75
|
+
): Promise<ContractTransaction>;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
lzReceive(
|
|
79
|
+
_srcChainId: BigNumberish,
|
|
80
|
+
_srcAddress: BytesLike,
|
|
81
|
+
_nonce: BigNumberish,
|
|
82
|
+
_payload: BytesLike,
|
|
83
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
84
|
+
): Promise<ContractTransaction>;
|
|
85
|
+
|
|
86
|
+
callStatic: {
|
|
87
|
+
lzReceive(
|
|
88
|
+
_srcChainId: BigNumberish,
|
|
89
|
+
_srcAddress: BytesLike,
|
|
90
|
+
_nonce: BigNumberish,
|
|
91
|
+
_payload: BytesLike,
|
|
92
|
+
overrides?: CallOverrides
|
|
93
|
+
): Promise<void>;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
filters: {};
|
|
97
|
+
|
|
98
|
+
estimateGas: {
|
|
99
|
+
lzReceive(
|
|
100
|
+
_srcChainId: BigNumberish,
|
|
101
|
+
_srcAddress: BytesLike,
|
|
102
|
+
_nonce: BigNumberish,
|
|
103
|
+
_payload: BytesLike,
|
|
104
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
105
|
+
): Promise<BigNumber>;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
populateTransaction: {
|
|
109
|
+
lzReceive(
|
|
110
|
+
_srcChainId: BigNumberish,
|
|
111
|
+
_srcAddress: BytesLike,
|
|
112
|
+
_nonce: BigNumberish,
|
|
113
|
+
_payload: BytesLike,
|
|
114
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
115
|
+
): Promise<PopulatedTransaction>;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
PopulatedTransaction,
|
|
10
|
+
Signer,
|
|
11
|
+
utils,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedEventFilter,
|
|
17
|
+
TypedEvent,
|
|
18
|
+
TypedListener,
|
|
19
|
+
OnEvent,
|
|
20
|
+
} from "./common";
|
|
21
|
+
|
|
22
|
+
export interface ILooksFeeSharingInterface extends utils.Interface {
|
|
23
|
+
contractName: "ILooksFeeSharing";
|
|
24
|
+
functions: {
|
|
25
|
+
"calculateSharesValueInLOOKS(address)": FunctionFragment;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
encodeFunctionData(
|
|
29
|
+
functionFragment: "calculateSharesValueInLOOKS",
|
|
30
|
+
values: [string]
|
|
31
|
+
): string;
|
|
32
|
+
|
|
33
|
+
decodeFunctionResult(
|
|
34
|
+
functionFragment: "calculateSharesValueInLOOKS",
|
|
35
|
+
data: BytesLike
|
|
36
|
+
): Result;
|
|
37
|
+
|
|
38
|
+
events: {};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ILooksFeeSharing extends BaseContract {
|
|
42
|
+
contractName: "ILooksFeeSharing";
|
|
43
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
44
|
+
attach(addressOrName: string): this;
|
|
45
|
+
deployed(): Promise<this>;
|
|
46
|
+
|
|
47
|
+
interface: ILooksFeeSharingInterface;
|
|
48
|
+
|
|
49
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
50
|
+
event: TypedEventFilter<TEvent>,
|
|
51
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
52
|
+
toBlock?: string | number | undefined
|
|
53
|
+
): Promise<Array<TEvent>>;
|
|
54
|
+
|
|
55
|
+
listeners<TEvent extends TypedEvent>(
|
|
56
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
57
|
+
): Array<TypedListener<TEvent>>;
|
|
58
|
+
listeners(eventName?: string): Array<Listener>;
|
|
59
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
60
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
61
|
+
): this;
|
|
62
|
+
removeAllListeners(eventName?: string): this;
|
|
63
|
+
off: OnEvent<this>;
|
|
64
|
+
on: OnEvent<this>;
|
|
65
|
+
once: OnEvent<this>;
|
|
66
|
+
removeListener: OnEvent<this>;
|
|
67
|
+
|
|
68
|
+
functions: {
|
|
69
|
+
calculateSharesValueInLOOKS(
|
|
70
|
+
user: string,
|
|
71
|
+
overrides?: CallOverrides
|
|
72
|
+
): Promise<[BigNumber]>;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
calculateSharesValueInLOOKS(
|
|
76
|
+
user: string,
|
|
77
|
+
overrides?: CallOverrides
|
|
78
|
+
): Promise<BigNumber>;
|
|
79
|
+
|
|
80
|
+
callStatic: {
|
|
81
|
+
calculateSharesValueInLOOKS(
|
|
82
|
+
user: string,
|
|
83
|
+
overrides?: CallOverrides
|
|
84
|
+
): Promise<BigNumber>;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
filters: {};
|
|
88
|
+
|
|
89
|
+
estimateGas: {
|
|
90
|
+
calculateSharesValueInLOOKS(
|
|
91
|
+
user: string,
|
|
92
|
+
overrides?: CallOverrides
|
|
93
|
+
): Promise<BigNumber>;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
populateTransaction: {
|
|
97
|
+
calculateSharesValueInLOOKS(
|
|
98
|
+
user: string,
|
|
99
|
+
overrides?: CallOverrides
|
|
100
|
+
): Promise<PopulatedTransaction>;
|
|
101
|
+
};
|
|
102
|
+
}
|