@pendle/core-v2 0.15.0-mainnet → 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/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
- 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/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 -2
- 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/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
- 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/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/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/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 +2 -2
- 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/deployments/1-markets/STETH_MARCH_30.json +1 -1
- package/package.json +1 -1
- 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/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/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 -1
- package/typechain-types/factories/PendleConvex2TokensSY__factory.ts +1093 -0
- 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 +1 -1
- 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
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "MarketApproxPtInLib",
|
|
4
4
|
"sourceName": "contracts/router/base/MarketApproxLib.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200ec9023e9e5bc817833322ec20c8b0cc3b233a48f8c77b06e34b34cc857bf94964736f6c63430008110033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200ec9023e9e5bc817833322ec20c8b0cc3b233a48f8c77b06e34b34cc857bf94964736f6c63430008110033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "MarketApproxPtOutLib",
|
|
4
4
|
"sourceName": "contracts/router/base/MarketApproxLib.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f2dbc495ddc16936e9bdf0b263d35ddbdf803ba1f7c610cd2e3d1bded1a8ba5764736f6c63430008110033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f2dbc495ddc16936e9bdf0b263d35ddbdf803ba1f7c610cd2e3d1bded1a8ba5764736f6c63430008110033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"symbol": "SY-testETH",
|
|
3
|
-
"
|
|
3
|
+
"SY": "0xaA7495dcbe99A8dbd0cfA8b27b95f77565a077c8",
|
|
4
4
|
"expiry": 1680134400,
|
|
5
5
|
"PT": "0xc7fCFEfB2055ba61118C93722feECDD4A72E160D",
|
|
6
6
|
"YT": "0xc4a38a6236B2BcF4f4B25690B4B5f770aD8B1195",
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
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 ILooksStakingInterface extends utils.Interface {
|
|
26
|
+
contractName: "ILooksStaking";
|
|
27
|
+
functions: {
|
|
28
|
+
"deposit(uint256)": FunctionFragment;
|
|
29
|
+
"totalShares()": FunctionFragment;
|
|
30
|
+
"userInfo(address)": FunctionFragment;
|
|
31
|
+
"withdraw(uint256)": FunctionFragment;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
encodeFunctionData(
|
|
35
|
+
functionFragment: "deposit",
|
|
36
|
+
values: [BigNumberish]
|
|
37
|
+
): string;
|
|
38
|
+
encodeFunctionData(
|
|
39
|
+
functionFragment: "totalShares",
|
|
40
|
+
values?: undefined
|
|
41
|
+
): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "userInfo", values: [string]): string;
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "withdraw",
|
|
45
|
+
values: [BigNumberish]
|
|
46
|
+
): string;
|
|
47
|
+
|
|
48
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(
|
|
50
|
+
functionFragment: "totalShares",
|
|
51
|
+
data: BytesLike
|
|
52
|
+
): Result;
|
|
53
|
+
decodeFunctionResult(functionFragment: "userInfo", data: BytesLike): Result;
|
|
54
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
55
|
+
|
|
56
|
+
events: {};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ILooksStaking extends BaseContract {
|
|
60
|
+
contractName: "ILooksStaking";
|
|
61
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
62
|
+
attach(addressOrName: string): this;
|
|
63
|
+
deployed(): Promise<this>;
|
|
64
|
+
|
|
65
|
+
interface: ILooksStakingInterface;
|
|
66
|
+
|
|
67
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
68
|
+
event: TypedEventFilter<TEvent>,
|
|
69
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
70
|
+
toBlock?: string | number | undefined
|
|
71
|
+
): Promise<Array<TEvent>>;
|
|
72
|
+
|
|
73
|
+
listeners<TEvent extends TypedEvent>(
|
|
74
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
75
|
+
): Array<TypedListener<TEvent>>;
|
|
76
|
+
listeners(eventName?: string): Array<Listener>;
|
|
77
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
78
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
79
|
+
): this;
|
|
80
|
+
removeAllListeners(eventName?: string): this;
|
|
81
|
+
off: OnEvent<this>;
|
|
82
|
+
on: OnEvent<this>;
|
|
83
|
+
once: OnEvent<this>;
|
|
84
|
+
removeListener: OnEvent<this>;
|
|
85
|
+
|
|
86
|
+
functions: {
|
|
87
|
+
deposit(
|
|
88
|
+
amount: BigNumberish,
|
|
89
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
90
|
+
): Promise<ContractTransaction>;
|
|
91
|
+
|
|
92
|
+
totalShares(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
93
|
+
|
|
94
|
+
userInfo(user: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
95
|
+
|
|
96
|
+
withdraw(
|
|
97
|
+
shares: BigNumberish,
|
|
98
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
99
|
+
): Promise<ContractTransaction>;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
deposit(
|
|
103
|
+
amount: BigNumberish,
|
|
104
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
105
|
+
): Promise<ContractTransaction>;
|
|
106
|
+
|
|
107
|
+
totalShares(overrides?: CallOverrides): Promise<BigNumber>;
|
|
108
|
+
|
|
109
|
+
userInfo(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
110
|
+
|
|
111
|
+
withdraw(
|
|
112
|
+
shares: BigNumberish,
|
|
113
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
114
|
+
): Promise<ContractTransaction>;
|
|
115
|
+
|
|
116
|
+
callStatic: {
|
|
117
|
+
deposit(amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
118
|
+
|
|
119
|
+
totalShares(overrides?: CallOverrides): Promise<BigNumber>;
|
|
120
|
+
|
|
121
|
+
userInfo(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
122
|
+
|
|
123
|
+
withdraw(shares: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
filters: {};
|
|
127
|
+
|
|
128
|
+
estimateGas: {
|
|
129
|
+
deposit(
|
|
130
|
+
amount: BigNumberish,
|
|
131
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
132
|
+
): Promise<BigNumber>;
|
|
133
|
+
|
|
134
|
+
totalShares(overrides?: CallOverrides): Promise<BigNumber>;
|
|
135
|
+
|
|
136
|
+
userInfo(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
137
|
+
|
|
138
|
+
withdraw(
|
|
139
|
+
shares: BigNumberish,
|
|
140
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
141
|
+
): Promise<BigNumber>;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
populateTransaction: {
|
|
145
|
+
deposit(
|
|
146
|
+
amount: BigNumberish,
|
|
147
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
148
|
+
): Promise<PopulatedTransaction>;
|
|
149
|
+
|
|
150
|
+
totalShares(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
151
|
+
|
|
152
|
+
userInfo(
|
|
153
|
+
user: string,
|
|
154
|
+
overrides?: CallOverrides
|
|
155
|
+
): Promise<PopulatedTransaction>;
|
|
156
|
+
|
|
157
|
+
withdraw(
|
|
158
|
+
shares: BigNumberish,
|
|
159
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
160
|
+
): Promise<PopulatedTransaction>;
|
|
161
|
+
};
|
|
162
|
+
}
|