@pendle/core-v2 5.4.0 → 5.4.2-beta-okx

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 (112) hide show
  1. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  3. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  17. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  18. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  19. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  20. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  21. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  23. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  31. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  32. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  33. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  34. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  38. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +4 -0
  39. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +35 -0
  40. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  41. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  42. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  43. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  44. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  45. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  46. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  47. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  48. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  49. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  50. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  51. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  52. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  53. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  54. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  56. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  58. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  59. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  60. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  61. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  63. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  65. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  67. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  69. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +0 -40
  71. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOKXDexRouter.dbg.json +4 -0
  73. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOKXDexRouter.json +407 -0
  74. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  75. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -55
  77. package/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol +10 -0
  78. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +0 -2
  79. package/contracts/router/swap-aggregator/PendleSwap.sol +211 -6
  80. package/deployments/1-core.json +2 -1
  81. package/deployments/10-core.json +2 -1
  82. package/deployments/42161-core.json +2 -1
  83. package/deployments/5000-core.json +2 -1
  84. package/deployments/56-core.json +2 -1
  85. package/deployments/8453-core.json +2 -1
  86. package/package.json +1 -1
  87. package/typechain-types/IOKXDexRouter.ts +429 -0
  88. package/typechain-types/IPSwapAggregator.ts +0 -39
  89. package/typechain-types/PendleSparkLinearDiscountOracleFactory.ts +108 -0
  90. package/typechain-types/PendleSwap.ts +0 -60
  91. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  92. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  93. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  94. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  95. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  96. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  97. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  98. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  99. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  100. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  101. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  102. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  103. package/typechain-types/factories/IOKXDexRouter__factory.ts +419 -0
  104. package/typechain-types/factories/IPSwapAggregator__factory.ts +0 -40
  105. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  106. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  107. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  108. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +100 -0
  109. package/typechain-types/factories/PendleSwap__factory.ts +1 -54
  110. package/typechain-types/factories/Reflector__factory.ts +1 -1
  111. package/typechain-types/hardhat.d.ts +18 -45
  112. package/typechain-types/index.ts +4 -10
