@pendle/core-v2 0.19.0-testnet → 0.20.1-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.
Files changed (51) hide show
  1. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  3. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  6. package/deployments/43113-helper.json +1 -1
  7. package/deployments/80001-helper.json +3 -0
  8. package/package.json +1 -1
  9. package/typechain-types/ComposableStablePreview.ts +217 -0
  10. package/typechain-types/IBalancerFees.ts +89 -0
  11. package/typechain-types/IBalancerStablePreview.ts +217 -0
  12. package/typechain-types/IBasePool.ts +482 -0
  13. package/typechain-types/IComposableStable.ts +730 -0
  14. package/typechain-types/IGauge.ts +160 -0
  15. package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
  16. package/typechain-types/IMetaStablePool.ts +619 -0
  17. package/typechain-types/IRateProvider.ts +81 -0
  18. package/typechain-types/IVault.ts +410 -0
  19. package/typechain-types/MetaStableMath.ts +113 -0
  20. package/typechain-types/MetaStablePreview.ts +501 -0
  21. package/typechain-types/Multicall2.ts +437 -0
  22. package/typechain-types/PendleAura3EthSY.ts +1639 -0
  23. package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
  24. package/typechain-types/PendleAuraCbethWstethSY.ts +1626 -0
  25. package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
  26. package/typechain-types/PendleAuraWethWstethSY.ts +1562 -0
  27. package/typechain-types/StEthHelper.ts +107 -0
  28. package/typechain-types/StablePreviewBase.ts +217 -0
  29. package/typechain-types/factories/ComposableStablePreview__factory.ts +190 -0
  30. package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
  31. package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
  32. package/typechain-types/factories/IBasePool__factory.ts +340 -0
  33. package/typechain-types/factories/IComposableStable__factory.ts +482 -0
  34. package/typechain-types/factories/IGauge__factory.ts +70 -0
  35. package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
  36. package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
  37. package/typechain-types/factories/IRateProvider__factory.ts +36 -0
  38. package/typechain-types/factories/IVault__factory.ts +287 -0
  39. package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
  40. package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
  41. package/typechain-types/factories/Multicall2__factory.ts +372 -0
  42. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1365 -0
  43. package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
  44. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1356 -0
  45. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
  46. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1304 -0
  47. package/typechain-types/factories/StEthHelper__factory.ts +62 -0
  48. package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
  49. package/typechain-types/hardhat.d.ts +180 -9
  50. package/typechain-types/index.ts +40 -2
  51. package/deployments/1-markets/APE-JUNE-29.json +0 -8
