@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
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.17;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
library LayerZeroHelper {
|
|
6
|
-
uint256 constant EVM_ADDRESS_SIZE = 20;
|
|
7
|
-
|
|
8
|
-
function _getLayerZeroChainIds(uint256 chainId) internal pure returns (uint16) {
|
|
9
|
-
if (chainId == 43113) return 10106; // fuji testnet
|
|
10
|
-
else if (chainId == 80001) return 10109; // mumbai testnet
|
|
11
|
-
else if (chainId == 43114) return 106; // avax mainnet
|
|
12
|
-
revert("");
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function _getOriginalChainIds(uint16 chainId) internal pure returns (uint256) {
|
|
16
|
-
if (chainId == 10106) return 43113; // fuji testnet
|
|
17
|
-
else if (chainId == 10109) return 80001; // mumbai testnet
|
|
18
|
-
else if (chainId == 106) return 43114; // avax mainnet
|
|
19
|
-
revert("");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _getSrcAdrressFromPath(bytes memory path) internal pure returns (address src) {
|
|
23
|
-
assembly {
|
|
24
|
-
src := mload(add(add(path, EVM_ADDRESS_SIZE), EVM_ADDRESS_SIZE))
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function _getDstAddressFromPath(bytes memory path) internal pure returns (address dst) {
|
|
29
|
-
assembly {
|
|
30
|
-
dst := mload(add(add(path, EVM_ADDRESS_SIZE), 0))
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
|
|
3
|
-
pragma solidity >=0.5.0;
|
|
4
|
-
|
|
5
|
-
interface ILayerZeroEndpoint {
|
|
6
|
-
// @notice send a LayerZero message to the specified address at a LayerZero endpoint.
|
|
7
|
-
// @param _dstChainId - the destination chain identifier
|
|
8
|
-
// @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
|
|
9
|
-
// @param _payload - a custom bytes payload to send to the destination contract
|
|
10
|
-
// @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
|
|
11
|
-
// @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
|
|
12
|
-
// @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
|
|
13
|
-
function send(
|
|
14
|
-
uint16 _dstChainId,
|
|
15
|
-
bytes calldata _destination,
|
|
16
|
-
bytes calldata _payload,
|
|
17
|
-
address payable _refundAddress,
|
|
18
|
-
address _zroPaymentAddress,
|
|
19
|
-
bytes calldata _adapterParams
|
|
20
|
-
) external payable;
|
|
21
|
-
|
|
22
|
-
// @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
|
|
23
|
-
// @param _dstChainId - the destination chain identifier
|
|
24
|
-
// @param _userApplication - the user app address on this EVM chain
|
|
25
|
-
// @param _payload - the custom message to send over LayerZero
|
|
26
|
-
// @param _payInZRO - if false, user app pays the protocol fee in native token
|
|
27
|
-
// @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
|
|
28
|
-
function estimateFees(
|
|
29
|
-
uint16 _dstChainId,
|
|
30
|
-
address _userApplication,
|
|
31
|
-
bytes calldata _payload,
|
|
32
|
-
bool _payInZRO,
|
|
33
|
-
bytes calldata _adapterParam
|
|
34
|
-
) external view returns (uint256 nativeFee, uint256 zroFee);
|
|
35
|
-
|
|
36
|
-
function setSendVersion(uint16 _newVersion) external;
|
|
37
|
-
|
|
38
|
-
function setReceiveVersion(uint16 _newVersion) external;
|
|
39
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: BUSL-1.1
|
|
2
|
-
|
|
3
|
-
pragma solidity >=0.5.0;
|
|
4
|
-
|
|
5
|
-
interface ILayerZeroReceiver {
|
|
6
|
-
// @notice LayerZero endpoint will invoke this function to deliver the message on the destination
|
|
7
|
-
// @param _srcChainId - the source endpoint identifier
|
|
8
|
-
// @param _srcAddress - the source sending contract address from the source chain
|
|
9
|
-
// @param _nonce - the ordered message nonce
|
|
10
|
-
// @param _payload - the signed payload is the UA bytes has encoded to be sent
|
|
11
|
-
function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"deployer": "0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7",
|
|
3
|
-
"network": 43113,
|
|
4
|
-
"splitter": "0x93217b443F75aDCc96cF888d934E42421896b261",
|
|
5
|
-
"lzEndpoint": "0x93f54D755A063cE7bB9e6Ac47Eccc8e33411d706",
|
|
6
|
-
"treasury": "0xa123528ad71ef5c5bc36D4A78083b2452Ec1F233",
|
|
7
|
-
"PENDLE": "0xf1857a9F1df68159F710aA9198B6e2A373d28151",
|
|
8
|
-
"yieldContractFactory": "0xAe8bc036451af7c8F96Fd90642e163392d21D33b",
|
|
9
|
-
"marketFactory": "0x540Ec7BEd6aCE1726234DC0B8DBE7D44f6b37843",
|
|
10
|
-
"router": "0x7097112fbEc6BB001352fC98A3470d1951464F5B",
|
|
11
|
-
"routerStatic": "0xf3E9DeDdd01aa9bD0E18087c4729e82Bc66f366d",
|
|
12
|
-
"vePendle": "0x138C04c3602e58E1176168a58BE2c10eFd8c1b7e",
|
|
13
|
-
"senderEndpoint": "0x1B7Ec861Ad05843F0Fb34716B4fc94409655e1A3",
|
|
14
|
-
"votingController": "0xA2a12e2e0F31C4e92aEf08803fBA4e0DcD2bD726",
|
|
15
|
-
"gaugeController": "0xecBe97316Ee3F77E511D815cA432Ca2914fBa347"
|
|
16
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"symbol": "SY-qiUSDC",
|
|
3
|
-
"SY": "0xf1ce104816e7578EaBcc9c148C58B1b287ccd387",
|
|
4
|
-
"expiry": 1675382400,
|
|
5
|
-
"PT": "0xAaBbDd4E38E4669d37810B4B1A4747f94beeF73A",
|
|
6
|
-
"YT": "0x37613Fb19988c395E6a2e7C062fDa7823ce4bE1a",
|
|
7
|
-
"market": "0xEf74AfeB451F3662Bc8600d4468FB7eF13b36a97"
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"symbol": "SY-qiWETH",
|
|
3
|
-
"SY": "0x4C63A4B1F031D2aF9dcd4E070b30566D563c87fc",
|
|
4
|
-
"expiry": 1669852800,
|
|
5
|
-
"PT": "0x208B0a9F18346A532a60cdAf364b18775bA9c087",
|
|
6
|
-
"YT": "0x1814Baf30a36247f7005a07914cd269bEe0A4a85",
|
|
7
|
-
"market": "0x4d26b9742722e1D0F81dF3b2ee053995f83d4831"
|
|
8
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tokens": {
|
|
3
|
-
"fundKeeper": "0x45e03eB183962884d50eC0Af39B03970333426cb",
|
|
4
|
-
"faucet": "0xf9d2A793b446D200deC9FBB6f29a9DadcD0521cC",
|
|
5
|
-
"WAVAX": "0xe43a7aD7C09d8fAE3ADe7361f0b847b23adD5094",
|
|
6
|
-
"DAI": "0xCd3748CE3Bf75A01D99Bf301668E0748558a592C",
|
|
7
|
-
"USDC": "0xc2A6b8d7d0FAB3749A6Bda84cEdb58D2d58f045e",
|
|
8
|
-
"USDT": "0x9BE875cdBB8409DbC1a553c8ddc1FC05cdDF80Ce",
|
|
9
|
-
"WBTC": "0x82c18D07253603D04d25C8B1F1E60134a59C39ce",
|
|
10
|
-
"WETH": "0x1e2e40697603CA5b5ffc102c9D7A3310EA3f2Aa3",
|
|
11
|
-
"qiUSDC": "0xEE3a174F1478198fBc669132B1e2cc13B5686F94",
|
|
12
|
-
"qiWETH": "0xE5710EC5e4CeB255fb14d2c2BFC93E64d0c30A2c",
|
|
13
|
-
"qiAVAX": "0xf9aEd3b927dce44C6d53B334Cb759f4D230D9b9c"
|
|
14
|
-
},
|
|
15
|
-
"benqi": {
|
|
16
|
-
"comptroller": "0x4Af3e9CA6f86E655C01f03C13519BcAF867286EE",
|
|
17
|
-
"QI": "0x63554C4d2038c9B7973190f3E41f5158939Fe972",
|
|
18
|
-
"interestRateModel": "0xd66C253151539b3bE0a0C11699fB024E054227d4",
|
|
19
|
-
"qiErc20Impl": "0x184622Dd7B63299F87CBf21f11FF25c9c302fd5d",
|
|
20
|
-
"oracle": "0x44b789cBC190b7888d438cEb58f1Eb8A3Ae2d897"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"deployer": "0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7",
|
|
3
|
-
"network": 80001,
|
|
4
|
-
"splitter": "0x07D39E2025Fd0B1F0065FE39172df246f063BB15",
|
|
5
|
-
"lzEndpoint": "0xf69186dfBa60DdB133E91E9A4B5673624293d8F8",
|
|
6
|
-
"treasury": "0x47F77E3fAC652E05FFEB7E8E1cEf69E775628B24",
|
|
7
|
-
"PENDLE": "0x5FDA5b3b05B2884F9f028550069B9D321E84814A",
|
|
8
|
-
"yieldContractFactory": "0x8B3C5BD39E6B82272eCf0d6828D458536dc44dea",
|
|
9
|
-
"marketFactory": "0xf963474FAe462B06B026DE500f605B3578B66c66",
|
|
10
|
-
"router": "0x7cD7cc0990A0F61532410fE11f884f2caD7e59D3",
|
|
11
|
-
"routerStatic": "0xc9132D222e681c86A522120B41585B87992D61b9",
|
|
12
|
-
"receiverEndpoint": "0x57D55237374b0D1AFdac5E25F16A4EE5C57A627c",
|
|
13
|
-
"vePendle": "0x89Cec94a14FAB1cb27C1A5cd32af05ef448d9829",
|
|
14
|
-
"gaugeController": "0x8a6c59A80aA3Bbf32E7b3F0C359Eb528Cf6f7288"
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tokens": {
|
|
3
|
-
"fundKeeper": "0x7D301Cc4F91A9eDd8EDE1801344bd6516b5FA3d2",
|
|
4
|
-
"faucet": "0x35AC4A286F1f1234f09Ff43f42B1f7767c6fAA91",
|
|
5
|
-
"WAVAX": "0xdF3601014686674e53d1Fa52F7602525483F9122",
|
|
6
|
-
"DAI": "0x829bF32457394D1f1fA8C1b151cE5017bb04C17D",
|
|
7
|
-
"USDC": "0x5Ea8c8e02c2D413165C1ADcBb6916B0851f6cd73",
|
|
8
|
-
"USDT": "0xAFC1ac698E9b54C240e6Ebc7d64200BB84f2E4cd",
|
|
9
|
-
"WBTC": "0x4d89990738A071B9E597Ea442f2ba58e6EA97184",
|
|
10
|
-
"WETH": "0x1A6fCc85557BC4fB7B534ed835a03EF056552D52",
|
|
11
|
-
"qiUSDC": "0x76818c92936662e9b24f74395f38634C35604720",
|
|
12
|
-
"qiWETH": "0x0b9d0756AeaD1cBc6bC4e9f30FeEa377a73d407F",
|
|
13
|
-
"qiAVAX": "0x98030D8f342aA21424B07059Cb1405A179A1F668"
|
|
14
|
-
},
|
|
15
|
-
"benqi": {
|
|
16
|
-
"comptroller": "0x0d18d7a0B27CB5C2F33cDc0a087B7182a72e0fAb",
|
|
17
|
-
"QI": "0x9F10C77EF63a5706e53D82B249D9195BeB5774fd",
|
|
18
|
-
"interestRateModel": "0xfF334644479e70ae5C9545218574B17e9aF7A5DD",
|
|
19
|
-
"qiErc20Impl": "0xA3972f97074552de27cF747A126b2c5F36935818",
|
|
20
|
-
"oracle": "0x324D838b26Eb73786bDBBc53bb0682F1EBB50603"
|
|
21
|
-
}
|
|
22
|
-
}
|