@@ -0,0 +1,419 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { IOKXDexRouter, IOKXDexRouterInterface } from "../IOKXDexRouter";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "uint256",
14
+ name: "orderId",
15
+ type: "uint256",
16
+ },
17
+ {
18
+ components: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "fromToken",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "address",
26
+ name: "toToken",
27
+ type: "address",
28
+ },
29
+ {
30
+ internalType: "uint256",
31
+ name: "fromTokenAmount",
32
+ type: "uint256",
33
+ },
34
+ {
35
+ internalType: "uint256",
36
+ name: "minReturnAmount",
37
+ type: "uint256",
38
+ },
39
+ {
40
+ internalType: "uint256",
41
+ name: "deadLine",
42
+ type: "uint256",
43
+ },
44
+ ],
45
+ internalType: "struct IOKXDexRouter.BaseRequest",
46
+ name: "baseRequest",
47
+ type: "tuple",
48
+ },
49
+ {
50
+ internalType: "uint256[]",
51
+ name: "batchesAmount",
52
+ type: "uint256[]",
53
+ },
54
+ {
55
+ components: [
56
+ {
57
+ internalType: "address[]",
58
+ name: "mixAdapters",
59
+ type: "address[]",
60
+ },
61
+ {
62
+ internalType: "address[]",
63
+ name: "assetTo",
64
+ type: "address[]",
65
+ },
66
+ {
67
+ internalType: "uint256[]",
68
+ name: "rawData",
69
+ type: "uint256[]",
70
+ },
71
+ {
72
+ internalType: "bytes[]",
73
+ name: "extraData",
74
+ type: "bytes[]",
75
+ },
76
+ {
77
+ internalType: "uint256",
78
+ name: "fromToken",
79
+ type: "uint256",
80
+ },
81
+ ],
82
+ internalType: "struct IOKXDexRouter.RouterPath[][]",
83
+ name: "batches",
84
+ type: "tuple[][]",
85
+ },
86
+ {
87
+ components: [
88
+ {
89
+ internalType: "uint256",
90
+ name: "pathIndex",
91
+ type: "uint256",
92
+ },
93
+ {
94
+ internalType: "address",
95
+ name: "payer",
96
+ type: "address",
97
+ },
98
+ {
99
+ internalType: "address",
100
+ name: "fromToken",
101
+ type: "address",
102
+ },
103
+ {
104
+ internalType: "address",
105
+ name: "toToken",
106
+ type: "address",
107
+ },
108
+ {
109
+ internalType: "uint256",
110
+ name: "fromTokenAmountMax",
111
+ type: "uint256",
112
+ },
113
+ {
114
+ internalType: "uint256",
115
+ name: "toTokenAmountMax",
116
+ type: "uint256",
117
+ },
118
+ {
119
+ internalType: "uint256",
120
+ name: "salt",
121
+ type: "uint256",
122
+ },
123
+ {
124
+ internalType: "uint256",
125
+ name: "deadLine",
126
+ type: "uint256",
127
+ },
128
+ {
129
+ internalType: "bool",
130
+ name: "isPushOrder",
131
+ type: "bool",
132
+ },
133
+ {
134
+ internalType: "bytes",
135
+ name: "extension",
136
+ type: "bytes",
137
+ },
138
+ ],
139
+ internalType: "struct IOKXDexRouter.PMMSwapRequest[]",
140
+ name: "extraData",
141
+ type: "tuple[]",
142
+ },
143
+ ],
144
+ name: "smartSwapByOrderId",
145
+ outputs: [
146
+ {
147
+ internalType: "uint256",
148
+ name: "returnAmount",
149
+ type: "uint256",
150
+ },
151
+ ],
152
+ stateMutability: "payable",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [
157
+ {
158
+ internalType: "uint256",
159
+ name: "orderId",
160
+ type: "uint256",
161
+ },
162
+ {
163
+ internalType: "address",
164
+ name: "receiver",
165
+ type: "address",
166
+ },
167
+ {
168
+ components: [
169
+ {
170
+ internalType: "uint256",
171
+ name: "fromToken",
172
+ type: "uint256",
173
+ },
174
+ {
175
+ internalType: "address",
176
+ name: "toToken",
177
+ type: "address",
178
+ },
179
+ {
180
+ internalType: "uint256",
181
+ name: "fromTokenAmount",
182
+ type: "uint256",
183
+ },
184
+ {
185
+ internalType: "uint256",
186
+ name: "minReturnAmount",
187
+ type: "uint256",
188
+ },
189
+ {
190
+ internalType: "uint256",
191
+ name: "deadLine",
192
+ type: "uint256",
193
+ },
194
+ ],
195
+ internalType: "struct IOKXDexRouter.BaseRequest",
196
+ name: "baseRequest",
197
+ type: "tuple",
198
+ },
199
+ {
200
+ internalType: "uint256[]",
201
+ name: "batchesAmount",
202
+ type: "uint256[]",
203
+ },
204
+ {
205
+ components: [
206
+ {
207
+ internalType: "address[]",
208
+ name: "mixAdapters",
209
+ type: "address[]",
210
+ },
211
+ {
212
+ internalType: "address[]",
213
+ name: "assetTo",
214
+ type: "address[]",
215
+ },
216
+ {
217
+ internalType: "uint256[]",
218
+ name: "rawData",
219
+ type: "uint256[]",
220
+ },
221
+ {
222
+ internalType: "bytes[]",
223
+ name: "extraData",
224
+ type: "bytes[]",
225
+ },
226
+ {
227
+ internalType: "uint256",
228
+ name: "fromToken",
229
+ type: "uint256",
230
+ },
231
+ ],
232
+ internalType: "struct IOKXDexRouter.RouterPath[][]",
233
+ name: "batches",
234
+ type: "tuple[][]",
235
+ },
236
+ {
237
+ components: [
238
+ {
239
+ internalType: "uint256",
240
+ name: "pathIndex",
241
+ type: "uint256",
242
+ },
243
+ {
244
+ internalType: "address",
245
+ name: "payer",
246
+ type: "address",
247
+ },
248
+ {
249
+ internalType: "address",
250
+ name: "fromToken",
251
+ type: "address",
252
+ },
253
+ {
254
+ internalType: "address",
255
+ name: "toToken",
256
+ type: "address",
257
+ },
258
+ {
259
+ internalType: "uint256",
260
+ name: "fromTokenAmountMax",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ internalType: "uint256",
265
+ name: "toTokenAmountMax",
266
+ type: "uint256",
267
+ },
268
+ {
269
+ internalType: "uint256",
270
+ name: "salt",
271
+ type: "uint256",
272
+ },
273
+ {
274
+ internalType: "uint256",
275
+ name: "deadLine",
276
+ type: "uint256",
277
+ },
278
+ {
279
+ internalType: "bool",
280
+ name: "isPushOrder",
281
+ type: "bool",
282
+ },
283
+ {
284
+ internalType: "bytes",
285
+ name: "extension",
286
+ type: "bytes",
287
+ },
288
+ ],
289
+ internalType: "struct IOKXDexRouter.PMMSwapRequest[]",
290
+ name: "extraData",
291
+ type: "tuple[]",
292
+ },
293
+ ],
294
+ name: "smartSwapTo",
295
+ outputs: [],
296
+ stateMutability: "payable",
297
+ type: "function",
298
+ },
299
+ {
300
+ inputs: [
301
+ {
302
+ internalType: "uint256",
303
+ name: "receiver",
304
+ type: "uint256",
305
+ },
306
+ {
307
+ internalType: "uint256",
308
+ name: "amount",
309
+ type: "uint256",
310
+ },
311
+ {
312
+ internalType: "uint256",
313
+ name: "minReturn",
314
+ type: "uint256",
315
+ },
316
+ {
317
+ internalType: "uint256[]",
318
+ name: "pools",
319
+ type: "uint256[]",
320
+ },
321
+ ],
322
+ name: "uniswapV3SwapTo",
323
+ outputs: [
324
+ {
325
+ internalType: "uint256",
326
+ name: "returnAmount",
327
+ type: "uint256",
328
+ },
329
+ ],
330
+ stateMutability: "payable",
331
+ type: "function",
332
+ },
333
+ {
334
+ inputs: [
335
+ {
336
+ internalType: "uint256",
337
+ name: "srcToken",
338
+ type: "uint256",
339
+ },
340
+ {
341
+ internalType: "uint256",
342
+ name: "amount",
343
+ type: "uint256",
344
+ },
345
+ {
346
+ internalType: "uint256",
347
+ name: "minReturn",
348
+ type: "uint256",
349
+ },
350
+ {
351
+ internalType: "bytes32[]",
352
+ name: "pools",
353
+ type: "bytes32[]",
354
+ },
355
+ ],
356
+ name: "unxswapByOrderId",
357
+ outputs: [
358
+ {
359
+ internalType: "uint256",
360
+ name: "returnAmount",
361
+ type: "uint256",
362
+ },
363
+ ],
364
+ stateMutability: "payable",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ internalType: "uint256",
371
+ name: "srcToken",
372
+ type: "uint256",
373
+ },
374
+ {
375
+ internalType: "uint256",
376
+ name: "amount",
377
+ type: "uint256",
378
+ },
379
+ {
380
+ internalType: "uint256",
381
+ name: "minReturn",
382
+ type: "uint256",
383
+ },
384
+ {
385
+ internalType: "address",
386
+ name: "receiver",
387
+ type: "address",
388
+ },
389
+ {
390
+ internalType: "bytes32[]",
391
+ name: "pools",
392
+ type: "bytes32[]",
393
+ },
394
+ ],
395
+ name: "unxswapTo",
396
+ outputs: [
397
+ {
398
+ internalType: "uint256",
399
+ name: "returnAmount",
400
+ type: "uint256",
401
+ },
402
+ ],
403
+ stateMutability: "payable",
404
+ type: "function",
405
+ },
406
+ ];
407
+
408
+ export class IOKXDexRouter__factory {
409
+ static readonly abi = _abi;
410
+ static createInterface(): IOKXDexRouterInterface {
411
+ return new utils.Interface(_abi) as IOKXDexRouterInterface;
412
+ }
413
+ static connect(
414
+ address: string,
415
+ signerOrProvider: Signer | Provider
416
+ ): IOKXDexRouter {
417
+ return new Contract(address, _abi, signerOrProvider) as IOKXDexRouter;
418
+ }
419
+ }
@@ -80,46 +80,6 @@ const _abi = [
80
80
  stateMutability: "payable",
81
81
  type: "function",
82
82
  },
