@pendle/core-v2 0.7.1-beta → 0.7.1-beta-2
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/PendleBtrflySCY.sol/PendleBtrflyScy.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/PendleJoeLpSCY.sol/PendleJoeLpSCY.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/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- 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/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- 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/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.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 +20 -15
- 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/IREDACTEDStaking.sol/IREDACTEDStaking.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/IWXBTRFLY.sol/IWXBTRFLY.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 +166 -13
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +67 -47
- package/contracts/offchain-helpers/RouterStatic.sol +143 -114
- package/deployments/43113-core.json +2 -0
- package/deployments/80001-core.json +2 -0
- package/package.json +1 -1
- package/typechain-types/IPRouterStatic.ts +64 -41
- package/typechain-types/RouterStatic.ts +297 -24
- package/typechain-types/factories/IPRouterStatic__factory.ts +20 -15
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +165 -12
|
@@ -9,11 +9,12 @@ import {
|
|
|
9
9
|
CallOverrides,
|
|
10
10
|
ContractTransaction,
|
|
11
11
|
Overrides,
|
|
12
|
+
PayableOverrides,
|
|
12
13
|
PopulatedTransaction,
|
|
13
14
|
Signer,
|
|
14
15
|
utils,
|
|
15
16
|
} from "ethers";
|
|
16
|
-
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
17
18
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
19
|
import type {
|
|
19
20
|
TypedEventFilter,
|
|
@@ -80,12 +81,24 @@ export declare namespace IPRouterStatic {
|
|
|
80
81
|
amount: BigNumber;
|
|
81
82
|
};
|
|
82
83
|
|
|
84
|
+
export type AssetAmountStruct = {
|
|
85
|
+
assetType: BigNumberish;
|
|
86
|
+
assetAddress: string;
|
|
87
|
+
amount: BigNumberish;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type AssetAmountStructOutput = [number, string, BigNumber] & {
|
|
91
|
+
assetType: number;
|
|
92
|
+
assetAddress: string;
|
|
93
|
+
amount: BigNumber;
|
|
94
|
+
};
|
|
95
|
+
|
|
83
96
|
export type UserMarketInfoStruct = {
|
|
84
97
|
market: string;
|
|
85
98
|
lpBalance: BigNumberish;
|
|
86
99
|
ptBalance: IPRouterStatic.TokenAmountStruct;
|
|
87
100
|
scyBalance: IPRouterStatic.TokenAmountStruct;
|
|
88
|
-
assetBalance: IPRouterStatic.
|
|
101
|
+
assetBalance: IPRouterStatic.AssetAmountStruct;
|
|
89
102
|
};
|
|
90
103
|
|
|
91
104
|
export type UserMarketInfoStructOutput = [
|
|
@@ -93,13 +106,13 @@ export declare namespace IPRouterStatic {
|
|
|
93
106
|
BigNumber,
|
|
94
107
|
IPRouterStatic.TokenAmountStructOutput,
|
|
95
108
|
IPRouterStatic.TokenAmountStructOutput,
|
|
96
|
-
IPRouterStatic.
|
|
109
|
+
IPRouterStatic.AssetAmountStructOutput
|
|
97
110
|
] & {
|
|
98
111
|
market: string;
|
|
99
112
|
lpBalance: BigNumber;
|
|
100
113
|
ptBalance: IPRouterStatic.TokenAmountStructOutput;
|
|
101
114
|
scyBalance: IPRouterStatic.TokenAmountStructOutput;
|
|
102
|
-
assetBalance: IPRouterStatic.
|
|
115
|
+
assetBalance: IPRouterStatic.AssetAmountStructOutput;
|
|
103
116
|
};
|
|
104
117
|
|
|
105
118
|
export type UserPYInfoStruct = {
|
|
@@ -143,11 +156,18 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
143
156
|
"getUserPYPositionsByPYs(address,address[])": FunctionFragment;
|
|
144
157
|
"getUserSCYInfo(address,address)": FunctionFragment;
|
|
145
158
|
"hasPYPosition((address,address,uint256,uint256,(address,uint256),(address,uint256)[]))": FunctionFragment;
|
|
159
|
+
"initialize()": FunctionFragment;
|
|
146
160
|
"marketFactory()": FunctionFragment;
|
|
161
|
+
"owner()": FunctionFragment;
|
|
162
|
+
"proxiableUUID()": FunctionFragment;
|
|
147
163
|
"removeLiquidityStatic(address,uint256)": FunctionFragment;
|
|
164
|
+
"renounceOwnership()": FunctionFragment;
|
|
148
165
|
"scyIndex(address)": FunctionFragment;
|
|
149
166
|
"swapPtForScyStatic(address,uint256)": FunctionFragment;
|
|
150
167
|
"swapScyForPtStatic(address,uint256)": FunctionFragment;
|
|
168
|
+
"transferOwnership(address)": FunctionFragment;
|
|
169
|
+
"upgradeTo(address)": FunctionFragment;
|
|
170
|
+
"upgradeToAndCall(address,bytes)": FunctionFragment;
|
|
151
171
|
"yieldContractFactory()": FunctionFragment;
|
|
152
172
|
};
|
|
153
173
|
|
|
@@ -193,14 +213,27 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
193
213
|
functionFragment: "hasPYPosition",
|
|
194
214
|
values: [IPRouterStatic.UserPYInfoStruct]
|
|
195
215
|
): string;
|
|
216
|
+
encodeFunctionData(
|
|
217
|
+
functionFragment: "initialize",
|
|
218
|
+
values?: undefined
|
|
219
|
+
): string;
|
|
196
220
|
encodeFunctionData(
|
|
197
221
|
functionFragment: "marketFactory",
|
|
198
222
|
values?: undefined
|
|
199
223
|
): string;
|
|
224
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
225
|
+
encodeFunctionData(
|
|
226
|
+
functionFragment: "proxiableUUID",
|
|
227
|
+
values?: undefined
|
|
228
|
+
): string;
|
|
200
229
|
encodeFunctionData(
|
|
201
230
|
functionFragment: "removeLiquidityStatic",
|
|
202
231
|
values: [string, BigNumberish]
|
|
203
232
|
): string;
|
|
233
|
+
encodeFunctionData(
|
|
234
|
+
functionFragment: "renounceOwnership",
|
|
235
|
+
values?: undefined
|
|
236
|
+
): string;
|
|
204
237
|
encodeFunctionData(functionFragment: "scyIndex", values: [string]): string;
|
|
205
238
|
encodeFunctionData(
|
|
206
239
|
functionFragment: "swapPtForScyStatic",
|
|
@@ -210,6 +243,15 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
210
243
|
functionFragment: "swapScyForPtStatic",
|
|
211
244
|
values: [string, BigNumberish]
|
|
212
245
|
): string;
|
|
246
|
+
encodeFunctionData(
|
|
247
|
+
functionFragment: "transferOwnership",
|
|
248
|
+
values: [string]
|
|
249
|
+
): string;
|
|
250
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [string]): string;
|
|
251
|
+
encodeFunctionData(
|
|
252
|
+
functionFragment: "upgradeToAndCall",
|
|
253
|
+
values: [string, BytesLike]
|
|
254
|
+
): string;
|
|
213
255
|
encodeFunctionData(
|
|
214
256
|
functionFragment: "yieldContractFactory",
|
|
215
257
|
values?: undefined
|
|
@@ -257,14 +299,24 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
257
299
|
functionFragment: "hasPYPosition",
|
|
258
300
|
data: BytesLike
|
|
259
301
|
): Result;
|
|
302
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
260
303
|
decodeFunctionResult(
|
|
261
304
|
functionFragment: "marketFactory",
|
|
262
305
|
data: BytesLike
|
|
263
306
|
): Result;
|
|
307
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
308
|
+
decodeFunctionResult(
|
|
309
|
+
functionFragment: "proxiableUUID",
|
|
310
|
+
data: BytesLike
|
|
311
|
+
): Result;
|
|
264
312
|
decodeFunctionResult(
|
|
265
313
|
functionFragment: "removeLiquidityStatic",
|
|
266
314
|
data: BytesLike
|
|
267
315
|
): Result;
|
|
316
|
+
decodeFunctionResult(
|
|
317
|
+
functionFragment: "renounceOwnership",
|
|
318
|
+
data: BytesLike
|
|
319
|
+
): Result;
|
|
268
320
|
decodeFunctionResult(functionFragment: "scyIndex", data: BytesLike): Result;
|
|
269
321
|
decodeFunctionResult(
|
|
270
322
|
functionFragment: "swapPtForScyStatic",
|
|
@@ -274,14 +326,56 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
274
326
|
functionFragment: "swapScyForPtStatic",
|
|
275
327
|
data: BytesLike
|
|
276
328
|
): Result;
|
|
329
|
+
decodeFunctionResult(
|
|
330
|
+
functionFragment: "transferOwnership",
|
|
331
|
+
data: BytesLike
|
|
332
|
+
): Result;
|
|
333
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
334
|
+
decodeFunctionResult(
|
|
335
|
+
functionFragment: "upgradeToAndCall",
|
|
336
|
+
data: BytesLike
|
|
337
|
+
): Result;
|
|
277
338
|
decodeFunctionResult(
|
|
278
339
|
functionFragment: "yieldContractFactory",
|
|
279
340
|
data: BytesLike
|
|
280
341
|
): Result;
|
|
281
342
|
|
|
282
|
-
events: {
|
|
343
|
+
events: {
|
|
344
|
+
"AdminChanged(address,address)": EventFragment;
|
|
345
|
+
"BeaconUpgraded(address)": EventFragment;
|
|
346
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
347
|
+
"Upgraded(address)": EventFragment;
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
|
|
351
|
+
getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
|
|
352
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
353
|
+
getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
|
|
283
354
|
}
|
|
284
355
|
|
|
356
|
+
export type AdminChangedEvent = TypedEvent<
|
|
357
|
+
[string, string],
|
|
358
|
+
{ previousAdmin: string; newAdmin: string }
|
|
359
|
+
>;
|
|
360
|
+
|
|
361
|
+
export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
|
|
362
|
+
|
|
363
|
+
export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
|
|
364
|
+
|
|
365
|
+
export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
|
|
366
|
+
|
|
367
|
+
export type OwnershipTransferredEvent = TypedEvent<
|
|
368
|
+
[string, string],
|
|
369
|
+
{ previousOwner: string; newOwner: string }
|
|
370
|
+
>;
|
|
371
|
+
|
|
372
|
+
export type OwnershipTransferredEventFilter =
|
|
373
|
+
TypedEventFilter<OwnershipTransferredEvent>;
|
|
374
|
+
|
|
375
|
+
export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
|
|
376
|
+
|
|
377
|
+
export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
|
|
378
|
+
|
|
285
379
|
export interface RouterStatic extends BaseContract {
|
|
286
380
|
contractName: "RouterStatic";
|
|
287
381
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
@@ -314,19 +408,24 @@ export interface RouterStatic extends BaseContract {
|
|
|
314
408
|
market: string,
|
|
315
409
|
scyDesired: BigNumberish,
|
|
316
410
|
ptDesired: BigNumberish,
|
|
317
|
-
overrides?:
|
|
318
|
-
): Promise<
|
|
411
|
+
overrides?: CallOverrides
|
|
412
|
+
): Promise<
|
|
413
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
414
|
+
netLpOut: BigNumber;
|
|
415
|
+
scyUsed: BigNumber;
|
|
416
|
+
ptUsed: BigNumber;
|
|
417
|
+
}
|
|
418
|
+
>;
|
|
319
419
|
|
|
320
420
|
getMarketInfo(
|
|
321
421
|
market: string,
|
|
322
422
|
overrides?: CallOverrides
|
|
323
423
|
): Promise<
|
|
324
|
-
[string, string, MarketStateStructOutput, BigNumber
|
|
424
|
+
[string, string, MarketStateStructOutput, BigNumber] & {
|
|
325
425
|
pt: string;
|
|
326
426
|
scy: string;
|
|
327
427
|
state: MarketStateStructOutput;
|
|
328
428
|
impliedYield: BigNumber;
|
|
329
|
-
exchangeRate: BigNumber;
|
|
330
429
|
}
|
|
331
430
|
>;
|
|
332
431
|
|
|
@@ -412,8 +511,16 @@ export interface RouterStatic extends BaseContract {
|
|
|
412
511
|
overrides?: CallOverrides
|
|
413
512
|
): Promise<[boolean] & { hasPosition: boolean }>;
|
|
414
513
|
|
|
514
|
+
initialize(
|
|
515
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
516
|
+
): Promise<ContractTransaction>;
|
|
517
|
+
|
|
415
518
|
marketFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
416
519
|
|
|
520
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
521
|
+
|
|
522
|
+
proxiableUUID(overrides?: CallOverrides): Promise<[string]>;
|
|
523
|
+
|
|
417
524
|
removeLiquidityStatic(
|
|
418
525
|
market: string,
|
|
419
526
|
lpToRemove: BigNumberish,
|
|
@@ -422,6 +529,10 @@ export interface RouterStatic extends BaseContract {
|
|
|
422
529
|
[BigNumber, BigNumber] & { netScyOut: BigNumber; netPtOut: BigNumber }
|
|
423
530
|
>;
|
|
424
531
|
|
|
532
|
+
renounceOwnership(
|
|
533
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
534
|
+
): Promise<ContractTransaction>;
|
|
535
|
+
|
|
425
536
|
scyIndex(
|
|
426
537
|
market: string,
|
|
427
538
|
overrides?: CallOverrides
|
|
@@ -430,15 +541,35 @@ export interface RouterStatic extends BaseContract {
|
|
|
430
541
|
swapPtForScyStatic(
|
|
431
542
|
market: string,
|
|
432
543
|
exactPtIn: BigNumberish,
|
|
433
|
-
overrides?:
|
|
434
|
-
): Promise<
|
|
544
|
+
overrides?: CallOverrides
|
|
545
|
+
): Promise<
|
|
546
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
547
|
+
>;
|
|
435
548
|
|
|
436
549
|
swapScyForPtStatic(
|
|
437
550
|
market: string,
|
|
438
551
|
exactPtOut: BigNumberish,
|
|
552
|
+
overrides?: CallOverrides
|
|
553
|
+
): Promise<
|
|
554
|
+
[BigNumber, BigNumber] & { netScyIn: BigNumber; netScyFee: BigNumber }
|
|
555
|
+
>;
|
|
556
|
+
|
|
557
|
+
transferOwnership(
|
|
558
|
+
newOwner: string,
|
|
559
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
560
|
+
): Promise<ContractTransaction>;
|
|
561
|
+
|
|
562
|
+
upgradeTo(
|
|
563
|
+
newImplementation: string,
|
|
439
564
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
440
565
|
): Promise<ContractTransaction>;
|
|
441
566
|
|
|
567
|
+
upgradeToAndCall(
|
|
568
|
+
newImplementation: string,
|
|
569
|
+
data: BytesLike,
|
|
570
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
571
|
+
): Promise<ContractTransaction>;
|
|
572
|
+
|
|
442
573
|
yieldContractFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
443
574
|
};
|
|
444
575
|
|
|
@@ -446,19 +577,24 @@ export interface RouterStatic extends BaseContract {
|
|
|
446
577
|
market: string,
|
|
447
578
|
scyDesired: BigNumberish,
|
|
448
579
|
ptDesired: BigNumberish,
|
|
449
|
-
overrides?:
|
|
450
|
-
): Promise<
|
|
580
|
+
overrides?: CallOverrides
|
|
581
|
+
): Promise<
|
|
582
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
583
|
+
netLpOut: BigNumber;
|
|
584
|
+
scyUsed: BigNumber;
|
|
585
|
+
ptUsed: BigNumber;
|
|
586
|
+
}
|
|
587
|
+
>;
|
|
451
588
|
|
|
452
589
|
getMarketInfo(
|
|
453
590
|
market: string,
|
|
454
591
|
overrides?: CallOverrides
|
|
455
592
|
): Promise<
|
|
456
|
-
[string, string, MarketStateStructOutput, BigNumber
|
|
593
|
+
[string, string, MarketStateStructOutput, BigNumber] & {
|
|
457
594
|
pt: string;
|
|
458
595
|
scy: string;
|
|
459
596
|
state: MarketStateStructOutput;
|
|
460
597
|
impliedYield: BigNumber;
|
|
461
|
-
exchangeRate: BigNumber;
|
|
462
598
|
}
|
|
463
599
|
>;
|
|
464
600
|
|
|
@@ -528,8 +664,16 @@ export interface RouterStatic extends BaseContract {
|
|
|
528
664
|
overrides?: CallOverrides
|
|
529
665
|
): Promise<boolean>;
|
|
530
666
|
|
|
667
|
+
initialize(
|
|
668
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
669
|
+
): Promise<ContractTransaction>;
|
|
670
|
+
|
|
531
671
|
marketFactory(overrides?: CallOverrides): Promise<string>;
|
|
532
672
|
|
|
673
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
674
|
+
|
|
675
|
+
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
676
|
+
|
|
533
677
|
removeLiquidityStatic(
|
|
534
678
|
market: string,
|
|
535
679
|
lpToRemove: BigNumberish,
|
|
@@ -538,20 +682,44 @@ export interface RouterStatic extends BaseContract {
|
|
|
538
682
|
[BigNumber, BigNumber] & { netScyOut: BigNumber; netPtOut: BigNumber }
|
|
539
683
|
>;
|
|
540
684
|
|
|
685
|
+
renounceOwnership(
|
|
686
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
687
|
+
): Promise<ContractTransaction>;
|
|
688
|
+
|
|
541
689
|
scyIndex(market: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
542
690
|
|
|
543
691
|
swapPtForScyStatic(
|
|
544
692
|
market: string,
|
|
545
693
|
exactPtIn: BigNumberish,
|
|
546
|
-
overrides?:
|
|
547
|
-
): Promise<
|
|
694
|
+
overrides?: CallOverrides
|
|
695
|
+
): Promise<
|
|
696
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
697
|
+
>;
|
|
548
698
|
|
|
549
699
|
swapScyForPtStatic(
|
|
550
700
|
market: string,
|
|
551
701
|
exactPtOut: BigNumberish,
|
|
702
|
+
overrides?: CallOverrides
|
|
703
|
+
): Promise<
|
|
704
|
+
[BigNumber, BigNumber] & { netScyIn: BigNumber; netScyFee: BigNumber }
|
|
705
|
+
>;
|
|
706
|
+
|
|
707
|
+
transferOwnership(
|
|
708
|
+
newOwner: string,
|
|
552
709
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
553
710
|
): Promise<ContractTransaction>;
|
|
554
711
|
|
|
712
|
+
upgradeTo(
|
|
713
|
+
newImplementation: string,
|
|
714
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
715
|
+
): Promise<ContractTransaction>;
|
|
716
|
+
|
|
717
|
+
upgradeToAndCall(
|
|
718
|
+
newImplementation: string,
|
|
719
|
+
data: BytesLike,
|
|
720
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
721
|
+
): Promise<ContractTransaction>;
|
|
722
|
+
|
|
555
723
|
yieldContractFactory(overrides?: CallOverrides): Promise<string>;
|
|
556
724
|
|
|
557
725
|
callStatic: {
|
|
@@ -572,12 +740,11 @@ export interface RouterStatic extends BaseContract {
|
|
|
572
740
|
market: string,
|
|
573
741
|
overrides?: CallOverrides
|
|
574
742
|
): Promise<
|
|
575
|
-
[string, string, MarketStateStructOutput, BigNumber
|
|
743
|
+
[string, string, MarketStateStructOutput, BigNumber] & {
|
|
576
744
|
pt: string;
|
|
577
745
|
scy: string;
|
|
578
746
|
state: MarketStateStructOutput;
|
|
579
747
|
impliedYield: BigNumber;
|
|
580
|
-
exchangeRate: BigNumber;
|
|
581
748
|
}
|
|
582
749
|
>;
|
|
583
750
|
|
|
@@ -653,8 +820,14 @@ export interface RouterStatic extends BaseContract {
|
|
|
653
820
|
overrides?: CallOverrides
|
|
654
821
|
): Promise<boolean>;
|
|
655
822
|
|
|
823
|
+
initialize(overrides?: CallOverrides): Promise<void>;
|
|
824
|
+
|
|
656
825
|
marketFactory(overrides?: CallOverrides): Promise<string>;
|
|
657
826
|
|
|
827
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
828
|
+
|
|
829
|
+
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
830
|
+
|
|
658
831
|
removeLiquidityStatic(
|
|
659
832
|
market: string,
|
|
660
833
|
lpToRemove: BigNumberish,
|
|
@@ -663,6 +836,8 @@ export interface RouterStatic extends BaseContract {
|
|
|
663
836
|
[BigNumber, BigNumber] & { netScyOut: BigNumber; netPtOut: BigNumber }
|
|
664
837
|
>;
|
|
665
838
|
|
|
839
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
840
|
+
|
|
666
841
|
scyIndex(market: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
667
842
|
|
|
668
843
|
swapPtForScyStatic(
|
|
@@ -681,17 +856,59 @@ export interface RouterStatic extends BaseContract {
|
|
|
681
856
|
[BigNumber, BigNumber] & { netScyIn: BigNumber; netScyFee: BigNumber }
|
|
682
857
|
>;
|
|
683
858
|
|
|
859
|
+
transferOwnership(
|
|
860
|
+
newOwner: string,
|
|
861
|
+
overrides?: CallOverrides
|
|
862
|
+
): Promise<void>;
|
|
863
|
+
|
|
864
|
+
upgradeTo(
|
|
865
|
+
newImplementation: string,
|
|
866
|
+
overrides?: CallOverrides
|
|
867
|
+
): Promise<void>;
|
|
868
|
+
|
|
869
|
+
upgradeToAndCall(
|
|
870
|
+
newImplementation: string,
|
|
871
|
+
data: BytesLike,
|
|
872
|
+
overrides?: CallOverrides
|
|
873
|
+
): Promise<void>;
|
|
874
|
+
|
|
684
875
|
yieldContractFactory(overrides?: CallOverrides): Promise<string>;
|
|
685
876
|
};
|
|
686
877
|
|
|
687
|
-
filters: {
|
|
878
|
+
filters: {
|
|
879
|
+
"AdminChanged(address,address)"(
|
|
880
|
+
previousAdmin?: null,
|
|
881
|
+
newAdmin?: null
|
|
882
|
+
): AdminChangedEventFilter;
|
|
883
|
+
AdminChanged(
|
|
884
|
+
previousAdmin?: null,
|
|
885
|
+
newAdmin?: null
|
|
886
|
+
): AdminChangedEventFilter;
|
|
887
|
+
|
|
888
|
+
"BeaconUpgraded(address)"(
|
|
889
|
+
beacon?: string | null
|
|
890
|
+
): BeaconUpgradedEventFilter;
|
|
891
|
+
BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
|
|
892
|
+
|
|
893
|
+
"OwnershipTransferred(address,address)"(
|
|
894
|
+
previousOwner?: string | null,
|
|
895
|
+
newOwner?: string | null
|
|
896
|
+
): OwnershipTransferredEventFilter;
|
|
897
|
+
OwnershipTransferred(
|
|
898
|
+
previousOwner?: string | null,
|
|
899
|
+
newOwner?: string | null
|
|
900
|
+
): OwnershipTransferredEventFilter;
|
|
901
|
+
|
|
902
|
+
"Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
|
|
903
|
+
Upgraded(implementation?: string | null): UpgradedEventFilter;
|
|
904
|
+
};
|
|
688
905
|
|
|
689
906
|
estimateGas: {
|
|
690
907
|
addLiquidityStatic(
|
|
691
908
|
market: string,
|
|
692
909
|
scyDesired: BigNumberish,
|
|
693
910
|
ptDesired: BigNumberish,
|
|
694
|
-
overrides?:
|
|
911
|
+
overrides?: CallOverrides
|
|
695
912
|
): Promise<BigNumber>;
|
|
696
913
|
|
|
697
914
|
getMarketInfo(
|
|
@@ -751,28 +968,56 @@ export interface RouterStatic extends BaseContract {
|
|
|
751
968
|
overrides?: CallOverrides
|
|
752
969
|
): Promise<BigNumber>;
|
|
753
970
|
|
|
971
|
+
initialize(
|
|
972
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
973
|
+
): Promise<BigNumber>;
|
|
974
|
+
|
|
754
975
|
marketFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
755
976
|
|
|
977
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
978
|
+
|
|
979
|
+
proxiableUUID(overrides?: CallOverrides): Promise<BigNumber>;
|
|
980
|
+
|
|
756
981
|
removeLiquidityStatic(
|
|
757
982
|
market: string,
|
|
758
983
|
lpToRemove: BigNumberish,
|
|
759
984
|
overrides?: CallOverrides
|
|
760
985
|
): Promise<BigNumber>;
|
|
761
986
|
|
|
987
|
+
renounceOwnership(
|
|
988
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
989
|
+
): Promise<BigNumber>;
|
|
990
|
+
|
|
762
991
|
scyIndex(market: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
763
992
|
|
|
764
993
|
swapPtForScyStatic(
|
|
765
994
|
market: string,
|
|
766
995
|
exactPtIn: BigNumberish,
|
|
767
|
-
overrides?:
|
|
996
|
+
overrides?: CallOverrides
|
|
768
997
|
): Promise<BigNumber>;
|
|
769
998
|
|
|
770
999
|
swapScyForPtStatic(
|
|
771
1000
|
market: string,
|
|
772
1001
|
exactPtOut: BigNumberish,
|
|
1002
|
+
overrides?: CallOverrides
|
|
1003
|
+
): Promise<BigNumber>;
|
|
1004
|
+
|
|
1005
|
+
transferOwnership(
|
|
1006
|
+
newOwner: string,
|
|
1007
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1008
|
+
): Promise<BigNumber>;
|
|
1009
|
+
|
|
1010
|
+
upgradeTo(
|
|
1011
|
+
newImplementation: string,
|
|
773
1012
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
774
1013
|
): Promise<BigNumber>;
|
|
775
1014
|
|
|
1015
|
+
upgradeToAndCall(
|
|
1016
|
+
newImplementation: string,
|
|
1017
|
+
data: BytesLike,
|
|
1018
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
1019
|
+
): Promise<BigNumber>;
|
|
1020
|
+
|
|
776
1021
|
yieldContractFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
777
1022
|
};
|
|
778
1023
|
|
|
@@ -781,7 +1026,7 @@ export interface RouterStatic extends BaseContract {
|
|
|
781
1026
|
market: string,
|
|
782
1027
|
scyDesired: BigNumberish,
|
|
783
1028
|
ptDesired: BigNumberish,
|
|
784
|
-
overrides?:
|
|
1029
|
+
overrides?: CallOverrides
|
|
785
1030
|
): Promise<PopulatedTransaction>;
|
|
786
1031
|
|
|
787
1032
|
getMarketInfo(
|
|
@@ -841,14 +1086,26 @@ export interface RouterStatic extends BaseContract {
|
|
|
841
1086
|
overrides?: CallOverrides
|
|
842
1087
|
): Promise<PopulatedTransaction>;
|
|
843
1088
|
|
|
1089
|
+
initialize(
|
|
1090
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1091
|
+
): Promise<PopulatedTransaction>;
|
|
1092
|
+
|
|
844
1093
|
marketFactory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
845
1094
|
|
|
1095
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1096
|
+
|
|
1097
|
+
proxiableUUID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1098
|
+
|
|
846
1099
|
removeLiquidityStatic(
|
|
847
1100
|
market: string,
|
|
848
1101
|
lpToRemove: BigNumberish,
|
|
849
1102
|
overrides?: CallOverrides
|
|
850
1103
|
): Promise<PopulatedTransaction>;
|
|
851
1104
|
|
|
1105
|
+
renounceOwnership(
|
|
1106
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1107
|
+
): Promise<PopulatedTransaction>;
|
|
1108
|
+
|
|
852
1109
|
scyIndex(
|
|
853
1110
|
market: string,
|
|
854
1111
|
overrides?: CallOverrides
|
|
@@ -857,15 +1114,31 @@ export interface RouterStatic extends BaseContract {
|
|
|
857
1114
|
swapPtForScyStatic(
|
|
858
1115
|
market: string,
|
|
859
1116
|
exactPtIn: BigNumberish,
|
|
860
|
-
overrides?:
|
|
1117
|
+
overrides?: CallOverrides
|
|
861
1118
|
): Promise<PopulatedTransaction>;
|
|
862
1119
|
|
|
863
1120
|
swapScyForPtStatic(
|
|
864
1121
|
market: string,
|
|
865
1122
|
exactPtOut: BigNumberish,
|
|
1123
|
+
overrides?: CallOverrides
|
|
1124
|
+
): Promise<PopulatedTransaction>;
|
|
1125
|
+
|
|
1126
|
+
transferOwnership(
|
|
1127
|
+
newOwner: string,
|
|
866
1128
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
867
1129
|
): Promise<PopulatedTransaction>;
|
|
868
1130
|
|
|
1131
|
+
upgradeTo(
|
|
1132
|
+
newImplementation: string,
|
|
1133
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1134
|
+
): Promise<PopulatedTransaction>;
|
|
1135
|
+
|
|
1136
|
+
upgradeToAndCall(
|
|
1137
|
+
newImplementation: string,
|
|
1138
|
+
data: BytesLike,
|
|
1139
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
1140
|
+
): Promise<PopulatedTransaction>;
|
|
1141
|
+
|
|
869
1142
|
yieldContractFactory(
|
|
870
1143
|
overrides?: CallOverrides
|
|
871
1144
|
): Promise<PopulatedTransaction>;
|