@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.
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/{base/BotActionHelper.sol/BotActionHelper.json → LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.json} +2 -119
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.json +2 -119
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.json +765 -0
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.json +6 -173
- package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.json +0 -117
- package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.json +0 -117
- package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +2 -2
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +0 -117
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +4 -121
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +0 -117
- package/contracts/core/TradingBot/{base/BotActionHelper.sol → LongYield/LongYieldActionHelper.sol} +4 -81
- package/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol +2 -2
- package/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol +54 -0
- package/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol +2 -2
- package/contracts/core/TradingBot/base/TradingBotBase.sol +5 -5
- package/contracts/interfaces/TradingBot/ITradingBotBase.sol +0 -4
- package/package.json +1 -1
- package/typechain-types/BotActionCallback.ts +0 -50
- package/typechain-types/ILongYieldTradingBot.ts +0 -50
- package/typechain-types/IShortYieldTradingBot.ts +2 -52
- package/typechain-types/ITradingBotBase.ts +0 -50
- package/typechain-types/LongYieldActionHelper.ts +900 -0
- package/typechain-types/LongYieldTradingBot.ts +0 -50
- package/typechain-types/ShortYieldActionHelper.ts +856 -0
- package/typechain-types/ShortYieldTradingBot.ts +2 -96
- package/typechain-types/TradingBotBase.ts +0 -50
- package/typechain-types/factories/BotActionCallback__factory.ts +0 -117
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +0 -117
- package/typechain-types/factories/IShortYieldTradingBot__factory.ts +4 -121
- package/typechain-types/factories/ITradingBotBase__factory.ts +0 -117
- package/typechain-types/factories/LongYieldActionHelper__factory.ts +834 -0
- package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1 -1
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +1 -118
- package/typechain-types/factories/ShortYieldActionHelper__factory.ts +784 -0
- package/typechain-types/factories/ShortYieldDecisionHelper__factory.ts +1 -1
- package/typechain-types/factories/ShortYieldTradingBot__factory.ts +5 -172
- package/typechain-types/factories/TradingBotBase__factory.ts +0 -117
- package/typechain-types/hardhat.d.ts +18 -0
- package/typechain-types/index.ts +4 -0
- package/build/artifacts/contracts/core/TradingBot/base/BotActionHelper.sol/BotActionHelper.dbg.json +0 -4
|
@@ -151,7 +151,7 @@ const _abi = [
|
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
internalType: "uint256",
|
|
154
|
-
name: "
|
|
154
|
+
name: "minAmountOut",
|
|
155
155
|
type: "uint256",
|
|
156
156
|
},
|
|
157
157
|
{
|
|
@@ -251,7 +251,7 @@ const _abi = [
|
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
internalType: "uint256",
|
|
254
|
-
name: "
|
|
254
|
+
name: "minAmountOut",
|
|
255
255
|
type: "uint256",
|
|
256
256
|
},
|
|
257
257
|
{
|
|
@@ -541,123 +541,6 @@ const _abi = [
|
|
|
541
541
|
stateMutability: "nonpayable",
|
|
542
542
|
type: "function",
|
|
543
543
|
},
|
|
544
|
-
{
|
|
545
|
-
inputs: [],
|
|
546
|
-
name: "readBotState",
|
|
547
|
-
outputs: [
|
|
548
|
-
{
|
|
549
|
-
components: [
|
|
550
|
-
{
|
|
551
|
-
internalType: "uint256",
|
|
552
|
-
name: "lpBalance",
|
|
553
|
-
type: "uint256",
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
internalType: "uint256",
|
|
557
|
-
name: "ytBalance",
|
|
558
|
-
type: "uint256",
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
internalType: "uint256",
|
|
562
|
-
name: "ptBalance",
|
|
563
|
-
type: "uint256",
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
internalType: "uint256",
|
|
567
|
-
name: "syBalance",
|
|
568
|
-
type: "uint256",
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
internalType: "uint256",
|
|
572
|
-
name: "buyBins",
|
|
573
|
-
type: "uint256",
|
|
574
|
-
},
|
|
575
|
-
],
|
|
576
|
-
internalType: "struct BotState",
|
|
577
|
-
name: "botState",
|
|
578
|
-
type: "tuple",
|
|
579
|
-
},
|
|
580
|
-
],
|
|
581
|
-
stateMutability: "view",
|
|
582
|
-
type: "function",
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
inputs: [],
|
|
586
|
-
name: "readMarketExtState",
|
|
587
|
-
outputs: [
|
|
588
|
-
{
|
|
589
|
-
components: [
|
|
590
|
-
{
|
|
591
|
-
components: [
|
|
592
|
-
{
|
|
593
|
-
internalType: "int256",
|
|
594
|
-
name: "totalPt",
|
|
595
|
-
type: "int256",
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
internalType: "int256",
|
|
599
|
-
name: "totalSy",
|
|
600
|
-
type: "int256",
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
internalType: "int256",
|
|
604
|
-
name: "totalLp",
|
|
605
|
-
type: "int256",
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
internalType: "address",
|
|
609
|
-
name: "treasury",
|
|
610
|
-
type: "address",
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
internalType: "int256",
|
|
614
|
-
name: "scalarRoot",
|
|
615
|
-
type: "int256",
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
internalType: "uint256",
|
|
619
|
-
name: "expiry",
|
|
620
|
-
type: "uint256",
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
internalType: "uint256",
|
|
624
|
-
name: "lnFeeRateRoot",
|
|
625
|
-
type: "uint256",
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
internalType: "uint256",
|
|
629
|
-
name: "reserveFeePercent",
|
|
630
|
-
type: "uint256",
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
internalType: "uint256",
|
|
634
|
-
name: "lastLnImpliedRate",
|
|
635
|
-
type: "uint256",
|
|
636
|
-
},
|
|
637
|
-
],
|
|
638
|
-
internalType: "struct MarketState",
|
|
639
|
-
name: "state",
|
|
640
|
-
type: "tuple",
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
internalType: "PYIndex",
|
|
644
|
-
name: "index",
|
|
645
|
-
type: "uint256",
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
internalType: "uint256",
|
|
649
|
-
name: "blockTime",
|
|
650
|
-
type: "uint256",
|
|
651
|
-
},
|
|
652
|
-
],
|
|
653
|
-
internalType: "struct MarketExtState",
|
|
654
|
-
name: "marketExt",
|
|
655
|
-
type: "tuple",
|
|
656
|
-
},
|
|
657
|
-
],
|
|
658
|
-
stateMutability: "nonpayable",
|
|
659
|
-
type: "function",
|
|
660
|
-
},
|
|
661
544
|
{
|
|
662
545
|
inputs: [],
|
|
663
546
|
name: "readStrategyData",
|
|
@@ -926,7 +809,7 @@ const _abi = [
|
|
|
926
809
|
},
|
|
927
810
|
{
|
|
928
811
|
internalType: "uint256",
|
|
929
|
-
name: "
|
|
812
|
+
name: "minAmountOut",
|
|
930
813
|
type: "uint256",
|
|
931
814
|
},
|
|
932
815
|
{
|
|
@@ -1026,7 +909,7 @@ const _abi = [
|
|
|
1026
909
|
},
|
|
1027
910
|
{
|
|
1028
911
|
internalType: "uint256",
|
|
1029
|
-
name: "
|
|
912
|
+
name: "minAmountOut",
|
|
1030
913
|
type: "uint256",
|
|
1031
914
|
},
|
|
1032
915
|
{
|
|
@@ -298,123 +298,6 @@ const _abi = [
|
|
|
298
298
|
stateMutability: "payable",
|
|
299
299
|
type: "function",
|
|
300
300
|
},
|
|
301
|
-
{
|
|
302
|
-
inputs: [],
|
|
303
|
-
name: "readBotState",
|
|
304
|
-
outputs: [
|
|
305
|
-
{
|
|
306
|
-
components: [
|
|
307
|
-
{
|
|
308
|
-
internalType: "uint256",
|
|
309
|
-
name: "lpBalance",
|
|
310
|
-
type: "uint256",
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
internalType: "uint256",
|
|
314
|
-
name: "ytBalance",
|
|
315
|
-
type: "uint256",
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
internalType: "uint256",
|
|
319
|
-
name: "ptBalance",
|
|
320
|
-
type: "uint256",
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
internalType: "uint256",
|
|
324
|
-
name: "syBalance",
|
|
325
|
-
type: "uint256",
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
internalType: "uint256",
|
|
329
|
-
name: "buyBins",
|
|
330
|
-
type: "uint256",
|
|
331
|
-
},
|
|
332
|
-
],
|
|
333
|
-
internalType: "struct BotState",
|
|
334
|
-
name: "botState",
|
|
335
|
-
type: "tuple",
|
|
336
|
-
},
|
|
337
|
-
],
|
|
338
|
-
stateMutability: "view",
|
|
339
|
-
type: "function",
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
inputs: [],
|
|
343
|
-
name: "readMarketExtState",
|
|
344
|
-
outputs: [
|
|
345
|
-
{
|
|
346
|
-
components: [
|
|
347
|
-
{
|
|
348
|
-
components: [
|
|
349
|
-
{
|
|
350
|
-
internalType: "int256",
|
|
351
|
-
name: "totalPt",
|
|
352
|
-
type: "int256",
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
internalType: "int256",
|
|
356
|
-
name: "totalSy",
|
|
357
|
-
type: "int256",
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
internalType: "int256",
|
|
361
|
-
name: "totalLp",
|
|
362
|
-
type: "int256",
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
internalType: "address",
|
|
366
|
-
name: "treasury",
|
|
367
|
-
type: "address",
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
internalType: "int256",
|
|
371
|
-
name: "scalarRoot",
|
|
372
|
-
type: "int256",
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
internalType: "uint256",
|
|
376
|
-
name: "expiry",
|
|
377
|
-
type: "uint256",
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
internalType: "uint256",
|
|
381
|
-
name: "lnFeeRateRoot",
|
|
382
|
-
type: "uint256",
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
internalType: "uint256",
|
|
386
|
-
name: "reserveFeePercent",
|
|
387
|
-
type: "uint256",
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
internalType: "uint256",
|
|
391
|
-
name: "lastLnImpliedRate",
|
|
392
|
-
type: "uint256",
|
|
393
|
-
},
|
|
394
|
-
],
|
|
395
|
-
internalType: "struct MarketState",
|
|
396
|
-
name: "state",
|
|
397
|
-
type: "tuple",
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
internalType: "PYIndex",
|
|
401
|
-
name: "index",
|
|
402
|
-
type: "uint256",
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
internalType: "uint256",
|
|
406
|
-
name: "blockTime",
|
|
407
|
-
type: "uint256",
|
|
408
|
-
},
|
|
409
|
-
],
|
|
410
|
-
internalType: "struct MarketExtState",
|
|
411
|
-
name: "marketExt",
|
|
412
|
-
type: "tuple",
|
|
413
|
-
},
|
|
414
|
-
],
|
|
415
|
-
stateMutability: "nonpayable",
|
|
416
|
-
type: "function",
|
|
417
|
-
},
|
|
418
301
|
{
|
|
419
302
|
inputs: [],
|
|
420
303
|
name: "readStrategyData",
|