@pendle/core-v2 2.19.0-tradingbot → 2.19.1-tradingbot

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 (60) hide show
  1. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.dbg.json +4 -0
  2. package/build/artifacts/contracts/core/TradingBot/{base/BotActionHelper.sol/BotActionHelper.json → LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.json} +2 -119
  3. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +2 -2
  5. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
  6. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.json +2 -119
  7. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.dbg.json +4 -0
  8. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.json +765 -0
  9. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.dbg.json +1 -1
  10. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.json +2 -2
  11. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.dbg.json +1 -1
  12. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.json +6 -173
  13. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
  14. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.json +0 -117
  15. package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
  17. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.json +0 -117
  18. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +1 -1
  19. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +2 -2
  20. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +2 -2
  22. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +1 -1
  23. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +0 -117
  26. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +4 -121
  29. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +0 -117
  31. package/contracts/core/TradingBot/{base/BotActionHelper.sol → LongYield/LongYieldActionHelper.sol} +4 -81
  32. package/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol +2 -2
  33. package/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol +54 -0
  34. package/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol +2 -2
  35. package/contracts/core/TradingBot/base/TradingBotBase.sol +5 -5
  36. package/contracts/interfaces/TradingBot/ITradingBotBase.sol +0 -4
  37. package/package.json +1 -1
  38. package/typechain-types/BotActionCallback.ts +0 -50
  39. package/typechain-types/ILongYieldTradingBot.ts +0 -50
  40. package/typechain-types/IShortYieldTradingBot.ts +2 -52
  41. package/typechain-types/ITradingBotBase.ts +0 -50
  42. package/typechain-types/LongYieldActionHelper.ts +900 -0
  43. package/typechain-types/LongYieldTradingBot.ts +0 -50
  44. package/typechain-types/ShortYieldActionHelper.ts +856 -0
  45. package/typechain-types/ShortYieldTradingBot.ts +2 -96
  46. package/typechain-types/TradingBotBase.ts +0 -50
  47. package/typechain-types/factories/BotActionCallback__factory.ts +0 -117
  48. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +0 -117
  49. package/typechain-types/factories/IShortYieldTradingBot__factory.ts +4 -121
  50. package/typechain-types/factories/ITradingBotBase__factory.ts +0 -117
  51. package/typechain-types/factories/LongYieldActionHelper__factory.ts +834 -0
  52. package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1 -1
  53. package/typechain-types/factories/LongYieldTradingBot__factory.ts +1 -118
  54. package/typechain-types/factories/ShortYieldActionHelper__factory.ts +784 -0
  55. package/typechain-types/factories/ShortYieldDecisionHelper__factory.ts +1 -1
  56. package/typechain-types/factories/ShortYieldTradingBot__factory.ts +5 -172
  57. package/typechain-types/factories/TradingBotBase__factory.ts +0 -117
  58. package/typechain-types/hardhat.d.ts +18 -0
  59. package/typechain-types/index.ts +4 -0
  60. package/build/artifacts/contracts/core/TradingBot/base/BotActionHelper.sol/BotActionHelper.dbg.json +0 -4