83
- {
84
- inputs: [
85
- {
86
- internalType: "address[]",
87
- name: "tokensIn",
88
- type: "address[]",
89
- },
90
- {
91
- components: [
92
- {
93
- internalType: "enum SwapType",
94
- name: "swapType",
95
- type: "uint8",
96
- },
97
- {
98
- internalType: "address",
99
- name: "extRouter",
100
- type: "address",
101
- },
102
- {
103
- internalType: "bytes",
104
- name: "extCalldata",
105
- type: "bytes",
106
- },
107
- {
108
- internalType: "bool",
109
- name: "needScale",
110
- type: "bool",
111
- },
112
- ],
113
- internalType: "struct SwapData",
114
- name: "swapData",
115
- type: "tuple",
116
- },
117
- ],
118
- name: "swapMultiOdos",
119
- outputs: [],
120
- stateMutability: "payable",
121
- type: "function",
122
- },
123
83
  ];
124
84
 
125
85
  export class IPSwapAggregator__factory {
@@ -273,7 +273,7 @@ const _abi = [
273
273
  ];
274
274
 
275
275
  const _bytecode =
276
- "0x60e06040523480156200001157600080fd5b506040516200165b3803806200165b83398101604081905262000034916200006f565b6001600160a01b0392831660805290821660a0521660c052620000b9565b80516001600160a01b03811681146200006a57600080fd5b919050565b6000806000606084860312156200008557600080fd5b620000908462000052565b9250620000a06020850162000052565b9150620000b06040850162000052565b90509250925092565b60805160a05160c051611534620001276000396000818160770152818161023e0152610529015260008181610125015261049101526000818161016e0152818161065501528181610698015281816106c20152818161071f01528181610851015261090e01526115346000f3fe6080604052600436106100595760003560e01c806306ae7095146100655780634ff780e1146100b6578063705d3a94146100f357806387a409a2146101135780638a22ba0b14610147578063f887ea401461015c57600080fd5b3661006057005b600080fd5b34801561007157600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100c96100c4366004611054565b610190565b604080516001600160a01b03948516815292841660208401529216918101919091526060016100ad565b3480156100ff57600080fd5b5061009961010e366004611121565b6101be565b34801561011f57600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b61015a610155366004611171565b6103cc565b005b34801561016857600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b600080600061019f878761044f565b919450925090506101b4818885858989610644565b9450945094915050565b600080866001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156101ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022391906111b2565b5060405163f661cf6b60e01b81529092506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915063f661cf6b9061027a908490889088908b906004016111ff565b6020604051808303816000875af1158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd919061122e565b91506102cb873389896109de565b600080886001600160a01b031663f6b911bc85868b6040518463ffffffff1660e01b81526004016102fe93929190611252565b60408051808303816000875af115801561031c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103409190611276565b604051630ab714fb60e11b8152336004820152602481018390526044810182905291935091506001600160a01b0385169063156e29f6906064016060604051808303816000875af1158015610399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bd919061129a565b50505050505095945050505050565b6000806000856001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561040f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043391906111b2565b925092509250610447868484848989610644565b505050505050565b80516080820151604051637145345b60e11b81526001600160a01b03858116600483015263ffffffff90931660248201529015156044820152600091829182917f0000000000000000000000000000000000000000000000000000000000000000169063e28a68b69060640160408051808303816000875af11580156104d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fd91906112c8565b60408087015160608801516020890151925163f661cf6b60e01b81529497509295506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169363f661cf6b9361055f938993926004016111ff565b6020604051808303816000875af115801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a2919061122e565b604080516001600160a01b03888116825286811660208084019190915286821683850152885163ffffffff16606080850191909152908901516001600160501b03166080808501919091529389015160a084015288015160c083015291870151151560e08201529192508216907f64548e98bf851c530285483e1870abe9e41d3a7060292802eb888542488f1839906101000160405180910390a29250925092565b61064f8233836109ff565b610679827f0000000000000000000000000000000000000000000000000000000000000000610a70565b846001600160a01b0316826001600160a01b0316146106bc576106bc857f0000000000000000000000000000000000000000000000000000000000000000610a70565b6106e6847f0000000000000000000000000000000000000000000000000000000000000000610a70565b6000856001600160a01b0316836001600160a01b0316146108425760006001600160a01b0384161561071957600061071b565b825b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e071dc682308a60006040518060a001604052808b6001600160a01b031681526020018a81526020018b6001600160a01b0316815260200160006001600160a01b0316815260200160405180608001604052806000600a8111156107ae576107ae611302565b815260006020808301829052604080518381529182018152808401919091526060909201529152516001600160e01b031960e088901b1681526107f79493929190600401611368565b60206040518083038185885af1158015610815573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061083a9190611430565b915050610845565b50805b60006001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016631a8631b2308761088360028761145f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152600060648201526084016020604051808303816000875af11580156108de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109029190611430565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166397ee279e338a61094060028761145f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606481018490526000608482015260a4016060604051808303816000875af11580156109a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c6919061129a565b5050506109d4853383610b34565b5050505050505050565b80156109f9576109f96001600160a01b038516848484610bf8565b50505050565b6001600160a01b038316610a5557803414610a505760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064015b60405180910390fd5b505050565b8015610a5057610a506001600160a01b038416833084610bf8565b6001600160a01b038216610a82575050565b610a9460026001600160601b03611473565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b119190611430565b1015610b3057610b2382826000610c50565b610b308282600019610c50565b5050565b80600003610b4157505050565b6001600160a01b038316610be4576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b9c576040519150601f19603f3d011682016040523d82523d6000602084013e610ba1565b606091505b50509050806109f95760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610a47565b610a506001600160a01b0384168383610d64565b6109f9846323b872dd60e01b858585604051602401610c1993929190611252565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610d83565b600080846001600160a01b031663095ea7b360e01b8585604051602401610c78929190611499565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051610cb691906114b2565b6000604051808303816000865af19150503d8060008114610cf3576040519150601f19603f3d011682016040523d82523d6000602084013e610cf8565b606091505b5091509150818015610d22575080511580610d22575080806020019051810190610d2291906114ce565b610d5d5760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b6044820152606401610a47565b5050505050565b610a508363a9059cbb60e01b8484604051602401610c19929190611499565b6000610dd8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e589092919063ffffffff16565b9050805160001480610df9575080806020019051810190610df991906114ce565b610a505760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a47565b6060610e678484600085610e6f565b949350505050565b606082471015610ed05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a47565b600080866001600160a01b03168587604051610eec91906114b2565b60006040518083038185875af1925050503d8060008114610f29576040519150601f19603f3d011682016040523d82523d6000602084013e610f2e565b606091505b5091509150610f3f87838387610f4a565b979650505050505050565b60608315610fb9578251600003610fb2576001600160a01b0385163b610fb25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a47565b5081610e67565b610e678383815115610fce5781518083602001fd5b8060405162461bcd60e51b8152600401610a4791906114eb565b6001600160a01b0381168114610ffd57600080fd5b50565b803561100b81610fe8565b919050565b803563ffffffff8116811461100b57600080fd5b80356001600160501b038116811461100b57600080fd5b8015158114610ffd57600080fd5b803561100b8161103b565b60008060008084860361010081121561106c57600080fd5b853561107781610fe8565b945060a0601f198201121561108b57600080fd5b5060405160a081016001600160401b03811182821017156110bc57634e487b7160e01b600052604160045260246000fd5b6040526110cb60208701611010565b81526110d960408701611024565b602082015260608601356040820152608086013560608201526110fe60a08701611049565b6080820152925061111160c08601611000565b9396929550929360e00135925050565b600080600080600060a0868803121561113957600080fd5b853561114481610fe8565b94506020860135935061115960408701611024565b94979396509394606081013594506080013592915050565b60008060006060848603121561118657600080fd5b833561119181610fe8565b925060208401356111a181610fe8565b929592945050506040919091013590565b6000806000606084860312156111c757600080fd5b83516111d281610fe8565b60208501519093506111e381610fe8565b60408501519092506111f481610fe8565b809150509250925092565b6001600160a01b03949094168452602084019290925260408301526001600160501b0316606082015260800190565b60006020828403121561124057600080fd5b815161124b81610fe8565b9392505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000806040838503121561128957600080fd5b505080516020909101519092909150565b6000806000606084860312156112af57600080fd5b8351925060208401519150604084015190509250925092565b600080604083850312156112db57600080fd5b82516112e681610fe8565b60208401519092506112f781610fe8565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561133357818101518382015260200161131b565b50506000910152565b60008151808452611354816020860160208601611318565b601f01601f19169290920160200192915050565b600060018060a01b038087168352808616602084015284604084015260806060840152808451166080840152602084015160a08401528060408501511660c08401528060608501511660e0840152608084015160a06101008501528051600b81106113e357634e487b7160e01b600052602160045260246000fd5b610120850152602081015190911661014084015260408101516080610160850152906114136101a085018361133c565b915060608101511515610180850152508091505095945050505050565b60006020828403121561144257600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261146e5761146e611449565b500490565b60006001600160601b038381168061148d5761148d611449565b92169190910492915050565b6001600160a01b03929092168252602082015260400190565b600082516114c4818460208701611318565b9190910192915050565b6000602082840312156114e057600080fd5b815161124b8161103b565b60208152600061124b602083018461133c56fea264697066735822122077d076b1b4eb67e12e97ac8173a9e687a79c2105434400a8cb3aabe4e0b0f5fe64736f6c63430008170033";
276
+ "0x60e06040523480156200001157600080fd5b506040516200165b3803806200165b83398101604081905262000034916200006f565b6001600160a01b0392831660805290821660a0521660c052620000b9565b80516001600160a01b03811681146200006a57600080fd5b919050565b6000806000606084860312156200008557600080fd5b620000908462000052565b9250620000a06020850162000052565b9150620000b06040850162000052565b90509250925092565b60805160a05160c051611534620001276000396000818160770152818161023e0152610529015260008181610125015261049101526000818161016e0152818161065501528181610698015281816106c20152818161071f01528181610851015261090e01526115346000f3fe6080604052600436106100595760003560e01c806306ae7095146100655780634ff780e1146100b6578063705d3a94146100f357806387a409a2146101135780638a22ba0b14610147578063f887ea401461015c57600080fd5b3661006057005b600080fd5b34801561007157600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100c96100c4366004611054565b610190565b604080516001600160a01b03948516815292841660208401529216918101919091526060016100ad565b3480156100ff57600080fd5b5061009961010e366004611121565b6101be565b34801561011f57600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b61015a610155366004611171565b6103cc565b005b34801561016857600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b600080600061019f878761044f565b919450925090506101b4818885858989610644565b9450945094915050565b600080866001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156101ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022391906111b2565b5060405163f661cf6b60e01b81529092506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915063f661cf6b9061027a908490889088908b906004016111ff565b6020604051808303816000875af1158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd919061122e565b91506102cb873389896109de565b600080886001600160a01b031663f6b911bc85868b6040518463ffffffff1660e01b81526004016102fe93929190611252565b60408051808303816000875af115801561031c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103409190611276565b604051630ab714fb60e11b8152336004820152602481018390526044810182905291935091506001600160a01b0385169063156e29f6906064016060604051808303816000875af1158015610399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bd919061129a565b50505050505095945050505050565b6000806000856001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561040f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043391906111b2565b925092509250610447868484848989610644565b505050505050565b80516080820151604051637145345b60e11b81526001600160a01b03858116600483015263ffffffff90931660248201529015156044820152600091829182917f0000000000000000000000000000000000000000000000000000000000000000169063e28a68b69060640160408051808303816000875af11580156104d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fd91906112c8565b60408087015160608801516020890151925163f661cf6b60e01b81529497509295506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169363f661cf6b9361055f938993926004016111ff565b6020604051808303816000875af115801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a2919061122e565b604080516001600160a01b03888116825286811660208084019190915286821683850152885163ffffffff16606080850191909152908901516001600160501b03166080808501919091529389015160a084015288015160c083015291870151151560e08201529192508216907f64548e98bf851c530285483e1870abe9e41d3a7060292802eb888542488f1839906101000160405180910390a29250925092565b61064f8233836109ff565b610679827f0000000000000000000000000000000000000000000000000000000000000000610a70565b846001600160a01b0316826001600160a01b0316146106bc576106bc857f0000000000000000000000000000000000000000000000000000000000000000610a70565b6106e6847f0000000000000000000000000000000000000000000000000000000000000000610a70565b6000856001600160a01b0316836001600160a01b0316146108425760006001600160a01b0384161561071957600061071b565b825b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e071dc682308a60006040518060a001604052808b6001600160a01b031681526020018a81526020018b6001600160a01b0316815260200160006001600160a01b0316815260200160405180608001604052806000600a8111156107ae576107ae611302565b815260006020808301829052604080518381529182018152808401919091526060909201529152516001600160e01b031960e088901b1681526107f79493929190600401611368565b60206040518083038185885af1158015610815573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061083a9190611430565b915050610845565b50805b60006001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016631a8631b2308761088360028761145f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152600060648201526084016020604051808303816000875af11580156108de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109029190611430565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166397ee279e338a61094060028761145f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606481018490526000608482015260a4016060604051808303816000875af11580156109a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c6919061129a565b5050506109d4853383610b34565b5050505050505050565b80156109f9576109f96001600160a01b038516848484610bf8565b50505050565b6001600160a01b038316610a5557803414610a505760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064015b60405180910390fd5b505050565b8015610a5057610a506001600160a01b038416833084610bf8565b6001600160a01b038216610a82575050565b610a9460026001600160601b03611473565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b119190611430565b1015610b3057610b2382826000610c50565b610b308282600019610c50565b5050565b80600003610b4157505050565b6001600160a01b038316610be4576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b9c576040519150601f19603f3d011682016040523d82523d6000602084013e610ba1565b606091505b50509050806109f95760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610a47565b610a506001600160a01b0384168383610d64565b6109f9846323b872dd60e01b858585604051602401610c1993929190611252565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610d83565b600080846001600160a01b031663095ea7b360e01b8585604051602401610c78929190611499565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051610cb691906114b2565b6000604051808303816000865af19150503d8060008114610cf3576040519150601f19603f3d011682016040523d82523d6000602084013e610cf8565b606091505b5091509150818015610d22575080511580610d22575080806020019051810190610d2291906114ce565b610d5d5760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b6044820152606401610a47565b5050505050565b610a508363a9059cbb60e01b8484604051602401610c19929190611499565b6000610dd8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e589092919063ffffffff16565b9050805160001480610df9575080806020019051810190610df991906114ce565b610a505760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a47565b6060610e678484600085610e6f565b949350505050565b606082471015610ed05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a47565b600080866001600160a01b03168587604051610eec91906114b2565b60006040518083038185875af1925050503d8060008114610f29576040519150601f19603f3d011682016040523d82523d6000602084013e610f2e565b606091505b5091509150610f3f87838387610f4a565b979650505050505050565b60608315610fb9578251600003610fb2576001600160a01b0385163b610fb25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a47565b5081610e67565b610e678383815115610fce5781518083602001fd5b8060405162461bcd60e51b8152600401610a4791906114eb565b6001600160a01b0381168114610ffd57600080fd5b50565b803561100b81610fe8565b919050565b803563ffffffff8116811461100b57600080fd5b80356001600160501b038116811461100b57600080fd5b8015158114610ffd57600080fd5b803561100b8161103b565b60008060008084860361010081121561106c57600080fd5b853561107781610fe8565b945060a0601f198201121561108b57600080fd5b5060405160a081016001600160401b03811182821017156110bc57634e487b7160e01b600052604160045260246000fd5b6040526110cb60208701611010565b81526110d960408701611024565b602082015260608601356040820152608086013560608201526110fe60a08701611049565b6080820152925061111160c08601611000565b9396929550929360e00135925050565b600080600080600060a0868803121561113957600080fd5b853561114481610fe8565b94506020860135935061115960408701611024565b94979396509394606081013594506080013592915050565b60008060006060848603121561118657600080fd5b833561119181610fe8565b925060208401356111a181610fe8565b929592945050506040919091013590565b6000806000606084860312156111c757600080fd5b83516111d281610fe8565b60208501519093506111e381610fe8565b60408501519092506111f481610fe8565b809150509250925092565b6001600160a01b03949094168452602084019290925260408301526001600160501b0316606082015260800190565b60006020828403121561124057600080fd5b815161124b81610fe8565b9392505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000806040838503121561128957600080fd5b505080516020909101519092909150565b6000806000606084860312156112af57600080fd5b8351925060208401519150604084015190509250925092565b600080604083850312156112db57600080fd5b82516112e681610fe8565b60208401519092506112f781610fe8565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561133357818101518382015260200161131b565b50506000910152565b60008151808452611354816020860160208601611318565b601f01601f19169290920160200192915050565b600060018060a01b038087168352808616602084015284604084015260806060840152808451166080840152602084015160a08401528060408501511660c08401528060608501511660e0840152608084015160a06101008501528051600b81106113e357634e487b7160e01b600052602160045260246000fd5b610120850152602081015190911661014084015260408101516080610160850152906114136101a085018361133c565b915060608101511515610180850152508091505095945050505050565b60006020828403121561144257600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261146e5761146e611449565b500490565b60006001600160601b038381168061148d5761148d611449565b92169190910492915050565b6001600160a01b03929092168252602082015260400190565b600082516114c4818460208701611318565b9190910192915050565b6000602082840312156114e057600080fd5b815161124b8161103b565b60208152600061124b602083018461133c56fea2646970667358221220cb565693669016ca180ac078fc1af63ce37b048481287b86001774f2968fecf664736f6c63430008170033";
277
277
 
278
278
  type PendlePoolDeployHelperConstructorParams =
279
279
  | [signer?: Signer]
@@ -31,7 +31,7 @@ const _abi = [
31
31
  ];
32
32
 
33
33
  const _bytecode =
34
- "0x608060405234801561001057600080fd5b506040516101b33803806101b383398101604081905261002f91610090565b60008054336001600160a01b03199182161782556323b7d3cd60e21b90915260026020527fbc02cc0ac50b26a9ecfbd19a445fa7f71dbc9c12c0d1e45ba9bd4990843c174e80549091166001600160a01b03929092169190911790556100c0565b6000602082840312156100a257600080fd5b81516001600160a01b03811681146100b957600080fd5b9392505050565b60e5806100ce6000396000f3fe608060405236601057600e6013565b005b600e5b601f601b6021565b608c565b565b600080356001600160e01b0319168152600260205260409020546001600160a01b03168060895760405162461bcd60e51b81526020600482015260126024820152711cd95b1958dd1bdc881b9bdd08199bdd5b9960721b604482015260640160405180910390fd5b90565b3660008037600080366000845af43d6000803e80801560aa573d6000f35b3d6000fdfea2646970667358221220270969d6c56d298f6828a02bc634b1ac1e459f96bfe1d825b30fe3ff06c9b90564736f6c63430008170033";
34
+ "0x608060405234801561001057600080fd5b506040516101b33803806101b383398101604081905261002f91610090565b60008054336001600160a01b03199182161782556323b7d3cd60e21b90915260026020527fbc02cc0ac50b26a9ecfbd19a445fa7f71dbc9c12c0d1e45ba9bd4990843c174e80549091166001600160a01b03929092169190911790556100c0565b6000602082840312156100a257600080fd5b81516001600160a01b03811681146100b957600080fd5b9392505050565b60e5806100ce6000396000f3fe608060405236601057600e6013565b005b600e5b601f601b6021565b608c565b565b600080356001600160e01b0319168152600260205260409020546001600160a01b03168060895760405162461bcd60e51b81526020600482015260126024820152711cd95b1958dd1bdc881b9bdd08199bdd5b9960721b604482015260640160405180910390fd5b90565b3660008037600080366000845af43d6000803e80801560aa573d6000f35b3d6000fdfea26469706673582212203f85caab686c7c3f5998e328494f20bc2cb8d25d96c1050cc97607b71997426064736f6c63430008170033";
35
35
 
36
36
  type PendleRouterStaticConstructorParams =
37
37
  | [signer?: Signer]
@@ -36,7 +36,7 @@ const _abi = [
36
36
  ];
37
37
 
38
38
  const _bytecode =
39
- "0x608060405234801561001057600080fd5b5060405161025138038061025183398101604081905261002f916100e9565b7ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80080546001600160a01b039384166001600160a01b03199182161790915563523edfc160e11b6000527ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab8026020527f64dcb2031b93f2b828088d68228a52c10b3bf4eb531ee3da663820f1b8fd2a6d805492909316911617905561011c565b80516001600160a01b03811681146100e457600080fd5b919050565b600080604083850312156100fc57600080fd5b610105836100cd565b9150610113602084016100cd565b90509250929050565b6101268061012b6000396000f3fe608060405236600a57005b60106012565b005b601e601a6020565b60cd565b565b600080356001600160e01b03191681527ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80260205260408120547ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab800906001600160a01b03168060c75760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa9a2a622a1aa27a960811b604482015260640160405180910390fd5b92915050565b3660008037600080366000845af43d6000803e80801560eb573d6000f35b3d6000fdfea2646970667358221220db6b039618a94d6f5220257f8d3c987db32095b85ee3f93cd3d59ed4b0e0768f64736f6c63430008170033";
39
+ "0x608060405234801561001057600080fd5b5060405161025138038061025183398101604081905261002f916100e9565b7ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80080546001600160a01b039384166001600160a01b03199182161790915563523edfc160e11b6000527ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab8026020527f64dcb2031b93f2b828088d68228a52c10b3bf4eb531ee3da663820f1b8fd2a6d805492909316911617905561011c565b80516001600160a01b03811681146100e457600080fd5b919050565b600080604083850312156100fc57600080fd5b610105836100cd565b9150610113602084016100cd565b90509250929050565b6101268061012b6000396000f3fe608060405236600a57005b60106012565b005b601e601a6020565b60cd565b565b600080356001600160e01b03191681527ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80260205260408120547ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab800906001600160a01b03168060c75760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa9a2a622a1aa27a960811b604482015260640160405180910390fd5b92915050565b3660008037600080366000845af43d6000803e80801560eb573d6000f35b3d6000fdfea26469706673582212201465abcdbed5ec6d1446dc6c08faaf11d8be5fbfb8e4c661e603d09300252ce164736f6c63430008170033";
40
40
 
41
41
  type PendleRouterV4ConstructorParams =
42
42
  | [signer?: Signer]
@@ -0,0 +1,100 @@
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
+ PendleSparkLinearDiscountOracleFactory,
8
+ PendleSparkLinearDiscountOracleFactoryInterface,
9
+ } from "../PendleSparkLinearDiscountOracleFactory";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_pt",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "uint256",
21
+ name: "_baseDiscountPerYear",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ name: "create",
26
+ outputs: [
27
+ {
28
+ internalType: "address",
29
+ name: "",
30
+ type: "address",
31
+ },
32
+ ],
33
+ stateMutability: "nonpayable",
34
+ type: "function",
35
+ },
36
+ ];
37
+
38
+ const _bytecode =
39
+ "0x608060405234801561001057600080fd5b50610635806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630ecaea7314610030575b600080fd5b61004361003e3660046100b5565b61005f565b6040516001600160a01b03909116815260200160405180910390f35b6000828260405161006f906100a8565b6001600160a01b0390921682526020820152604001604051809103906000f0801580156100a0573d6000803e3d6000fd5b509392505050565b610512806100ee83390190565b600080604083850312156100c857600080fd5b82356001600160a01b03811681146100df57600080fd5b94602093909301359350505056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c63430008170033a26469706673582212203adae39fa1b056a9227b370956dd8fd9f0c5077286bc4aa40f76282015ec8a5e64736f6c63430008170033";
40
+
41
+ type PendleSparkLinearDiscountOracleFactoryConstructorParams =
42
+ | [signer?: Signer]
43
+ | ConstructorParameters<typeof ContractFactory>;
44
+
45
+ const isSuperArgs = (
46
+ xs: PendleSparkLinearDiscountOracleFactoryConstructorParams
47
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
48
+
49
+ export class PendleSparkLinearDiscountOracleFactory__factory extends ContractFactory {
50
+ constructor(
51
+ ...args: PendleSparkLinearDiscountOracleFactoryConstructorParams
52
+ ) {
53
+ if (isSuperArgs(args)) {
54
+ super(...args);
55
+ } else {
56
+ super(_abi, _bytecode, args[0]);
57
+ }
58
+ this.contractName = "PendleSparkLinearDiscountOracleFactory";
59
+ }
60
+
61
+ deploy(
62
+ overrides?: Overrides & { from?: string | Promise<string> }
63
+ ): Promise<PendleSparkLinearDiscountOracleFactory> {
64
+ return super.deploy(
65
+ overrides || {}
66
+ ) as Promise<PendleSparkLinearDiscountOracleFactory>;
67
+ }
68
+ getDeployTransaction(
69
+ overrides?: Overrides & { from?: string | Promise<string> }
70
+ ): TransactionRequest {
71
+ return super.getDeployTransaction(overrides || {});
72
+ }
73
+ attach(address: string): PendleSparkLinearDiscountOracleFactory {
74
+ return super.attach(address) as PendleSparkLinearDiscountOracleFactory;
75
+ }
76
+ connect(signer: Signer): PendleSparkLinearDiscountOracleFactory__factory {
77
+ return super.connect(
78
+ signer
79
+ ) as PendleSparkLinearDiscountOracleFactory__factory;
80
+ }
81
+ static readonly contractName: "PendleSparkLinearDiscountOracleFactory";
82
+ public readonly contractName: "PendleSparkLinearDiscountOracleFactory";
83
+ static readonly bytecode = _bytecode;
84
+ static readonly abi = _abi;
85
+ static createInterface(): PendleSparkLinearDiscountOracleFactoryInterface {
86
+ return new utils.Interface(
87
+ _abi
88
+ ) as PendleSparkLinearDiscountOracleFactoryInterface;
89
+ }
90
+ static connect(
91
+ address: string,
92
+ signerOrProvider: Signer | Provider
93
+ ): PendleSparkLinearDiscountOracleFactory {
94
+ return new Contract(
95
+ address,
96
+ _abi,
97
+ signerOrProvider
98
+ ) as PendleSparkLinearDiscountOracleFactory;
99
+ }
100
+ }