@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
|
@@ -93,6 +93,43 @@ const _abi = [
|
|
|
93
93
|
name: "MintPyFromRawToken",
|
|
94
94
|
type: "event",
|
|
95
95
|
},
|
|
96
|
+
{
|
|
97
|
+
anonymous: false,
|
|
98
|
+
inputs: [
|
|
99
|
+
{
|
|
100
|
+
indexed: true,
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "caller",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
indexed: true,
|
|
107
|
+
internalType: "address",
|
|
108
|
+
name: "receiver",
|
|
109
|
+
type: "address",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
indexed: true,
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "YT",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
indexed: false,
|
|
119
|
+
internalType: "uint256",
|
|
120
|
+
name: "netScyIn",
|
|
121
|
+
type: "uint256",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
indexed: false,
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "netPyOut",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "MintPyFromScy",
|
|
131
|
+
type: "event",
|
|
132
|
+
},
|
|
96
133
|
{
|
|
97
134
|
anonymous: false,
|
|
98
135
|
inputs: [
|
|
@@ -179,6 +216,43 @@ const _abi = [
|
|
|
179
216
|
name: "RedeemPyToRawToken",
|
|
180
217
|
type: "event",
|
|
181
218
|
},
|
|
219
|
+
{
|
|
220
|
+
anonymous: false,
|
|
221
|
+
inputs: [
|
|
222
|
+
{
|
|
223
|
+
indexed: true,
|
|
224
|
+
internalType: "address",
|
|
225
|
+
name: "caller",
|
|
226
|
+
type: "address",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
indexed: true,
|
|
230
|
+
internalType: "address",
|
|
231
|
+
name: "receiver",
|
|
232
|
+
type: "address",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
indexed: true,
|
|
236
|
+
internalType: "address",
|
|
237
|
+
name: "YT",
|
|
238
|
+
type: "address",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
indexed: false,
|
|
242
|
+
internalType: "uint256",
|
|
243
|
+
name: "netPyIn",
|
|
244
|
+
type: "uint256",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
indexed: false,
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "netScyOut",
|
|
250
|
+
type: "uint256",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
name: "RedeemPyToScy",
|
|
254
|
+
type: "event",
|
|
255
|
+
},
|
|
182
256
|
{
|
|
183
257
|
anonymous: false,
|
|
184
258
|
inputs: [
|
|
@@ -462,6 +536,209 @@ const _abi = [
|
|
|
462
536
|
stateMutability: "nonpayable",
|
|
463
537
|
type: "function",
|
|
464
538
|
},
|
|
539
|
+
{
|
|
540
|
+
inputs: [
|
|
541
|
+
{
|
|
542
|
+
internalType: "address",
|
|
543
|
+
name: "receiver",
|
|
544
|
+
type: "address",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
internalType: "address",
|
|
548
|
+
name: "market",
|
|
549
|
+
type: "address",
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
internalType: "uint256",
|
|
553
|
+
name: "netPtIn",
|
|
554
|
+
type: "uint256",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
internalType: "uint256",
|
|
558
|
+
name: "minLpOut",
|
|
559
|
+
type: "uint256",
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
components: [
|
|
563
|
+
{
|
|
564
|
+
internalType: "uint256",
|
|
565
|
+
name: "guessMin",
|
|
566
|
+
type: "uint256",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
internalType: "uint256",
|
|
570
|
+
name: "guessMax",
|
|
571
|
+
type: "uint256",
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
internalType: "uint256",
|
|
575
|
+
name: "guessOffchain",
|
|
576
|
+
type: "uint256",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
internalType: "uint256",
|
|
580
|
+
name: "maxIteration",
|
|
581
|
+
type: "uint256",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
internalType: "uint256",
|
|
585
|
+
name: "eps",
|
|
586
|
+
type: "uint256",
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
internalType: "struct ApproxParams",
|
|
590
|
+
name: "guessPtSwapToScy",
|
|
591
|
+
type: "tuple",
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
name: "addLiquiditySinglePt",
|
|
595
|
+
outputs: [
|
|
596
|
+
{
|
|
597
|
+
internalType: "uint256",
|
|
598
|
+
name: "netLpOut",
|
|
599
|
+
type: "uint256",
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
stateMutability: "nonpayable",
|
|
603
|
+
type: "function",
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
inputs: [
|
|
607
|
+
{
|
|
608
|
+
internalType: "address",
|
|
609
|
+
name: "receiver",
|
|
610
|
+
type: "address",
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
internalType: "address",
|
|
614
|
+
name: "market",
|
|
615
|
+
type: "address",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
internalType: "uint256",
|
|
619
|
+
name: "netRawTokenIn",
|
|
620
|
+
type: "uint256",
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
internalType: "uint256",
|
|
624
|
+
name: "minLpOut",
|
|
625
|
+
type: "uint256",
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
internalType: "address[]",
|
|
629
|
+
name: "path",
|
|
630
|
+
type: "address[]",
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
components: [
|
|
634
|
+
{
|
|
635
|
+
internalType: "uint256",
|
|
636
|
+
name: "guessMin",
|
|
637
|
+
type: "uint256",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
internalType: "uint256",
|
|
641
|
+
name: "guessMax",
|
|
642
|
+
type: "uint256",
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
internalType: "uint256",
|
|
646
|
+
name: "guessOffchain",
|
|
647
|
+
type: "uint256",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
internalType: "uint256",
|
|
651
|
+
name: "maxIteration",
|
|
652
|
+
type: "uint256",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
internalType: "uint256",
|
|
656
|
+
name: "eps",
|
|
657
|
+
type: "uint256",
|
|
658
|
+
},
|
|
659
|
+
],
|
|
660
|
+
internalType: "struct ApproxParams",
|
|
661
|
+
name: "guessPtReceivedFromScy",
|
|
662
|
+
type: "tuple",
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
name: "addLiquiditySingleRawToken",
|
|
666
|
+
outputs: [
|
|
667
|
+
{
|
|
668
|
+
internalType: "uint256",
|
|
669
|
+
name: "netLpOut",
|
|
670
|
+
type: "uint256",
|
|
671
|
+
},
|
|
672
|
+
],
|
|
673
|
+
stateMutability: "nonpayable",
|
|
674
|
+
type: "function",
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
inputs: [
|
|
678
|
+
{
|
|
679
|
+
internalType: "address",
|
|
680
|
+
name: "receiver",
|
|
681
|
+
type: "address",
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
internalType: "address",
|
|
685
|
+
name: "market",
|
|
686
|
+
type: "address",
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
internalType: "uint256",
|
|
690
|
+
name: "netScyIn",
|
|
691
|
+
type: "uint256",
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
internalType: "uint256",
|
|
695
|
+
name: "minLpOut",
|
|
696
|
+
type: "uint256",
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
components: [
|
|
700
|
+
{
|
|
701
|
+
internalType: "uint256",
|
|
702
|
+
name: "guessMin",
|
|
703
|
+
type: "uint256",
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
internalType: "uint256",
|
|
707
|
+
name: "guessMax",
|
|
708
|
+
type: "uint256",
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
internalType: "uint256",
|
|
712
|
+
name: "guessOffchain",
|
|
713
|
+
type: "uint256",
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
internalType: "uint256",
|
|
717
|
+
name: "maxIteration",
|
|
718
|
+
type: "uint256",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
internalType: "uint256",
|
|
722
|
+
name: "eps",
|
|
723
|
+
type: "uint256",
|
|
724
|
+
},
|
|
725
|
+
],
|
|
726
|
+
internalType: "struct ApproxParams",
|
|
727
|
+
name: "guessPtReceivedFromScy",
|
|
728
|
+
type: "tuple",
|
|
729
|
+
},
|
|
730
|
+
],
|
|
731
|
+
name: "addLiquiditySingleScy",
|
|
732
|
+
outputs: [
|
|
733
|
+
{
|
|
734
|
+
internalType: "uint256",
|
|
735
|
+
name: "netLpOut",
|
|
736
|
+
type: "uint256",
|
|
737
|
+
},
|
|
738
|
+
],
|
|
739
|
+
stateMutability: "nonpayable",
|
|
740
|
+
type: "function",
|
|
741
|
+
},
|
|
465
742
|
{
|
|
466
743
|
inputs: [
|
|
467
744
|
{
|
|
@@ -501,6 +778,40 @@ const _abi = [
|
|
|
501
778
|
stateMutability: "nonpayable",
|
|
502
779
|
type: "function",
|
|
503
780
|
},
|
|
781
|
+
{
|
|
782
|
+
inputs: [
|
|
783
|
+
{
|
|
784
|
+
internalType: "address",
|
|
785
|
+
name: "receiver",
|
|
786
|
+
type: "address",
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
internalType: "address",
|
|
790
|
+
name: "YT",
|
|
791
|
+
type: "address",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
internalType: "uint256",
|
|
795
|
+
name: "netScyIn",
|
|
796
|
+
type: "uint256",
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
internalType: "uint256",
|
|
800
|
+
name: "minPyOut",
|
|
801
|
+
type: "uint256",
|
|
802
|
+
},
|
|
803
|
+
],
|
|
804
|
+
name: "mintPyFromScy",
|
|
805
|
+
outputs: [
|
|
806
|
+
{
|
|
807
|
+
internalType: "uint256",
|
|
808
|
+
name: "netPyOut",
|
|
809
|
+
type: "uint256",
|
|
810
|
+
},
|
|
811
|
+
],
|
|
812
|
+
stateMutability: "nonpayable",
|
|
813
|
+
type: "function",
|
|
814
|
+
},
|
|
504
815
|
{
|
|
505
816
|
inputs: [
|
|
506
817
|
{
|
|
@@ -628,6 +939,40 @@ const _abi = [
|
|
|
628
939
|
stateMutability: "nonpayable",
|
|
629
940
|
type: "function",
|
|
630
941
|
},
|
|
942
|
+
{
|
|
943
|
+
inputs: [
|
|
944
|
+
{
|
|
945
|
+
internalType: "address",
|
|
946
|
+
name: "receiver",
|
|
947
|
+
type: "address",
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
internalType: "address",
|
|
951
|
+
name: "YT",
|
|
952
|
+
type: "address",
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
internalType: "uint256",
|
|
956
|
+
name: "netPyIn",
|
|
957
|
+
type: "uint256",
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
internalType: "uint256",
|
|
961
|
+
name: "minScyOut",
|
|
962
|
+
type: "uint256",
|
|
963
|
+
},
|
|
964
|
+
],
|
|
965
|
+
name: "redeemPyToScy",
|
|
966
|
+
outputs: [
|
|
967
|
+
{
|
|
968
|
+
internalType: "uint256",
|
|
969
|
+
name: "netScyOut",
|
|
970
|
+
type: "uint256",
|
|
971
|
+
},
|
|
972
|
+
],
|
|
973
|
+
stateMutability: "nonpayable",
|
|
974
|
+
type: "function",
|
|
975
|
+
},
|
|
631
976
|
{
|
|
632
977
|
inputs: [
|
|
633
978
|
{
|
|
@@ -711,6 +1056,145 @@ const _abi = [
|
|
|
711
1056
|
stateMutability: "nonpayable",
|
|
712
1057
|
type: "function",
|
|
713
1058
|
},
|
|
1059
|
+
{
|
|
1060
|
+
inputs: [
|
|
1061
|
+
{
|
|
1062
|
+
internalType: "address",
|
|
1063
|
+
name: "receiver",
|
|
1064
|
+
type: "address",
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
internalType: "address",
|
|
1068
|
+
name: "market",
|
|
1069
|
+
type: "address",
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
internalType: "uint256",
|
|
1073
|
+
name: "lpToRemove",
|
|
1074
|
+
type: "uint256",
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
internalType: "uint256",
|
|
1078
|
+
name: "minPtOut",
|
|
1079
|
+
type: "uint256",
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
components: [
|
|
1083
|
+
{
|
|
1084
|
+
internalType: "uint256",
|
|
1085
|
+
name: "guessMin",
|
|
1086
|
+
type: "uint256",
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
internalType: "uint256",
|
|
1090
|
+
name: "guessMax",
|
|
1091
|
+
type: "uint256",
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
internalType: "uint256",
|
|
1095
|
+
name: "guessOffchain",
|
|
1096
|
+
type: "uint256",
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
internalType: "uint256",
|
|
1100
|
+
name: "maxIteration",
|
|
1101
|
+
type: "uint256",
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
internalType: "uint256",
|
|
1105
|
+
name: "eps",
|
|
1106
|
+
type: "uint256",
|
|
1107
|
+
},
|
|
1108
|
+
],
|
|
1109
|
+
internalType: "struct ApproxParams",
|
|
1110
|
+
name: "guessPtOut",
|
|
1111
|
+
type: "tuple",
|
|
1112
|
+
},
|
|
1113
|
+
],
|
|
1114
|
+
name: "removeLiquiditySinglePt",
|
|
1115
|
+
outputs: [
|
|
1116
|
+
{
|
|
1117
|
+
internalType: "uint256",
|
|
1118
|
+
name: "netPtOut",
|
|
1119
|
+
type: "uint256",
|
|
1120
|
+
},
|
|
1121
|
+
],
|
|
1122
|
+
stateMutability: "nonpayable",
|
|
1123
|
+
type: "function",
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
inputs: [
|
|
1127
|
+
{
|
|
1128
|
+
internalType: "address",
|
|
1129
|
+
name: "receiver",
|
|
1130
|
+
type: "address",
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
internalType: "address",
|
|
1134
|
+
name: "market",
|
|
1135
|
+
type: "address",
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
internalType: "uint256",
|
|
1139
|
+
name: "lpToRemove",
|
|
1140
|
+
type: "uint256",
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
internalType: "uint256",
|
|
1144
|
+
name: "minRawTokenOut",
|
|
1145
|
+
type: "uint256",
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
internalType: "address[]",
|
|
1149
|
+
name: "path",
|
|
1150
|
+
type: "address[]",
|
|
1151
|
+
},
|
|
1152
|
+
],
|
|
1153
|
+
name: "removeLiquiditySingleRawToken",
|
|
1154
|
+
outputs: [
|
|
1155
|
+
{
|
|
1156
|
+
internalType: "uint256",
|
|
1157
|
+
name: "netRawTokenOut",
|
|
1158
|
+
type: "uint256",
|
|
1159
|
+
},
|
|
1160
|
+
],
|
|
1161
|
+
stateMutability: "nonpayable",
|
|
1162
|
+
type: "function",
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
inputs: [
|
|
1166
|
+
{
|
|
1167
|
+
internalType: "address",
|
|
1168
|
+
name: "receiver",
|
|
1169
|
+
type: "address",
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
internalType: "address",
|
|
1173
|
+
name: "market",
|
|
1174
|
+
type: "address",
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
internalType: "uint256",
|
|
1178
|
+
name: "lpToRemove",
|
|
1179
|
+
type: "uint256",
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
internalType: "uint256",
|
|
1183
|
+
name: "minScyOut",
|
|
1184
|
+
type: "uint256",
|
|
1185
|
+
},
|
|
1186
|
+
],
|
|
1187
|
+
name: "removeLiquiditySingleScy",
|
|
1188
|
+
outputs: [
|
|
1189
|
+
{
|
|
1190
|
+
internalType: "uint256",
|
|
1191
|
+
name: "netScyOut",
|
|
1192
|
+
type: "uint256",
|
|
1193
|
+
},
|
|
1194
|
+
],
|
|
1195
|
+
stateMutability: "nonpayable",
|
|
1196
|
+
type: "function",
|
|
1197
|
+
},
|
|
714
1198
|
{
|
|
715
1199
|
inputs: [
|
|
716
1200
|
{
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IStargateLPStaking,
|
|
9
|
+
IStargateLPStakingInterface,
|
|
10
|
+
} from "../IStargateLPStaking";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "uint256",
|
|
17
|
+
name: "_pid",
|
|
18
|
+
type: "uint256",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "_amount",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: "deposit",
|
|
27
|
+
outputs: [],
|
|
28
|
+
stateMutability: "nonpayable",
|
|
29
|
+
type: "function",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
inputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "uint256",
|
|
35
|
+
name: "_pid",
|
|
36
|
+
type: "uint256",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "_amount",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
name: "withdraw",
|
|
45
|
+
outputs: [],
|
|
46
|
+
stateMutability: "nonpayable",
|
|
47
|
+
type: "function",
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
export class IStargateLPStaking__factory {
|
|
52
|
+
static readonly abi = _abi;
|
|
53
|
+
static createInterface(): IStargateLPStakingInterface {
|
|
54
|
+
return new utils.Interface(_abi) as IStargateLPStakingInterface;
|
|
55
|
+
}
|
|
56
|
+
static connect(
|
|
57
|
+
address: string,
|
|
58
|
+
signerOrProvider: Signer | Provider
|
|
59
|
+
): IStargateLPStaking {
|
|
60
|
+
return new Contract(address, _abi, signerOrProvider) as IStargateLPStaking;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { IStargatePool, IStargatePoolInterface } from "../IStargatePool";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "uint256",
|
|
14
|
+
name: "_amountLP",
|
|
15
|
+
type: "uint256",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
name: "amountLPtoLD",
|
|
19
|
+
outputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "view",
|
|
27
|
+
type: "function",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [],
|
|
31
|
+
name: "poolId",
|
|
32
|
+
outputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "uint256",
|
|
35
|
+
name: "",
|
|
36
|
+
type: "uint256",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
stateMutability: "view",
|
|
40
|
+
type: "function",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
inputs: [],
|
|
44
|
+
name: "token",
|
|
45
|
+
outputs: [
|
|
46
|
+
{
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
stateMutability: "view",
|
|
53
|
+
type: "function",
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
export class IStargatePool__factory {
|
|
58
|
+
static readonly abi = _abi;
|
|
59
|
+
static createInterface(): IStargatePoolInterface {
|
|
60
|
+
return new utils.Interface(_abi) as IStargatePoolInterface;
|
|
61
|
+
}
|
|
62
|
+
static connect(
|
|
63
|
+
address: string,
|
|
64
|
+
signerOrProvider: Signer | Provider
|
|
65
|
+
): IStargatePool {
|
|
66
|
+
return new Contract(address, _abi, signerOrProvider) as IStargatePool;
|
|
67
|
+
}
|
|
68
|
+
}
|