@pendle/core-v2 0.8.0-beta-10 → 0.8.0-beta-12
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/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechain.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
- 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/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/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +486 -2
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +2 -2
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +484 -0
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +484 -0
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +5 -0
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYIndex.sol/SCYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +161 -2
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/core/PendleRouter.sol +8 -0
- package/contracts/core/YieldContracts/PendleYieldToken.sol +13 -5
- package/contracts/core/actions/ActionCore.sol +80 -0
- package/contracts/core/actions/base/ActionSCYAndPYBase.sol +36 -0
- package/contracts/interfaces/IPActionCore.sol +78 -0
- package/contracts/interfaces/IPRouterStatic.sol +2 -1
- package/contracts/offchain-helpers/RouterStatic.sol +47 -1
- package/deployments/43113-core.json +1 -1
- package/deployments/80001-core.json +1 -1
- package/package.json +1 -1
- package/typechain-types/ActionCore.ts +489 -0
- package/typechain-types/IPActionCore.ts +489 -0
- package/typechain-types/IPAllAction.ts +489 -0
- package/typechain-types/IPRouterStatic.ts +6 -3
- package/typechain-types/IStargateLPStaking.ts +143 -0
- package/typechain-types/IStargatePool.ts +129 -0
- package/typechain-types/IStargateRouter.ts +159 -0
- package/typechain-types/PendleStargatePool.ts +1089 -0
- package/typechain-types/RouterStatic.ts +250 -3
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionCore__factory.ts +485 -1
- package/typechain-types/factories/ActionYT__factory.ts +1 -1
- package/typechain-types/factories/IPActionCore__factory.ts +484 -0
- package/typechain-types/factories/IPAllAction__factory.ts +484 -0
- package/typechain-types/factories/IPRouterStatic__factory.ts +5 -0
- package/typechain-types/factories/IStargateLPStaking__factory.ts +62 -0
- package/typechain-types/factories/IStargatePool__factory.ts +68 -0
- package/typechain-types/factories/IStargateRouter__factory.ts +78 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleStargatePool__factory.ts +929 -0
- 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 +160 -1
- package/typechain-types/hardhat.d.ts +36 -0
- package/typechain-types/index.ts +8 -0
|
@@ -330,11 +330,12 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
330
330
|
market: string,
|
|
331
331
|
overrides?: CallOverrides
|
|
332
332
|
): Promise<
|
|
333
|
-
[string, string, MarketStateStructOutput, BigNumber] & {
|
|
333
|
+
[string, string, MarketStateStructOutput, BigNumber, BigNumber] & {
|
|
334
334
|
pt: string;
|
|
335
335
|
scy: string;
|
|
336
336
|
state: MarketStateStructOutput;
|
|
337
337
|
impliedYield: BigNumber;
|
|
338
|
+
exchangeRate: BigNumber;
|
|
338
339
|
}
|
|
339
340
|
>;
|
|
340
341
|
|
|
@@ -475,11 +476,12 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
475
476
|
market: string,
|
|
476
477
|
overrides?: CallOverrides
|
|
477
478
|
): Promise<
|
|
478
|
-
[string, string, MarketStateStructOutput, BigNumber] & {
|
|
479
|
+
[string, string, MarketStateStructOutput, BigNumber, BigNumber] & {
|
|
479
480
|
pt: string;
|
|
480
481
|
scy: string;
|
|
481
482
|
state: MarketStateStructOutput;
|
|
482
483
|
impliedYield: BigNumber;
|
|
484
|
+
exchangeRate: BigNumber;
|
|
483
485
|
}
|
|
484
486
|
>;
|
|
485
487
|
|
|
@@ -601,11 +603,12 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
601
603
|
market: string,
|
|
602
604
|
overrides?: CallOverrides
|
|
603
605
|
): Promise<
|
|
604
|
-
[string, string, MarketStateStructOutput, BigNumber] & {
|
|
606
|
+
[string, string, MarketStateStructOutput, BigNumber, BigNumber] & {
|
|
605
607
|
pt: string;
|
|
606
608
|
scy: string;
|
|
607
609
|
state: MarketStateStructOutput;
|
|
608
610
|
impliedYield: BigNumber;
|
|
611
|
+
exchangeRate: BigNumber;
|
|
609
612
|
}
|
|
610
613
|
>;
|
|
611
614
|
|
|
@@ -0,0 +1,143 @@
|
|
|
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 IStargateLPStakingInterface extends utils.Interface {
|
|
26
|
+
contractName: "IStargateLPStaking";
|
|
27
|
+
functions: {
|
|
28
|
+
"deposit(uint256,uint256)": FunctionFragment;
|
|
29
|
+
"withdraw(uint256,uint256)": FunctionFragment;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "deposit",
|
|
34
|
+
values: [BigNumberish, BigNumberish]
|
|
35
|
+
): string;
|
|
36
|
+
encodeFunctionData(
|
|
37
|
+
functionFragment: "withdraw",
|
|
38
|
+
values: [BigNumberish, BigNumberish]
|
|
39
|
+
): string;
|
|
40
|
+
|
|
41
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
43
|
+
|
|
44
|
+
events: {};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface IStargateLPStaking extends BaseContract {
|
|
48
|
+
contractName: "IStargateLPStaking";
|
|
49
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
50
|
+
attach(addressOrName: string): this;
|
|
51
|
+
deployed(): Promise<this>;
|
|
52
|
+
|
|
53
|
+
interface: IStargateLPStakingInterface;
|
|
54
|
+
|
|
55
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
56
|
+
event: TypedEventFilter<TEvent>,
|
|
57
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
58
|
+
toBlock?: string | number | undefined
|
|
59
|
+
): Promise<Array<TEvent>>;
|
|
60
|
+
|
|
61
|
+
listeners<TEvent extends TypedEvent>(
|
|
62
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
63
|
+
): Array<TypedListener<TEvent>>;
|
|
64
|
+
listeners(eventName?: string): Array<Listener>;
|
|
65
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
66
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
67
|
+
): this;
|
|
68
|
+
removeAllListeners(eventName?: string): this;
|
|
69
|
+
off: OnEvent<this>;
|
|
70
|
+
on: OnEvent<this>;
|
|
71
|
+
once: OnEvent<this>;
|
|
72
|
+
removeListener: OnEvent<this>;
|
|
73
|
+
|
|
74
|
+
functions: {
|
|
75
|
+
deposit(
|
|
76
|
+
_pid: BigNumberish,
|
|
77
|
+
_amount: BigNumberish,
|
|
78
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
79
|
+
): Promise<ContractTransaction>;
|
|
80
|
+
|
|
81
|
+
withdraw(
|
|
82
|
+
_pid: BigNumberish,
|
|
83
|
+
_amount: BigNumberish,
|
|
84
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
85
|
+
): Promise<ContractTransaction>;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
deposit(
|
|
89
|
+
_pid: BigNumberish,
|
|
90
|
+
_amount: BigNumberish,
|
|
91
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
92
|
+
): Promise<ContractTransaction>;
|
|
93
|
+
|
|
94
|
+
withdraw(
|
|
95
|
+
_pid: BigNumberish,
|
|
96
|
+
_amount: BigNumberish,
|
|
97
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
98
|
+
): Promise<ContractTransaction>;
|
|
99
|
+
|
|
100
|
+
callStatic: {
|
|
101
|
+
deposit(
|
|
102
|
+
_pid: BigNumberish,
|
|
103
|
+
_amount: BigNumberish,
|
|
104
|
+
overrides?: CallOverrides
|
|
105
|
+
): Promise<void>;
|
|
106
|
+
|
|
107
|
+
withdraw(
|
|
108
|
+
_pid: BigNumberish,
|
|
109
|
+
_amount: BigNumberish,
|
|
110
|
+
overrides?: CallOverrides
|
|
111
|
+
): Promise<void>;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
filters: {};
|
|
115
|
+
|
|
116
|
+
estimateGas: {
|
|
117
|
+
deposit(
|
|
118
|
+
_pid: BigNumberish,
|
|
119
|
+
_amount: BigNumberish,
|
|
120
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
121
|
+
): Promise<BigNumber>;
|
|
122
|
+
|
|
123
|
+
withdraw(
|
|
124
|
+
_pid: BigNumberish,
|
|
125
|
+
_amount: BigNumberish,
|
|
126
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
127
|
+
): Promise<BigNumber>;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
populateTransaction: {
|
|
131
|
+
deposit(
|
|
132
|
+
_pid: BigNumberish,
|
|
133
|
+
_amount: BigNumberish,
|
|
134
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
135
|
+
): Promise<PopulatedTransaction>;
|
|
136
|
+
|
|
137
|
+
withdraw(
|
|
138
|
+
_pid: BigNumberish,
|
|
139
|
+
_amount: BigNumberish,
|
|
140
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
141
|
+
): Promise<PopulatedTransaction>;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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 } 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 interface IStargatePoolInterface extends utils.Interface {
|
|
24
|
+
contractName: "IStargatePool";
|
|
25
|
+
functions: {
|
|
26
|
+
"amountLPtoLD(uint256)": FunctionFragment;
|
|
27
|
+
"poolId()": FunctionFragment;
|
|
28
|
+
"token()": FunctionFragment;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
encodeFunctionData(
|
|
32
|
+
functionFragment: "amountLPtoLD",
|
|
33
|
+
values: [BigNumberish]
|
|
34
|
+
): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "poolId", values?: undefined): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "token", values?: undefined): string;
|
|
37
|
+
|
|
38
|
+
decodeFunctionResult(
|
|
39
|
+
functionFragment: "amountLPtoLD",
|
|
40
|
+
data: BytesLike
|
|
41
|
+
): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "poolId", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "token", data: BytesLike): Result;
|
|
44
|
+
|
|
45
|
+
events: {};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface IStargatePool extends BaseContract {
|
|
49
|
+
contractName: "IStargatePool";
|
|
50
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
51
|
+
attach(addressOrName: string): this;
|
|
52
|
+
deployed(): Promise<this>;
|
|
53
|
+
|
|
54
|
+
interface: IStargatePoolInterface;
|
|
55
|
+
|
|
56
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
57
|
+
event: TypedEventFilter<TEvent>,
|
|
58
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
59
|
+
toBlock?: string | number | undefined
|
|
60
|
+
): Promise<Array<TEvent>>;
|
|
61
|
+
|
|
62
|
+
listeners<TEvent extends TypedEvent>(
|
|
63
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
64
|
+
): Array<TypedListener<TEvent>>;
|
|
65
|
+
listeners(eventName?: string): Array<Listener>;
|
|
66
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
67
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
68
|
+
): this;
|
|
69
|
+
removeAllListeners(eventName?: string): this;
|
|
70
|
+
off: OnEvent<this>;
|
|
71
|
+
on: OnEvent<this>;
|
|
72
|
+
once: OnEvent<this>;
|
|
73
|
+
removeListener: OnEvent<this>;
|
|
74
|
+
|
|
75
|
+
functions: {
|
|
76
|
+
amountLPtoLD(
|
|
77
|
+
_amountLP: BigNumberish,
|
|
78
|
+
overrides?: CallOverrides
|
|
79
|
+
): Promise<[BigNumber]>;
|
|
80
|
+
|
|
81
|
+
poolId(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
82
|
+
|
|
83
|
+
token(overrides?: CallOverrides): Promise<[string]>;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
amountLPtoLD(
|
|
87
|
+
_amountLP: BigNumberish,
|
|
88
|
+
overrides?: CallOverrides
|
|
89
|
+
): Promise<BigNumber>;
|
|
90
|
+
|
|
91
|
+
poolId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
92
|
+
|
|
93
|
+
token(overrides?: CallOverrides): Promise<string>;
|
|
94
|
+
|
|
95
|
+
callStatic: {
|
|
96
|
+
amountLPtoLD(
|
|
97
|
+
_amountLP: BigNumberish,
|
|
98
|
+
overrides?: CallOverrides
|
|
99
|
+
): Promise<BigNumber>;
|
|
100
|
+
|
|
101
|
+
poolId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
102
|
+
|
|
103
|
+
token(overrides?: CallOverrides): Promise<string>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
filters: {};
|
|
107
|
+
|
|
108
|
+
estimateGas: {
|
|
109
|
+
amountLPtoLD(
|
|
110
|
+
_amountLP: BigNumberish,
|
|
111
|
+
overrides?: CallOverrides
|
|
112
|
+
): Promise<BigNumber>;
|
|
113
|
+
|
|
114
|
+
poolId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
115
|
+
|
|
116
|
+
token(overrides?: CallOverrides): Promise<BigNumber>;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
populateTransaction: {
|
|
120
|
+
amountLPtoLD(
|
|
121
|
+
_amountLP: BigNumberish,
|
|
122
|
+
overrides?: CallOverrides
|
|
123
|
+
): Promise<PopulatedTransaction>;
|
|
124
|
+
|
|
125
|
+
poolId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
126
|
+
|
|
127
|
+
token(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
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 IStargateRouterInterface extends utils.Interface {
|
|
26
|
+
contractName: "IStargateRouter";
|
|
27
|
+
functions: {
|
|
28
|
+
"addLiquidity(uint256,uint256,address)": FunctionFragment;
|
|
29
|
+
"instantRedeemLocal(uint16,uint256,address)": FunctionFragment;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "addLiquidity",
|
|
34
|
+
values: [BigNumberish, BigNumberish, string]
|
|
35
|
+
): string;
|
|
36
|
+
encodeFunctionData(
|
|
37
|
+
functionFragment: "instantRedeemLocal",
|
|
38
|
+
values: [BigNumberish, BigNumberish, string]
|
|
39
|
+
): string;
|
|
40
|
+
|
|
41
|
+
decodeFunctionResult(
|
|
42
|
+
functionFragment: "addLiquidity",
|
|
43
|
+
data: BytesLike
|
|
44
|
+
): Result;
|
|
45
|
+
decodeFunctionResult(
|
|
46
|
+
functionFragment: "instantRedeemLocal",
|
|
47
|
+
data: BytesLike
|
|
48
|
+
): Result;
|
|
49
|
+
|
|
50
|
+
events: {};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface IStargateRouter extends BaseContract {
|
|
54
|
+
contractName: "IStargateRouter";
|
|
55
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
56
|
+
attach(addressOrName: string): this;
|
|
57
|
+
deployed(): Promise<this>;
|
|
58
|
+
|
|
59
|
+
interface: IStargateRouterInterface;
|
|
60
|
+
|
|
61
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
62
|
+
event: TypedEventFilter<TEvent>,
|
|
63
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
64
|
+
toBlock?: string | number | undefined
|
|
65
|
+
): Promise<Array<TEvent>>;
|
|
66
|
+
|
|
67
|
+
listeners<TEvent extends TypedEvent>(
|
|
68
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
69
|
+
): Array<TypedListener<TEvent>>;
|
|
70
|
+
listeners(eventName?: string): Array<Listener>;
|
|
71
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
72
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
73
|
+
): this;
|
|
74
|
+
removeAllListeners(eventName?: string): this;
|
|
75
|
+
off: OnEvent<this>;
|
|
76
|
+
on: OnEvent<this>;
|
|
77
|
+
once: OnEvent<this>;
|
|
78
|
+
removeListener: OnEvent<this>;
|
|
79
|
+
|
|
80
|
+
functions: {
|
|
81
|
+
addLiquidity(
|
|
82
|
+
_poolId: BigNumberish,
|
|
83
|
+
_amountLD: BigNumberish,
|
|
84
|
+
_to: string,
|
|
85
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
86
|
+
): Promise<ContractTransaction>;
|
|
87
|
+
|
|
88
|
+
instantRedeemLocal(
|
|
89
|
+
_srcPoolId: BigNumberish,
|
|
90
|
+
_amountLP: BigNumberish,
|
|
91
|
+
_to: string,
|
|
92
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
93
|
+
): Promise<ContractTransaction>;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
addLiquidity(
|
|
97
|
+
_poolId: BigNumberish,
|
|
98
|
+
_amountLD: BigNumberish,
|
|
99
|
+
_to: string,
|
|
100
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
101
|
+
): Promise<ContractTransaction>;
|
|
102
|
+
|
|
103
|
+
instantRedeemLocal(
|
|
104
|
+
_srcPoolId: BigNumberish,
|
|
105
|
+
_amountLP: BigNumberish,
|
|
106
|
+
_to: string,
|
|
107
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
108
|
+
): Promise<ContractTransaction>;
|
|
109
|
+
|
|
110
|
+
callStatic: {
|
|
111
|
+
addLiquidity(
|
|
112
|
+
_poolId: BigNumberish,
|
|
113
|
+
_amountLD: BigNumberish,
|
|
114
|
+
_to: string,
|
|
115
|
+
overrides?: CallOverrides
|
|
116
|
+
): Promise<void>;
|
|
117
|
+
|
|
118
|
+
instantRedeemLocal(
|
|
119
|
+
_srcPoolId: BigNumberish,
|
|
120
|
+
_amountLP: BigNumberish,
|
|
121
|
+
_to: string,
|
|
122
|
+
overrides?: CallOverrides
|
|
123
|
+
): Promise<BigNumber>;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
filters: {};
|
|
127
|
+
|
|
128
|
+
estimateGas: {
|
|
129
|
+
addLiquidity(
|
|
130
|
+
_poolId: BigNumberish,
|
|
131
|
+
_amountLD: BigNumberish,
|
|
132
|
+
_to: string,
|
|
133
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
134
|
+
): Promise<BigNumber>;
|
|
135
|
+
|
|
136
|
+
instantRedeemLocal(
|
|
137
|
+
_srcPoolId: BigNumberish,
|
|
138
|
+
_amountLP: BigNumberish,
|
|
139
|
+
_to: string,
|
|
140
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
141
|
+
): Promise<BigNumber>;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
populateTransaction: {
|
|
145
|
+
addLiquidity(
|
|
146
|
+
_poolId: BigNumberish,
|
|
147
|
+
_amountLD: BigNumberish,
|
|
148
|
+
_to: string,
|
|
149
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
150
|
+
): Promise<PopulatedTransaction>;
|
|
151
|
+
|
|
152
|
+
instantRedeemLocal(
|
|
153
|
+
_srcPoolId: BigNumberish,
|
|
154
|
+
_amountLP: BigNumberish,
|
|
155
|
+
_to: string,
|
|
156
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
157
|
+
): Promise<PopulatedTransaction>;
|
|
158
|
+
};
|
|
159
|
+
}
|