@pendle/core-v2 5.7.0-sonic → 5.7.1

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 (19) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  7. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  8. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +29 -5
  9. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +8 -0
  10. package/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol +9 -2
  11. package/deployments/146-core.json +5 -5
  12. package/package.json +1 -1
  13. package/typechain-types/PendleMsgReceiveEndpointUpg.ts +558 -0
  14. package/typechain-types/PendleMsgSendEndpointUpg.ts +650 -0
  15. package/typechain-types/PendleSparkLinearDiscountOracleFactory.ts +60 -18
  16. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +452 -0
  17. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +459 -0
  18. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +28 -4
  19. package/typechain-types/hardhat.d.ts +0 -9
@@ -0,0 +1,459 @@
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 {
7
+ PendleMsgSendEndpointUpg,
8
+ PendleMsgSendEndpointUpgInterface,
9
+ } from "../PendleMsgSendEndpointUpg";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_refundAddress",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "contract ILayerZeroEndpoint",
21
+ name: "_lzEndpoint",
22
+ type: "address",
23
+ },
24
+ ],
25
+ stateMutability: "nonpayable",
26
+ type: "constructor",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "OnlyWhitelisted",
31
+ type: "error",
32
+ },
33
+ {
34
+ anonymous: false,
35
+ inputs: [
36
+ {
37
+ indexed: false,
38
+ internalType: "address",
39
+ name: "previousAdmin",
40
+ type: "address",
41
+ },
42
+ {
43
+ indexed: false,
44
+ internalType: "address",
45
+ name: "newAdmin",
46
+ type: "address",
47
+ },
48
+ ],
49
+ name: "AdminChanged",
50
+ type: "event",
51
+ },
52
+ {
53
+ anonymous: false,
54
+ inputs: [
55
+ {
56
+ indexed: true,
57
+ internalType: "address",
58
+ name: "beacon",
59
+ type: "address",
60
+ },
61
+ ],
62
+ name: "BeaconUpgraded",
63
+ type: "event",
64
+ },
65
+ {
66
+ anonymous: false,
67
+ inputs: [
68
+ {
69
+ indexed: false,
70
+ internalType: "uint8",
71
+ name: "version",
72
+ type: "uint8",
73
+ },
74
+ ],
75
+ name: "Initialized",
76
+ type: "event",
77
+ },
78
+ {
79
+ anonymous: false,
80
+ inputs: [
81
+ {
82
+ indexed: true,
83
+ internalType: "address",
84
+ name: "previousOwner",
85
+ type: "address",
86
+ },
87
+ {
88
+ indexed: true,
89
+ internalType: "address",
90
+ name: "newOwner",
91
+ type: "address",
92
+ },
93
+ ],
94
+ name: "OwnershipTransferred",
95
+ type: "event",
96
+ },
97
+ {
98
+ anonymous: false,
99
+ inputs: [
100
+ {
101
+ indexed: true,
102
+ internalType: "address",
103
+ name: "implementation",
104
+ type: "address",
105
+ },
106
+ ],
107
+ name: "Upgraded",
108
+ type: "event",
109
+ },
110
+ {
111
+ inputs: [
112
+ {
113
+ internalType: "address",
114
+ name: "endpointAddr",
115
+ type: "address",
116
+ },
117
+ {
118
+ internalType: "uint256",
119
+ name: "endpointChainId",
120
+ type: "uint256",
121
+ },
122
+ ],
123
+ name: "addReceiveEndpoints",
124
+ outputs: [],
125
+ stateMutability: "payable",
126
+ type: "function",
127
+ },
128
+ {
129
+ inputs: [
130
+ {
131
+ internalType: "address",
132
+ name: "dstAddress",
133
+ type: "address",
134
+ },
135
+ {
136
+ internalType: "uint256",
137
+ name: "dstChainId",
138
+ type: "uint256",
139
+ },
140
+ {
141
+ internalType: "bytes",
142
+ name: "payload",
143
+ type: "bytes",
144
+ },
145
+ {
146
+ internalType: "uint256",
147
+ name: "estimatedGasAmount",
148
+ type: "uint256",
149
+ },
150
+ ],
151
+ name: "calcFee",
152
+ outputs: [
153
+ {
154
+ internalType: "uint256",
155
+ name: "fee",
156
+ type: "uint256",
157
+ },
158
+ ],
159
+ stateMutability: "view",
160
+ type: "function",
161
+ },
162
+ {
163
+ inputs: [],
164
+ name: "claimOwnership",
165
+ outputs: [],
166
+ stateMutability: "nonpayable",
167
+ type: "function",
168
+ },
169
+ {
170
+ inputs: [],
171
+ name: "getAllReceiveEndpoints",
172
+ outputs: [
173
+ {
174
+ internalType: "uint256[]",
175
+ name: "chainIds",
176
+ type: "uint256[]",
177
+ },
178
+ {
179
+ internalType: "address[]",
180
+ name: "addrs",
181
+ type: "address[]",
182
+ },
183
+ ],
184
+ stateMutability: "view",
185
+ type: "function",
186
+ },
187
+ {
188
+ inputs: [],
189
+ name: "initialize",
190
+ outputs: [],
191
+ stateMutability: "nonpayable",
192
+ type: "function",
193
+ },
194
+ {
195
+ inputs: [
196
+ {
197
+ internalType: "address",
198
+ name: "",
199
+ type: "address",
200
+ },
201
+ ],
202
+ name: "isWhitelisted",
203
+ outputs: [
204
+ {
205
+ internalType: "bool",
206
+ name: "",
207
+ type: "bool",
208
+ },
209
+ ],
210
+ stateMutability: "view",
211
+ type: "function",
212
+ },
213
+ {
214
+ inputs: [],
215
+ name: "lzEndpoint",
216
+ outputs: [
217
+ {
218
+ internalType: "contract ILayerZeroEndpoint",
219
+ name: "",
220
+ type: "address",
221
+ },
222
+ ],
223
+ stateMutability: "view",
224
+ type: "function",
225
+ },
226
+ {
227
+ inputs: [],
228
+ name: "owner",
229
+ outputs: [
230
+ {
231
+ internalType: "address",
232
+ name: "",
233
+ type: "address",
234
+ },
235
+ ],
236
+ stateMutability: "view",
237
+ type: "function",
238
+ },
239
+ {
240
+ inputs: [],
241
+ name: "pendingOwner",
242
+ outputs: [
243
+ {
244
+ internalType: "address",
245
+ name: "",
246
+ type: "address",
247
+ },
248
+ ],
249
+ stateMutability: "view",
250
+ type: "function",
251
+ },
252
+ {
253
+ inputs: [],
254
+ name: "proxiableUUID",
255
+ outputs: [
256
+ {
257
+ internalType: "bytes32",
258
+ name: "",
259
+ type: "bytes32",
260
+ },
261
+ ],
262
+ stateMutability: "view",
263
+ type: "function",
264
+ },
265
+ {
266
+ inputs: [],
267
+ name: "refundAddress",
268
+ outputs: [
269
+ {
270
+ internalType: "address payable",
271
+ name: "",
272
+ type: "address",
273
+ },
274
+ ],
275
+ stateMutability: "view",
276
+ type: "function",
277
+ },
278
+ {
279
+ inputs: [
280
+ {
281
+ internalType: "address",
282
+ name: "dstAddress",
283
+ type: "address",
284
+ },
285
+ {
286
+ internalType: "uint256",
287
+ name: "dstChainId",
288
+ type: "uint256",
289
+ },
290
+ {
291
+ internalType: "bytes",
292
+ name: "payload",
293
+ type: "bytes",
294
+ },
295
+ {
296
+ internalType: "uint256",
297
+ name: "estimatedGasAmount",
298
+ type: "uint256",
299
+ },
300
+ ],
301
+ name: "sendMessage",
302
+ outputs: [],
303
+ stateMutability: "payable",
304
+ type: "function",
305
+ },
306
+ {
307
+ inputs: [
308
+ {
309
+ internalType: "uint16",
310
+ name: "_newVersion",
311
+ type: "uint16",
312
+ },
313
+ ],
314
+ name: "setLzSendVersion",
315
+ outputs: [],
316
+ stateMutability: "nonpayable",
317
+ type: "function",
318
+ },
319
+ {
320
+ inputs: [
321
+ {
322
+ internalType: "address",
323
+ name: "addr",
324
+ type: "address",
325
+ },
326
+ {
327
+ internalType: "bool",
328
+ name: "status",
329
+ type: "bool",
330
+ },
331
+ ],
332
+ name: "setWhitelisted",
333
+ outputs: [],
334
+ stateMutability: "nonpayable",
335
+ type: "function",
336
+ },
337
+ {
338
+ inputs: [
339
+ {
340
+ internalType: "address",
341
+ name: "newOwner",
342
+ type: "address",
343
+ },
344
+ {
345
+ internalType: "bool",
346
+ name: "direct",
347
+ type: "bool",
348
+ },
349
+ {
350
+ internalType: "bool",
351
+ name: "renounce",
352
+ type: "bool",
353
+ },
354
+ ],
355
+ name: "transferOwnership",
356
+ outputs: [],
357
+ stateMutability: "nonpayable",
358
+ type: "function",
359
+ },
360
+ {
361
+ inputs: [
362
+ {
363
+ internalType: "address",
364
+ name: "newImplementation",
365
+ type: "address",
366
+ },
367
+ ],
368
+ name: "upgradeTo",
369
+ outputs: [],
370
+ stateMutability: "nonpayable",
371
+ type: "function",
372
+ },
373
+ {
374
+ inputs: [
375
+ {
376
+ internalType: "address",
377
+ name: "newImplementation",
378
+ type: "address",
379
+ },
380
+ {
381
+ internalType: "bytes",
382
+ name: "data",
383
+ type: "bytes",
384
+ },
385
+ ],
386
+ name: "upgradeToAndCall",
387
+ outputs: [],
388
+ stateMutability: "payable",
389
+ type: "function",
390
+ },
391
+ ];
392
+
393
+ const _bytecode =
394
+ "0x60e0604052306080523480156200001557600080fd5b5060405162001d0738038062001d07833981016040819052620000389162000194565b600154600160a81b900460ff16158080156200005f575060018054600160a01b900460ff16105b80620000815750303b15801562000081575060018054600160a01b900460ff16145b620000e95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6001805460ff60a01b1916600160a01b179055801562000117576001805460ff60a81b1916600160a81b1790555b6001600160a01b0380841660a052821660c052801562000172576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050620001d3565b6001600160a01b03811681146200019157600080fd5b50565b60008060408385031215620001a857600080fd5b8251620001b5816200017b565b6020840151909250620001c8816200017b565b809150509250929050565b60805160a05160c051611acc6200023b6000396000818161029e0152818161083401528181610a0d0152610c370152600081816101070152610a6b01526000818161043201528181610472015281816105a5015281816105e501526106610152611acc6000f3fe6080604052600436106100ce5760003560e01c8063078dfbe7146100d35780630cb61f6c146100f55780633659cfe6146101465780633af32abf146101665780634e71e0c8146101a65780634f1ef286146101bb57806352d1902d146101ce5780638129fc1c146101f157806384fe1721146102065780638da5cb5b146102265780639281aa0b1461024657806393bf751e14610266578063b2267a7b14610279578063b353aaa71461028c578063e30c3978146102c0578063f080765a146102e0578063f4f4d34e14610303575b600080fd5b3480156100df57600080fd5b506100f36100ee366004611421565b610323565b005b34801561010157600080fd5b506101297f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561015257600080fd5b506100f3610161366004611464565b610428565b34801561017257600080fd5b50610196610181366004611464565b60356020526000908152604090205460ff1681565b604051901515815260200161013d565b3480156101b257600080fd5b506100f36104f0565b6100f36101c9366004611521565b61059b565b3480156101da57600080fd5b506101e3610654565b60405190815260200161013d565b3480156101fd57600080fd5b506100f3610702565b34801561021257600080fd5b506101e361022136600461156e565b610830565b34801561023257600080fd5b50600054610129906001600160a01b031681565b34801561025257600080fd5b506100f36102613660046115cc565b61090c565b6100f36102743660046115ff565b610961565b6100f3610287366004611629565b610997565b34801561029857600080fd5b506101297f000000000000000000000000000000000000000000000000000000000000000081565b3480156102cc57600080fd5b50600154610129906001600160a01b031681565b3480156102ec57600080fd5b506102f5610af0565b60405161013d9291906116b7565b34801561030f57600080fd5b506100f361031e36600461173b565b610bf4565b6000546001600160a01b031633146103565760405162461bcd60e51b815260040161034d9061175f565b60405180910390fd5b8115610407576001600160a01b0383161515806103705750805b6103b45760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640161034d565b600080546040516001600160a01b0380871693921691600080516020611a5083398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036104705760405162461bcd60e51b815260040161034d90611794565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166104a2610c9e565b6001600160a01b0316146104c85760405162461bcd60e51b815260040161034d906117ce565b6104d181610cba565b604080516000808252602082019092526104ed91839190610ce4565b50565b6001546001600160a01b031633811461054b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161034d565b600080546040516001600160a01b0380851693921691600080516020611a5083398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036105e35760405162461bcd60e51b815260040161034d90611794565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610615610c9e565b6001600160a01b03161461063b5760405162461bcd60e51b815260040161034d906117ce565b61064482610cba565b61065082826001610ce4565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106ef5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b606482015260840161034d565b50600080516020611a3083398151915290565b600154600160a81b900460ff1615808015610728575060018054600160a01b900460ff16105b8061074f575061073730610e4f565b15801561074f575060018054600160a01b900460ff16145b6107b25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161034d565b6001805460ff60a01b1916600160a01b17905580156107df576001805460ff60a81b1916600160a81b1790555b6107e7610e5e565b80156104ed576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a7bb1061086a86610edf565b610875603288610fab565b8887604051602001610888929190611858565b60405160208183030381529060405260006108a288610fc0565b6040518663ffffffff1660e01b81526004016108c295949392919061187c565b6040805180830381865afa1580156108de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090291906118d0565b5095945050505050565b6000546001600160a01b031633146109365760405162461bcd60e51b815260040161034d9061175f565b6001600160a01b03919091166000908152603560205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331461098b5760405162461bcd60e51b815260040161034d9061175f565b61042360328284610fe9565b3360009081526035602052604090205460ff166109c6576040516286200b60e81b815260040160405180910390fd5b60006109d3603286610fab565b6040516001600160601b0319606092831b811660208301523090921b909116603482015260480160405160208183030381529060405290507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c580310034610a4488610edf565b848a8989604051602001610a5a939291906118f4565b6040516020818303038152906040527f00000000000000000000000000000000000000000000000000000000000000006000610a958a610fc0565b6040518863ffffffff1660e01b8152600401610ab696959493929190611934565b6000604051808303818588803b158015610acf57600080fd5b505af1158015610ae3573d6000803e3d6000fd5b5050505050505050505050565b6060806000610aff6032611007565b9050806001600160401b03811115610b1957610b1961147f565b604051908082528060200260200182016040528015610b42578160200160208202803683370190505b509250806001600160401b03811115610b5d57610b5d61147f565b604051908082528060200260200182016040528015610b86578160200160208202803683370190505b50915060005b81811015610bee57610b9f603282611012565b858381518110610bb157610bb161199b565b60200260200101858481518110610bca57610bca61199b565b6001600160a01b039093166020938402919091019092019190915252600101610b8c565b50509091565b6000546001600160a01b03163314610c1e5760405162461bcd60e51b815260040161034d9061175f565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db1790602401600060405180830381600087803b158015610c8357600080fd5b505af1158015610c97573d6000803e3d6000fd5b5050505050565b600080516020611a30833981519152546001600160a01b031690565b6000546001600160a01b031633146104ed5760405162461bcd60e51b815260040161034d9061175f565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610d17576104238361102e565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610d71575060408051601f3d908101601f19168201909252610d6e918101906119b1565b60015b610dd45760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161034d565b600080516020611a308339815191528114610e435760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161034d565b506104238383836110c8565b6001600160a01b03163b151590565b600154600160a81b900460ff16610ecb5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161034d565b600080546001600160a01b03191633179055565b60008161a86903610ef3575061277a919050565b816201388103610f06575061277d919050565b8161a86a03610f175750606a919050565b8161a4b103610f285750606e919050565b81603803610f3857506066919050565b81600103610f4857506065919050565b8161138803610f59575060b5919050565b81600a03610f695750606f919050565b8161210503610f7a575060b8919050565b81609203610f8b575061014c919050565b81620138de03610f9e575061016a919050565b610fa66119ca565b919050565b6000610fb783836110f3565b90505b92915050565b60408051600160f01b602082015260228082019390935281518082039093018352604201905290565b6000610fff84846001600160a01b038516611163565b949350505050565b6000610fba82611180565b6000808080611021868661118b565b9097909650945050505050565b61103781610e4f565b6110995760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161034d565b600080516020611a3083398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6110d1836111b6565b6000825111806110de5750805b15610423576110ed83836111f6565b50505050565b6000818152600283016020526040812054801515806111175750611117848461121b565b610fb75760405162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000604482015260640161034d565b60008281526002840160205260408120829055610fff8484611227565b6000610fba82611233565b60008080611199858561123d565b600081815260029690960160205260409095205494959350505050565b6111bf8161102e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610fb78383604051806060016040528060278152602001611a7060279139611249565b6000610fb783836112c1565b6000610fb783836112cd565b6000610fba825490565b6000610fb78383611317565b6060600080856001600160a01b03168560405161126691906119e0565b600060405180830381855af49150503d80600081146112a1576040519150601f19603f3d011682016040523d82523d6000602084013e6112a6565b606091505b50915091506112b786838387611341565b9695505050505050565b6000610fb783836113b8565b60006112d983836113b8565b61130f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610fba565b506000610fba565b600082600001828154811061132e5761132e61199b565b9060005260206000200154905092915050565b606083156113ae5782516000036113a75761135b85610e4f565b6113a75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034d565b5081610fff565b610fff83836113d0565b60009081526001919091016020526040902054151590565b8151156113e05781518083602001fd5b8060405162461bcd60e51b815260040161034d91906119fc565b80356001600160a01b0381168114610fa657600080fd5b80358015158114610fa657600080fd5b60008060006060848603121561143657600080fd5b61143f846113fa565b925061144d60208501611411565b915061145b60408501611411565b90509250925092565b60006020828403121561147657600080fd5b610fb7826113fa565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126114a657600080fd5b81356001600160401b03808211156114c0576114c061147f565b604051601f8301601f19908116603f011681019082821181831017156114e8576114e861147f565b8160405283815286602085880101111561150157600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561153457600080fd5b61153d836113fa565b915060208301356001600160401b0381111561155857600080fd5b61156485828601611495565b9150509250929050565b6000806000806080858703121561158457600080fd5b61158d856113fa565b93506020850135925060408501356001600160401b038111156115af57600080fd5b6115bb87828801611495565b949793965093946060013593505050565b600080604083850312156115df57600080fd5b6115e8836113fa565b91506115f660208401611411565b90509250929050565b6000806040838503121561161257600080fd5b61161b836113fa565b946020939093013593505050565b60008060008060006080868803121561164157600080fd5b61164a866113fa565b94506020860135935060408601356001600160401b038082111561166d57600080fd5b818801915088601f83011261168157600080fd5b81358181111561169057600080fd5b8960208285010111156116a257600080fd5b96999598505060200195606001359392505050565b604080825283519082018190526000906020906060840190828701845b828110156116f0578151845292840192908401906001016116d4565b5050508381038285015284518082528583019183019060005b8181101561172e5783516001600160a01b031683529284019291840191600101611709565b5090979650505050505050565b60006020828403121561174d57600080fd5b813561ffff81168114610fb757600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c90820152600080516020611a1083398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020611a1083398151915260408201526b6163746976652070726f787960a01b606082015260800190565b60005b8381101561182357818101518382015260200161180b565b50506000910152565b60008151808452611844816020860160208601611808565b601f01601f19169290920160200192915050565b6001600160a01b0383168152604060208201819052600090610fff9083018461182c565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906118aa9083018661182c565b841515606084015282810360808401526118c4818561182c565b98975050505050505050565b600080604083850312156118e357600080fd5b505080516020909101519092909150565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b61ffff8716815260c06020820152600061195160c083018861182c565b8281036040840152611963818861182c565b6001600160a01b0387811660608601528616608085015283810360a0850152905061198e818561182c565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119c357600080fd5b5051919050565b634e487b7160e01b600052600160045260246000fd5b600082516119f2818460208701611808565b9190910192915050565b602081526000610fb7602083018461182c56fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200ea83291021b1c79c9b2fe2ea465c942a3f40538285885a5f07b0f0ace50023b64736f6c63430008170033";
395
+
396
+ type PendleMsgSendEndpointUpgConstructorParams =
397
+ | [signer?: Signer]
398
+ | ConstructorParameters<typeof ContractFactory>;
399
+
400
+ const isSuperArgs = (
401
+ xs: PendleMsgSendEndpointUpgConstructorParams
402
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
403
+
404
+ export class PendleMsgSendEndpointUpg__factory extends ContractFactory {
405
+ constructor(...args: PendleMsgSendEndpointUpgConstructorParams) {
406
+ if (isSuperArgs(args)) {
407
+ super(...args);
408
+ } else {
409
+ super(_abi, _bytecode, args[0]);
410
+ }
411
+ this.contractName = "PendleMsgSendEndpointUpg";
412
+ }
413
+
414
+ deploy(
415
+ _refundAddress: string,
416
+ _lzEndpoint: string,
417
+ overrides?: Overrides & { from?: string | Promise<string> }
418
+ ): Promise<PendleMsgSendEndpointUpg> {
419
+ return super.deploy(
420
+ _refundAddress,
421
+ _lzEndpoint,
422
+ overrides || {}
423
+ ) as Promise<PendleMsgSendEndpointUpg>;
424
+ }
425
+ getDeployTransaction(
426
+ _refundAddress: string,
427
+ _lzEndpoint: string,
428
+ overrides?: Overrides & { from?: string | Promise<string> }
429
+ ): TransactionRequest {
430
+ return super.getDeployTransaction(
431
+ _refundAddress,
432
+ _lzEndpoint,
433
+ overrides || {}
434
+ );
435
+ }
436
+ attach(address: string): PendleMsgSendEndpointUpg {
437
+ return super.attach(address) as PendleMsgSendEndpointUpg;
438
+ }
439
+ connect(signer: Signer): PendleMsgSendEndpointUpg__factory {
440
+ return super.connect(signer) as PendleMsgSendEndpointUpg__factory;
441
+ }
442
+ static readonly contractName: "PendleMsgSendEndpointUpg";
443
+ public readonly contractName: "PendleMsgSendEndpointUpg";
444
+ static readonly bytecode = _bytecode;
445
+ static readonly abi = _abi;
446
+ static createInterface(): PendleMsgSendEndpointUpgInterface {
447
+ return new utils.Interface(_abi) as PendleMsgSendEndpointUpgInterface;
448
+ }
449
+ static connect(
450
+ address: string,
451
+ signerOrProvider: Signer | Provider
452
+ ): PendleMsgSendEndpointUpg {
453
+ return new Contract(
454
+ address,
455
+ _abi,
456
+ signerOrProvider
457
+ ) as PendleMsgSendEndpointUpg;
458
+ }
459
+ }
@@ -13,16 +13,40 @@ const _abi = [
13
13
  inputs: [
14
14
  {
15
15
  internalType: "address",
16
- name: "_pt",
16
+ name: "market",
17
17
  type: "address",
18
18
  },
19
19
  {
20
20
  internalType: "uint256",
21
- name: "_baseDiscountPerYear",
21
+ name: "baseDiscountPerYear",
22
22
  type: "uint256",
23
23
  },
24
24
  ],
25
- name: "create",
25
+ name: "createWithMarket",
26
+ outputs: [
27
+ {
28
+ internalType: "address",
29
+ name: "",
30
+ type: "address",
31
+ },
32
+ ],
33
+ stateMutability: "nonpayable",
34
+ type: "function",
35
+ },
36
+ {
37
+ inputs: [
38
+ {
39
+ internalType: "address",
40
+ name: "pt",
41
+ type: "address",
42
+ },
43
+ {
44
+ internalType: "uint256",
45
+ name: "baseDiscountPerYear",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ name: "createWithPt",
26
50
  outputs: [
27
51
  {
28
52
  internalType: "address",
@@ -36,7 +60,7 @@ const _abi = [
36
60
  ];
37
61
 
38
62
  const _bytecode =
39
- "0x608060405234801561001057600080fd5b50610635806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630ecaea7314610030575b600080fd5b61004361003e3660046100b5565b61005f565b6040516001600160a01b03909116815260200160405180910390f35b6000828260405161006f906100a8565b6001600160a01b0390921682526020820152604001604051809103906000f0801580156100a0573d6000803e3d6000fd5b509392505050565b610512806100ee83390190565b600080604083850312156100c857600080fd5b82356001600160a01b03811681146100df57600080fd5b94602093909301359350505056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c63430008170033a26469706673582212203adae39fa1b056a9227b370956dd8fd9f0c5077286bc4aa40f76282015ec8a5e64736f6c63430008170033";
63
+ "0x608060405234801561001057600080fd5b50610762806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633b8863cc1461003b57806380245dad1461006a575b600080fd5b61004e610049366004610188565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e610078366004610188565b610124565b600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e291906101b4565b5091505080836040516100f490610163565b6100ff929190610201565b604051809103906000f08015801561011b573d6000803e3d6000fd5b50949350505050565b6000828260405161013490610163565b61013f929190610201565b604051809103906000f08015801561015b573d6000803e3d6000fd5b509392505050565b6105128061021b83390190565b6001600160a01b038116811461018557600080fd5b50565b6000806040838503121561019b57600080fd5b82356101a681610170565b946020939093013593505050565b6000806000606084860312156101c957600080fd5b83516101d481610170565b60208501519093506101e581610170565b60408501519092506101f681610170565b809150509250925092565b6001600160a01b0392909216825260208201526040019056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c63430008170033a2646970667358221220c64fad83121df1e1f922ac639d112c8f7556006a369b264afcd5f5b1f194e62964736f6c63430008170033";
40
64
 
41
65
  type PendleSparkLinearDiscountOracleFactoryConstructorParams =
42
66
  | [signer?: Signer]
@@ -640,10 +640,6 @@ declare module "hardhat/types/runtime" {
640
640
  name: "PendleOffchainStorage",
641
641
  signerOrOptions?: ethers.Signer | FactoryOptions
642
642
  ): Promise<Contracts.PendleOffchainStorage__factory>;
643
- getContractFactory(
644
- name: "PendlePoolDeployHelper",
645
- signerOrOptions?: ethers.Signer | FactoryOptions
646
- ): Promise<Contracts.PendlePoolDeployHelper__factory>;
647
643
  getContractFactory(
648
644
  name: "PendleWstETHPriceFeed",
649
645
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -1582,11 +1578,6 @@ declare module "hardhat/types/runtime" {
1582
1578
  address: string,
1583
1579
  signer?: ethers.Signer
1584
1580
  ): Promise<Contracts.PendleOffchainStorage>;
1585
- getContractAt(
1586
- name: "PendlePoolDeployHelper",
1587
- address: string,
1588
- signer?: ethers.Signer
1589
- ): Promise<Contracts.PendlePoolDeployHelper>;
1590
1581
  getContractAt(
1591
1582
  name: "PendleWstETHPriceFeed",
1592
1583
  address: string,