@pendle/core-v2 0.11.9-testnet → 0.11.11-testnet
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/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.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/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.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/PendleStargateSCY.sol/PendleStargateSCY.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/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.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/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.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/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- 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/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/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +4 -4
- 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/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +9 -4
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +5 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +5 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.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/IPVotingEscrow.sol/IPVotingEscrow.json +93 -0
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.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/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/PYIndex.sol/PYIndexLib.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/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- 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/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +120 -60
- package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.dbg.json +1 -1
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +6 -1
- package/contracts/core/PendleRouter.sol +2 -1
- package/contracts/core/actions/ActionAddRemoveLiq.sol +23 -2
- package/contracts/core/actions/ActionMintRedeem.sol +4 -0
- package/contracts/interfaces/IPActionMintRedeem.sol +1 -0
- package/contracts/interfaces/IPVotingEscrow.sol +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +1 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +16 -8
- package/contracts/offchain-helpers/RouterStatic.sol +52 -3
- package/package.json +1 -1
- package/typechain-types/ActionMintRedeem.ts +9 -2
- package/typechain-types/Errors.ts +57 -0
- package/typechain-types/ICrvPool.ts +137 -22
- package/typechain-types/IPActionMintRedeem.ts +9 -2
- package/typechain-types/IPAllAction.ts +9 -2
- package/typechain-types/IPBatchSeller.ts +252 -0
- package/typechain-types/IPVotingEscrow.ts +131 -0
- package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
- package/typechain-types/IRewards.ts +25 -10
- package/typechain-types/Pendle3CrvAndTokenSCY.ts +1215 -0
- package/typechain-types/Pendle3CrvTokenSCY.ts +85 -185
- package/typechain-types/PendleBatchSeller.ts +626 -0
- package/typechain-types/PendleConvexCurveLP2PoolSCY.ts +185 -220
- package/typechain-types/PendleConvexCurveLPSCY.ts +159 -182
- package/typechain-types/PendleCvxCRVSCY.ts +0 -34
- package/typechain-types/PendleFeeDistributorFactory.ts +97 -8
- package/typechain-types/PtAMMArb.ts +587 -0
- package/typechain-types/RouterStatic.ts +82 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +6 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +933 -0
- package/typechain-types/factories/ICrvPool__factory.ts +85 -12
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +5 -0
- package/typechain-types/factories/IPAllAction__factory.ts +5 -0
- package/typechain-types/factories/IPBatchSeller__factory.ts +138 -0
- package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
- package/typechain-types/factories/IPVotingEscrow__factory.ts +93 -0
- package/typechain-types/factories/IRewards__factory.ts +14 -1
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1130 -0
- package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvTokenSCY__factory.ts +74 -128
- package/typechain-types/factories/PendleBatchSeller__factory.ts +558 -0
- package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +207 -136
- package/typechain-types/factories/PendleConvexCurveLPSCY__factory.ts +170 -95
- package/typechain-types/factories/PendleCvxCRVSCY__factory.ts +1 -29
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +97 -8
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +6 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +17 -1
- package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +11 -0
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +6 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PtAMMArb__factory.ts +525 -0
- package/typechain-types/factories/RouterStatic__factory.ts +65 -1
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +261 -0
- package/typechain-types/index.ts +58 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
PendleBatchSeller,
|
|
15
|
+
PendleBatchSellerInterface,
|
|
16
|
+
} from "../PendleBatchSeller";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_router",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_token",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_market",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint256",
|
|
38
|
+
name: "_initialFeeRatio",
|
|
39
|
+
type: "uint256",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "int256",
|
|
49
|
+
name: "exchangeRate",
|
|
50
|
+
type: "int256",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
name: "MarketExchangeRateBelowOne",
|
|
54
|
+
type: "error",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputs: [],
|
|
58
|
+
name: "MarketExpired",
|
|
59
|
+
type: "error",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "int256",
|
|
65
|
+
name: "currentAmount",
|
|
66
|
+
type: "int256",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
internalType: "int256",
|
|
70
|
+
name: "requiredAmount",
|
|
71
|
+
type: "int256",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
name: "MarketInsufficientPtForTrade",
|
|
75
|
+
type: "error",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
inputs: [],
|
|
79
|
+
name: "MarketProportionMustNotEqualOne",
|
|
80
|
+
type: "error",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
inputs: [
|
|
84
|
+
{
|
|
85
|
+
internalType: "int256",
|
|
86
|
+
name: "proportion",
|
|
87
|
+
type: "int256",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
internalType: "int256",
|
|
91
|
+
name: "maxProportion",
|
|
92
|
+
type: "int256",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
name: "MarketProportionTooHigh",
|
|
96
|
+
type: "error",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
internalType: "int256",
|
|
102
|
+
name: "rateScalar",
|
|
103
|
+
type: "int256",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
name: "MarketRateScalarBelowZero",
|
|
107
|
+
type: "error",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
inputs: [],
|
|
111
|
+
name: "MarketZeroLnImpliedRate",
|
|
112
|
+
type: "error",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "int256",
|
|
118
|
+
name: "totalPt",
|
|
119
|
+
type: "int256",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
internalType: "int256",
|
|
123
|
+
name: "totalAsset",
|
|
124
|
+
type: "int256",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
name: "MarketZeroTotalPtOrTotalAsset",
|
|
128
|
+
type: "error",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
anonymous: false,
|
|
132
|
+
inputs: [
|
|
133
|
+
{
|
|
134
|
+
indexed: true,
|
|
135
|
+
internalType: "address",
|
|
136
|
+
name: "previousOwner",
|
|
137
|
+
type: "address",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
indexed: true,
|
|
141
|
+
internalType: "address",
|
|
142
|
+
name: "newOwner",
|
|
143
|
+
type: "address",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
name: "OwnershipTransferred",
|
|
147
|
+
type: "event",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
inputs: [],
|
|
151
|
+
name: "PT",
|
|
152
|
+
outputs: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "address",
|
|
155
|
+
name: "",
|
|
156
|
+
type: "address",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
stateMutability: "view",
|
|
160
|
+
type: "function",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
inputs: [],
|
|
164
|
+
name: "SCY",
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
internalType: "address",
|
|
168
|
+
name: "",
|
|
169
|
+
type: "address",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
type: "function",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [],
|
|
177
|
+
name: "YT",
|
|
178
|
+
outputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "address",
|
|
181
|
+
name: "",
|
|
182
|
+
type: "address",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
stateMutability: "view",
|
|
186
|
+
type: "function",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
inputs: [],
|
|
190
|
+
name: "batchPrice",
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [
|
|
203
|
+
{
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "receiver",
|
|
206
|
+
type: "address",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
internalType: "uint256",
|
|
210
|
+
name: "netPtOut",
|
|
211
|
+
type: "uint256",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
internalType: "uint256",
|
|
215
|
+
name: "maxTokenIn",
|
|
216
|
+
type: "uint256",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
name: "buyExactPt",
|
|
220
|
+
outputs: [
|
|
221
|
+
{
|
|
222
|
+
internalType: "uint256",
|
|
223
|
+
name: "netTokenIn",
|
|
224
|
+
type: "uint256",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
stateMutability: "nonpayable",
|
|
228
|
+
type: "function",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
inputs: [
|
|
232
|
+
{
|
|
233
|
+
internalType: "address",
|
|
234
|
+
name: "receiver",
|
|
235
|
+
type: "address",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
internalType: "uint256",
|
|
239
|
+
name: "netTokenIn",
|
|
240
|
+
type: "uint256",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
internalType: "uint256",
|
|
244
|
+
name: "minPtOut",
|
|
245
|
+
type: "uint256",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
name: "buyPtWithExactToken",
|
|
249
|
+
outputs: [
|
|
250
|
+
{
|
|
251
|
+
internalType: "uint256",
|
|
252
|
+
name: "netPtOut",
|
|
253
|
+
type: "uint256",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
stateMutability: "nonpayable",
|
|
257
|
+
type: "function",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
inputs: [
|
|
261
|
+
{
|
|
262
|
+
internalType: "uint256",
|
|
263
|
+
name: "netTokenIn",
|
|
264
|
+
type: "uint256",
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
name: "calcPtOut",
|
|
268
|
+
outputs: [
|
|
269
|
+
{
|
|
270
|
+
internalType: "uint256",
|
|
271
|
+
name: "netPtOut",
|
|
272
|
+
type: "uint256",
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
stateMutability: "nonpayable",
|
|
276
|
+
type: "function",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
inputs: [
|
|
280
|
+
{
|
|
281
|
+
internalType: "uint256",
|
|
282
|
+
name: "netPtOut",
|
|
283
|
+
type: "uint256",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
name: "calcTokenIn",
|
|
287
|
+
outputs: [
|
|
288
|
+
{
|
|
289
|
+
internalType: "uint256",
|
|
290
|
+
name: "netTokenIn",
|
|
291
|
+
type: "uint256",
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
stateMutability: "nonpayable",
|
|
295
|
+
type: "function",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
inputs: [],
|
|
299
|
+
name: "claimOwnership",
|
|
300
|
+
outputs: [],
|
|
301
|
+
stateMutability: "nonpayable",
|
|
302
|
+
type: "function",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
inputs: [],
|
|
306
|
+
name: "feeRatio",
|
|
307
|
+
outputs: [
|
|
308
|
+
{
|
|
309
|
+
internalType: "uint256",
|
|
310
|
+
name: "",
|
|
311
|
+
type: "uint256",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
stateMutability: "view",
|
|
315
|
+
type: "function",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
inputs: [
|
|
319
|
+
{
|
|
320
|
+
internalType: "uint256",
|
|
321
|
+
name: "netPtOut",
|
|
322
|
+
type: "uint256",
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
name: "getPrice",
|
|
326
|
+
outputs: [
|
|
327
|
+
{
|
|
328
|
+
internalType: "uint256",
|
|
329
|
+
name: "",
|
|
330
|
+
type: "uint256",
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
stateMutability: "nonpayable",
|
|
334
|
+
type: "function",
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
inputs: [],
|
|
338
|
+
name: "market",
|
|
339
|
+
outputs: [
|
|
340
|
+
{
|
|
341
|
+
internalType: "address",
|
|
342
|
+
name: "",
|
|
343
|
+
type: "address",
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
stateMutability: "view",
|
|
347
|
+
type: "function",
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
inputs: [],
|
|
351
|
+
name: "owner",
|
|
352
|
+
outputs: [
|
|
353
|
+
{
|
|
354
|
+
internalType: "address",
|
|
355
|
+
name: "",
|
|
356
|
+
type: "address",
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
stateMutability: "view",
|
|
360
|
+
type: "function",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
inputs: [],
|
|
364
|
+
name: "pendingOwner",
|
|
365
|
+
outputs: [
|
|
366
|
+
{
|
|
367
|
+
internalType: "address",
|
|
368
|
+
name: "",
|
|
369
|
+
type: "address",
|
|
370
|
+
},
|
|
371
|
+
],
|
|
372
|
+
stateMutability: "view",
|
|
373
|
+
type: "function",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
inputs: [],
|
|
377
|
+
name: "router",
|
|
378
|
+
outputs: [
|
|
379
|
+
{
|
|
380
|
+
internalType: "address",
|
|
381
|
+
name: "",
|
|
382
|
+
type: "address",
|
|
383
|
+
},
|
|
384
|
+
],
|
|
385
|
+
stateMutability: "view",
|
|
386
|
+
type: "function",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
inputs: [
|
|
390
|
+
{
|
|
391
|
+
internalType: "uint256",
|
|
392
|
+
name: "amountPtToSell",
|
|
393
|
+
type: "uint256",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
internalType: "uint256",
|
|
397
|
+
name: "rawPrice",
|
|
398
|
+
type: "uint256",
|
|
399
|
+
},
|
|
400
|
+
],
|
|
401
|
+
name: "sellPt",
|
|
402
|
+
outputs: [],
|
|
403
|
+
stateMutability: "nonpayable",
|
|
404
|
+
type: "function",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
inputs: [
|
|
408
|
+
{
|
|
409
|
+
internalType: "uint256",
|
|
410
|
+
name: "amountPtToSell",
|
|
411
|
+
type: "uint256",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
internalType: "uint256",
|
|
415
|
+
name: "_price",
|
|
416
|
+
type: "uint256",
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
name: "sellPtAndSetBatchPrice",
|
|
420
|
+
outputs: [],
|
|
421
|
+
stateMutability: "nonpayable",
|
|
422
|
+
type: "function",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
inputs: [
|
|
426
|
+
{
|
|
427
|
+
internalType: "uint256",
|
|
428
|
+
name: "_price",
|
|
429
|
+
type: "uint256",
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
name: "setBatchPrice",
|
|
433
|
+
outputs: [],
|
|
434
|
+
stateMutability: "nonpayable",
|
|
435
|
+
type: "function",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
inputs: [
|
|
439
|
+
{
|
|
440
|
+
internalType: "uint256",
|
|
441
|
+
name: "_feeRatio",
|
|
442
|
+
type: "uint256",
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
name: "setFeeRatio",
|
|
446
|
+
outputs: [],
|
|
447
|
+
stateMutability: "nonpayable",
|
|
448
|
+
type: "function",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
inputs: [],
|
|
452
|
+
name: "token",
|
|
453
|
+
outputs: [
|
|
454
|
+
{
|
|
455
|
+
internalType: "address",
|
|
456
|
+
name: "",
|
|
457
|
+
type: "address",
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
stateMutability: "view",
|
|
461
|
+
type: "function",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
inputs: [
|
|
465
|
+
{
|
|
466
|
+
internalType: "address",
|
|
467
|
+
name: "newOwner",
|
|
468
|
+
type: "address",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
internalType: "bool",
|
|
472
|
+
name: "direct",
|
|
473
|
+
type: "bool",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
internalType: "bool",
|
|
477
|
+
name: "renounce",
|
|
478
|
+
type: "bool",
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
name: "transferOwnership",
|
|
482
|
+
outputs: [],
|
|
483
|
+
stateMutability: "nonpayable",
|
|
484
|
+
type: "function",
|
|
485
|
+
},
|
|
486
|
+
];
|
|
487
|
+
|
|
488
|
+
const _bytecode =
|
|
489
|
+
"0x6101406040523480156200001257600080fd5b5060405162002b0a38038062002b0a833981016040819052620000359162000314565b600154600160a81b900460ff166200005b57600154600160a01b900460ff161562000065565b620000656200016c565b620000ce5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600154600160a81b900460ff16158015620000f9576001805461ffff60a01b191661010160a01b1790555b620001036200018a565b6001600160a01b0380861660805284811660a052831660c05262000127836200020d565b6001600160a01b0390811661012052908116610100521660e0526200014c826200028b565b801562000161576001805460ff60a81b191690555b5050505050620003c2565b60006200018430620002ec60201b620009101760201c565b15905090565b600154600160a81b900460ff16620001f95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401620000c5565b600080546001600160a01b03191633179055565b600080600080600080866001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa15801562000255573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200027b91906200036e565b9199909850909650945050505050565b6000546001600160a01b03163314620002e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620000c5565b603255565b6001600160a01b03163b151590565b6001600160a01b03811681146200031157600080fd5b50565b600080600080608085870312156200032b57600080fd5b84516200033881620002fb565b60208601519094506200034b81620002fb565b60408601519093506200035e81620002fb565b6060959095015193969295505050565b6000806000606084860312156200038457600080fd5b83516200039181620002fb565b6020850151909350620003a481620002fb565b6040850151909250620003b781620002fb565b809150509250925092565b60805160a05160c05160e051610100516101205161269d6200046d600039600081816101c00152610be701526000818161026d015281816105d801528181610610015281816106fe01528181610762015281816107c60152818161082001526108e601526000818161015e0152610c800152600081816101fa0152610b600152600081816102f4015281816105ad015281816106d30152610caf015260006102ba015261269d6000f3fe608060405234801561001057600080fd5b50600436106101075760003560e01c8063078dfbe71461010c57806319f4ff2f14610121578063295149711461013457806341744dd41461015057806347bfac62146101595780634e71e0c81461018d578063574637401461019557806361cafeae146101a8578063781c18db146101bb5780637fbf37b4146101e257806380f55605146101f55780638da5cb5b1461021c578063907c3ea91461022f578063a511a74c14610242578063c944b4da14610255578063d94073d414610268578063e30c39781461028f578063e7572230146102a2578063f887ea40146102b5578063f8cc7b62146102dc578063fc0c546a146102ef575b600080fd5b61011f61011a3660046121d8565b610316565b005b61011f61012f366004612223565b61041b565b61013d60335481565b6040519081526020015b60405180910390f35b61013d60325481565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b604051610147919061223c565b61011f61044a565b61013d6101a3366004612223565b6104f5565b61011f6101b6366004612223565b610526565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b61013d6101f0366004612250565b610555565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b600054610180906001600160a01b031681565b61013d61023d366004612250565b6105fe565b61011f610250366004612285565b610724565b61013d610263366004612223565b6107f2565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b600154610180906001600160a01b031681565b61013d6102b0366004612223565b61088f565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b61011f6102ea366004612285565b6108ab565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146103495760405162461bcd60e51b8152600401610340906122a7565b60405180910390fd5b81156103fa576001600160a01b0383161515806103635750805b6103a75760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610340565b600080546040516001600160a01b038087169392169160008051602061264883398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6000546001600160a01b031633146104455760405162461bcd60e51b8152600401610340906122a7565b603255565b6001546001600160a01b03163381146104a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610340565b600080546040516001600160a01b038085169392169160008051602061264883398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000806105018361088f565b905061051f670de0b6b3a764000061051983866122f2565b9061091f565b9392505050565b6000546001600160a01b031633146105505760405162461bcd60e51b8152600401610340906122a7565b603355565b6000610560836107f2565b9050818110156105a85760405162461bcd60e51b81526020600482015260136024820152721a5b9cdd59999a58da595b9d081c1d081bdd5d606a1b6044820152606401610340565b6105d37f00000000000000000000000000000000000000000000000000000000000000003385610942565b61051f7f000000000000000000000000000000000000000000000000000000000000000085836109a9565b6000610609836104f5565b90506106347f0000000000000000000000000000000000000000000000000000000000000000610a6d565b83111561067e5760405162461bcd60e51b81526020600482015260186024820152776e657450744f757420657863656564732062616c616e636560401b6044820152606401610340565b818111156106ce5760405162461bcd60e51b815260206004820152601d60248201527f6e6574546f6b656e496e2065786365656473206d6178546f6b656e496e0000006044820152606401610340565b6106f97f00000000000000000000000000000000000000000000000000000000000000003383610942565b61051f7f000000000000000000000000000000000000000000000000000000000000000085856109a9565b6000546001600160a01b0316331461074e5760405162461bcd60e51b8152600401610340906122a7565b600061075982610af7565b905060006107867f0000000000000000000000000000000000000000000000000000000000000000610a6d565b90506107928482612311565b61079c85846122f2565b826033546107aa91906122f2565b6107b49190612311565b6107be919061233f565b6033556107ec7f00000000000000000000000000000000000000000000000000000000000000003386610942565b50505050565b60008061080d6102b060335485610b2c90919063ffffffff16565b90506108198382610b2c565b91506108447f0000000000000000000000000000000000000000000000000000000000000000610a6d565b8211156108895760405162461bcd60e51b81526020600482015260136024820152721a5b9cdd59999a58da595b9d081415081bdd5d606a1b6044820152606401610340565b50919050565b60006108a56033546108a084610b5b565b610d43565b92915050565b6000546001600160a01b031633146108d55760405162461bcd60e51b8152600401610340906122a7565b6108e16101b682610af7565b61090c7f00000000000000000000000000000000000000000000000000000000000000003384610942565b5050565b6001600160a01b03163b151590565b600081600161092e8286612311565b6109389190612353565b61051f919061233f565b6001600160a01b03831661098e578034146104165760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b6044820152606401610340565b8015610416576104166001600160a01b038416833084610d59565b806000036109b657505050565b6001600160a01b038316610a59576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a11576040519150601f19603f3d011682016040523d82523d6000602084013e610a16565b606091505b50509050806107ec5760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610340565b6104166001600160a01b0384168383610dc4565b60006001600160a01b03821615610af0576040516370a0823160e01b81526001600160a01b038316906370a0823190610aaa90309060040161223c565b602060405180830381865afa158015610ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aeb919061236a565b6108a5565b4792915050565b6000670de0b6b3a7640000603254670de0b6b3a7640000610b189190612311565b610b2290846122f2565b6108a5919061233f565b600080610b41670de0b6b3a7640000856122f2565b9050828181610b5257610b52612329565b04949350505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632778c3346040518163ffffffff1660e01b815260040161012060405180830381865afa158015610bbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be191906123c5565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631d52edc46040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c69919061236a565b90506000610c7983838742610de3565b50905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663cbe52ae37f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401610cec929190612447565b602060405180830381865afa158015610d09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2d919061236a565b9050610d398187610e2a565b9695505050505050565b6000818311610d52578161051f565b5090919050565b6040516001600160a01b03808516602483015283166044820152606481018290526107ec9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610e56565b6104168363a9059cbb60e01b8484604051602401610d8d929190612447565b600080600080610dfd8888610df789610f28565b88610f42565b91509150610e12610e0d8361100a565b611018565b9350610e1d81611018565b9250505094509492505050565b600080600183610e42670de0b6b3a7640000876122f2565b610e4c9190612311565b610b419190612353565b6000610eab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110279092919063ffffffff16565b8051909150156104165780806020019051810190610ec99190612460565b6104165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610340565b60006001600160ff1b03821115610f3e57600080fd5b5090565b600080610f538660c0015184101590565b15610f715760405163b2094b5960e01b815260040160405180910390fd5b85518412610f9f578551604051632185509b60e21b8152600481019190915260248101859052604401610340565b6000610fac87878661103e565b9050600080610fbc89848961113f565b9150915060008212610fd757610fd2888361124f565b610fe1565b610fe1888361128b565b9450610fed888261124f565b9350610ffe89848a8a89898c6112b8565b50505094509492505050565b60006108a58260001961247d565b600080821215610f3e57600080fd5b6060611036848460008561134a565b949350505050565b6110696040518060800160405280600081526020016000815260200160008152602001600081525090565b60c0840151821061108d5760405163b2094b5960e01b815260040160405180910390fd5b6000828560c0015161109f9190612353565b90506110ab8582611479565b825260208501516110bd9085906114d5565b6020830152845115806110d257506020820151155b15611100578451602083015160405163b1c4aefb60e01b815260048101929092526024820152604401610340565b61111e85600001518661010001518460200151856000015185611502565b604083015260a08501516111329082611583565b6060830152509392505050565b60008060006111618660000151866020015187600001518860400151886115bc565b905060006111776111728684611679565b61100a565b606087015190915060008613156111e65760006111948483611679565b9050670de0b6b3a76400008112156111c25760405163329e322960e21b815260048101829052602401610340565b6111de6111d783670de0b6b3a7640000612502565b84906116a8565b915050611213565b611210816111fc81670de0b6b3a7640000612502565b611206908561247d565b6111729190612541565b90505b60646112228960e00151610f28565b61122c908361247d565b6112369190612541565b93506112428183612502565b9450505050935093915050565b60008060008312611261576001611265565b6000195b905061128161127c85611277866116c6565b6116d8565b610f28565b611036908261247d565b6000806000831261129d5760016112a1565b6000195b905061128161127c856112b3866116c6565b6116ed565b6000818860c001516112ca9190612353565b88519091506112d9908661170f565b88526112f36112e8848661256f565b60208a01519061170f565b6020890181905288516113189161130b9089906114d5565b895160408b015185611756565b610100890181905260000361134057604051635534d70f60e11b815260040160405180910390fd5b5050505050505050565b6060824710156113ab5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610340565b6113b485610910565b6114005760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610340565b600080866001600160a01b0316858760405161141c91906125dc565b60006040518083038185875af1925050503d8060008114611459576040519150601f19603f3d011682016040523d82523d6000602084013e61145e565b606091505b509150915061146e8282866117a9565b979650505050505050565b600061148482610f28565b61149661127c6201518061016d6122f2565b84608001516114a5919061247d565b6114af9190612541565b9050600081136108a557604051630e520c3b60e11b815260048101829052602401610340565b600080600083126114e75760016114eb565b6000195b905061128161127c856114fd866116c6565b6117e2565b60008061150f8684611583565b9050670de0b6b3a764000081121561153d5760405163329e322960e21b815260048101829052602401610340565b600061155361154c878a61256f565b8990611679565b90506000611560826117f7565b905061156c8187611679565b6115769084612502565b9998505050505050505050565b6000806115956201518061016d6122f2565b61159f84866122f2565b6115a9919061233f565b90506110366115b782610f28565b61184a565b6000806115c9878461170f565b905060006115e16115da888a61256f565b8390611679565b9050670d529ae9e860000081131561161d57604051637e34684f60e11b815260048101829052670d529ae9e86000006024820152604401610340565b6000611628826117f7565b9050856116358289611679565b61163f919061256f565b9350670de0b6b3a764000084121561166d5760405163329e322960e21b815260048101859052602401610340565b50505095945050505050565b60008061168e670de0b6b3a76400008561247d565b905082818161169f5761169f612329565b05949350505050565b6000806116b5838561247d565b9050670de0b6b3a76400008161169f565b6000808213610f3e57610aeb826125f8565b600082610938670de0b6b3a7640000846122f2565b600082600181611705670de0b6b3a7640000866122f2565b61092e9190612311565b60008183121561174c5760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b6044820152606401610340565b61051f8284612502565b6000806117678787878760006115bc565b90506000611777610e0d83611c5f565b9050836117896201518061016d6122f2565b61179390836122f2565b61179d919061233f565b98975050505050505050565b606083156117b857508161051f565b8251156117c85782518084602001fd5b8160405162461bcd60e51b81526004016103409190612614565b6000670de0b6b3a764000061093884846122f2565b6000670de0b6b3a764000082036118215760405163a9c8b14d60e01b815260040160405180910390fd5b600061183f61183884670de0b6b3a7640000612502565b8490611679565b905061051f81611c5f565b6000680238fd42c5cf03ffff19821215801561186f575068070c1cc73b00c800008213155b6118ae5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b6044820152606401610340565b60008212156118e6576118c38260000361184a565b6a0c097ce7bc90715b34b9f160241b816118df576118df612329565b0592915050565b60006806f05b59d3b2000000831261192457506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b61195a565b6803782dace9d9000000831261195657506803782dace9d8ffffff19909101906b1425982cf597cd205cef738061195a565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126119aa5768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d63100000084126119e6576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b188000008412611a2057682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412611a5a576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac62000008412611a9357680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d631000008412611acc5768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412611b05576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c400008412611b3e5768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b6000808213611ca05760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610340565b670c7d713b49da000082138015611cbe5750670f43fc2c04ee000082125b15611ce257670de0b6b3a7640000611cd583611cf0565b816118df576118df612329565b6108a582611e0f565b919050565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff1985010281611d3157611d31612329565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a7640000821215611e5057611e47826a0c097ce7bc90715b34b9f160241b81611e4157611e41612329565b05611e0f565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b8312611e9b5772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b8312611ed2576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312611f1a576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312611f55576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf8508312611f8c57693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e28312611fc357690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d038312611ff85768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb41746121110831261202357680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312612058576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f1775788937937831261208d576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b28660383126120c1576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac83126120f5576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d63100000808603028161211e5761211e612329565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b6001600160a01b03811681146121c757600080fd5b50565b80151581146121c757600080fd5b6000806000606084860312156121ed57600080fd5b83356121f8816121b2565b92506020840135612208816121ca565b91506040840135612218816121ca565b809150509250925092565b60006020828403121561223557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b60008060006060848603121561226557600080fd5b8335612270816121b2565b95602085013595506040909401359392505050565b6000806040838503121561229857600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561230c5761230c6122dc565b500290565b60008219821115612324576123246122dc565b500190565b634e487b7160e01b600052601260045260246000fd5b60008261234e5761234e612329565b500490565b600082821015612365576123656122dc565b500390565b60006020828403121561237c57600080fd5b5051919050565b60405161012081016001600160401b03811182821017156123b457634e487b7160e01b600052604160045260246000fd5b60405290565b8051611ceb816121b2565b600061012082840312156123d857600080fd5b6123e0612383565b825181526020830151602082015260408301516040820152612404606084016123ba565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152508091505092915050565b6001600160a01b03929092168252602082015260400190565b60006020828403121561247257600080fd5b815161051f816121ca565b60006001600160ff1b03818413828413808216868404861116156124a3576124a36122dc565b600160ff1b60008712828116878305891216156124c2576124c26122dc565b600087129250878205871284841616156124de576124de6122dc565b878505871281841616156124f4576124f46122dc565b505050929093029392505050565b60008083128015600160ff1b850184121615612520576125206122dc565b6001600160ff1b038401831381161561253b5761253b6122dc565b50500390565b60008261255057612550612329565b600160ff1b82146000198414161561256a5761256a6122dc565b500590565b600080821280156001600160ff1b0384900385131615612591576125916122dc565b600160ff1b83900384128116156125aa576125aa6122dc565b50500190565b60005b838110156125cb5781810151838201526020016125b3565b838111156107ec5750506000910152565b600082516125ee8184602087016125b0565b9190910192915050565b6000600160ff1b820161260d5761260d6122dc565b5060000390565b60208152600082518060208401526126338160408501602087016125b0565b601f01601f1916919091016040019291505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a264697066735822122058c29f6f8275b3bde932f620118190367e2d01e75fc018fad6450821944bff7b64736f6c634300080f0033";
|
|
490
|
+
|
|
491
|
+
type PendleBatchSellerConstructorParams =
|
|
492
|
+
| [signer?: Signer]
|
|
493
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
494
|
+
|
|
495
|
+
const isSuperArgs = (
|
|
496
|
+
xs: PendleBatchSellerConstructorParams
|
|
497
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
498
|
+
|
|
499
|
+
export class PendleBatchSeller__factory extends ContractFactory {
|
|
500
|
+
constructor(...args: PendleBatchSellerConstructorParams) {
|
|
501
|
+
if (isSuperArgs(args)) {
|
|
502
|
+
super(...args);
|
|
503
|
+
} else {
|
|
504
|
+
super(_abi, _bytecode, args[0]);
|
|
505
|
+
}
|
|
506
|
+
this.contractName = "PendleBatchSeller";
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
deploy(
|
|
510
|
+
_router: string,
|
|
511
|
+
_token: string,
|
|
512
|
+
_market: string,
|
|
513
|
+
_initialFeeRatio: BigNumberish,
|
|
514
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
515
|
+
): Promise<PendleBatchSeller> {
|
|
516
|
+
return super.deploy(
|
|
517
|
+
_router,
|
|
518
|
+
_token,
|
|
519
|
+
_market,
|
|
520
|
+
_initialFeeRatio,
|
|
521
|
+
overrides || {}
|
|
522
|
+
) as Promise<PendleBatchSeller>;
|
|
523
|
+
}
|
|
524
|
+
getDeployTransaction(
|
|
525
|
+
_router: string,
|
|
526
|
+
_token: string,
|
|
527
|
+
_market: string,
|
|
528
|
+
_initialFeeRatio: BigNumberish,
|
|
529
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
530
|
+
): TransactionRequest {
|
|
531
|
+
return super.getDeployTransaction(
|
|
532
|
+
_router,
|
|
533
|
+
_token,
|
|
534
|
+
_market,
|
|
535
|
+
_initialFeeRatio,
|
|
536
|
+
overrides || {}
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
attach(address: string): PendleBatchSeller {
|
|
540
|
+
return super.attach(address) as PendleBatchSeller;
|
|
541
|
+
}
|
|
542
|
+
connect(signer: Signer): PendleBatchSeller__factory {
|
|
543
|
+
return super.connect(signer) as PendleBatchSeller__factory;
|
|
544
|
+
}
|
|
545
|
+
static readonly contractName: "PendleBatchSeller";
|
|
546
|
+
public readonly contractName: "PendleBatchSeller";
|
|
547
|
+
static readonly bytecode = _bytecode;
|
|
548
|
+
static readonly abi = _abi;
|
|
549
|
+
static createInterface(): PendleBatchSellerInterface {
|
|
550
|
+
return new utils.Interface(_abi) as PendleBatchSellerInterface;
|
|
551
|
+
}
|
|
552
|
+
static connect(
|
|
553
|
+
address: string,
|
|
554
|
+
signerOrProvider: Signer | Provider
|
|
555
|
+
): PendleBatchSeller {
|
|
556
|
+
return new Contract(address, _abi, signerOrProvider) as PendleBatchSeller;
|
|
557
|
+
}
|
|
558
|
+
}
|