@pendle/core-v2 0.5.1-beta-4 → 0.6.0
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/contracts/SuperComposableYield/ISuperComposableYield.sol +2 -0
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +35 -20
- package/contracts/SuperComposableYield/implementations/SCYBase.sol +39 -19
- package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +26 -14
- package/contracts/core/PendleBaseToken.sol +2 -2
- package/contracts/core/PendleMarket.sol +145 -61
- package/contracts/core/PendleMarketFactory.sol +30 -19
- package/contracts/core/{PendleOwnershipToken.sol → PendlePrincipalToken.sol} +14 -2
- package/contracts/core/PendleRouter.sol +23 -9
- package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +21 -20
- package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +22 -16
- package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +13 -13
- package/contracts/core/PendleSCYImpl/PendleStETHSCY.sol +107 -0
- package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +14 -15
- package/contracts/core/PendleYieldContractFactory.sol +29 -14
- package/contracts/core/PendleYieldToken.sol +130 -76
- package/contracts/core/RouterStatic.sol +16 -157
- package/contracts/core/actions/ActionCallback.sol +36 -18
- package/contracts/core/actions/ActionCore.sol +41 -88
- package/contracts/core/actions/ActionRedeem.sol +36 -0
- package/contracts/core/actions/ActionYT.sol +41 -59
- package/contracts/core/actions/base/{ActionSCYAndOTBase.sol → ActionSCYAndPTBase.sol} +59 -45
- package/contracts/core/actions/base/{ActionSCYAndYOBase.sol → ActionSCYAndPYBase.sol} +57 -19
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +31 -21
- package/contracts/interfaces/IPActionCore.sol +21 -28
- package/contracts/interfaces/IPActionRedeem.sol +17 -0
- package/contracts/interfaces/IPActionYT.sol +5 -12
- package/contracts/interfaces/IPAllAction.sol +2 -2
- package/contracts/interfaces/IPMarket.sol +33 -10
- package/contracts/interfaces/IPMarketAddRemoveCallback.sol +2 -2
- package/contracts/interfaces/IPMarketFactory.sol +3 -1
- package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
- package/contracts/interfaces/{IPOwnershipToken.sol → IPPrincipalToken.sol} +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +7 -82
- package/contracts/interfaces/IPYieldContractFactory.sol +10 -2
- package/contracts/interfaces/IPYieldToken.sol +14 -5
- package/contracts/interfaces/IWstETH.sol +10 -0
- package/contracts/libraries/JoeLibrary.sol +1 -1
- package/contracts/libraries/math/LogExpMath.sol +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +128 -88
- package/contracts/libraries/math/MarketMathAux.sol +13 -13
- package/contracts/libraries/math/MarketMathCore.sol +62 -93
- package/contracts/libraries/math/Math.sol +14 -2
- package/contracts/periphery/PendleGovernanceManager.sol +5 -3
- package/package.json +3 -2
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionCore.ts +312 -234
- package/typechain-types/ActionRedeem.ts +125 -0
- package/typechain-types/ActionSCYAndPYBase.ts +223 -0
- package/typechain-types/ActionSCYAndYOBase.ts +129 -3
- package/typechain-types/ActionSCYAndYTBase.ts +149 -3
- package/typechain-types/ActionYT.ts +192 -94
- package/typechain-types/IPActionCore.ts +183 -231
- package/typechain-types/IPActionRedeem.ts +125 -0
- package/typechain-types/IPActionYT.ts +43 -91
- package/typechain-types/IPAllAction.ts +258 -321
- package/typechain-types/IPMarket.ts +150 -50
- package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
- package/typechain-types/IPMarketFactory.ts +28 -6
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
- package/typechain-types/IPRouterStatic.ts +50 -530
- package/typechain-types/IPYieldContractFactory.ts +85 -19
- package/typechain-types/IPYieldToken.ts +138 -37
- package/typechain-types/ISuperComposableYield.ts +13 -0
- package/typechain-types/IWstETH.ts +149 -0
- package/typechain-types/PendleAaveV3SCY.ts +110 -0
- package/typechain-types/PendleBaseToken.ts +1 -1
- package/typechain-types/PendleBenQiErc20SCY.ts +55 -12
- package/typechain-types/PendleBtrflyScy.ts +27 -23
- package/typechain-types/PendleGovernanceManager.ts +5 -5
- package/typechain-types/PendleMarket.ts +197 -100
- package/typechain-types/PendleMarketFactory.ts +96 -34
- package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
- package/typechain-types/PendleRouter.ts +19 -0
- package/typechain-types/PendleRouterRedeemUpg.ts +125 -0
- package/typechain-types/PendleStEthSCY.ts +872 -0
- package/typechain-types/PendleYearnVaultScy.ts +27 -23
- package/typechain-types/PendleYieldContractFactory.ts +94 -28
- package/typechain-types/PendleYieldToken.ts +142 -57
- package/typechain-types/RewardManager.ts +21 -0
- package/typechain-types/RouterStatic.ts +50 -530
- package/typechain-types/SCYBase.ts +25 -0
- package/typechain-types/SCYBaseWithRewards.ts +64 -0
- package/typechain-types/factories/ActionCallback__factory.ts +2 -2
- package/typechain-types/factories/ActionCore__factory.ts +263 -79
- package/typechain-types/factories/ActionRedeem__factory.ts +105 -0
- package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +200 -0
- package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +148 -0
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +173 -0
- package/typechain-types/factories/ActionYT__factory.ts +265 -56
- package/typechain-types/factories/IPActionCore__factory.ts +114 -78
- package/typechain-types/factories/IPActionRedeem__factory.ts +70 -0
- package/typechain-types/factories/IPActionYT__factory.ts +90 -54
- package/typechain-types/factories/IPAllAction__factory.ts +254 -138
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
- package/typechain-types/factories/IPMarketFactory__factory.ts +26 -1
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
- package/typechain-types/factories/IPMarket__factory.ts +125 -13
- package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
- package/typechain-types/factories/IPRouterStatic__factory.ts +12 -628
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +72 -2
- package/typechain-types/factories/IPYieldToken__factory.ts +93 -7
- package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
- package/typechain-types/factories/IWstETH__factory.ts +74 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +97 -3
- package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +62 -7
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +42 -19
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
- package/typechain-types/factories/PendleMarketFactory__factory.ts +66 -15
- package/typechain-types/factories/PendleMarket__factory.ts +170 -53
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
- package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +112 -0
- package/typechain-types/factories/PendleRouter__factory.ts +23 -1
- package/typechain-types/factories/PendleStEthSCY__factory.ts +716 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +41 -18
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +75 -5
- package/typechain-types/factories/PendleYieldToken__factory.ts +102 -33
- package/typechain-types/factories/RewardManager__factory.ts +13 -0
- package/typechain-types/factories/RouterStatic__factory.ts +13 -629
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +60 -2
- package/typechain-types/factories/SCYBase__factory.ts +28 -2
- package/typechain-types/hardhat.d.ts +52 -16
- package/typechain-types/index.ts +14 -6
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +0 -527
|
@@ -1,527 +0,0 @@
|
|
|
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
|
-
PendleOwnershipToken,
|
|
15
|
-
PendleOwnershipTokenInterface,
|
|
16
|
-
} from "../PendleOwnershipToken";
|
|
17
|
-
|
|
18
|
-
const _abi = [
|
|
19
|
-
{
|
|
20
|
-
inputs: [
|
|
21
|
-
{
|
|
22
|
-
internalType: "address",
|
|
23
|
-
name: "_SCY",
|
|
24
|
-
type: "address",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
internalType: "string",
|
|
28
|
-
name: "_name",
|
|
29
|
-
type: "string",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
internalType: "string",
|
|
33
|
-
name: "_symbol",
|
|
34
|
-
type: "string",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
internalType: "uint8",
|
|
38
|
-
name: "__decimals",
|
|
39
|
-
type: "uint8",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
internalType: "uint256",
|
|
43
|
-
name: "_expiry",
|
|
44
|
-
type: "uint256",
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
stateMutability: "nonpayable",
|
|
48
|
-
type: "constructor",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
anonymous: false,
|
|
52
|
-
inputs: [
|
|
53
|
-
{
|
|
54
|
-
indexed: true,
|
|
55
|
-
internalType: "address",
|
|
56
|
-
name: "owner",
|
|
57
|
-
type: "address",
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
indexed: true,
|
|
61
|
-
internalType: "address",
|
|
62
|
-
name: "spender",
|
|
63
|
-
type: "address",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
indexed: false,
|
|
67
|
-
internalType: "uint256",
|
|
68
|
-
name: "value",
|
|
69
|
-
type: "uint256",
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
name: "Approval",
|
|
73
|
-
type: "event",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
anonymous: false,
|
|
77
|
-
inputs: [
|
|
78
|
-
{
|
|
79
|
-
indexed: true,
|
|
80
|
-
internalType: "address",
|
|
81
|
-
name: "from",
|
|
82
|
-
type: "address",
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
indexed: true,
|
|
86
|
-
internalType: "address",
|
|
87
|
-
name: "to",
|
|
88
|
-
type: "address",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
indexed: false,
|
|
92
|
-
internalType: "uint256",
|
|
93
|
-
name: "value",
|
|
94
|
-
type: "uint256",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
name: "Transfer",
|
|
98
|
-
type: "event",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
inputs: [],
|
|
102
|
-
name: "SCY",
|
|
103
|
-
outputs: [
|
|
104
|
-
{
|
|
105
|
-
internalType: "address",
|
|
106
|
-
name: "",
|
|
107
|
-
type: "address",
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
stateMutability: "view",
|
|
111
|
-
type: "function",
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
inputs: [],
|
|
115
|
-
name: "YT",
|
|
116
|
-
outputs: [
|
|
117
|
-
{
|
|
118
|
-
internalType: "address",
|
|
119
|
-
name: "",
|
|
120
|
-
type: "address",
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
stateMutability: "view",
|
|
124
|
-
type: "function",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
inputs: [
|
|
128
|
-
{
|
|
129
|
-
internalType: "address",
|
|
130
|
-
name: "owner",
|
|
131
|
-
type: "address",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
internalType: "address",
|
|
135
|
-
name: "spender",
|
|
136
|
-
type: "address",
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
name: "allowance",
|
|
140
|
-
outputs: [
|
|
141
|
-
{
|
|
142
|
-
internalType: "uint256",
|
|
143
|
-
name: "",
|
|
144
|
-
type: "uint256",
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
stateMutability: "view",
|
|
148
|
-
type: "function",
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
inputs: [
|
|
152
|
-
{
|
|
153
|
-
internalType: "address",
|
|
154
|
-
name: "spender",
|
|
155
|
-
type: "address",
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
internalType: "uint256",
|
|
159
|
-
name: "amount",
|
|
160
|
-
type: "uint256",
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
name: "approve",
|
|
164
|
-
outputs: [
|
|
165
|
-
{
|
|
166
|
-
internalType: "bool",
|
|
167
|
-
name: "",
|
|
168
|
-
type: "bool",
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
stateMutability: "nonpayable",
|
|
172
|
-
type: "function",
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
inputs: [
|
|
176
|
-
{
|
|
177
|
-
internalType: "address",
|
|
178
|
-
name: "account",
|
|
179
|
-
type: "address",
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
name: "balanceOf",
|
|
183
|
-
outputs: [
|
|
184
|
-
{
|
|
185
|
-
internalType: "uint256",
|
|
186
|
-
name: "",
|
|
187
|
-
type: "uint256",
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
stateMutability: "view",
|
|
191
|
-
type: "function",
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
inputs: [
|
|
195
|
-
{
|
|
196
|
-
internalType: "address",
|
|
197
|
-
name: "user",
|
|
198
|
-
type: "address",
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
internalType: "uint256",
|
|
202
|
-
name: "amount",
|
|
203
|
-
type: "uint256",
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
name: "burnByYT",
|
|
207
|
-
outputs: [],
|
|
208
|
-
stateMutability: "nonpayable",
|
|
209
|
-
type: "function",
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
inputs: [],
|
|
213
|
-
name: "decimals",
|
|
214
|
-
outputs: [
|
|
215
|
-
{
|
|
216
|
-
internalType: "uint8",
|
|
217
|
-
name: "",
|
|
218
|
-
type: "uint8",
|
|
219
|
-
},
|
|
220
|
-
],
|
|
221
|
-
stateMutability: "view",
|
|
222
|
-
type: "function",
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
inputs: [
|
|
226
|
-
{
|
|
227
|
-
internalType: "address",
|
|
228
|
-
name: "spender",
|
|
229
|
-
type: "address",
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
internalType: "uint256",
|
|
233
|
-
name: "subtractedValue",
|
|
234
|
-
type: "uint256",
|
|
235
|
-
},
|
|
236
|
-
],
|
|
237
|
-
name: "decreaseAllowance",
|
|
238
|
-
outputs: [
|
|
239
|
-
{
|
|
240
|
-
internalType: "bool",
|
|
241
|
-
name: "",
|
|
242
|
-
type: "bool",
|
|
243
|
-
},
|
|
244
|
-
],
|
|
245
|
-
stateMutability: "nonpayable",
|
|
246
|
-
type: "function",
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
inputs: [],
|
|
250
|
-
name: "expiry",
|
|
251
|
-
outputs: [
|
|
252
|
-
{
|
|
253
|
-
internalType: "uint256",
|
|
254
|
-
name: "",
|
|
255
|
-
type: "uint256",
|
|
256
|
-
},
|
|
257
|
-
],
|
|
258
|
-
stateMutability: "view",
|
|
259
|
-
type: "function",
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
inputs: [],
|
|
263
|
-
name: "factory",
|
|
264
|
-
outputs: [
|
|
265
|
-
{
|
|
266
|
-
internalType: "address",
|
|
267
|
-
name: "",
|
|
268
|
-
type: "address",
|
|
269
|
-
},
|
|
270
|
-
],
|
|
271
|
-
stateMutability: "view",
|
|
272
|
-
type: "function",
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
inputs: [
|
|
276
|
-
{
|
|
277
|
-
internalType: "address",
|
|
278
|
-
name: "spender",
|
|
279
|
-
type: "address",
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
internalType: "uint256",
|
|
283
|
-
name: "addedValue",
|
|
284
|
-
type: "uint256",
|
|
285
|
-
},
|
|
286
|
-
],
|
|
287
|
-
name: "increaseAllowance",
|
|
288
|
-
outputs: [
|
|
289
|
-
{
|
|
290
|
-
internalType: "bool",
|
|
291
|
-
name: "",
|
|
292
|
-
type: "bool",
|
|
293
|
-
},
|
|
294
|
-
],
|
|
295
|
-
stateMutability: "nonpayable",
|
|
296
|
-
type: "function",
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
inputs: [
|
|
300
|
-
{
|
|
301
|
-
internalType: "address",
|
|
302
|
-
name: "_YT",
|
|
303
|
-
type: "address",
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
name: "initialize",
|
|
307
|
-
outputs: [],
|
|
308
|
-
stateMutability: "nonpayable",
|
|
309
|
-
type: "function",
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
inputs: [],
|
|
313
|
-
name: "isExpired",
|
|
314
|
-
outputs: [
|
|
315
|
-
{
|
|
316
|
-
internalType: "bool",
|
|
317
|
-
name: "res",
|
|
318
|
-
type: "bool",
|
|
319
|
-
},
|
|
320
|
-
],
|
|
321
|
-
stateMutability: "view",
|
|
322
|
-
type: "function",
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
inputs: [
|
|
326
|
-
{
|
|
327
|
-
internalType: "address",
|
|
328
|
-
name: "user",
|
|
329
|
-
type: "address",
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
internalType: "uint256",
|
|
333
|
-
name: "amount",
|
|
334
|
-
type: "uint256",
|
|
335
|
-
},
|
|
336
|
-
],
|
|
337
|
-
name: "mintByYT",
|
|
338
|
-
outputs: [],
|
|
339
|
-
stateMutability: "nonpayable",
|
|
340
|
-
type: "function",
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
inputs: [],
|
|
344
|
-
name: "name",
|
|
345
|
-
outputs: [
|
|
346
|
-
{
|
|
347
|
-
internalType: "string",
|
|
348
|
-
name: "",
|
|
349
|
-
type: "string",
|
|
350
|
-
},
|
|
351
|
-
],
|
|
352
|
-
stateMutability: "view",
|
|
353
|
-
type: "function",
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
inputs: [],
|
|
357
|
-
name: "symbol",
|
|
358
|
-
outputs: [
|
|
359
|
-
{
|
|
360
|
-
internalType: "string",
|
|
361
|
-
name: "",
|
|
362
|
-
type: "string",
|
|
363
|
-
},
|
|
364
|
-
],
|
|
365
|
-
stateMutability: "view",
|
|
366
|
-
type: "function",
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
inputs: [],
|
|
370
|
-
name: "timeCreated",
|
|
371
|
-
outputs: [
|
|
372
|
-
{
|
|
373
|
-
internalType: "uint256",
|
|
374
|
-
name: "",
|
|
375
|
-
type: "uint256",
|
|
376
|
-
},
|
|
377
|
-
],
|
|
378
|
-
stateMutability: "view",
|
|
379
|
-
type: "function",
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
inputs: [],
|
|
383
|
-
name: "totalSupply",
|
|
384
|
-
outputs: [
|
|
385
|
-
{
|
|
386
|
-
internalType: "uint256",
|
|
387
|
-
name: "",
|
|
388
|
-
type: "uint256",
|
|
389
|
-
},
|
|
390
|
-
],
|
|
391
|
-
stateMutability: "view",
|
|
392
|
-
type: "function",
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
inputs: [
|
|
396
|
-
{
|
|
397
|
-
internalType: "address",
|
|
398
|
-
name: "to",
|
|
399
|
-
type: "address",
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
internalType: "uint256",
|
|
403
|
-
name: "amount",
|
|
404
|
-
type: "uint256",
|
|
405
|
-
},
|
|
406
|
-
],
|
|
407
|
-
name: "transfer",
|
|
408
|
-
outputs: [
|
|
409
|
-
{
|
|
410
|
-
internalType: "bool",
|
|
411
|
-
name: "",
|
|
412
|
-
type: "bool",
|
|
413
|
-
},
|
|
414
|
-
],
|
|
415
|
-
stateMutability: "nonpayable",
|
|
416
|
-
type: "function",
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
inputs: [
|
|
420
|
-
{
|
|
421
|
-
internalType: "address",
|
|
422
|
-
name: "from",
|
|
423
|
-
type: "address",
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
internalType: "address",
|
|
427
|
-
name: "to",
|
|
428
|
-
type: "address",
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
internalType: "uint256",
|
|
432
|
-
name: "amount",
|
|
433
|
-
type: "uint256",
|
|
434
|
-
},
|
|
435
|
-
],
|
|
436
|
-
name: "transferFrom",
|
|
437
|
-
outputs: [
|
|
438
|
-
{
|
|
439
|
-
internalType: "bool",
|
|
440
|
-
name: "",
|
|
441
|
-
type: "bool",
|
|
442
|
-
},
|
|
443
|
-
],
|
|
444
|
-
stateMutability: "nonpayable",
|
|
445
|
-
type: "function",
|
|
446
|
-
},
|
|
447
|
-
];
|
|
448
|
-
|
|
449
|
-
const _bytecode =
|
|
450
|
-
"0x6101206040523480156200001257600080fd5b506040516200113438038062001134833981016040819052620000359162000250565b838383838383816003908051906020019062000053929190620000dd565b50805162000069906004906020840190620000dd565b505050428111620000b15760405162461bcd60e51b815260206004820152600e60248201526d494e56414c49445f45585049525960901b604482015260640160405180910390fd5b60ff9091166080524260a05260c05250503360e052505050506001600160a01b0316610100526200033d565b828054620000eb9062000300565b90600052602060002090601f0160209004810192826200010f57600085556200015a565b82601f106200012a57805160ff19168380011785556200015a565b828001600101855582156200015a579182015b828111156200015a5782518255916020019190600101906200013d565b50620001689291506200016c565b5090565b5b808211156200016857600081556001016200016d565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001ab57600080fd5b81516001600160401b0380821115620001c857620001c862000183565b604051601f8301601f19908116603f01168101908282118183101715620001f357620001f362000183565b816040528381526020925086838588010111156200021057600080fd5b600091505b8382101562000234578582018301518183018401529082019062000215565b83821115620002465760008385830101525b9695505050505050565b600080600080600060a086880312156200026957600080fd5b85516001600160a01b03811681146200028157600080fd5b60208701519095506001600160401b03808211156200029f57600080fd5b620002ad89838a0162000199565b95506040880151915080821115620002c457600080fd5b50620002d38882890162000199565b935050606086015160ff81168114620002eb57600080fd5b80925050608086015190509295509295909350565b600181811c908216806200031557607f821691505b602082108114156200033757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610da46200039060003960006101ee0152600081816102aa015261057c01526000818161017e01526102f70152600061031e015260006101ac0152610da46000f3fe608060405234801561001057600080fd5b50600436106100fc5760003560e01c806306fdde0314610101578063095ea7b31461011f57806312a31dcc1461014257806318160ddd1461015757806323b872dd146101695780632f13b60c1461017c578063313ce567146101a557806339509351146101d657806347bfac62146101e957806370a0823114610228578063781c18db1461025157806395d89b4114610264578063a457c2d71461026c578063a9059cbb1461027f578063b64761f914610292578063c45a0155146102a5578063c4d66de8146102cc578063dd62ed3e146102df578063e184c9be146102f2578063f1653f6e14610319575b600080fd5b610109610340565b6040516101169190610b81565b60405180910390f35b61013261012d366004610bf2565b6103d2565b6040519015158152602001610116565b610155610150366004610bf2565b6103ea565b005b6002545b604051908152602001610116565b610132610177366004610c1c565b61042b565b7f0000000000000000000000000000000000000000000000000000000000000000421015610132565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610116565b6101326101e4366004610bf2565b61044f565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610116565b61015b610236366004610c58565b6001600160a01b031660009081526020819052604090205490565b600554610210906001600160a01b031681565b61010961048e565b61013261027a366004610bf2565b61049d565b61013261028d366004610bf2565b61052f565b6101556102a0366004610bf2565b61053d565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b6101556102da366004610c58565b610571565b61015b6102ed366004610c7a565b6105fa565b61015b7f000000000000000000000000000000000000000000000000000000000000000081565b61015b7f000000000000000000000000000000000000000000000000000000000000000081565b60606003805461034f90610cad565b80601f016020809104026020016040519081016040528092919081815260200182805461037b90610cad565b80156103c85780601f1061039d576101008083540402835291602001916103c8565b820191906000526020600020905b8154815290600101906020018083116103ab57829003601f168201915b5050505050905090565b6000336103e0818585610625565b5060019392505050565b6005546001600160a01b0316331461041d5760405162461bcd60e51b815260040161041490610ce8565b60405180910390fd5b610427828261074a565b5050565b600033610439858285610817565b610444858585610891565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906103e09082908690610489908790610d1f565b610625565b60606004805461034f90610cad565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156105225760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610414565b6104448286868403610625565b6000336103e0818585610891565b6005546001600160a01b031633146105675760405162461bcd60e51b815260040161041490610ce8565b6104278282610a4d565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105d85760405162461bcd60e51b815260206004820152600c60248201526b4f4e4c595f464143544f525960a01b6044820152606401610414565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166106875760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610414565b6001600160a01b0382166106e85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610414565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0382166107a05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610414565b80600260008282546107b29190610d1f565b90915550506001600160a01b038216600090815260208190526040812080548392906107df908490610d1f565b90915550506040518181526001600160a01b03831690600090600080516020610d4f8339815191529060200160405180910390a35050565b600061082384846105fa565b9050600019811461088b578181101561087e5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610414565b61088b8484848403610625565b50505050565b6001600160a01b0383166108f55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610414565b6001600160a01b0382166109575760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610414565b6001600160a01b038316600090815260208190526040902054818110156109cf5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610414565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a06908490610d1f565b92505081905550826001600160a01b0316846001600160a01b0316600080516020610d4f83398151915284604051610a4091815260200190565b60405180910390a361088b565b6001600160a01b038216610aad5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610414565b6001600160a01b03821660009081526020819052604090205481811015610b215760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610414565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610b50908490610d37565b90915550506040518281526000906001600160a01b03851690600080516020610d4f8339815191529060200161073d565b600060208083528351808285015260005b81811015610bae57858101830151858201604001528201610b92565b81811115610bc0576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610bed57600080fd5b919050565b60008060408385031215610c0557600080fd5b610c0e83610bd6565b946020939093013593505050565b600080600060608486031215610c3157600080fd5b610c3a84610bd6565b9250610c4860208501610bd6565b9150604084013590509250925092565b600060208284031215610c6a57600080fd5b610c7382610bd6565b9392505050565b60008060408385031215610c8d57600080fd5b610c9683610bd6565b9150610ca460208401610bd6565b90509250929050565b600181811c90821680610cc157607f821691505b60208210811415610ce257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526007908201526613d3931657d65560ca1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610d3257610d32610d09565b500190565b600082821015610d4957610d49610d09565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206dfbd3dbf4f2d2990ecb59f955386865d92d5c1257323522b7d7c9302386f34f64736f6c63430008090033";
|
|
451
|
-
|
|
452
|
-
type PendleOwnershipTokenConstructorParams =
|
|
453
|
-
| [signer?: Signer]
|
|
454
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
455
|
-
|
|
456
|
-
const isSuperArgs = (
|
|
457
|
-
xs: PendleOwnershipTokenConstructorParams
|
|
458
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
459
|
-
|
|
460
|
-
export class PendleOwnershipToken__factory extends ContractFactory {
|
|
461
|
-
constructor(...args: PendleOwnershipTokenConstructorParams) {
|
|
462
|
-
if (isSuperArgs(args)) {
|
|
463
|
-
super(...args);
|
|
464
|
-
} else {
|
|
465
|
-
super(_abi, _bytecode, args[0]);
|
|
466
|
-
}
|
|
467
|
-
this.contractName = "PendleOwnershipToken";
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
deploy(
|
|
471
|
-
_SCY: string,
|
|
472
|
-
_name: string,
|
|
473
|
-
_symbol: string,
|
|
474
|
-
__decimals: BigNumberish,
|
|
475
|
-
_expiry: BigNumberish,
|
|
476
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
477
|
-
): Promise<PendleOwnershipToken> {
|
|
478
|
-
return super.deploy(
|
|
479
|
-
_SCY,
|
|
480
|
-
_name,
|
|
481
|
-
_symbol,
|
|
482
|
-
__decimals,
|
|
483
|
-
_expiry,
|
|
484
|
-
overrides || {}
|
|
485
|
-
) as Promise<PendleOwnershipToken>;
|
|
486
|
-
}
|
|
487
|
-
getDeployTransaction(
|
|
488
|
-
_SCY: string,
|
|
489
|
-
_name: string,
|
|
490
|
-
_symbol: string,
|
|
491
|
-
__decimals: BigNumberish,
|
|
492
|
-
_expiry: BigNumberish,
|
|
493
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
494
|
-
): TransactionRequest {
|
|
495
|
-
return super.getDeployTransaction(
|
|
496
|
-
_SCY,
|
|
497
|
-
_name,
|
|
498
|
-
_symbol,
|
|
499
|
-
__decimals,
|
|
500
|
-
_expiry,
|
|
501
|
-
overrides || {}
|
|
502
|
-
);
|
|
503
|
-
}
|
|
504
|
-
attach(address: string): PendleOwnershipToken {
|
|
505
|
-
return super.attach(address) as PendleOwnershipToken;
|
|
506
|
-
}
|
|
507
|
-
connect(signer: Signer): PendleOwnershipToken__factory {
|
|
508
|
-
return super.connect(signer) as PendleOwnershipToken__factory;
|
|
509
|
-
}
|
|
510
|
-
static readonly contractName: "PendleOwnershipToken";
|
|
511
|
-
public readonly contractName: "PendleOwnershipToken";
|
|
512
|
-
static readonly bytecode = _bytecode;
|
|
513
|
-
static readonly abi = _abi;
|
|
514
|
-
static createInterface(): PendleOwnershipTokenInterface {
|
|
515
|
-
return new utils.Interface(_abi) as PendleOwnershipTokenInterface;
|
|
516
|
-
}
|
|
517
|
-
static connect(
|
|
518
|
-
address: string,
|
|
519
|
-
signerOrProvider: Signer | Provider
|
|
520
|
-
): PendleOwnershipToken {
|
|
521
|
-
return new Contract(
|
|
522
|
-
address,
|
|
523
|
-
_abi,
|
|
524
|
-
signerOrProvider
|
|
525
|
-
) as PendleOwnershipToken;
|
|
526
|
-
}
|
|
527
|
-
}
|