@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
|
@@ -204,7 +204,7 @@ export declare namespace IShortYieldTradingBot {
|
|
|
204
204
|
export type SwapInputStruct = {
|
|
205
205
|
botParams: ApproxParamsStruct;
|
|
206
206
|
guessTotalPtToSwap: ApproxParamsStruct;
|
|
207
|
-
|
|
207
|
+
minAmountOut: BigNumberish;
|
|
208
208
|
targetIy: BigNumberish;
|
|
209
209
|
currentBin: BigNumberish;
|
|
210
210
|
};
|
|
@@ -218,7 +218,7 @@ export declare namespace IShortYieldTradingBot {
|
|
|
218
218
|
] & {
|
|
219
219
|
botParams: ApproxParamsStructOutput;
|
|
220
220
|
guessTotalPtToSwap: ApproxParamsStructOutput;
|
|
221
|
-
|
|
221
|
+
minAmountOut: BigNumber;
|
|
222
222
|
targetIy: BigNumber;
|
|
223
223
|
currentBin: BigNumber;
|
|
224
224
|
};
|
|
@@ -242,8 +242,6 @@ export interface IShortYieldTradingBotInterface extends utils.Interface {
|
|
|
242
242
|
"depositSy(uint256)": FunctionFragment;
|
|
243
243
|
"depositToken((address,uint256,address,address,address,(uint8,address,bytes,bool)),uint256)": FunctionFragment;
|
|
244
244
|
"mintPY(uint256,uint256)": FunctionFragment;
|
|
245
|
-
"readBotState()": FunctionFragment;
|
|
246
|
-
"readMarketExtState()": FunctionFragment;
|
|
247
245
|
"readStrategyData()": FunctionFragment;
|
|
248
246
|
"setSpecs((uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
249
247
|
"swapPtForYt(((uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256),uint256,uint256,int256))": FunctionFragment;
|
|
@@ -275,14 +273,6 @@ export interface IShortYieldTradingBotInterface extends utils.Interface {
|
|
|
275
273
|
functionFragment: "mintPY",
|
|
276
274
|
values: [BigNumberish, BigNumberish]
|
|
277
275
|
): string;
|
|
278
|
-
encodeFunctionData(
|
|
279
|
-
functionFragment: "readBotState",
|
|
280
|
-
values?: undefined
|
|
281
|
-
): string;
|
|
282
|
-
encodeFunctionData(
|
|
283
|
-
functionFragment: "readMarketExtState",
|
|
284
|
-
values?: undefined
|
|
285
|
-
): string;
|
|
286
276
|
encodeFunctionData(
|
|
287
277
|
functionFragment: "readStrategyData",
|
|
288
278
|
values?: undefined
|
|
@@ -319,14 +309,6 @@ export interface IShortYieldTradingBotInterface extends utils.Interface {
|
|
|
319
309
|
data: BytesLike
|
|
320
310
|
): Result;
|
|
321
311
|
decodeFunctionResult(functionFragment: "mintPY", data: BytesLike): Result;
|
|
322
|
-
decodeFunctionResult(
|
|
323
|
-
functionFragment: "readBotState",
|
|
324
|
-
data: BytesLike
|
|
325
|
-
): Result;
|
|
326
|
-
decodeFunctionResult(
|
|
327
|
-
functionFragment: "readMarketExtState",
|
|
328
|
-
data: BytesLike
|
|
329
|
-
): Result;
|
|
330
312
|
decodeFunctionResult(
|
|
331
313
|
functionFragment: "readStrategyData",
|
|
332
314
|
data: BytesLike
|
|
@@ -477,14 +459,6 @@ export interface IShortYieldTradingBot extends BaseContract {
|
|
|
477
459
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
478
460
|
): Promise<ContractTransaction>;
|
|
479
461
|
|
|
480
|
-
readBotState(
|
|
481
|
-
overrides?: CallOverrides
|
|
482
|
-
): Promise<[BotStateStructOutput] & { botState: BotStateStructOutput }>;
|
|
483
|
-
|
|
484
|
-
readMarketExtState(
|
|
485
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
486
|
-
): Promise<ContractTransaction>;
|
|
487
|
-
|
|
488
462
|
readStrategyData(
|
|
489
463
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
490
464
|
): Promise<ContractTransaction>;
|
|
@@ -543,12 +517,6 @@ export interface IShortYieldTradingBot extends BaseContract {
|
|
|
543
517
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
544
518
|
): Promise<ContractTransaction>;
|
|
545
519
|
|
|
546
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
547
|
-
|
|
548
|
-
readMarketExtState(
|
|
549
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
550
|
-
): Promise<ContractTransaction>;
|
|
551
|
-
|
|
552
520
|
readStrategyData(
|
|
553
521
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
554
522
|
): Promise<ContractTransaction>;
|
|
@@ -606,12 +574,6 @@ export interface IShortYieldTradingBot extends BaseContract {
|
|
|
606
574
|
overrides?: CallOverrides
|
|
607
575
|
): Promise<BigNumber>;
|
|
608
576
|
|
|
609
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
610
|
-
|
|
611
|
-
readMarketExtState(
|
|
612
|
-
overrides?: CallOverrides
|
|
613
|
-
): Promise<MarketExtStateStructOutput>;
|
|
614
|
-
|
|
615
577
|
readStrategyData(
|
|
616
578
|
overrides?: CallOverrides
|
|
617
579
|
): Promise<StrategyDataStructOutput>;
|
|
@@ -721,12 +683,6 @@ export interface IShortYieldTradingBot extends BaseContract {
|
|
|
721
683
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
722
684
|
): Promise<BigNumber>;
|
|
723
685
|
|
|
724
|
-
readBotState(overrides?: CallOverrides): Promise<BigNumber>;
|
|
725
|
-
|
|
726
|
-
readMarketExtState(
|
|
727
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
728
|
-
): Promise<BigNumber>;
|
|
729
|
-
|
|
730
686
|
readStrategyData(
|
|
731
687
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
732
688
|
): Promise<BigNumber>;
|
|
@@ -786,12 +742,6 @@ export interface IShortYieldTradingBot extends BaseContract {
|
|
|
786
742
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
787
743
|
): Promise<PopulatedTransaction>;
|
|
788
744
|
|
|
789
|
-
readBotState(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
790
|
-
|
|
791
|
-
readMarketExtState(
|
|
792
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
793
|
-
): Promise<PopulatedTransaction>;
|
|
794
|
-
|
|
795
745
|
readStrategyData(
|
|
796
746
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
797
747
|
): Promise<PopulatedTransaction>;
|
|
@@ -195,8 +195,6 @@ export interface ITradingBotBaseInterface extends utils.Interface {
|
|
|
195
195
|
"claimWithoutCompound()": FunctionFragment;
|
|
196
196
|
"depositSy(uint256)": FunctionFragment;
|
|
197
197
|
"depositToken((address,uint256,address,address,address,(uint8,address,bytes,bool)),uint256)": FunctionFragment;
|
|
198
|
-
"readBotState()": FunctionFragment;
|
|
199
|
-
"readMarketExtState()": FunctionFragment;
|
|
200
198
|
"readStrategyData()": FunctionFragment;
|
|
201
199
|
"setSpecs((uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
202
200
|
"withdrawFunds(address,uint256)": FunctionFragment;
|
|
@@ -222,14 +220,6 @@ export interface ITradingBotBaseInterface extends utils.Interface {
|
|
|
222
220
|
functionFragment: "depositToken",
|
|
223
221
|
values: [TokenInputStruct, BigNumberish]
|
|
224
222
|
): string;
|
|
225
|
-
encodeFunctionData(
|
|
226
|
-
functionFragment: "readBotState",
|
|
227
|
-
values?: undefined
|
|
228
|
-
): string;
|
|
229
|
-
encodeFunctionData(
|
|
230
|
-
functionFragment: "readMarketExtState",
|
|
231
|
-
values?: undefined
|
|
232
|
-
): string;
|
|
233
223
|
encodeFunctionData(
|
|
234
224
|
functionFragment: "readStrategyData",
|
|
235
225
|
values?: undefined
|
|
@@ -257,14 +247,6 @@ export interface ITradingBotBaseInterface extends utils.Interface {
|
|
|
257
247
|
functionFragment: "depositToken",
|
|
258
248
|
data: BytesLike
|
|
259
249
|
): Result;
|
|
260
|
-
decodeFunctionResult(
|
|
261
|
-
functionFragment: "readBotState",
|
|
262
|
-
data: BytesLike
|
|
263
|
-
): Result;
|
|
264
|
-
decodeFunctionResult(
|
|
265
|
-
functionFragment: "readMarketExtState",
|
|
266
|
-
data: BytesLike
|
|
267
|
-
): Result;
|
|
268
250
|
decodeFunctionResult(
|
|
269
251
|
functionFragment: "readStrategyData",
|
|
270
252
|
data: BytesLike
|
|
@@ -368,14 +350,6 @@ export interface ITradingBotBase extends BaseContract {
|
|
|
368
350
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
369
351
|
): Promise<ContractTransaction>;
|
|
370
352
|
|
|
371
|
-
readBotState(
|
|
372
|
-
overrides?: CallOverrides
|
|
373
|
-
): Promise<[BotStateStructOutput] & { botState: BotStateStructOutput }>;
|
|
374
|
-
|
|
375
|
-
readMarketExtState(
|
|
376
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
377
|
-
): Promise<ContractTransaction>;
|
|
378
|
-
|
|
379
353
|
readStrategyData(
|
|
380
354
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
381
355
|
): Promise<ContractTransaction>;
|
|
@@ -418,12 +392,6 @@ export interface ITradingBotBase extends BaseContract {
|
|
|
418
392
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
419
393
|
): Promise<ContractTransaction>;
|
|
420
394
|
|
|
421
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
422
|
-
|
|
423
|
-
readMarketExtState(
|
|
424
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
425
|
-
): Promise<ContractTransaction>;
|
|
426
|
-
|
|
427
395
|
readStrategyData(
|
|
428
396
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
429
397
|
): Promise<ContractTransaction>;
|
|
@@ -465,12 +433,6 @@ export interface ITradingBotBase extends BaseContract {
|
|
|
465
433
|
overrides?: CallOverrides
|
|
466
434
|
): Promise<void>;
|
|
467
435
|
|
|
468
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
469
|
-
|
|
470
|
-
readMarketExtState(
|
|
471
|
-
overrides?: CallOverrides
|
|
472
|
-
): Promise<MarketExtStateStructOutput>;
|
|
473
|
-
|
|
474
436
|
readStrategyData(
|
|
475
437
|
overrides?: CallOverrides
|
|
476
438
|
): Promise<StrategyDataStructOutput>;
|
|
@@ -546,12 +508,6 @@ export interface ITradingBotBase extends BaseContract {
|
|
|
546
508
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
547
509
|
): Promise<BigNumber>;
|
|
548
510
|
|
|
549
|
-
readBotState(overrides?: CallOverrides): Promise<BigNumber>;
|
|
550
|
-
|
|
551
|
-
readMarketExtState(
|
|
552
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
553
|
-
): Promise<BigNumber>;
|
|
554
|
-
|
|
555
511
|
readStrategyData(
|
|
556
512
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
557
513
|
): Promise<BigNumber>;
|
|
@@ -595,12 +551,6 @@ export interface ITradingBotBase extends BaseContract {
|
|
|
595
551
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
596
552
|
): Promise<PopulatedTransaction>;
|
|
597
553
|
|
|
598
|
-
readBotState(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
599
|
-
|
|
600
|
-
readMarketExtState(
|
|
601
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
602
|
-
): Promise<PopulatedTransaction>;
|
|
603
|
-
|
|
604
554
|
readStrategyData(
|
|
605
555
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
606
556
|
): Promise<PopulatedTransaction>;
|