@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
|
};
|
|
@@ -254,13 +254,10 @@ export interface ShortYieldTradingBotInterface extends utils.Interface {
|
|
|
254
254
|
"owner()": FunctionFragment;
|
|
255
255
|
"pendingOwner()": FunctionFragment;
|
|
256
256
|
"proxiableUUID()": FunctionFragment;
|
|
257
|
-
"readBotState()": FunctionFragment;
|
|
258
|
-
"readMarketExtState()": FunctionFragment;
|
|
259
257
|
"readStrategyData()": FunctionFragment;
|
|
260
258
|
"router()": FunctionFragment;
|
|
261
259
|
"setSpecs((uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
262
260
|
"specs()": FunctionFragment;
|
|
263
|
-
"swapCallback(int256,int256,bytes)": FunctionFragment;
|
|
264
261
|
"swapPtForYt(((uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256),uint256,uint256,int256))": FunctionFragment;
|
|
265
262
|
"swapYtForPt(((uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256),uint256,uint256,int256))": FunctionFragment;
|
|
266
263
|
"transferOwnership(address,bool,bool)": FunctionFragment;
|
|
@@ -320,14 +317,6 @@ export interface ShortYieldTradingBotInterface extends utils.Interface {
|
|
|
320
317
|
functionFragment: "proxiableUUID",
|
|
321
318
|
values?: undefined
|
|
322
319
|
): string;
|
|
323
|
-
encodeFunctionData(
|
|
324
|
-
functionFragment: "readBotState",
|
|
325
|
-
values?: undefined
|
|
326
|
-
): string;
|
|
327
|
-
encodeFunctionData(
|
|
328
|
-
functionFragment: "readMarketExtState",
|
|
329
|
-
values?: undefined
|
|
330
|
-
): string;
|
|
331
320
|
encodeFunctionData(
|
|
332
321
|
functionFragment: "readStrategyData",
|
|
333
322
|
values?: undefined
|
|
@@ -338,10 +327,6 @@ export interface ShortYieldTradingBotInterface extends utils.Interface {
|
|
|
338
327
|
values: [TradingSpecsStruct]
|
|
339
328
|
): string;
|
|
340
329
|
encodeFunctionData(functionFragment: "specs", values?: undefined): string;
|
|
341
|
-
encodeFunctionData(
|
|
342
|
-
functionFragment: "swapCallback",
|
|
343
|
-
values: [BigNumberish, BigNumberish, BytesLike]
|
|
344
|
-
): string;
|
|
345
330
|
encodeFunctionData(
|
|
346
331
|
functionFragment: "swapPtForYt",
|
|
347
332
|
values: [IShortYieldTradingBot.SwapInputStruct]
|
|
@@ -403,14 +388,6 @@ export interface ShortYieldTradingBotInterface extends utils.Interface {
|
|
|
403
388
|
functionFragment: "proxiableUUID",
|
|
404
389
|
data: BytesLike
|
|
405
390
|
): Result;
|
|
406
|
-
decodeFunctionResult(
|
|
407
|
-
functionFragment: "readBotState",
|
|
408
|
-
data: BytesLike
|
|
409
|
-
): Result;
|
|
410
|
-
decodeFunctionResult(
|
|
411
|
-
functionFragment: "readMarketExtState",
|
|
412
|
-
data: BytesLike
|
|
413
|
-
): Result;
|
|
414
391
|
decodeFunctionResult(
|
|
415
392
|
functionFragment: "readStrategyData",
|
|
416
393
|
data: BytesLike
|
|
@@ -418,10 +395,6 @@ export interface ShortYieldTradingBotInterface extends utils.Interface {
|
|
|
418
395
|
decodeFunctionResult(functionFragment: "router", data: BytesLike): Result;
|
|
419
396
|
decodeFunctionResult(functionFragment: "setSpecs", data: BytesLike): Result;
|
|
420
397
|
decodeFunctionResult(functionFragment: "specs", data: BytesLike): Result;
|
|
421
|
-
decodeFunctionResult(
|
|
422
|
-
functionFragment: "swapCallback",
|
|
423
|
-
data: BytesLike
|
|
424
|
-
): Result;
|
|
425
398
|
decodeFunctionResult(
|
|
426
399
|
functionFragment: "swapPtForYt",
|
|
427
400
|
data: BytesLike
|
|
@@ -642,14 +615,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
642
615
|
|
|
643
616
|
proxiableUUID(overrides?: CallOverrides): Promise<[string]>;
|
|
644
617
|
|
|
645
|
-
readBotState(
|
|
646
|
-
overrides?: CallOverrides
|
|
647
|
-
): Promise<[BotStateStructOutput] & { botState: BotStateStructOutput }>;
|
|
648
|
-
|
|
649
|
-
readMarketExtState(
|
|
650
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
651
|
-
): Promise<ContractTransaction>;
|
|
652
|
-
|
|
653
618
|
readStrategyData(
|
|
654
619
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
655
620
|
): Promise<ContractTransaction>;
|
|
@@ -674,13 +639,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
674
639
|
}
|
|
675
640
|
>;
|
|
676
641
|
|
|
677
|
-
swapCallback(
|
|
678
|
-
ptToAccount: BigNumberish,
|
|
679
|
-
syToAccount: BigNumberish,
|
|
680
|
-
data: BytesLike,
|
|
681
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
682
|
-
): Promise<ContractTransaction>;
|
|
683
|
-
|
|
684
642
|
swapPtForYt(
|
|
685
643
|
inputParams: IShortYieldTradingBot.SwapInputStruct,
|
|
686
644
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -777,12 +735,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
777
735
|
|
|
778
736
|
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
779
737
|
|
|
780
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
781
|
-
|
|
782
|
-
readMarketExtState(
|
|
783
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
784
|
-
): Promise<ContractTransaction>;
|
|
785
|
-
|
|
786
738
|
readStrategyData(
|
|
787
739
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
788
740
|
): Promise<ContractTransaction>;
|
|
@@ -807,13 +759,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
807
759
|
}
|
|
808
760
|
>;
|
|
809
761
|
|
|
810
|
-
swapCallback(
|
|
811
|
-
ptToAccount: BigNumberish,
|
|
812
|
-
syToAccount: BigNumberish,
|
|
813
|
-
data: BytesLike,
|
|
814
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
815
|
-
): Promise<ContractTransaction>;
|
|
816
|
-
|
|
817
762
|
swapPtForYt(
|
|
818
763
|
inputParams: IShortYieldTradingBot.SwapInputStruct,
|
|
819
764
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -907,12 +852,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
907
852
|
|
|
908
853
|
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
909
854
|
|
|
910
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
911
|
-
|
|
912
|
-
readMarketExtState(
|
|
913
|
-
overrides?: CallOverrides
|
|
914
|
-
): Promise<MarketExtStateStructOutput>;
|
|
915
|
-
|
|
916
855
|
readStrategyData(
|
|
917
856
|
overrides?: CallOverrides
|
|
918
857
|
): Promise<StrategyDataStructOutput>;
|
|
@@ -937,13 +876,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
937
876
|
}
|
|
938
877
|
>;
|
|
939
878
|
|
|
940
|
-
swapCallback(
|
|
941
|
-
ptToAccount: BigNumberish,
|
|
942
|
-
syToAccount: BigNumberish,
|
|
943
|
-
data: BytesLike,
|
|
944
|
-
overrides?: CallOverrides
|
|
945
|
-
): Promise<void>;
|
|
946
|
-
|
|
947
879
|
swapPtForYt(
|
|
948
880
|
inputParams: IShortYieldTradingBot.SwapInputStruct,
|
|
949
881
|
overrides?: CallOverrides
|
|
@@ -1120,12 +1052,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
1120
1052
|
|
|
1121
1053
|
proxiableUUID(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1122
1054
|
|
|
1123
|
-
readBotState(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1124
|
-
|
|
1125
|
-
readMarketExtState(
|
|
1126
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1127
|
-
): Promise<BigNumber>;
|
|
1128
|
-
|
|
1129
1055
|
readStrategyData(
|
|
1130
1056
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1131
1057
|
): Promise<BigNumber>;
|
|
@@ -1139,13 +1065,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
1139
1065
|
|
|
1140
1066
|
specs(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1141
1067
|
|
|
1142
|
-
swapCallback(
|
|
1143
|
-
ptToAccount: BigNumberish,
|
|
1144
|
-
syToAccount: BigNumberish,
|
|
1145
|
-
data: BytesLike,
|
|
1146
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1147
|
-
): Promise<BigNumber>;
|
|
1148
|
-
|
|
1149
1068
|
swapPtForYt(
|
|
1150
1069
|
inputParams: IShortYieldTradingBot.SwapInputStruct,
|
|
1151
1070
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -1243,12 +1162,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
1243
1162
|
|
|
1244
1163
|
proxiableUUID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1245
1164
|
|
|
1246
|
-
readBotState(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1247
|
-
|
|
1248
|
-
readMarketExtState(
|
|
1249
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1250
|
-
): Promise<PopulatedTransaction>;
|
|
1251
|
-
|
|
1252
1165
|
readStrategyData(
|
|
1253
1166
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1254
1167
|
): Promise<PopulatedTransaction>;
|
|
@@ -1262,13 +1175,6 @@ export interface ShortYieldTradingBot extends BaseContract {
|
|
|
1262
1175
|
|
|
1263
1176
|
specs(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1264
1177
|
|
|
1265
|
-
swapCallback(
|
|
1266
|
-
ptToAccount: BigNumberish,
|
|
1267
|
-
syToAccount: BigNumberish,
|
|
1268
|
-
data: BytesLike,
|
|
1269
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1270
|
-
): Promise<PopulatedTransaction>;
|
|
1271
|
-
|
|
1272
1178
|
swapPtForYt(
|
|
1273
1179
|
inputParams: IShortYieldTradingBot.SwapInputStruct,
|
|
1274
1180
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -205,8 +205,6 @@ export interface TradingBotBaseInterface extends utils.Interface {
|
|
|
205
205
|
"market()": FunctionFragment;
|
|
206
206
|
"owner()": FunctionFragment;
|
|
207
207
|
"pendingOwner()": FunctionFragment;
|
|
208
|
-
"readBotState()": FunctionFragment;
|
|
209
|
-
"readMarketExtState()": FunctionFragment;
|
|
210
208
|
"readStrategyData()": FunctionFragment;
|
|
211
209
|
"router()": FunctionFragment;
|
|
212
210
|
"setSpecs((uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
@@ -254,14 +252,6 @@ export interface TradingBotBaseInterface extends utils.Interface {
|
|
|
254
252
|
functionFragment: "pendingOwner",
|
|
255
253
|
values?: undefined
|
|
256
254
|
): string;
|
|
257
|
-
encodeFunctionData(
|
|
258
|
-
functionFragment: "readBotState",
|
|
259
|
-
values?: undefined
|
|
260
|
-
): string;
|
|
261
|
-
encodeFunctionData(
|
|
262
|
-
functionFragment: "readMarketExtState",
|
|
263
|
-
values?: undefined
|
|
264
|
-
): string;
|
|
265
255
|
encodeFunctionData(
|
|
266
256
|
functionFragment: "readStrategyData",
|
|
267
257
|
values?: undefined
|
|
@@ -314,14 +304,6 @@ export interface TradingBotBaseInterface extends utils.Interface {
|
|
|
314
304
|
functionFragment: "pendingOwner",
|
|
315
305
|
data: BytesLike
|
|
316
306
|
): Result;
|
|
317
|
-
decodeFunctionResult(
|
|
318
|
-
functionFragment: "readBotState",
|
|
319
|
-
data: BytesLike
|
|
320
|
-
): Result;
|
|
321
|
-
decodeFunctionResult(
|
|
322
|
-
functionFragment: "readMarketExtState",
|
|
323
|
-
data: BytesLike
|
|
324
|
-
): Result;
|
|
325
307
|
decodeFunctionResult(
|
|
326
308
|
functionFragment: "readStrategyData",
|
|
327
309
|
data: BytesLike
|
|
@@ -469,14 +451,6 @@ export interface TradingBotBase extends BaseContract {
|
|
|
469
451
|
|
|
470
452
|
pendingOwner(overrides?: CallOverrides): Promise<[string]>;
|
|
471
453
|
|
|
472
|
-
readBotState(
|
|
473
|
-
overrides?: CallOverrides
|
|
474
|
-
): Promise<[BotStateStructOutput] & { botState: BotStateStructOutput }>;
|
|
475
|
-
|
|
476
|
-
readMarketExtState(
|
|
477
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
478
|
-
): Promise<ContractTransaction>;
|
|
479
|
-
|
|
480
454
|
readStrategyData(
|
|
481
455
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
482
456
|
): Promise<ContractTransaction>;
|
|
@@ -563,12 +537,6 @@ export interface TradingBotBase extends BaseContract {
|
|
|
563
537
|
|
|
564
538
|
pendingOwner(overrides?: CallOverrides): Promise<string>;
|
|
565
539
|
|
|
566
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
567
|
-
|
|
568
|
-
readMarketExtState(
|
|
569
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
570
|
-
): Promise<ContractTransaction>;
|
|
571
|
-
|
|
572
540
|
readStrategyData(
|
|
573
541
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
574
542
|
): Promise<ContractTransaction>;
|
|
@@ -652,12 +620,6 @@ export interface TradingBotBase extends BaseContract {
|
|
|
652
620
|
|
|
653
621
|
pendingOwner(overrides?: CallOverrides): Promise<string>;
|
|
654
622
|
|
|
655
|
-
readBotState(overrides?: CallOverrides): Promise<BotStateStructOutput>;
|
|
656
|
-
|
|
657
|
-
readMarketExtState(
|
|
658
|
-
overrides?: CallOverrides
|
|
659
|
-
): Promise<MarketExtStateStructOutput>;
|
|
660
|
-
|
|
661
623
|
readStrategyData(
|
|
662
624
|
overrides?: CallOverrides
|
|
663
625
|
): Promise<StrategyDataStructOutput>;
|
|
@@ -789,12 +751,6 @@ export interface TradingBotBase extends BaseContract {
|
|
|
789
751
|
|
|
790
752
|
pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
791
753
|
|
|
792
|
-
readBotState(overrides?: CallOverrides): Promise<BigNumber>;
|
|
793
|
-
|
|
794
|
-
readMarketExtState(
|
|
795
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
796
|
-
): Promise<BigNumber>;
|
|
797
|
-
|
|
798
754
|
readStrategyData(
|
|
799
755
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
800
756
|
): Promise<BigNumber>;
|
|
@@ -871,12 +827,6 @@ export interface TradingBotBase extends BaseContract {
|
|
|
871
827
|
|
|
872
828
|
pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
873
829
|
|
|
874
|
-
readBotState(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
875
|
-
|
|
876
|
-
readMarketExtState(
|
|
877
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
878
|
-
): Promise<PopulatedTransaction>;
|
|
879
|
-
|
|
880
830
|
readStrategyData(
|
|
881
831
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
882
832
|
): Promise<PopulatedTransaction>;
|
|
@@ -497,123 +497,6 @@ const _abi = [
|
|
|
497
497
|
stateMutability: "view",
|
|
498
498
|
type: "function",
|
|
499
499
|
},
|
|
500
|
-
{
|
|
501
|
-
inputs: [],
|
|
502
|
-
name: "readBotState",
|
|
503
|
-
outputs: [
|
|
504
|
-
{
|
|
505
|
-
components: [
|
|
506
|
-
{
|
|
507
|
-
internalType: "uint256",
|
|
508
|
-
name: "lpBalance",
|
|
509
|
-
type: "uint256",
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
internalType: "uint256",
|
|
513
|
-
name: "ytBalance",
|
|
514
|
-
type: "uint256",
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
internalType: "uint256",
|
|
518
|
-
name: "ptBalance",
|
|
519
|
-
type: "uint256",
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
internalType: "uint256",
|
|
523
|
-
name: "syBalance",
|
|
524
|
-
type: "uint256",
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
internalType: "uint256",
|
|
528
|
-
name: "buyBins",
|
|
529
|
-
type: "uint256",
|
|
530
|
-
},
|
|
531
|
-
],
|
|
532
|
-
internalType: "struct BotState",
|
|
533
|
-
name: "botState",
|
|
534
|
-
type: "tuple",
|
|
535
|
-
},
|
|
536
|
-
],
|
|
537
|
-
stateMutability: "view",
|
|
538
|
-
type: "function",
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
inputs: [],
|
|
542
|
-
name: "readMarketExtState",
|
|
543
|
-
outputs: [
|
|
544
|
-
{
|
|
545
|
-
components: [
|
|
546
|
-
{
|
|
547
|
-
components: [
|
|
548
|
-
{
|
|
549
|
-
internalType: "int256",
|
|
550
|
-
name: "totalPt",
|
|
551
|
-
type: "int256",
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
internalType: "int256",
|
|
555
|
-
name: "totalSy",
|
|
556
|
-
type: "int256",
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
internalType: "int256",
|
|
560
|
-
name: "totalLp",
|
|
561
|
-
type: "int256",
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
internalType: "address",
|
|
565
|
-
name: "treasury",
|
|
566
|
-
type: "address",
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
internalType: "int256",
|
|
570
|
-
name: "scalarRoot",
|
|
571
|
-
type: "int256",
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
internalType: "uint256",
|
|
575
|
-
name: "expiry",
|
|
576
|
-
type: "uint256",
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
internalType: "uint256",
|
|
580
|
-
name: "lnFeeRateRoot",
|
|
581
|
-
type: "uint256",
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
internalType: "uint256",
|
|
585
|
-
name: "reserveFeePercent",
|
|
586
|
-
type: "uint256",
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
internalType: "uint256",
|
|
590
|
-
name: "lastLnImpliedRate",
|
|
591
|
-
type: "uint256",
|
|
592
|
-
},
|
|
593
|
-
],
|
|
594
|
-
internalType: "struct MarketState",
|
|
595
|
-
name: "state",
|
|
596
|
-
type: "tuple",
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
internalType: "PYIndex",
|
|
600
|
-
name: "index",
|
|
601
|
-
type: "uint256",
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
internalType: "uint256",
|
|
605
|
-
name: "blockTime",
|
|
606
|
-
type: "uint256",
|
|
607
|
-
},
|
|
608
|
-
],
|
|
609
|
-
internalType: "struct MarketExtState",
|
|
610
|
-
name: "marketExt",
|
|
611
|
-
type: "tuple",
|
|
612
|
-
},
|
|
613
|
-
],
|
|
614
|
-
stateMutability: "nonpayable",
|
|
615
|
-
type: "function",
|
|
616
|
-
},
|
|
617
500
|
{
|
|
618
501
|
inputs: [],
|
|
619
502
|
name: "readStrategyData",
|
|
@@ -655,123 +655,6 @@ const _abi = [
|
|
|
655
655
|
stateMutability: "payable",
|
|
656
656
|
type: "function",
|
|
657
657
|
},
|
|
658
|
-
{
|
|
659
|
-
inputs: [],
|
|
660
|
-
name: "readBotState",
|
|
661
|
-
outputs: [
|
|
662
|
-
{
|
|
663
|
-
components: [
|
|
664
|
-
{
|
|
665
|
-
internalType: "uint256",
|
|
666
|
-
name: "lpBalance",
|
|
667
|
-
type: "uint256",
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
internalType: "uint256",
|
|
671
|
-
name: "ytBalance",
|
|
672
|
-
type: "uint256",
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
internalType: "uint256",
|
|
676
|
-
name: "ptBalance",
|
|
677
|
-
type: "uint256",
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
internalType: "uint256",
|
|
681
|
-
name: "syBalance",
|
|
682
|
-
type: "uint256",
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
internalType: "uint256",
|
|
686
|
-
name: "buyBins",
|
|
687
|
-
type: "uint256",
|
|
688
|
-
},
|
|
689
|
-
],
|
|
690
|
-
internalType: "struct BotState",
|
|
691
|
-
name: "botState",
|
|
692
|
-
type: "tuple",
|
|
693
|
-
},
|
|
694
|
-
],
|
|
695
|
-
stateMutability: "view",
|
|
696
|
-
type: "function",
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
inputs: [],
|
|
700
|
-
name: "readMarketExtState",
|
|
701
|
-
outputs: [
|
|
702
|
-
{
|
|
703
|
-
components: [
|
|
704
|
-
{
|
|
705
|
-
components: [
|
|
706
|
-
{
|
|
707
|
-
internalType: "int256",
|
|
708
|
-
name: "totalPt",
|
|
709
|
-
type: "int256",
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
internalType: "int256",
|
|
713
|
-
name: "totalSy",
|
|
714
|
-
type: "int256",
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
internalType: "int256",
|
|
718
|
-
name: "totalLp",
|
|
719
|
-
type: "int256",
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
internalType: "address",
|
|
723
|
-
name: "treasury",
|
|
724
|
-
type: "address",
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
internalType: "int256",
|
|
728
|
-
name: "scalarRoot",
|
|
729
|
-
type: "int256",
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
internalType: "uint256",
|
|
733
|
-
name: "expiry",
|
|
734
|
-
type: "uint256",
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
internalType: "uint256",
|
|
738
|
-
name: "lnFeeRateRoot",
|
|
739
|
-
type: "uint256",
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
internalType: "uint256",
|
|
743
|
-
name: "reserveFeePercent",
|
|
744
|
-
type: "uint256",
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
internalType: "uint256",
|
|
748
|
-
name: "lastLnImpliedRate",
|
|
749
|
-
type: "uint256",
|
|
750
|
-
},
|
|
751
|
-
],
|
|
752
|
-
internalType: "struct MarketState",
|
|
753
|
-
name: "state",
|
|
754
|
-
type: "tuple",
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
internalType: "PYIndex",
|
|
758
|
-
name: "index",
|
|
759
|
-
type: "uint256",
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
internalType: "uint256",
|
|
763
|
-
name: "blockTime",
|
|
764
|
-
type: "uint256",
|
|
765
|
-
},
|
|
766
|
-
],
|
|
767
|
-
internalType: "struct MarketExtState",
|
|
768
|
-
name: "marketExt",
|
|
769
|
-
type: "tuple",
|
|
770
|
-
},
|
|
771
|
-
],
|
|
772
|
-
stateMutability: "nonpayable",
|
|
773
|
-
type: "function",
|
|
774
|
-
},
|
|
775
658
|
{
|
|
776
659
|
inputs: [],
|
|
777
660
|
name: "readStrategyData",
|