@@ -0,0 +1,834 @@
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 {
8
+ LongYieldActionHelper,
9
+ LongYieldActionHelperInterface,
10
+ } from "../LongYieldActionHelper";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "caller",
18
+ type: "address",
19
+ },
20
+ ],
21
+ name: "BotCallbackNotMarket",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [
26
+ {
27
+ internalType: "uint256",
28
+ name: "actualSyOut",
29
+ type: "uint256",
30
+ },
31
+ {
32
+ internalType: "uint256",
33
+ name: "requiredSyOut",
34
+ type: "uint256",
35
+ },
36
+ ],
37
+ name: "BotInsufficientSyOut",
38
+ type: "error",
39
+ },
40
+ {
41
+ inputs: [
42
+ {
43
+ internalType: "uint256",
44
+ name: "actualYtOut",
45
+ type: "uint256",
46
+ },
47
+ {
48
+ internalType: "uint256",
49
+ name: "requiredYtOut",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ name: "BotInsufficientYtOut",
54
+ type: "error",
55
+ },
56
+ {
57
+ anonymous: false,
58
+ inputs: [
59
+ {
60
+ indexed: false,
61
+ internalType: "uint256",
62
+ name: "netSyOut",
63
+ type: "uint256",
64
+ },
65
+ {
66
+ indexed: false,
67
+ internalType: "uint256",
68
+ name: "netPendleOut",
69
+ type: "uint256",
70
+ },
71
+ ],
72
+ name: "ClaimAndCompound",
73
+ type: "event",
74
+ },
75
+ {
76
+ anonymous: false,
77
+ inputs: [
78
+ {
79
+ indexed: false,
80
+ internalType: "uint256",
81
+ name: "netSyIn",
82
+ type: "uint256",
83
+ },
84
+ ],
85
+ name: "DepositSy",
86
+ type: "event",
87
+ },
88
+ {
89
+ anonymous: false,
90
+ inputs: [
91
+ {
92
+ indexed: true,
93
+ internalType: "address",
94
+ name: "token",
95
+ type: "address",
96
+ },
97
+ {
98
+ indexed: false,
99
+ internalType: "uint256",
100
+ name: "netTokenIn",
101
+ type: "uint256",
102
+ },
103
+ ],
104
+ name: "DepositToken",
105
+ type: "event",
106
+ },
107
+ {
108
+ anonymous: false,
109
+ inputs: [
110
+ {
111
+ indexed: false,
112
+ internalType: "uint8",
113
+ name: "version",
114
+ type: "uint8",
115
+ },
116
+ ],
117
+ name: "Initialized",
118
+ type: "event",
119
+ },
120
+ {
121
+ anonymous: false,
122
+ inputs: [
123
+ {
124
+ indexed: true,
125
+ internalType: "address",
126
+ name: "previousOwner",
127
+ type: "address",
128
+ },
129
+ {
130
+ indexed: true,
131
+ internalType: "address",
132
+ name: "newOwner",
133
+ type: "address",
134
+ },
135
+ ],
136
+ name: "OwnershipTransferred",
137
+ type: "event",
138
+ },
139
+ {
140
+ anonymous: false,
141
+ inputs: [
142
+ {
143
+ indexed: true,
144
+ internalType: "address",
145
+ name: "token",
146
+ type: "address",
147
+ },
148
+ {
149
+ indexed: false,
150
+ internalType: "uint256",
151
+ name: "amount",
152
+ type: "uint256",
153
+ },
154
+ ],
155
+ name: "WithdrawFunds",
156
+ type: "event",
157
+ },
158
+ {
159
+ inputs: [],
160
+ name: "PENDLE",
161
+ outputs: [
162
+ {
163
+ internalType: "address",
164
+ name: "",
165
+ type: "address",
166
+ },
167
+ ],
168
+ stateMutability: "view",
169
+ type: "function",
170
+ },
171
+ {
172
+ inputs: [],
173
+ name: "PT",
174
+ outputs: [
175
+ {
176
+ internalType: "address",
177
+ name: "",
178
+ type: "address",
179
+ },
180
+ ],
181
+ stateMutability: "view",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [],
186
+ name: "SY",
187
+ outputs: [
188
+ {
189
+ internalType: "address",
190
+ name: "",
191
+ type: "address",
192
+ },
193
+ ],
194
+ stateMutability: "view",
195
+ type: "function",
196
+ },
197
+ {
198
+ inputs: [],
199
+ name: "YT",
200
+ outputs: [
201
+ {
202
+ internalType: "address",
203
+ name: "",
204
+ type: "address",
205
+ },
206
+ ],
207
+ stateMutability: "view",
208
+ type: "function",
209
+ },
210
+ {
211
+ inputs: [
212
+ {
213
+ components: [
214
+ {
215
+ internalType: "address[]",
216
+ name: "tokens",
217
+ type: "address[]",
218
+ },
219
+ {
220
+ internalType: "address",
221
+ name: "spender",
222
+ type: "address",
223
+ },
224
+ ],
225
+ internalType: "struct ITradingBotBase.MultiApproval[]",
226
+ name: "arr",
227
+ type: "tuple[]",
228
+ },
229
+ ],
230
+ name: "approveInf",
231
+ outputs: [],
232
+ stateMutability: "nonpayable",
233
+ type: "function",
234
+ },
235
+ {
236
+ inputs: [],
237
+ name: "buyBins",
238
+ outputs: [
239
+ {
240
+ internalType: "uint256",
241
+ name: "",
242
+ type: "uint256",
243
+ },
244
+ ],
245
+ stateMutability: "view",
246
+ type: "function",
247
+ },
248
+ {
249
+ inputs: [
250
+ {
251
+ components: [
252
+ {
253
+ internalType: "address",
254
+ name: "tokenIn",
255
+ type: "address",
256
+ },
257
+ {
258
+ internalType: "uint256",
259
+ name: "netTokenIn",
260
+ type: "uint256",
261
+ },
262
+ {
263
+ internalType: "address",
264
+ name: "tokenMintSy",
265
+ type: "address",
266
+ },
267
+ {
268
+ internalType: "address",
269
+ name: "bulk",
270
+ type: "address",
271
+ },
272
+ {
273
+ internalType: "address",
274
+ name: "pendleSwap",
275
+ type: "address",
276
+ },
277
+ {
278
+ components: [
279
+ {
280
+ internalType: "enum SwapType",
281
+ name: "swapType",
282
+ type: "uint8",
283
+ },
284
+ {
285
+ internalType: "address",
286
+ name: "extRouter",
287
+ type: "address",
288
+ },
289
+ {
290
+ internalType: "bytes",
291
+ name: "extCalldata",
292
+ type: "bytes",
293
+ },
294
+ {
295
+ internalType: "bool",
296
+ name: "needScale",
297
+ type: "bool",
298
+ },
299
+ ],
300
+ internalType: "struct SwapData",
301
+ name: "swapData",
302
+ type: "tuple",
303
+ },
304
+ ],
305
+ internalType: "struct TokenInput[]",
306
+ name: "inps",
307
+ type: "tuple[]",
308
+ },
309
+ {
310
+ internalType: "uint256",
311
+ name: "minSyOut",
312
+ type: "uint256",
313
+ },
314
+ ],
315
+ name: "claimAndCompound",
316
+ outputs: [
317
+ {
318
+ internalType: "uint256",
319
+ name: "netSyOut",
320
+ type: "uint256",
321
+ },
322
+ {
323
+ internalType: "uint256",
324
+ name: "netPendleOut",
325
+ type: "uint256",
326
+ },
327
+ ],
328
+ stateMutability: "nonpayable",
329
+ type: "function",
330
+ },
331
+ {
332
+ inputs: [],
333
+ name: "claimOwnership",
334
+ outputs: [],
335
+ stateMutability: "nonpayable",
336
+ type: "function",
337
+ },
338
+ {
339
+ inputs: [],
340
+ name: "claimWithoutCompound",
341
+ outputs: [
342
+ {
343
+ components: [
344
+ {
345
+ internalType: "address",
346
+ name: "token",
347
+ type: "address",
348
+ },
349
+ {
350
+ internalType: "uint256",
351
+ name: "amount",
352
+ type: "uint256",
353
+ },
354
+ ],
355
+ internalType: "struct TokenAmount[]",
356
+ name: "rewards",
357
+ type: "tuple[]",
358
+ },
359
+ ],
360
+ stateMutability: "nonpayable",
361
+ type: "function",
362
+ },
363
+ {
364
+ inputs: [],
365
+ name: "decisionHelper",
366
+ outputs: [
367
+ {
368
+ internalType: "contract IBotDecisionHelper",
369
+ name: "",
370
+ type: "address",
371
+ },
372
+ ],
373
+ stateMutability: "view",
374
+ type: "function",
375
+ },
376
+ {
377
+ inputs: [
378
+ {
379
+ internalType: "uint256",
380
+ name: "netSyIn",
381
+ type: "uint256",
382
+ },
383
+ ],
384
+ name: "depositSy",
385
+ outputs: [],
386
+ stateMutability: "nonpayable",
387
+ type: "function",
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ components: [
393
+ {
394
+ internalType: "address",
395
+ name: "tokenIn",
396
+ type: "address",
397
+ },
398
+ {
399
+ internalType: "uint256",
400
+ name: "netTokenIn",
401
+ type: "uint256",
402
+ },
403
+ {
404
+ internalType: "address",
405
+ name: "tokenMintSy",
406
+ type: "address",
407
+ },
408
+ {
409
+ internalType: "address",
410
+ name: "bulk",
411
+ type: "address",
412
+ },
413
+ {
414
+ internalType: "address",
415
+ name: "pendleSwap",
416
+ type: "address",
417
+ },
418
+ {
419
+ components: [
420
+ {
421
+ internalType: "enum SwapType",
422
+ name: "swapType",
423
+ type: "uint8",
424
+ },
425
+ {
426
+ internalType: "address",
427
+ name: "extRouter",
428
+ type: "address",
429
+ },
430
+ {
431
+ internalType: "bytes",
432
+ name: "extCalldata",
433
+ type: "bytes",
434
+ },
435
+ {
436
+ internalType: "bool",
437
+ name: "needScale",
438
+ type: "bool",
439
+ },
440
+ ],
441
+ internalType: "struct SwapData",
442
+ name: "swapData",
443
+ type: "tuple",
444
+ },
445
+ ],
446
+ internalType: "struct TokenInput",
447
+ name: "inp",
448
+ type: "tuple",
449
+ },
450
+ {
451
+ internalType: "uint256",
452
+ name: "minSyOut",
453
+ type: "uint256",
454
+ },
455
+ ],
456
+ name: "depositToken",
457
+ outputs: [],
458
+ stateMutability: "payable",
459
+ type: "function",
460
+ },
461
+ {
462
+ inputs: [],
463
+ name: "market",
464
+ outputs: [
465
+ {
466
+ internalType: "address",
467
+ name: "",
468
+ type: "address",
469
+ },
470
+ ],
471
+ stateMutability: "view",
472
+ type: "function",
473
+ },
474
+ {
475
+ inputs: [],
476
+ name: "owner",
477
+ outputs: [
478
+ {
479
+ internalType: "address",
480
+ name: "",
481
+ type: "address",
482
+ },
483
+ ],
484
+ stateMutability: "view",
485
+ type: "function",
486
+ },
487
+ {
488
+ inputs: [],
489
+ name: "pendingOwner",
490
+ outputs: [
491
+ {
492
+ internalType: "address",
493
+ name: "",
494
+ type: "address",
495
+ },
496
+ ],
497
+ stateMutability: "view",
498
+ type: "function",
499
+ },
500
+ {
501
+ inputs: [],
502
+ name: "readStrategyData",
503
+ outputs: [
504
+ {
505
+ components: [
506
+ {
507
+ components: [
508
+ {
509
+ internalType: "uint256",
510
+ name: "lpBalance",
511
+ type: "uint256",
512
+ },
513
+ {
514
+ internalType: "uint256",
515
+ name: "ytBalance",
516
+ type: "uint256",
517
+ },
518
+ {
519
+ internalType: "uint256",
520
+ name: "ptBalance",
521
+ type: "uint256",
522
+ },
523
+ {
524
+ internalType: "uint256",
525
+ name: "syBalance",
526
+ type: "uint256",
527
+ },
528
+ {
529
+ internalType: "uint256",
530
+ name: "buyBins",
531
+ type: "uint256",
532
+ },
533
+ ],
534
+ internalType: "struct BotState",
535
+ name: "botState",
536
+ type: "tuple",
537
+ },
538
+ {
539
+ components: [
540
+ {
541
+ components: [
542
+ {
543
+ internalType: "int256",
544
+ name: "totalPt",
545
+ type: "int256",
546
+ },
547
+ {
548
+ internalType: "int256",
549
+ name: "totalSy",
550
+ type: "int256",
551
+ },
552
+ {
553
+ internalType: "int256",
554
+ name: "totalLp",
555
+ type: "int256",
556
+ },
557
+ {
558
+ internalType: "address",
559
+ name: "treasury",
560
+ type: "address",
561
+ },
562
+ {
563
+ internalType: "int256",
564
+ name: "scalarRoot",
565
+ type: "int256",
566
+ },
567
+ {
568
+ internalType: "uint256",
569
+ name: "expiry",
570
+ type: "uint256",
571
+ },
572
+ {
573
+ internalType: "uint256",
574
+ name: "lnFeeRateRoot",
575
+ type: "uint256",
576
+ },
577
+ {
578
+ internalType: "uint256",
579
+ name: "reserveFeePercent",
580
+ type: "uint256",
581
+ },
582
+ {
583
+ internalType: "uint256",
584
+ name: "lastLnImpliedRate",
585
+ type: "uint256",
586
+ },
587
+ ],
588
+ internalType: "struct MarketState",
589
+ name: "state",
590
+ type: "tuple",
591
+ },
592
+ {
593
+ internalType: "PYIndex",
594
+ name: "index",
595
+ type: "uint256",
596
+ },
597
+ {
598
+ internalType: "uint256",
599
+ name: "blockTime",
600
+ type: "uint256",
601
+ },
602
+ ],
603
+ internalType: "struct MarketExtState",
604
+ name: "marketExt",
605
+ type: "tuple",
606
+ },
607
+ {
608
+ components: [
609
+ {
610
+ internalType: "uint256",
611
+ name: "buyYtIy",
612
+ type: "uint256",
613
+ },
614
+ {
615
+ internalType: "uint256",
616
+ name: "sellYtIy",
617
+ type: "uint256",
618
+ },
619
+ {
620
+ internalType: "uint256",
621
+ name: "targetSyRatio",
622
+ type: "uint256",
623
+ },
624
+ {
625
+ internalType: "uint256",
626
+ name: "maxSyRatio",
627
+ type: "uint256",
628
+ },
629
+ {
630
+ internalType: "uint256",
631
+ name: "targetYtPtRatio",
632
+ type: "uint256",
633
+ },
634
+ {
635
+ internalType: "uint256",
636
+ name: "numOfBins",
637
+ type: "uint256",
638
+ },
639
+ ],
640
+ internalType: "struct TradingSpecs",
641
+ name: "specs",
642
+ type: "tuple",
643
+ },
644
+ ],
645
+ internalType: "struct StrategyData",
646
+ name: "strategyData",
647
+ type: "tuple",
648
+ },
649
+ ],
650
+ stateMutability: "nonpayable",
651
+ type: "function",
652
+ },
653
+ {
654
+ inputs: [],
655
+ name: "router",
656
+ outputs: [
657
+ {
658
+ internalType: "address",
659
+ name: "",
660
+ type: "address",
661
+ },
662
+ ],
663
+ stateMutability: "view",
664
+ type: "function",
665
+ },
666
+ {
667
+ inputs: [
668
+ {
669
+ components: [
670
+ {
671
+ internalType: "uint256",
672
+ name: "buyYtIy",
673
+ type: "uint256",
674
+ },
675
+ {
676
+ internalType: "uint256",
677
+ name: "sellYtIy",
678
+ type: "uint256",
679
+ },
680
+ {
681
+ internalType: "uint256",
682
+ name: "targetSyRatio",
683
+ type: "uint256",
684
+ },
685
+ {
686
+ internalType: "uint256",
687
+ name: "maxSyRatio",
688
+ type: "uint256",
689
+ },
690
+ {
691
+ internalType: "uint256",
692
+ name: "targetYtPtRatio",
693
+ type: "uint256",
694
+ },
695
+ {
696
+ internalType: "uint256",
697
+ name: "numOfBins",
698
+ type: "uint256",
699
+ },
700
+ ],
701
+ internalType: "struct TradingSpecs",
702
+ name: "_specs",
703
+ type: "tuple",
704
+ },
705
+ ],
706
+ name: "setSpecs",
707
+ outputs: [],
708
+ stateMutability: "nonpayable",
709
+ type: "function",
710
+ },
711
+ {
712
+ inputs: [],
713
+ name: "specs",
714
+ outputs: [
715
+ {
716
+ internalType: "uint256",
717
+ name: "buyYtIy",
718
+ type: "uint256",
719
+ },
720
+ {
721
+ internalType: "uint256",
722
+ name: "sellYtIy",
723
+ type: "uint256",
724
+ },
725
+ {
726
+ internalType: "uint256",
727
+ name: "targetSyRatio",
728
+ type: "uint256",
729
+ },
730
+ {
731
+ internalType: "uint256",
732
+ name: "maxSyRatio",
733
+ type: "uint256",
734
+ },
735
+ {
736
+ internalType: "uint256",
737
+ name: "targetYtPtRatio",
738
+ type: "uint256",
739
+ },
740
+ {
741
+ internalType: "uint256",
742
+ name: "numOfBins",
743
+ type: "uint256",
744
+ },
745
+ ],
746
+ stateMutability: "view",
747
+ type: "function",
748
+ },
749
+ {
750
+ inputs: [
751
+ {
752
+ internalType: "int256",
753
+ name: "ptToAccount",
754
+ type: "int256",
755
+ },
756
+ {
757
+ internalType: "int256",
758
+ name: "syToAccount",
759
+ type: "int256",
760
+ },
761
+ {
762
+ internalType: "bytes",
763
+ name: "data",
764
+ type: "bytes",
765
+ },
766
+ ],
767
+ name: "swapCallback",
768
+ outputs: [],
769
+ stateMutability: "nonpayable",
770
+ type: "function",
771
+ },
772
+ {
773
+ inputs: [
774
+ {
775
+ internalType: "address",
776
+ name: "newOwner",
777
+ type: "address",
778
+ },
779
+ {
780
+ internalType: "bool",
781
+ name: "direct",
782
+ type: "bool",
783
+ },
784
+ {
785
+ internalType: "bool",
786
+ name: "renounce",
787
+ type: "bool",
788
+ },
789
+ ],
790
+ name: "transferOwnership",
791
+ outputs: [],
792
+ stateMutability: "nonpayable",
793
+ type: "function",
794
+ },
795
+ {
796
+ inputs: [
797
+ {
798
+ internalType: "address",
799
+ name: "token",
800
+ type: "address",
801
+ },
802
+ {
803
+ internalType: "uint256",
804
+ name: "amount",
805
+ type: "uint256",
806
+ },
807
+ ],
808
+ name: "withdrawFunds",
809
+ outputs: [],
810
+ stateMutability: "nonpayable",
811
+ type: "function",
812
+ },
813
+ {
814
+ stateMutability: "payable",
815
+ type: "receive",
816
+ },
817
+ ];
818
+
819
+ export class LongYieldActionHelper__factory {
820
+ static readonly abi = _abi;
821
+ static createInterface(): LongYieldActionHelperInterface {
822
+ return new utils.Interface(_abi) as LongYieldActionHelperInterface;
823
+ }
824
+ static connect(
825
+ address: string,
826
+ signerOrProvider: Signer | Provider
827
+ ): LongYieldActionHelper {
828
+ return new Contract(
829
+ address,
830
+ _abi,
831
+ signerOrProvider
832
+ ) as LongYieldActionHelper;
833
+ }
834
+ }