@@ -0,0 +1,372 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type { Multicall2, Multicall2Interface } from "../Multicall2";
7
+
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ components: [
13
+ {
14
+ internalType: "address",
15
+ name: "target",
16
+ type: "address",
17
+ },
18
+ {
19
+ internalType: "bytes",
20
+ name: "callData",
21
+ type: "bytes",
22
+ },
23
+ ],
24
+ internalType: "struct Multicall2.Call[]",
25
+ name: "calls",
26
+ type: "tuple[]",
27
+ },
28
+ ],
29
+ name: "aggregate",
30
+ outputs: [
31
+ {
32
+ internalType: "uint256",
33
+ name: "blockNumber",
34
+ type: "uint256",
35
+ },
36
+ {
37
+ internalType: "bytes[]",
38
+ name: "returnData",
39
+ type: "bytes[]",
40
+ },
41
+ ],
42
+ stateMutability: "nonpayable",
43
+ type: "function",
44
+ },
45
+ {
46
+ inputs: [
47
+ {
48
+ components: [
49
+ {
50
+ internalType: "address",
51
+ name: "target",
52
+ type: "address",
53
+ },
54
+ {
55
+ internalType: "bytes",
56
+ name: "callData",
57
+ type: "bytes",
58
+ },
59
+ ],
60
+ internalType: "struct Multicall2.Call[]",
61
+ name: "calls",
62
+ type: "tuple[]",
63
+ },
64
+ ],
65
+ name: "blockAndAggregate",
66
+ outputs: [
67
+ {
68
+ internalType: "uint256",
69
+ name: "blockNumber",
70
+ type: "uint256",
71
+ },
72
+ {
73
+ internalType: "bytes32",
74
+ name: "blockHash",
75
+ type: "bytes32",
76
+ },
77
+ {
78
+ components: [
79
+ {
80
+ internalType: "bool",
81
+ name: "success",
82
+ type: "bool",
83
+ },
84
+ {
85
+ internalType: "bytes",
86
+ name: "returnData",
87
+ type: "bytes",
88
+ },
89
+ ],
90
+ internalType: "struct Multicall2.Result[]",
91
+ name: "returnData",
92
+ type: "tuple[]",
93
+ },
94
+ ],
95
+ stateMutability: "nonpayable",
96
+ type: "function",
97
+ },
98
+ {
99
+ inputs: [
100
+ {
101
+ internalType: "uint256",
102
+ name: "blockNumber",
103
+ type: "uint256",
104
+ },
105
+ ],
106
+ name: "getBlockHash",
107
+ outputs: [
108
+ {
109
+ internalType: "bytes32",
110
+ name: "blockHash",
111
+ type: "bytes32",
112
+ },
113
+ ],
114
+ stateMutability: "view",
115
+ type: "function",
116
+ },
117
+ {
118
+ inputs: [],
119
+ name: "getBlockNumber",
120
+ outputs: [
121
+ {
122
+ internalType: "uint256",
123
+ name: "blockNumber",
124
+ type: "uint256",
125
+ },
126
+ ],
127
+ stateMutability: "view",
128
+ type: "function",
129
+ },
130
+ {
131
+ inputs: [],
132
+ name: "getCurrentBlockCoinbase",
133
+ outputs: [
134
+ {
135
+ internalType: "address",
136
+ name: "coinbase",
137
+ type: "address",
138
+ },
139
+ ],
140
+ stateMutability: "view",
141
+ type: "function",
142
+ },
143
+ {
144
+ inputs: [],
145
+ name: "getCurrentBlockDifficulty",
146
+ outputs: [
147
+ {
148
+ internalType: "uint256",
149
+ name: "difficulty",
150
+ type: "uint256",
151
+ },
152
+ ],
153
+ stateMutability: "view",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [],
158
+ name: "getCurrentBlockGasLimit",
159
+ outputs: [
160
+ {
161
+ internalType: "uint256",
162
+ name: "gaslimit",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ stateMutability: "view",
167
+ type: "function",
168
+ },
169
+ {
170
+ inputs: [],
171
+ name: "getCurrentBlockTimestamp",
172
+ outputs: [
173
+ {
174
+ internalType: "uint256",
175
+ name: "timestamp",
176
+ type: "uint256",
177
+ },
178
+ ],
179
+ stateMutability: "view",
180
+ type: "function",
181
+ },
182
+ {
183
+ inputs: [
184
+ {
185
+ internalType: "address",
186
+ name: "addr",
187
+ type: "address",
188
+ },
189
+ ],
190
+ name: "getEthBalance",
191
+ outputs: [
192
+ {
193
+ internalType: "uint256",
194
+ name: "balance",
195
+ type: "uint256",
196
+ },
197
+ ],
198
+ stateMutability: "view",
199
+ type: "function",
200
+ },
201
+ {
202
+ inputs: [],
203
+ name: "getLastBlockHash",
204
+ outputs: [
205
+ {
206
+ internalType: "bytes32",
207
+ name: "blockHash",
208
+ type: "bytes32",
209
+ },
210
+ ],
211
+ stateMutability: "view",
212
+ type: "function",
213
+ },
214
+ {
215
+ inputs: [
216
+ {
217
+ internalType: "bool",
218
+ name: "requireSuccess",
219
+ type: "bool",
220
+ },
221
+ {
222
+ components: [
223
+ {
224
+ internalType: "address",
225
+ name: "target",
226
+ type: "address",
227
+ },
228
+ {
229
+ internalType: "bytes",
230
+ name: "callData",
231
+ type: "bytes",
232
+ },
233
+ ],
234
+ internalType: "struct Multicall2.Call[]",
235
+ name: "calls",
236
+ type: "tuple[]",
237
+ },
238
+ ],
239
+ name: "tryAggregate",
240
+ outputs: [
241
+ {
242
+ components: [
243
+ {
244
+ internalType: "bool",
245
+ name: "success",
246
+ type: "bool",
247
+ },
248
+ {
249
+ internalType: "bytes",
250
+ name: "returnData",
251
+ type: "bytes",
252
+ },
253
+ ],
254
+ internalType: "struct Multicall2.Result[]",
255
+ name: "returnData",
256
+ type: "tuple[]",
257
+ },
258
+ ],
259
+ stateMutability: "nonpayable",
260
+ type: "function",
261
+ },
262
+ {
263
+ inputs: [
264
+ {
265
+ internalType: "bool",
266
+ name: "requireSuccess",
267
+ type: "bool",
268
+ },
269
+ {
270
+ components: [
271
+ {
272
+ internalType: "address",
273
+ name: "target",
274
+ type: "address",
275
+ },
276
+ {
277
+ internalType: "bytes",
278
+ name: "callData",
279
+ type: "bytes",
280
+ },
281
+ ],
282
+ internalType: "struct Multicall2.Call[]",
283
+ name: "calls",
284
+ type: "tuple[]",
285
+ },
286
+ ],
287
+ name: "tryBlockAndAggregate",
288
+ outputs: [
289
+ {
290
+ internalType: "uint256",
291
+ name: "blockNumber",
292
+ type: "uint256",
293
+ },
294
+ {
295
+ internalType: "bytes32",
296
+ name: "blockHash",
297
+ type: "bytes32",
298
+ },
299
+ {
300
+ components: [
301
+ {
302
+ internalType: "bool",
303
+ name: "success",
304
+ type: "bool",
305
+ },
306
+ {
307
+ internalType: "bytes",
308
+ name: "returnData",
309
+ type: "bytes",
310
+ },
311
+ ],
312
+ internalType: "struct Multicall2.Result[]",
313
+ name: "returnData",
314
+ type: "tuple[]",
315
+ },
316
+ ],
317
+ stateMutability: "nonpayable",
318
+ type: "function",
319
+ },
320
+ ];
321
+
322
+ const _bytecode =
323
+ "0x608060405234801561001057600080fd5b506109ad806100206000396000f3fe608060405234801561001057600080fd5b50600436106100a45760003560e01c80630f28c97d146100a9578063252dba42146100be57806327e86d6e146100df578063399542e9146100e757806342cbb15c146101095780634d2301cc1461010f57806372425d9d1461012a57806386d516e814610130578063a8b0574e14610136578063bce38bd714610144578063c3077fa914610164578063ee82ac5e14610177575b600080fd5b425b6040519081526020015b60405180910390f35b6100d16100cc3660046106d5565b610189565b6040516100b5929190610761565b6100ab610310565b6100fa6100f53660046107cb565b610323565b6040516100b593929190610887565b436100ab565b6100ab61011d3660046108af565b6001600160a01b03163190565b446100ab565b456100ab565b6040514181526020016100b5565b6101576101523660046107cb565b61033b565b6040516100b591906108d1565b6100fa6101723660046106d5565b6104f4565b6100ab6101853660046108e4565b4090565b805143906060906001600160401b038111156101a7576101a7610511565b6040519080825280602002602001820160405280156101da57816020015b60608152602001906001900390816101c55790505b50905060005b835181101561030a576000808583815181106101fe576101fe6108fd565b6020026020010151600001516001600160a01b0316868481518110610225576102256108fd565b60200260200101516020015160405161023e9190610913565b6000604051808303816000865af19150503d806000811461027b576040519150601f19603f3d011682016040523d82523d6000602084013e610280565b606091505b5091509150816102d75760405162461bcd60e51b815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b808484815181106102ea576102ea6108fd565b60200260200101819052505050808061030290610945565b9150506101e0565b50915091565b600061031d60014361095e565b40905090565b4380406060610332858561033b565b90509250925092565b606081516001600160401b0381111561035657610356610511565b60405190808252806020026020018201604052801561039c57816020015b6040805180820190915260008152606060208201528152602001906001900390816103745790505b50905060005b82518110156104ed576000808483815181106103c0576103c06108fd565b6020026020010151600001516001600160a01b03168584815181106103e7576103e76108fd565b6020026020010151602001516040516104009190610913565b6000604051808303816000865af19150503d806000811461043d576040519150601f19603f3d011682016040523d82523d6000602084013e610442565b606091505b509150915085156104a457816104a45760405162461bcd60e51b815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c656044820152601960fa1b60648201526084016102ce565b60405180604001604052808315158152602001828152508484815181106104cd576104cd6108fd565b6020026020010181905250505080806104e590610945565b9150506103a2565b5092915050565b6000806060610504600185610323565b9196909550909350915050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561054957610549610511565b60405290565b604051601f8201601f191681016001600160401b038111828210171561057757610577610511565b604052919050565b80356001600160a01b038116811461059657600080fd5b919050565b6000601f83818401126105ad57600080fd5b823560206001600160401b03808311156105c9576105c9610511565b8260051b6105d883820161054f565b93845286810183019383810190898611156105f257600080fd5b84890192505b858310156106c8578235848111156106105760008081fd5b89016040601f19828d0381018213156106295760008081fd5b610631610527565b61063c89850161057f565b815282840135888111156106505760008081fd5b8085019450508d603f8501126106665760008081fd5b888401358881111561067a5761067a610511565b6106898a848e8401160161054f565b92508083528e848287010111156106a05760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906105f8565b9998505050505050505050565b6000602082840312156106e757600080fd5b81356001600160401b038111156106fd57600080fd5b6107098482850161059b565b949350505050565b60005b8381101561072c578181015183820152602001610714565b50506000910152565b6000815180845261074d816020860160208601610711565b601f01601f19169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b828110156107bd57605f198887030184526107ab868351610735565b9550928401929084019060010161078f565b509398975050505050505050565b600080604083850312156107de57600080fd5b823580151581146107ee57600080fd5b915060208301356001600160401b0381111561080957600080fd5b6108158582860161059b565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b8581101561087a5783830389528151805115158452850151604086850181905261086681860183610735565b9a87019a945050509084019060010161083a565b5090979650505050505050565b8381528260208201526060604082015260006108a6606083018461081f565b95945050505050565b6000602082840312156108c157600080fd5b6108ca8261057f565b9392505050565b6020815260006108ca602083018461081f565b6000602082840312156108f657600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b60008251610925818460208701610711565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000600182016109575761095761092f565b5060010190565b818103818111156109715761097161092f565b9291505056fea2646970667358221220e2932b4b3e611dbca561e85709c0bec4105225faa6fa735e386bced40328e45c64736f6c63430008110033";
324
+
325
+ type Multicall2ConstructorParams =
326
+ | [signer?: Signer]
327
+ | ConstructorParameters<typeof ContractFactory>;
328
+
329
+ const isSuperArgs = (
330
+ xs: Multicall2ConstructorParams
331
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
332
+
333
+ export class Multicall2__factory extends ContractFactory {
334
+ constructor(...args: Multicall2ConstructorParams) {
335
+ if (isSuperArgs(args)) {
336
+ super(...args);
337
+ } else {
338
+ super(_abi, _bytecode, args[0]);
339
+ }
340
+ this.contractName = "Multicall2";
341
+ }
342
+
343
+ deploy(
344
+ overrides?: Overrides & { from?: string | Promise<string> }
345
+ ): Promise<Multicall2> {
346
+ return super.deploy(overrides || {}) as Promise<Multicall2>;
347
+ }
348
+ getDeployTransaction(
349
+ overrides?: Overrides & { from?: string | Promise<string> }
350
+ ): TransactionRequest {
351
+ return super.getDeployTransaction(overrides || {});
352
+ }
353
+ attach(address: string): Multicall2 {
354
+ return super.attach(address) as Multicall2;
355
+ }
356
+ connect(signer: Signer): Multicall2__factory {
357
+ return super.connect(signer) as Multicall2__factory;
358
+ }
359
+ static readonly contractName: "Multicall2";
360
+ public readonly contractName: "Multicall2";
361
+ static readonly bytecode = _bytecode;
362
+ static readonly abi = _abi;
363
+ static createInterface(): Multicall2Interface {
364
+ return new utils.Interface(_abi) as Multicall2Interface;
365
+ }
366
+ static connect(
367
+ address: string,
368
+ signerOrProvider: Signer | Provider
369
+ ): Multicall2 {
370
+ return new Contract(address, _abi, signerOrProvider) as Multicall2;
371
+ }
372
+ }