@pendle/core-v2 6.6.0 → 6.6.1
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/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +766 -0
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +99 -0
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +210 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +1294 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +1602 -0
- package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -88
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.json +85 -0
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol → IPFixedPricePTAMMV2.sol}/IPFixedPricePTAMMSwapCallback.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol/IPFixedPricePTAMM.json → IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.json} +285 -93
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +156 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionCrossChain.sol/IPActionCrossChain.json → IPSwapHelper.sol/IPSwapHelper.json} +2 -2
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +258 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +265 -3
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.json +156 -0
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +33 -2
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +171 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/contracts/cross-chain/FixedPricePTAMMV2.sol +162 -0
- package/contracts/{router/ActionCrossChain.sol → cross-chain/PendleSwapHelper.sol} +11 -7
- package/contracts/cross-chain/funder/BridgeFunder.sol +61 -0
- package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +55 -0
- package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +64 -0
- package/contracts/interfaces/IPAllActionTypeV3.sol +1 -0
- package/contracts/interfaces/IPAllActionV3.sol +1 -3
- package/contracts/interfaces/IPBridgeFunder.sol +17 -0
- package/contracts/interfaces/IPFixedPricePTAMMV2.sol +58 -0
- package/contracts/interfaces/IPLimitRouter.sol +22 -0
- package/contracts/interfaces/{IPActionCrossChain.sol → IPSwapHelper.sol} +1 -1
- package/contracts/limit/LimitRouterBase.sol +101 -47
- package/contracts/limit/PendleLimitRouter.sol +1 -1
- package/contracts/limit/helpers/MintSyHelper.sol +114 -0
- package/contracts/offchain-helpers/PendleFeeSetter.sol +19 -1
- package/contracts/offchain-helpers/PendleProxyAdmin.sol +11 -0
- package/contracts/router/base/ActionBase.sol +16 -2
- package/deployments/1-core.json +1 -0
- package/deployments/1-offchain-helper.json +1 -1
- package/deployments/10-core.json +1 -0
- package/deployments/10-offchain-helper.json +1 -1
- package/deployments/130-core.json +1 -0
- package/deployments/143-core.json +1 -0
- package/deployments/146-core.json +1 -0
- package/deployments/146-offchain-helper.json +1 -1
- package/deployments/42161-core.json +1 -0
- package/deployments/42161-offchain-helper.json +1 -1
- package/deployments/4217-core.json +14 -0
- package/deployments/43114-core.json +1 -0
- package/deployments/5000-core.json +1 -0
- package/deployments/5000-offchain-helper.json +1 -1
- package/deployments/56-core.json +1 -0
- package/deployments/56-offchain-helper.json +1 -1
- package/deployments/57073-core.json +1 -0
- package/deployments/747474-core.json +1 -0
- package/deployments/80094-core.json +1 -0
- package/deployments/80094-offchain-helper.json +1 -1
- package/deployments/8453-core.json +1 -0
- package/deployments/8453-offchain-helper.json +1 -1
- package/deployments/9745-core.json +1 -0
- package/deployments/9745-offchain-helper.json +1 -1
- package/deployments/999-core.json +1 -0
- package/deployments/999-offchain-helper.json +1 -1
- package/package.json +1 -1
- package/typechain-types/BridgeFunder.ts +344 -0
- package/typechain-types/FixedPricePTAMMV2.ts +1104 -0
- package/typechain-types/IPAllActionV3.ts +0 -54
- package/typechain-types/IPBridgeFunder.ts +165 -0
- package/typechain-types/IPFixedPricePTAMMV2.ts +864 -0
- package/typechain-types/IPLimitRouter.ts +104 -0
- package/typechain-types/IPSwapHelper.ts +161 -0
- package/typechain-types/LimitRouterBase.ts +233 -5
- package/typechain-types/MintSyHelper.ts +230 -0
- package/typechain-types/OFTAdapterAltImpl.ts +1350 -0
- package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +1708 -0
- package/typechain-types/PendleFeeSetter.ts +53 -0
- package/typechain-types/PendleLimitRouter.ts +233 -5
- package/typechain-types/PendleProxyAdmin.ts +341 -0
- package/typechain-types/PendleSwapHelper.ts +161 -0
- package/typechain-types/ProxyAdmin.ts +341 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/BridgeFunder__factory.ts +265 -0
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +824 -0
- package/typechain-types/factories/IPAllActionV3__factory.ts +0 -88
- package/typechain-types/factories/IPBridgeFunder__factory.ts +100 -0
- package/typechain-types/factories/IPFixedPricePTAMMV2__factory.ts +621 -0
- package/typechain-types/factories/IPLimitRouter__factory.ts +156 -0
- package/typechain-types/factories/IPSwapHelper__factory.ts +111 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/LimitRouterBase__factory.ts +258 -1
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/MintSyHelper__factory.ts +168 -0
- package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1363 -0
- package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1702 -0
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeSetter__factory.ts +36 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +268 -3
- package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleProxyAdmin__factory.ts +229 -0
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapHelper__factory.ts +152 -0
- package/typechain-types/factories/ProxyAdmin__factory.ts +210 -0
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +108 -0
- package/typechain-types/index.ts +22 -0
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +0 -667
- package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +0 -99
- package/contracts/cross-chain/FixedPricePTAMM.sol +0 -200
- package/contracts/interfaces/IPFixedPricePTAMM.sol +0 -69
|
@@ -0,0 +1,230 @@
|
|
|
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
|
+
PopulatedTransaction,
|
|
11
|
+
Signer,
|
|
12
|
+
utils,
|
|
13
|
+
} from "ethers";
|
|
14
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
15
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
16
|
+
import type {
|
|
17
|
+
TypedEventFilter,
|
|
18
|
+
TypedEvent,
|
|
19
|
+
TypedListener,
|
|
20
|
+
OnEvent,
|
|
21
|
+
} from "./common";
|
|
22
|
+
|
|
23
|
+
export type SwapDataStruct = {
|
|
24
|
+
swapType: BigNumberish;
|
|
25
|
+
extRouter: string;
|
|
26
|
+
extCalldata: BytesLike;
|
|
27
|
+
needScale: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type SwapDataStructOutput = [number, string, string, boolean] & {
|
|
31
|
+
swapType: number;
|
|
32
|
+
extRouter: string;
|
|
33
|
+
extCalldata: string;
|
|
34
|
+
needScale: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type TokenInputStruct = {
|
|
38
|
+
tokenIn: string;
|
|
39
|
+
netTokenIn: BigNumberish;
|
|
40
|
+
tokenMintSy: string;
|
|
41
|
+
pendleSwap: string;
|
|
42
|
+
swapData: SwapDataStruct;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type TokenInputStructOutput = [
|
|
46
|
+
string,
|
|
47
|
+
BigNumber,
|
|
48
|
+
string,
|
|
49
|
+
string,
|
|
50
|
+
SwapDataStructOutput
|
|
51
|
+
] & {
|
|
52
|
+
tokenIn: string;
|
|
53
|
+
netTokenIn: BigNumber;
|
|
54
|
+
tokenMintSy: string;
|
|
55
|
+
pendleSwap: string;
|
|
56
|
+
swapData: SwapDataStructOutput;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export interface MintSyHelperInterface extends utils.Interface {
|
|
60
|
+
contractName: "MintSyHelper";
|
|
61
|
+
functions: {
|
|
62
|
+
"eip712Domain()": FunctionFragment;
|
|
63
|
+
"hashMintSyPayload((address,uint256,address,address,(uint8,address,bytes,bool))[],uint256[],uint256,bytes32)": FunctionFragment;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
encodeFunctionData(
|
|
67
|
+
functionFragment: "eip712Domain",
|
|
68
|
+
values?: undefined
|
|
69
|
+
): string;
|
|
70
|
+
encodeFunctionData(
|
|
71
|
+
functionFragment: "hashMintSyPayload",
|
|
72
|
+
values: [TokenInputStruct[], BigNumberish[], BigNumberish, BytesLike]
|
|
73
|
+
): string;
|
|
74
|
+
|
|
75
|
+
decodeFunctionResult(
|
|
76
|
+
functionFragment: "eip712Domain",
|
|
77
|
+
data: BytesLike
|
|
78
|
+
): Result;
|
|
79
|
+
decodeFunctionResult(
|
|
80
|
+
functionFragment: "hashMintSyPayload",
|
|
81
|
+
data: BytesLike
|
|
82
|
+
): Result;
|
|
83
|
+
|
|
84
|
+
events: {
|
|
85
|
+
"EIP712DomainChanged()": EventFragment;
|
|
86
|
+
"Initialized(uint8)": EventFragment;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged"): EventFragment;
|
|
90
|
+
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type EIP712DomainChangedEvent = TypedEvent<[], {}>;
|
|
94
|
+
|
|
95
|
+
export type EIP712DomainChangedEventFilter =
|
|
96
|
+
TypedEventFilter<EIP712DomainChangedEvent>;
|
|
97
|
+
|
|
98
|
+
export type InitializedEvent = TypedEvent<[number], { version: number }>;
|
|
99
|
+
|
|
100
|
+
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
|
|
101
|
+
|
|
102
|
+
export interface MintSyHelper extends BaseContract {
|
|
103
|
+
contractName: "MintSyHelper";
|
|
104
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
105
|
+
attach(addressOrName: string): this;
|
|
106
|
+
deployed(): Promise<this>;
|
|
107
|
+
|
|
108
|
+
interface: MintSyHelperInterface;
|
|
109
|
+
|
|
110
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
111
|
+
event: TypedEventFilter<TEvent>,
|
|
112
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
113
|
+
toBlock?: string | number | undefined
|
|
114
|
+
): Promise<Array<TEvent>>;
|
|
115
|
+
|
|
116
|
+
listeners<TEvent extends TypedEvent>(
|
|
117
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
118
|
+
): Array<TypedListener<TEvent>>;
|
|
119
|
+
listeners(eventName?: string): Array<Listener>;
|
|
120
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
121
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
122
|
+
): this;
|
|
123
|
+
removeAllListeners(eventName?: string): this;
|
|
124
|
+
off: OnEvent<this>;
|
|
125
|
+
on: OnEvent<this>;
|
|
126
|
+
once: OnEvent<this>;
|
|
127
|
+
removeListener: OnEvent<this>;
|
|
128
|
+
|
|
129
|
+
functions: {
|
|
130
|
+
eip712Domain(
|
|
131
|
+
overrides?: CallOverrides
|
|
132
|
+
): Promise<
|
|
133
|
+
[string, string, string, BigNumber, string, string, BigNumber[]] & {
|
|
134
|
+
fields: string;
|
|
135
|
+
name: string;
|
|
136
|
+
version: string;
|
|
137
|
+
chainId: BigNumber;
|
|
138
|
+
verifyingContract: string;
|
|
139
|
+
salt: string;
|
|
140
|
+
extensions: BigNumber[];
|
|
141
|
+
}
|
|
142
|
+
>;
|
|
143
|
+
|
|
144
|
+
hashMintSyPayload(
|
|
145
|
+
inps: TokenInputStruct[],
|
|
146
|
+
minSyOuts: BigNumberish[],
|
|
147
|
+
expiry: BigNumberish,
|
|
148
|
+
fillParamsHash: BytesLike,
|
|
149
|
+
overrides?: CallOverrides
|
|
150
|
+
): Promise<[string]>;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
eip712Domain(
|
|
154
|
+
overrides?: CallOverrides
|
|
155
|
+
): Promise<
|
|
156
|
+
[string, string, string, BigNumber, string, string, BigNumber[]] & {
|
|
157
|
+
fields: string;
|
|
158
|
+
name: string;
|
|
159
|
+
version: string;
|
|
160
|
+
chainId: BigNumber;
|
|
161
|
+
verifyingContract: string;
|
|
162
|
+
salt: string;
|
|
163
|
+
extensions: BigNumber[];
|
|
164
|
+
}
|
|
165
|
+
>;
|
|
166
|
+
|
|
167
|
+
hashMintSyPayload(
|
|
168
|
+
inps: TokenInputStruct[],
|
|
169
|
+
minSyOuts: BigNumberish[],
|
|
170
|
+
expiry: BigNumberish,
|
|
171
|
+
fillParamsHash: BytesLike,
|
|
172
|
+
overrides?: CallOverrides
|
|
173
|
+
): Promise<string>;
|
|
174
|
+
|
|
175
|
+
callStatic: {
|
|
176
|
+
eip712Domain(
|
|
177
|
+
overrides?: CallOverrides
|
|
178
|
+
): Promise<
|
|
179
|
+
[string, string, string, BigNumber, string, string, BigNumber[]] & {
|
|
180
|
+
fields: string;
|
|
181
|
+
name: string;
|
|
182
|
+
version: string;
|
|
183
|
+
chainId: BigNumber;
|
|
184
|
+
verifyingContract: string;
|
|
185
|
+
salt: string;
|
|
186
|
+
extensions: BigNumber[];
|
|
187
|
+
}
|
|
188
|
+
>;
|
|
189
|
+
|
|
190
|
+
hashMintSyPayload(
|
|
191
|
+
inps: TokenInputStruct[],
|
|
192
|
+
minSyOuts: BigNumberish[],
|
|
193
|
+
expiry: BigNumberish,
|
|
194
|
+
fillParamsHash: BytesLike,
|
|
195
|
+
overrides?: CallOverrides
|
|
196
|
+
): Promise<string>;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
filters: {
|
|
200
|
+
"EIP712DomainChanged()"(): EIP712DomainChangedEventFilter;
|
|
201
|
+
EIP712DomainChanged(): EIP712DomainChangedEventFilter;
|
|
202
|
+
|
|
203
|
+
"Initialized(uint8)"(version?: null): InitializedEventFilter;
|
|
204
|
+
Initialized(version?: null): InitializedEventFilter;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
estimateGas: {
|
|
208
|
+
eip712Domain(overrides?: CallOverrides): Promise<BigNumber>;
|
|
209
|
+
|
|
210
|
+
hashMintSyPayload(
|
|
211
|
+
inps: TokenInputStruct[],
|
|
212
|
+
minSyOuts: BigNumberish[],
|
|
213
|
+
expiry: BigNumberish,
|
|
214
|
+
fillParamsHash: BytesLike,
|
|
215
|
+
overrides?: CallOverrides
|
|
216
|
+
): Promise<BigNumber>;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
populateTransaction: {
|
|
220
|
+
eip712Domain(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
221
|
+
|
|
222
|
+
hashMintSyPayload(
|
|
223
|
+
inps: TokenInputStruct[],
|
|
224
|
+
minSyOuts: BigNumberish[],
|
|
225
|
+
expiry: BigNumberish,
|
|
226
|
+
fillParamsHash: BytesLike,
|
|
227
|
+
overrides?: CallOverrides
|
|
228
|
+
): Promise<PopulatedTransaction>;
|
|
229
|
+
};
|
|
230
|
+
}
|