@defisaver/sdk 1.0.66-dev-1 → 1.0.66-dev-3
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/esm/src/actions/basic/SellAction.js +1 -1
- package/esm/src/actions/basic/WrapEthAction.d.ts +2 -1
- package/esm/src/actions/basic/WrapEthAction.js +4 -3
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.d.ts +20 -0
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.js +32 -0
- package/esm/src/actions/checkers/index.d.ts +1 -0
- package/esm/src/actions/checkers/index.js +1 -0
- package/esm/src/actions/flashloan/FLAction.js +1 -1
- package/esm/src/addresses.d.ts +11 -3
- package/esm/src/addresses.js +8 -3
- package/esm/src/index.d.ts +44 -12
- package/esm/src/triggers/MorphoBlueRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/MorphoBlueRatioTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +1 -0
- package/esm/src/triggers/index.js +1 -0
- package/package.json +1 -1
- package/src/actions/basic/SellAction.ts +2 -2
- package/src/actions/flashloan/FLAction.ts +2 -2
- package/src/addresses.ts +5 -3
- package/umd/index.js +419 -349
package/esm/src/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare const actionAddressesAllChains: {
|
|
|
31
31
|
SDaiUnwrap: string;
|
|
32
32
|
TokenizedVaultAdapter: string;
|
|
33
33
|
DFSSell: string;
|
|
34
|
+
DFSSellTEMP: string;
|
|
34
35
|
McdGenerate: string;
|
|
35
36
|
McdGive: string;
|
|
36
37
|
McdMerge: string;
|
|
@@ -108,6 +109,7 @@ declare const actionAddressesAllChains: {
|
|
|
108
109
|
FLBalancer: string;
|
|
109
110
|
FLSpark: string;
|
|
110
111
|
FLAction: string;
|
|
112
|
+
FLActionTEMP: string;
|
|
111
113
|
FLUniV3: string;
|
|
112
114
|
FLGho: string;
|
|
113
115
|
FLMorphoBlue: string;
|
|
@@ -217,6 +219,7 @@ declare const actionAddressesAllChains: {
|
|
|
217
219
|
ToggleSub: string;
|
|
218
220
|
TokenBalance: string;
|
|
219
221
|
TokenizedVaultAdapter: string;
|
|
222
|
+
ChangeProxyOwner: string;
|
|
220
223
|
AaveV3ATokenPayback: string;
|
|
221
224
|
AaveV3Borrow: string;
|
|
222
225
|
AaveV3CollateralSwitch: string;
|
|
@@ -241,13 +244,13 @@ declare const actionAddressesAllChains: {
|
|
|
241
244
|
UniCreatePoolV3: string;
|
|
242
245
|
SumInputs?: undefined;
|
|
243
246
|
SubInputs?: undefined;
|
|
244
|
-
ChangeProxyOwner?: undefined;
|
|
245
247
|
AutomationV2Unsub?: undefined;
|
|
246
248
|
UpdateSub?: undefined;
|
|
247
249
|
TransferNFT?: undefined;
|
|
248
250
|
CreateSub?: undefined;
|
|
249
251
|
SDaiWrap?: undefined;
|
|
250
252
|
SDaiUnwrap?: undefined;
|
|
253
|
+
DFSSellTEMP?: undefined;
|
|
251
254
|
McdGenerate?: undefined;
|
|
252
255
|
McdGive?: undefined;
|
|
253
256
|
McdMerge?: undefined;
|
|
@@ -312,6 +315,7 @@ declare const actionAddressesAllChains: {
|
|
|
312
315
|
FLDyDx?: undefined;
|
|
313
316
|
FLMaker?: undefined;
|
|
314
317
|
FLSpark?: undefined;
|
|
318
|
+
FLActionTEMP?: undefined;
|
|
315
319
|
FLUniV3?: undefined;
|
|
316
320
|
FLGho?: undefined;
|
|
317
321
|
FLMorphoBlue?: undefined;
|
|
@@ -411,6 +415,7 @@ declare const actionAddressesAllChains: {
|
|
|
411
415
|
ToggleSub: string;
|
|
412
416
|
TokenBalance: string;
|
|
413
417
|
TokenizedVaultAdapter: string;
|
|
418
|
+
ChangeProxyOwner: string;
|
|
414
419
|
AaveV3ATokenPayback: string;
|
|
415
420
|
AaveV3Borrow: string;
|
|
416
421
|
AaveV3CollateralSwitch: string;
|
|
@@ -439,7 +444,6 @@ declare const actionAddressesAllChains: {
|
|
|
439
444
|
UniCreatePoolV3: string;
|
|
440
445
|
SumInputs?: undefined;
|
|
441
446
|
SubInputs?: undefined;
|
|
442
|
-
ChangeProxyOwner?: undefined;
|
|
443
447
|
AutomationV2Unsub?: undefined;
|
|
444
448
|
UpdateSub?: undefined;
|
|
445
449
|
TransferNFT?: undefined;
|
|
@@ -447,6 +451,7 @@ declare const actionAddressesAllChains: {
|
|
|
447
451
|
ApproveToken?: undefined;
|
|
448
452
|
SDaiWrap?: undefined;
|
|
449
453
|
SDaiUnwrap?: undefined;
|
|
454
|
+
DFSSellTEMP?: undefined;
|
|
450
455
|
McdGenerate?: undefined;
|
|
451
456
|
McdGive?: undefined;
|
|
452
457
|
McdMerge?: undefined;
|
|
@@ -512,6 +517,7 @@ declare const actionAddressesAllChains: {
|
|
|
512
517
|
FLDyDx?: undefined;
|
|
513
518
|
FLMaker?: undefined;
|
|
514
519
|
FLSpark?: undefined;
|
|
520
|
+
FLActionTEMP?: undefined;
|
|
515
521
|
FLUniV3?: undefined;
|
|
516
522
|
FLGho?: undefined;
|
|
517
523
|
FLMorphoBlue?: undefined;
|
|
@@ -603,6 +609,7 @@ declare const actionAddressesAllChains: {
|
|
|
603
609
|
SendToken: string;
|
|
604
610
|
PullToken: string;
|
|
605
611
|
TokenBalance: string;
|
|
612
|
+
ChangeProxyOwner: string;
|
|
606
613
|
FLAaveV3: string;
|
|
607
614
|
FLBalancer: string;
|
|
608
615
|
FLUniV3: string;
|
|
@@ -625,7 +632,6 @@ declare const actionAddressesAllChains: {
|
|
|
625
632
|
CompV3Withdraw: string;
|
|
626
633
|
SumInputs?: undefined;
|
|
627
634
|
SubInputs?: undefined;
|
|
628
|
-
ChangeProxyOwner?: undefined;
|
|
629
635
|
AutomationV2Unsub?: undefined;
|
|
630
636
|
SendTokenAndUnwrap?: undefined;
|
|
631
637
|
ToggleSub?: undefined;
|
|
@@ -636,6 +642,7 @@ declare const actionAddressesAllChains: {
|
|
|
636
642
|
SDaiWrap?: undefined;
|
|
637
643
|
SDaiUnwrap?: undefined;
|
|
638
644
|
TokenizedVaultAdapter?: undefined;
|
|
645
|
+
DFSSellTEMP?: undefined;
|
|
639
646
|
McdGenerate?: undefined;
|
|
640
647
|
McdGive?: undefined;
|
|
641
648
|
McdMerge?: undefined;
|
|
@@ -701,6 +708,7 @@ declare const actionAddressesAllChains: {
|
|
|
701
708
|
FLMaker?: undefined;
|
|
702
709
|
FLSpark?: undefined;
|
|
703
710
|
FLAction?: undefined;
|
|
711
|
+
FLActionTEMP?: undefined;
|
|
704
712
|
FLGho?: undefined;
|
|
705
713
|
FLMorphoBlue?: undefined;
|
|
706
714
|
UniSupply?: undefined;
|
|
@@ -813,6 +821,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
813
821
|
SDaiUnwrap: string;
|
|
814
822
|
TokenizedVaultAdapter: string;
|
|
815
823
|
DFSSell: string;
|
|
824
|
+
DFSSellTEMP: string;
|
|
816
825
|
McdGenerate: string;
|
|
817
826
|
McdGive: string;
|
|
818
827
|
McdMerge: string;
|
|
@@ -890,6 +899,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
890
899
|
FLBalancer: string;
|
|
891
900
|
FLSpark: string;
|
|
892
901
|
FLAction: string;
|
|
902
|
+
FLActionTEMP: string;
|
|
893
903
|
FLUniV3: string;
|
|
894
904
|
FLGho: string;
|
|
895
905
|
FLMorphoBlue: string;
|
|
@@ -999,6 +1009,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
999
1009
|
ToggleSub: string;
|
|
1000
1010
|
TokenBalance: string;
|
|
1001
1011
|
TokenizedVaultAdapter: string;
|
|
1012
|
+
ChangeProxyOwner: string;
|
|
1002
1013
|
AaveV3ATokenPayback: string;
|
|
1003
1014
|
AaveV3Borrow: string;
|
|
1004
1015
|
AaveV3CollateralSwitch: string;
|
|
@@ -1023,13 +1034,13 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1023
1034
|
UniCreatePoolV3: string;
|
|
1024
1035
|
SumInputs?: undefined;
|
|
1025
1036
|
SubInputs?: undefined;
|
|
1026
|
-
ChangeProxyOwner?: undefined;
|
|
1027
1037
|
AutomationV2Unsub?: undefined;
|
|
1028
1038
|
UpdateSub?: undefined;
|
|
1029
1039
|
TransferNFT?: undefined;
|
|
1030
1040
|
CreateSub?: undefined;
|
|
1031
1041
|
SDaiWrap?: undefined;
|
|
1032
1042
|
SDaiUnwrap?: undefined;
|
|
1043
|
+
DFSSellTEMP?: undefined;
|
|
1033
1044
|
McdGenerate?: undefined;
|
|
1034
1045
|
McdGive?: undefined;
|
|
1035
1046
|
McdMerge?: undefined;
|
|
@@ -1094,6 +1105,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1094
1105
|
FLDyDx?: undefined;
|
|
1095
1106
|
FLMaker?: undefined;
|
|
1096
1107
|
FLSpark?: undefined;
|
|
1108
|
+
FLActionTEMP?: undefined;
|
|
1097
1109
|
FLUniV3?: undefined;
|
|
1098
1110
|
FLGho?: undefined;
|
|
1099
1111
|
FLMorphoBlue?: undefined;
|
|
@@ -1193,6 +1205,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1193
1205
|
ToggleSub: string;
|
|
1194
1206
|
TokenBalance: string;
|
|
1195
1207
|
TokenizedVaultAdapter: string;
|
|
1208
|
+
ChangeProxyOwner: string;
|
|
1196
1209
|
AaveV3ATokenPayback: string;
|
|
1197
1210
|
AaveV3Borrow: string;
|
|
1198
1211
|
AaveV3CollateralSwitch: string;
|
|
@@ -1221,7 +1234,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1221
1234
|
UniCreatePoolV3: string;
|
|
1222
1235
|
SumInputs?: undefined;
|
|
1223
1236
|
SubInputs?: undefined;
|
|
1224
|
-
ChangeProxyOwner?: undefined;
|
|
1225
1237
|
AutomationV2Unsub?: undefined;
|
|
1226
1238
|
UpdateSub?: undefined;
|
|
1227
1239
|
TransferNFT?: undefined;
|
|
@@ -1229,6 +1241,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1229
1241
|
ApproveToken?: undefined;
|
|
1230
1242
|
SDaiWrap?: undefined;
|
|
1231
1243
|
SDaiUnwrap?: undefined;
|
|
1244
|
+
DFSSellTEMP?: undefined;
|
|
1232
1245
|
McdGenerate?: undefined;
|
|
1233
1246
|
McdGive?: undefined;
|
|
1234
1247
|
McdMerge?: undefined;
|
|
@@ -1294,6 +1307,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1294
1307
|
FLDyDx?: undefined;
|
|
1295
1308
|
FLMaker?: undefined;
|
|
1296
1309
|
FLSpark?: undefined;
|
|
1310
|
+
FLActionTEMP?: undefined;
|
|
1297
1311
|
FLUniV3?: undefined;
|
|
1298
1312
|
FLGho?: undefined;
|
|
1299
1313
|
FLMorphoBlue?: undefined;
|
|
@@ -1385,6 +1399,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1385
1399
|
SendToken: string;
|
|
1386
1400
|
PullToken: string;
|
|
1387
1401
|
TokenBalance: string;
|
|
1402
|
+
ChangeProxyOwner: string;
|
|
1388
1403
|
FLAaveV3: string;
|
|
1389
1404
|
FLBalancer: string;
|
|
1390
1405
|
FLUniV3: string;
|
|
@@ -1407,7 +1422,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1407
1422
|
CompV3Withdraw: string;
|
|
1408
1423
|
SumInputs?: undefined;
|
|
1409
1424
|
SubInputs?: undefined;
|
|
1410
|
-
ChangeProxyOwner?: undefined;
|
|
1411
1425
|
AutomationV2Unsub?: undefined;
|
|
1412
1426
|
SendTokenAndUnwrap?: undefined;
|
|
1413
1427
|
ToggleSub?: undefined;
|
|
@@ -1418,6 +1432,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1418
1432
|
SDaiWrap?: undefined;
|
|
1419
1433
|
SDaiUnwrap?: undefined;
|
|
1420
1434
|
TokenizedVaultAdapter?: undefined;
|
|
1435
|
+
DFSSellTEMP?: undefined;
|
|
1421
1436
|
McdGenerate?: undefined;
|
|
1422
1437
|
McdGive?: undefined;
|
|
1423
1438
|
McdMerge?: undefined;
|
|
@@ -1483,6 +1498,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1483
1498
|
FLMaker?: undefined;
|
|
1484
1499
|
FLSpark?: undefined;
|
|
1485
1500
|
FLAction?: undefined;
|
|
1501
|
+
FLActionTEMP?: undefined;
|
|
1486
1502
|
FLGho?: undefined;
|
|
1487
1503
|
FLMorphoBlue?: undefined;
|
|
1488
1504
|
UniSupply?: undefined;
|
|
@@ -1738,6 +1754,7 @@ declare const _default: {
|
|
|
1738
1754
|
SDaiUnwrap: string;
|
|
1739
1755
|
TokenizedVaultAdapter: string;
|
|
1740
1756
|
DFSSell: string;
|
|
1757
|
+
DFSSellTEMP: string;
|
|
1741
1758
|
McdGenerate: string;
|
|
1742
1759
|
McdGive: string;
|
|
1743
1760
|
McdMerge: string;
|
|
@@ -1815,6 +1832,7 @@ declare const _default: {
|
|
|
1815
1832
|
FLBalancer: string;
|
|
1816
1833
|
FLSpark: string;
|
|
1817
1834
|
FLAction: string;
|
|
1835
|
+
FLActionTEMP: string;
|
|
1818
1836
|
FLUniV3: string;
|
|
1819
1837
|
FLGho: string;
|
|
1820
1838
|
FLMorphoBlue: string;
|
|
@@ -1924,6 +1942,7 @@ declare const _default: {
|
|
|
1924
1942
|
ToggleSub: string;
|
|
1925
1943
|
TokenBalance: string;
|
|
1926
1944
|
TokenizedVaultAdapter: string;
|
|
1945
|
+
ChangeProxyOwner: string;
|
|
1927
1946
|
AaveV3ATokenPayback: string;
|
|
1928
1947
|
AaveV3Borrow: string;
|
|
1929
1948
|
AaveV3CollateralSwitch: string;
|
|
@@ -1948,13 +1967,13 @@ declare const _default: {
|
|
|
1948
1967
|
UniCreatePoolV3: string;
|
|
1949
1968
|
SumInputs?: undefined;
|
|
1950
1969
|
SubInputs?: undefined;
|
|
1951
|
-
ChangeProxyOwner?: undefined;
|
|
1952
1970
|
AutomationV2Unsub?: undefined;
|
|
1953
1971
|
UpdateSub?: undefined;
|
|
1954
1972
|
TransferNFT?: undefined;
|
|
1955
1973
|
CreateSub?: undefined;
|
|
1956
1974
|
SDaiWrap?: undefined;
|
|
1957
1975
|
SDaiUnwrap?: undefined;
|
|
1976
|
+
DFSSellTEMP?: undefined;
|
|
1958
1977
|
McdGenerate?: undefined;
|
|
1959
1978
|
McdGive?: undefined;
|
|
1960
1979
|
McdMerge?: undefined;
|
|
@@ -2019,6 +2038,7 @@ declare const _default: {
|
|
|
2019
2038
|
FLDyDx?: undefined;
|
|
2020
2039
|
FLMaker?: undefined;
|
|
2021
2040
|
FLSpark?: undefined;
|
|
2041
|
+
FLActionTEMP?: undefined;
|
|
2022
2042
|
FLUniV3?: undefined;
|
|
2023
2043
|
FLGho?: undefined;
|
|
2024
2044
|
FLMorphoBlue?: undefined;
|
|
@@ -2118,6 +2138,7 @@ declare const _default: {
|
|
|
2118
2138
|
ToggleSub: string;
|
|
2119
2139
|
TokenBalance: string;
|
|
2120
2140
|
TokenizedVaultAdapter: string;
|
|
2141
|
+
ChangeProxyOwner: string;
|
|
2121
2142
|
AaveV3ATokenPayback: string;
|
|
2122
2143
|
AaveV3Borrow: string;
|
|
2123
2144
|
AaveV3CollateralSwitch: string;
|
|
@@ -2146,7 +2167,6 @@ declare const _default: {
|
|
|
2146
2167
|
UniCreatePoolV3: string;
|
|
2147
2168
|
SumInputs?: undefined;
|
|
2148
2169
|
SubInputs?: undefined;
|
|
2149
|
-
ChangeProxyOwner?: undefined;
|
|
2150
2170
|
AutomationV2Unsub?: undefined;
|
|
2151
2171
|
UpdateSub?: undefined;
|
|
2152
2172
|
TransferNFT?: undefined;
|
|
@@ -2154,6 +2174,7 @@ declare const _default: {
|
|
|
2154
2174
|
ApproveToken?: undefined;
|
|
2155
2175
|
SDaiWrap?: undefined;
|
|
2156
2176
|
SDaiUnwrap?: undefined;
|
|
2177
|
+
DFSSellTEMP?: undefined;
|
|
2157
2178
|
McdGenerate?: undefined;
|
|
2158
2179
|
McdGive?: undefined;
|
|
2159
2180
|
McdMerge?: undefined;
|
|
@@ -2219,6 +2240,7 @@ declare const _default: {
|
|
|
2219
2240
|
FLDyDx?: undefined;
|
|
2220
2241
|
FLMaker?: undefined;
|
|
2221
2242
|
FLSpark?: undefined;
|
|
2243
|
+
FLActionTEMP?: undefined;
|
|
2222
2244
|
FLUniV3?: undefined;
|
|
2223
2245
|
FLGho?: undefined;
|
|
2224
2246
|
FLMorphoBlue?: undefined;
|
|
@@ -2310,6 +2332,7 @@ declare const _default: {
|
|
|
2310
2332
|
SendToken: string;
|
|
2311
2333
|
PullToken: string;
|
|
2312
2334
|
TokenBalance: string;
|
|
2335
|
+
ChangeProxyOwner: string;
|
|
2313
2336
|
FLAaveV3: string;
|
|
2314
2337
|
FLBalancer: string;
|
|
2315
2338
|
FLUniV3: string;
|
|
@@ -2332,7 +2355,6 @@ declare const _default: {
|
|
|
2332
2355
|
CompV3Withdraw: string;
|
|
2333
2356
|
SumInputs?: undefined;
|
|
2334
2357
|
SubInputs?: undefined;
|
|
2335
|
-
ChangeProxyOwner?: undefined;
|
|
2336
2358
|
AutomationV2Unsub?: undefined;
|
|
2337
2359
|
SendTokenAndUnwrap?: undefined;
|
|
2338
2360
|
ToggleSub?: undefined;
|
|
@@ -2343,6 +2365,7 @@ declare const _default: {
|
|
|
2343
2365
|
SDaiWrap?: undefined;
|
|
2344
2366
|
SDaiUnwrap?: undefined;
|
|
2345
2367
|
TokenizedVaultAdapter?: undefined;
|
|
2368
|
+
DFSSellTEMP?: undefined;
|
|
2346
2369
|
McdGenerate?: undefined;
|
|
2347
2370
|
McdGive?: undefined;
|
|
2348
2371
|
McdMerge?: undefined;
|
|
@@ -2408,6 +2431,7 @@ declare const _default: {
|
|
|
2408
2431
|
FLMaker?: undefined;
|
|
2409
2432
|
FLSpark?: undefined;
|
|
2410
2433
|
FLAction?: undefined;
|
|
2434
|
+
FLActionTEMP?: undefined;
|
|
2411
2435
|
FLGho?: undefined;
|
|
2412
2436
|
FLMorphoBlue?: undefined;
|
|
2413
2437
|
UniSupply?: undefined;
|
|
@@ -2520,6 +2544,7 @@ declare const _default: {
|
|
|
2520
2544
|
SDaiUnwrap: string;
|
|
2521
2545
|
TokenizedVaultAdapter: string;
|
|
2522
2546
|
DFSSell: string;
|
|
2547
|
+
DFSSellTEMP: string;
|
|
2523
2548
|
McdGenerate: string;
|
|
2524
2549
|
McdGive: string;
|
|
2525
2550
|
McdMerge: string;
|
|
@@ -2597,6 +2622,7 @@ declare const _default: {
|
|
|
2597
2622
|
FLBalancer: string;
|
|
2598
2623
|
FLSpark: string;
|
|
2599
2624
|
FLAction: string;
|
|
2625
|
+
FLActionTEMP: string;
|
|
2600
2626
|
FLUniV3: string;
|
|
2601
2627
|
FLGho: string;
|
|
2602
2628
|
FLMorphoBlue: string;
|
|
@@ -2706,6 +2732,7 @@ declare const _default: {
|
|
|
2706
2732
|
ToggleSub: string;
|
|
2707
2733
|
TokenBalance: string;
|
|
2708
2734
|
TokenizedVaultAdapter: string;
|
|
2735
|
+
ChangeProxyOwner: string;
|
|
2709
2736
|
AaveV3ATokenPayback: string;
|
|
2710
2737
|
AaveV3Borrow: string;
|
|
2711
2738
|
AaveV3CollateralSwitch: string;
|
|
@@ -2730,13 +2757,13 @@ declare const _default: {
|
|
|
2730
2757
|
UniCreatePoolV3: string;
|
|
2731
2758
|
SumInputs?: undefined;
|
|
2732
2759
|
SubInputs?: undefined;
|
|
2733
|
-
ChangeProxyOwner?: undefined;
|
|
2734
2760
|
AutomationV2Unsub?: undefined;
|
|
2735
2761
|
UpdateSub?: undefined;
|
|
2736
2762
|
TransferNFT?: undefined;
|
|
2737
2763
|
CreateSub?: undefined;
|
|
2738
2764
|
SDaiWrap?: undefined;
|
|
2739
2765
|
SDaiUnwrap?: undefined;
|
|
2766
|
+
DFSSellTEMP?: undefined;
|
|
2740
2767
|
McdGenerate?: undefined;
|
|
2741
2768
|
McdGive?: undefined;
|
|
2742
2769
|
McdMerge?: undefined;
|
|
@@ -2801,6 +2828,7 @@ declare const _default: {
|
|
|
2801
2828
|
FLDyDx?: undefined;
|
|
2802
2829
|
FLMaker?: undefined;
|
|
2803
2830
|
FLSpark?: undefined;
|
|
2831
|
+
FLActionTEMP?: undefined;
|
|
2804
2832
|
FLUniV3?: undefined;
|
|
2805
2833
|
FLGho?: undefined;
|
|
2806
2834
|
FLMorphoBlue?: undefined;
|
|
@@ -2900,6 +2928,7 @@ declare const _default: {
|
|
|
2900
2928
|
ToggleSub: string;
|
|
2901
2929
|
TokenBalance: string;
|
|
2902
2930
|
TokenizedVaultAdapter: string;
|
|
2931
|
+
ChangeProxyOwner: string;
|
|
2903
2932
|
AaveV3ATokenPayback: string;
|
|
2904
2933
|
AaveV3Borrow: string;
|
|
2905
2934
|
AaveV3CollateralSwitch: string;
|
|
@@ -2928,7 +2957,6 @@ declare const _default: {
|
|
|
2928
2957
|
UniCreatePoolV3: string;
|
|
2929
2958
|
SumInputs?: undefined;
|
|
2930
2959
|
SubInputs?: undefined;
|
|
2931
|
-
ChangeProxyOwner?: undefined;
|
|
2932
2960
|
AutomationV2Unsub?: undefined;
|
|
2933
2961
|
UpdateSub?: undefined;
|
|
2934
2962
|
TransferNFT?: undefined;
|
|
@@ -2936,6 +2964,7 @@ declare const _default: {
|
|
|
2936
2964
|
ApproveToken?: undefined;
|
|
2937
2965
|
SDaiWrap?: undefined;
|
|
2938
2966
|
SDaiUnwrap?: undefined;
|
|
2967
|
+
DFSSellTEMP?: undefined;
|
|
2939
2968
|
McdGenerate?: undefined;
|
|
2940
2969
|
McdGive?: undefined;
|
|
2941
2970
|
McdMerge?: undefined;
|
|
@@ -3001,6 +3030,7 @@ declare const _default: {
|
|
|
3001
3030
|
FLDyDx?: undefined;
|
|
3002
3031
|
FLMaker?: undefined;
|
|
3003
3032
|
FLSpark?: undefined;
|
|
3033
|
+
FLActionTEMP?: undefined;
|
|
3004
3034
|
FLUniV3?: undefined;
|
|
3005
3035
|
FLGho?: undefined;
|
|
3006
3036
|
FLMorphoBlue?: undefined;
|
|
@@ -3092,6 +3122,7 @@ declare const _default: {
|
|
|
3092
3122
|
SendToken: string;
|
|
3093
3123
|
PullToken: string;
|
|
3094
3124
|
TokenBalance: string;
|
|
3125
|
+
ChangeProxyOwner: string;
|
|
3095
3126
|
FLAaveV3: string;
|
|
3096
3127
|
FLBalancer: string;
|
|
3097
3128
|
FLUniV3: string;
|
|
@@ -3114,7 +3145,6 @@ declare const _default: {
|
|
|
3114
3145
|
CompV3Withdraw: string;
|
|
3115
3146
|
SumInputs?: undefined;
|
|
3116
3147
|
SubInputs?: undefined;
|
|
3117
|
-
ChangeProxyOwner?: undefined;
|
|
3118
3148
|
AutomationV2Unsub?: undefined;
|
|
3119
3149
|
SendTokenAndUnwrap?: undefined;
|
|
3120
3150
|
ToggleSub?: undefined;
|
|
@@ -3125,6 +3155,7 @@ declare const _default: {
|
|
|
3125
3155
|
SDaiWrap?: undefined;
|
|
3126
3156
|
SDaiUnwrap?: undefined;
|
|
3127
3157
|
TokenizedVaultAdapter?: undefined;
|
|
3158
|
+
DFSSellTEMP?: undefined;
|
|
3128
3159
|
McdGenerate?: undefined;
|
|
3129
3160
|
McdGive?: undefined;
|
|
3130
3161
|
McdMerge?: undefined;
|
|
@@ -3190,6 +3221,7 @@ declare const _default: {
|
|
|
3190
3221
|
FLMaker?: undefined;
|
|
3191
3222
|
FLSpark?: undefined;
|
|
3192
3223
|
FLAction?: undefined;
|
|
3224
|
+
FLActionTEMP?: undefined;
|
|
3193
3225
|
FLGho?: undefined;
|
|
3194
3226
|
FLMorphoBlue?: undefined;
|
|
3195
3227
|
UniSupply?: undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { EthAddress, bytes32, uint256, uint8 } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category Triggers
|
|
7
|
+
*/
|
|
8
|
+
export declare class MorphoBlueRatioTrigger extends Action {
|
|
9
|
+
constructor(marketId: bytes32, user: EthAddress, ratio: uint256, state: uint8);
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category Triggers
|
|
7
|
+
*/
|
|
8
|
+
export class MorphoBlueRatioTrigger extends Action {
|
|
9
|
+
constructor(marketId, user, ratio, state) {
|
|
10
|
+
super('MorphoBlueRatioTrigger', getAddr('MorphoBlueRatioTrigger'), [['bytes32', 'address', 'uint256', 'uint8']], [[marketId, user, ratio, state]]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -17,4 +17,5 @@ export * from './SparkRatioTrigger';
|
|
|
17
17
|
export * from './SparkQuotePriceTrigger';
|
|
18
18
|
export * from './LiquityDebtInFrontWithLimitTrigger';
|
|
19
19
|
export * from './CurveUsdCollRatioTrigger';
|
|
20
|
+
export * from './MorphoBlueRatioTrigger';
|
|
20
21
|
export * from './OffchainPriceTrigger';
|
|
@@ -17,4 +17,5 @@ export * from './SparkRatioTrigger';
|
|
|
17
17
|
export * from './SparkQuotePriceTrigger';
|
|
18
18
|
export * from './LiquityDebtInFrontWithLimitTrigger';
|
|
19
19
|
export * from './CurveUsdCollRatioTrigger';
|
|
20
|
+
export * from './MorphoBlueRatioTrigger';
|
|
20
21
|
export * from './OffchainPriceTrigger';
|
package/package.json
CHANGED
|
@@ -23,8 +23,8 @@ export class SellAction extends ActionWithL2 {
|
|
|
23
23
|
constructor(exchangeOrder:Array<any>, from:EthAddress, to:EthAddress, protocolFee = '0') {
|
|
24
24
|
requireAddress(to);
|
|
25
25
|
super(
|
|
26
|
-
'
|
|
27
|
-
getAddr('
|
|
26
|
+
'DFSSellTEMP',
|
|
27
|
+
getAddr('DFSSellTEMP'),
|
|
28
28
|
[
|
|
29
29
|
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
30
30
|
'address',
|
package/src/addresses.ts
CHANGED
|
@@ -24,7 +24,8 @@ export const actionAddresses = {
|
|
|
24
24
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
25
25
|
|
|
26
26
|
// exchange
|
|
27
|
-
DFSSell: '
|
|
27
|
+
DFSSell: '0x951D7B421f45FF0e4A8ddE0288aE3f9C2C69b784',
|
|
28
|
+
DFSSellTEMP: '0x8bfc99652358884AF965324e6A233014510F0CFc',
|
|
28
29
|
|
|
29
30
|
// maker
|
|
30
31
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
@@ -122,7 +123,8 @@ export const actionAddresses = {
|
|
|
122
123
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
123
124
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|
|
124
125
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
125
|
-
FLAction: '
|
|
126
|
+
FLAction: '0x72915D41982DfCAf30b871290618E59C45Edba7F',
|
|
127
|
+
FLActionTEMP: '0xC2b92B6c69e5c3b6b29385C1a17FEe906e0CA910',
|
|
126
128
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
127
129
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
128
130
|
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
@@ -392,7 +394,7 @@ export const actionAddresses = {
|
|
|
392
394
|
|
|
393
395
|
export const otherAddresses = {
|
|
394
396
|
[NETWORKS.ethereum.chainId]: {
|
|
395
|
-
RecipeExecutor: '
|
|
397
|
+
RecipeExecutor: '0x5029336642814bC51a42bA80BF83a6322110035D',
|
|
396
398
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
397
399
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
398
400
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|