@defisaver/sdk 1.0.67 → 1.0.69-dev-1
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/ExecuteSafeTxAction.d.ts +23 -0
- package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
- package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
- package/esm/src/actions/basic/LimitSellAction.js +63 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.js +42 -0
- package/esm/src/actions/basic/SellAction.js +1 -1
- package/esm/src/actions/basic/index.d.ts +3 -0
- package/esm/src/actions/basic/index.js +3 -0
- package/esm/src/actions/flashloan/FLAction.js +1 -1
- package/esm/src/actions/flashloan/FLPaybackAction.d.ts +14 -0
- package/esm/src/actions/flashloan/FLPaybackAction.js +16 -0
- package/esm/src/actions/flashloan/index.d.ts +1 -0
- package/esm/src/actions/flashloan/index.js +1 -0
- package/esm/src/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/actions/merkl/MerklClaimAction.d.ts +19 -0
- package/esm/src/actions/merkl/MerklClaimAction.js +21 -0
- package/esm/src/actions/merkl/index.d.ts +1 -0
- package/esm/src/actions/merkl/index.js +1 -0
- package/esm/src/addresses.d.ts +19 -7
- package/esm/src/addresses.js +38 -22
- package/esm/src/index.d.ts +76 -28
- package/esm/src/triggers/CurveUsdHealthRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/CurveUsdHealthRatioTrigger.js +12 -0
- package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
- package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +2 -0
- package/esm/src/triggers/index.js +2 -0
- package/package.json +1 -1
- package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
- package/src/actions/basic/LimitSellAction.ts +63 -0
- package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
- package/src/actions/basic/SellAction.ts +2 -2
- package/src/actions/basic/index.ts +3 -0
- package/src/actions/flashloan/FLAction.ts +2 -2
- package/src/actions/flashloan/FLPaybackAction.ts +18 -0
- package/src/actions/flashloan/index.ts +2 -1
- package/src/actions/index.ts +2 -0
- package/src/actions/maker/MakerGiveAction.ts +1 -1
- package/src/actions/merkl/MerklClaimAction.ts +36 -0
- package/src/actions/merkl/index.ts +1 -0
- package/src/addresses.ts +39 -22
- package/src/triggers/CurveUsdHealthRatioTrigger.ts +14 -0
- package/src/triggers/OffchainPriceTrigger.ts +14 -0
- package/src/triggers/index.ts +2 -0
- package/umd/index.js +816 -510
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;
|
|
@@ -208,16 +210,20 @@ declare const actionAddressesAllChains: {
|
|
|
208
210
|
LlamaLendWithdraw: string;
|
|
209
211
|
LlamaLendPayback: string;
|
|
210
212
|
LlamaLendSelfLiquidate: string;
|
|
213
|
+
MerklClaim: string;
|
|
211
214
|
AaveV3DelegateCredit?: undefined;
|
|
212
215
|
AaveV3RatioTrigger?: undefined;
|
|
213
216
|
GasFeeTakerL2?: undefined;
|
|
214
217
|
AaveV3RatioCheck?: undefined;
|
|
215
218
|
} | {
|
|
216
219
|
DFSSell: string;
|
|
220
|
+
DFSSellTEMP: string;
|
|
217
221
|
WrapEth: string;
|
|
218
222
|
UnwrapEth: string;
|
|
219
223
|
SendToken: string;
|
|
220
224
|
PullToken: string;
|
|
225
|
+
SumInputs: string;
|
|
226
|
+
SubInputs: string;
|
|
221
227
|
ApproveToken: string;
|
|
222
228
|
SendTokenAndUnwrap: string;
|
|
223
229
|
ToggleSub: string;
|
|
@@ -238,6 +244,7 @@ declare const actionAddressesAllChains: {
|
|
|
238
244
|
FLAaveV3: string;
|
|
239
245
|
FLBalancer: string;
|
|
240
246
|
FLAction: string;
|
|
247
|
+
FLActionTEMP: string;
|
|
241
248
|
AaveV3RatioTrigger: string;
|
|
242
249
|
GasFeeTakerL2: string;
|
|
243
250
|
AaveV3RatioCheck: string;
|
|
@@ -246,8 +253,6 @@ declare const actionAddressesAllChains: {
|
|
|
246
253
|
UniSupplyV3: string;
|
|
247
254
|
UniWithdrawV3: string;
|
|
248
255
|
UniCreatePoolV3: string;
|
|
249
|
-
SumInputs?: undefined;
|
|
250
|
-
SubInputs?: undefined;
|
|
251
256
|
AutomationV2Unsub?: undefined;
|
|
252
257
|
UpdateSub?: undefined;
|
|
253
258
|
TransferNFT?: undefined;
|
|
@@ -413,12 +418,16 @@ declare const actionAddressesAllChains: {
|
|
|
413
418
|
LlamaLendWithdraw?: undefined;
|
|
414
419
|
LlamaLendPayback?: undefined;
|
|
415
420
|
LlamaLendSelfLiquidate?: undefined;
|
|
421
|
+
MerklClaim?: undefined;
|
|
416
422
|
} | {
|
|
417
423
|
DFSSell: string;
|
|
424
|
+
DFSSellTEMP: string;
|
|
418
425
|
WrapEth: string;
|
|
419
426
|
UnwrapEth: string;
|
|
420
427
|
SendToken: string;
|
|
421
428
|
PullToken: string;
|
|
429
|
+
SumInputs: string;
|
|
430
|
+
SubInputs: string;
|
|
422
431
|
SendTokenAndUnwrap: string;
|
|
423
432
|
ToggleSub: string;
|
|
424
433
|
TokenBalance: string;
|
|
@@ -443,6 +452,7 @@ declare const actionAddressesAllChains: {
|
|
|
443
452
|
FLAaveV3: string;
|
|
444
453
|
FLBalancer: string;
|
|
445
454
|
FLAction: string;
|
|
455
|
+
FLActionTEMP: string;
|
|
446
456
|
GasFeeTakerL2: string;
|
|
447
457
|
AaveV3RatioCheck: string;
|
|
448
458
|
UniCollectV3: string;
|
|
@@ -450,8 +460,6 @@ declare const actionAddressesAllChains: {
|
|
|
450
460
|
UniSupplyV3: string;
|
|
451
461
|
UniWithdrawV3: string;
|
|
452
462
|
UniCreatePoolV3: string;
|
|
453
|
-
SumInputs?: undefined;
|
|
454
|
-
SubInputs?: undefined;
|
|
455
463
|
AutomationV2Unsub?: undefined;
|
|
456
464
|
UpdateSub?: undefined;
|
|
457
465
|
TransferNFT?: undefined;
|
|
@@ -612,19 +620,25 @@ declare const actionAddressesAllChains: {
|
|
|
612
620
|
LlamaLendWithdraw?: undefined;
|
|
613
621
|
LlamaLendPayback?: undefined;
|
|
614
622
|
LlamaLendSelfLiquidate?: undefined;
|
|
623
|
+
MerklClaim?: undefined;
|
|
615
624
|
AaveV3DelegateCredit?: undefined;
|
|
616
625
|
AaveV3RatioTrigger?: undefined;
|
|
617
626
|
} | {
|
|
618
627
|
DFSSell: string;
|
|
628
|
+
DFSSellTEMP: string;
|
|
619
629
|
WrapEth: string;
|
|
620
630
|
UnwrapEth: string;
|
|
621
631
|
SendToken: string;
|
|
622
632
|
PullToken: string;
|
|
633
|
+
SumInputs: string;
|
|
634
|
+
SubInputs: string;
|
|
623
635
|
TokenBalance: string;
|
|
624
636
|
ChangeProxyOwner: string;
|
|
625
637
|
FLAaveV3: string;
|
|
626
638
|
FLBalancer: string;
|
|
627
639
|
FLUniV3: string;
|
|
640
|
+
FLAction: string;
|
|
641
|
+
FLActionTEMP: string;
|
|
628
642
|
AaveV3Withdraw: string;
|
|
629
643
|
AaveV3SwapBorrowRateMode: string;
|
|
630
644
|
AaveV3Supply: string;
|
|
@@ -642,8 +656,6 @@ declare const actionAddressesAllChains: {
|
|
|
642
656
|
CompV3Supply: string;
|
|
643
657
|
CompV3Transfer: string;
|
|
644
658
|
CompV3Withdraw: string;
|
|
645
|
-
SumInputs?: undefined;
|
|
646
|
-
SubInputs?: undefined;
|
|
647
659
|
AutomationV2Unsub?: undefined;
|
|
648
660
|
SendTokenAndUnwrap?: undefined;
|
|
649
661
|
ToggleSub?: undefined;
|
|
@@ -718,7 +730,6 @@ declare const actionAddressesAllChains: {
|
|
|
718
730
|
FLDyDx?: undefined;
|
|
719
731
|
FLMaker?: undefined;
|
|
720
732
|
FLSpark?: undefined;
|
|
721
|
-
FLAction?: undefined;
|
|
722
733
|
FLGho?: undefined;
|
|
723
734
|
FLMorphoBlue?: undefined;
|
|
724
735
|
UniSupply?: undefined;
|
|
@@ -811,6 +822,7 @@ declare const actionAddressesAllChains: {
|
|
|
811
822
|
LlamaLendWithdraw?: undefined;
|
|
812
823
|
LlamaLendPayback?: undefined;
|
|
813
824
|
LlamaLendSelfLiquidate?: undefined;
|
|
825
|
+
MerklClaim?: undefined;
|
|
814
826
|
AaveV3DelegateCredit?: undefined;
|
|
815
827
|
AaveV3RatioTrigger?: undefined;
|
|
816
828
|
GasFeeTakerL2?: undefined;
|
|
@@ -837,6 +849,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
837
849
|
SDaiUnwrap: string;
|
|
838
850
|
TokenizedVaultAdapter: string;
|
|
839
851
|
DFSSell: string;
|
|
852
|
+
DFSSellTEMP: string;
|
|
840
853
|
McdGenerate: string;
|
|
841
854
|
McdGive: string;
|
|
842
855
|
McdMerge: string;
|
|
@@ -914,6 +927,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
914
927
|
FLBalancer: string;
|
|
915
928
|
FLSpark: string;
|
|
916
929
|
FLAction: string;
|
|
930
|
+
FLActionTEMP: string;
|
|
917
931
|
FLUniV3: string;
|
|
918
932
|
FLGho: string;
|
|
919
933
|
FLMorphoBlue: string;
|
|
@@ -1014,16 +1028,20 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1014
1028
|
LlamaLendWithdraw: string;
|
|
1015
1029
|
LlamaLendPayback: string;
|
|
1016
1030
|
LlamaLendSelfLiquidate: string;
|
|
1031
|
+
MerklClaim: string;
|
|
1017
1032
|
AaveV3DelegateCredit?: undefined;
|
|
1018
1033
|
AaveV3RatioTrigger?: undefined;
|
|
1019
1034
|
GasFeeTakerL2?: undefined;
|
|
1020
1035
|
AaveV3RatioCheck?: undefined;
|
|
1021
1036
|
} | {
|
|
1022
1037
|
DFSSell: string;
|
|
1038
|
+
DFSSellTEMP: string;
|
|
1023
1039
|
WrapEth: string;
|
|
1024
1040
|
UnwrapEth: string;
|
|
1025
1041
|
SendToken: string;
|
|
1026
1042
|
PullToken: string;
|
|
1043
|
+
SumInputs: string;
|
|
1044
|
+
SubInputs: string;
|
|
1027
1045
|
ApproveToken: string;
|
|
1028
1046
|
SendTokenAndUnwrap: string;
|
|
1029
1047
|
ToggleSub: string;
|
|
@@ -1044,6 +1062,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1044
1062
|
FLAaveV3: string;
|
|
1045
1063
|
FLBalancer: string;
|
|
1046
1064
|
FLAction: string;
|
|
1065
|
+
FLActionTEMP: string;
|
|
1047
1066
|
AaveV3RatioTrigger: string;
|
|
1048
1067
|
GasFeeTakerL2: string;
|
|
1049
1068
|
AaveV3RatioCheck: string;
|
|
@@ -1052,8 +1071,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1052
1071
|
UniSupplyV3: string;
|
|
1053
1072
|
UniWithdrawV3: string;
|
|
1054
1073
|
UniCreatePoolV3: string;
|
|
1055
|
-
SumInputs?: undefined;
|
|
1056
|
-
SubInputs?: undefined;
|
|
1057
1074
|
AutomationV2Unsub?: undefined;
|
|
1058
1075
|
UpdateSub?: undefined;
|
|
1059
1076
|
TransferNFT?: undefined;
|
|
@@ -1219,12 +1236,16 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1219
1236
|
LlamaLendWithdraw?: undefined;
|
|
1220
1237
|
LlamaLendPayback?: undefined;
|
|
1221
1238
|
LlamaLendSelfLiquidate?: undefined;
|
|
1239
|
+
MerklClaim?: undefined;
|
|
1222
1240
|
} | {
|
|
1223
1241
|
DFSSell: string;
|
|
1242
|
+
DFSSellTEMP: string;
|
|
1224
1243
|
WrapEth: string;
|
|
1225
1244
|
UnwrapEth: string;
|
|
1226
1245
|
SendToken: string;
|
|
1227
1246
|
PullToken: string;
|
|
1247
|
+
SumInputs: string;
|
|
1248
|
+
SubInputs: string;
|
|
1228
1249
|
SendTokenAndUnwrap: string;
|
|
1229
1250
|
ToggleSub: string;
|
|
1230
1251
|
TokenBalance: string;
|
|
@@ -1249,6 +1270,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1249
1270
|
FLAaveV3: string;
|
|
1250
1271
|
FLBalancer: string;
|
|
1251
1272
|
FLAction: string;
|
|
1273
|
+
FLActionTEMP: string;
|
|
1252
1274
|
GasFeeTakerL2: string;
|
|
1253
1275
|
AaveV3RatioCheck: string;
|
|
1254
1276
|
UniCollectV3: string;
|
|
@@ -1256,8 +1278,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1256
1278
|
UniSupplyV3: string;
|
|
1257
1279
|
UniWithdrawV3: string;
|
|
1258
1280
|
UniCreatePoolV3: string;
|
|
1259
|
-
SumInputs?: undefined;
|
|
1260
|
-
SubInputs?: undefined;
|
|
1261
1281
|
AutomationV2Unsub?: undefined;
|
|
1262
1282
|
UpdateSub?: undefined;
|
|
1263
1283
|
TransferNFT?: undefined;
|
|
@@ -1418,19 +1438,25 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1418
1438
|
LlamaLendWithdraw?: undefined;
|
|
1419
1439
|
LlamaLendPayback?: undefined;
|
|
1420
1440
|
LlamaLendSelfLiquidate?: undefined;
|
|
1441
|
+
MerklClaim?: undefined;
|
|
1421
1442
|
AaveV3DelegateCredit?: undefined;
|
|
1422
1443
|
AaveV3RatioTrigger?: undefined;
|
|
1423
1444
|
} | {
|
|
1424
1445
|
DFSSell: string;
|
|
1446
|
+
DFSSellTEMP: string;
|
|
1425
1447
|
WrapEth: string;
|
|
1426
1448
|
UnwrapEth: string;
|
|
1427
1449
|
SendToken: string;
|
|
1428
1450
|
PullToken: string;
|
|
1451
|
+
SumInputs: string;
|
|
1452
|
+
SubInputs: string;
|
|
1429
1453
|
TokenBalance: string;
|
|
1430
1454
|
ChangeProxyOwner: string;
|
|
1431
1455
|
FLAaveV3: string;
|
|
1432
1456
|
FLBalancer: string;
|
|
1433
1457
|
FLUniV3: string;
|
|
1458
|
+
FLAction: string;
|
|
1459
|
+
FLActionTEMP: string;
|
|
1434
1460
|
AaveV3Withdraw: string;
|
|
1435
1461
|
AaveV3SwapBorrowRateMode: string;
|
|
1436
1462
|
AaveV3Supply: string;
|
|
@@ -1448,8 +1474,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1448
1474
|
CompV3Supply: string;
|
|
1449
1475
|
CompV3Transfer: string;
|
|
1450
1476
|
CompV3Withdraw: string;
|
|
1451
|
-
SumInputs?: undefined;
|
|
1452
|
-
SubInputs?: undefined;
|
|
1453
1477
|
AutomationV2Unsub?: undefined;
|
|
1454
1478
|
SendTokenAndUnwrap?: undefined;
|
|
1455
1479
|
ToggleSub?: undefined;
|
|
@@ -1524,7 +1548,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1524
1548
|
FLDyDx?: undefined;
|
|
1525
1549
|
FLMaker?: undefined;
|
|
1526
1550
|
FLSpark?: undefined;
|
|
1527
|
-
FLAction?: undefined;
|
|
1528
1551
|
FLGho?: undefined;
|
|
1529
1552
|
FLMorphoBlue?: undefined;
|
|
1530
1553
|
UniSupply?: undefined;
|
|
@@ -1617,6 +1640,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1617
1640
|
LlamaLendWithdraw?: undefined;
|
|
1618
1641
|
LlamaLendPayback?: undefined;
|
|
1619
1642
|
LlamaLendSelfLiquidate?: undefined;
|
|
1643
|
+
MerklClaim?: undefined;
|
|
1620
1644
|
AaveV3DelegateCredit?: undefined;
|
|
1621
1645
|
AaveV3RatioTrigger?: undefined;
|
|
1622
1646
|
GasFeeTakerL2?: undefined;
|
|
@@ -1786,6 +1810,7 @@ declare const _default: {
|
|
|
1786
1810
|
SDaiUnwrap: string;
|
|
1787
1811
|
TokenizedVaultAdapter: string;
|
|
1788
1812
|
DFSSell: string;
|
|
1813
|
+
DFSSellTEMP: string;
|
|
1789
1814
|
McdGenerate: string;
|
|
1790
1815
|
McdGive: string;
|
|
1791
1816
|
McdMerge: string;
|
|
@@ -1863,6 +1888,7 @@ declare const _default: {
|
|
|
1863
1888
|
FLBalancer: string;
|
|
1864
1889
|
FLSpark: string;
|
|
1865
1890
|
FLAction: string;
|
|
1891
|
+
FLActionTEMP: string;
|
|
1866
1892
|
FLUniV3: string;
|
|
1867
1893
|
FLGho: string;
|
|
1868
1894
|
FLMorphoBlue: string;
|
|
@@ -1963,16 +1989,20 @@ declare const _default: {
|
|
|
1963
1989
|
LlamaLendWithdraw: string;
|
|
1964
1990
|
LlamaLendPayback: string;
|
|
1965
1991
|
LlamaLendSelfLiquidate: string;
|
|
1992
|
+
MerklClaim: string;
|
|
1966
1993
|
AaveV3DelegateCredit?: undefined;
|
|
1967
1994
|
AaveV3RatioTrigger?: undefined;
|
|
1968
1995
|
GasFeeTakerL2?: undefined;
|
|
1969
1996
|
AaveV3RatioCheck?: undefined;
|
|
1970
1997
|
} | {
|
|
1971
1998
|
DFSSell: string;
|
|
1999
|
+
DFSSellTEMP: string;
|
|
1972
2000
|
WrapEth: string;
|
|
1973
2001
|
UnwrapEth: string;
|
|
1974
2002
|
SendToken: string;
|
|
1975
2003
|
PullToken: string;
|
|
2004
|
+
SumInputs: string;
|
|
2005
|
+
SubInputs: string;
|
|
1976
2006
|
ApproveToken: string;
|
|
1977
2007
|
SendTokenAndUnwrap: string;
|
|
1978
2008
|
ToggleSub: string;
|
|
@@ -1993,6 +2023,7 @@ declare const _default: {
|
|
|
1993
2023
|
FLAaveV3: string;
|
|
1994
2024
|
FLBalancer: string;
|
|
1995
2025
|
FLAction: string;
|
|
2026
|
+
FLActionTEMP: string;
|
|
1996
2027
|
AaveV3RatioTrigger: string;
|
|
1997
2028
|
GasFeeTakerL2: string;
|
|
1998
2029
|
AaveV3RatioCheck: string;
|
|
@@ -2001,8 +2032,6 @@ declare const _default: {
|
|
|
2001
2032
|
UniSupplyV3: string;
|
|
2002
2033
|
UniWithdrawV3: string;
|
|
2003
2034
|
UniCreatePoolV3: string;
|
|
2004
|
-
SumInputs?: undefined;
|
|
2005
|
-
SubInputs?: undefined;
|
|
2006
2035
|
AutomationV2Unsub?: undefined;
|
|
2007
2036
|
UpdateSub?: undefined;
|
|
2008
2037
|
TransferNFT?: undefined;
|
|
@@ -2168,12 +2197,16 @@ declare const _default: {
|
|
|
2168
2197
|
LlamaLendWithdraw?: undefined;
|
|
2169
2198
|
LlamaLendPayback?: undefined;
|
|
2170
2199
|
LlamaLendSelfLiquidate?: undefined;
|
|
2200
|
+
MerklClaim?: undefined;
|
|
2171
2201
|
} | {
|
|
2172
2202
|
DFSSell: string;
|
|
2203
|
+
DFSSellTEMP: string;
|
|
2173
2204
|
WrapEth: string;
|
|
2174
2205
|
UnwrapEth: string;
|
|
2175
2206
|
SendToken: string;
|
|
2176
2207
|
PullToken: string;
|
|
2208
|
+
SumInputs: string;
|
|
2209
|
+
SubInputs: string;
|
|
2177
2210
|
SendTokenAndUnwrap: string;
|
|
2178
2211
|
ToggleSub: string;
|
|
2179
2212
|
TokenBalance: string;
|
|
@@ -2198,6 +2231,7 @@ declare const _default: {
|
|
|
2198
2231
|
FLAaveV3: string;
|
|
2199
2232
|
FLBalancer: string;
|
|
2200
2233
|
FLAction: string;
|
|
2234
|
+
FLActionTEMP: string;
|
|
2201
2235
|
GasFeeTakerL2: string;
|
|
2202
2236
|
AaveV3RatioCheck: string;
|
|
2203
2237
|
UniCollectV3: string;
|
|
@@ -2205,8 +2239,6 @@ declare const _default: {
|
|
|
2205
2239
|
UniSupplyV3: string;
|
|
2206
2240
|
UniWithdrawV3: string;
|
|
2207
2241
|
UniCreatePoolV3: string;
|
|
2208
|
-
SumInputs?: undefined;
|
|
2209
|
-
SubInputs?: undefined;
|
|
2210
2242
|
AutomationV2Unsub?: undefined;
|
|
2211
2243
|
UpdateSub?: undefined;
|
|
2212
2244
|
TransferNFT?: undefined;
|
|
@@ -2367,19 +2399,25 @@ declare const _default: {
|
|
|
2367
2399
|
LlamaLendWithdraw?: undefined;
|
|
2368
2400
|
LlamaLendPayback?: undefined;
|
|
2369
2401
|
LlamaLendSelfLiquidate?: undefined;
|
|
2402
|
+
MerklClaim?: undefined;
|
|
2370
2403
|
AaveV3DelegateCredit?: undefined;
|
|
2371
2404
|
AaveV3RatioTrigger?: undefined;
|
|
2372
2405
|
} | {
|
|
2373
2406
|
DFSSell: string;
|
|
2407
|
+
DFSSellTEMP: string;
|
|
2374
2408
|
WrapEth: string;
|
|
2375
2409
|
UnwrapEth: string;
|
|
2376
2410
|
SendToken: string;
|
|
2377
2411
|
PullToken: string;
|
|
2412
|
+
SumInputs: string;
|
|
2413
|
+
SubInputs: string;
|
|
2378
2414
|
TokenBalance: string;
|
|
2379
2415
|
ChangeProxyOwner: string;
|
|
2380
2416
|
FLAaveV3: string;
|
|
2381
2417
|
FLBalancer: string;
|
|
2382
2418
|
FLUniV3: string;
|
|
2419
|
+
FLAction: string;
|
|
2420
|
+
FLActionTEMP: string;
|
|
2383
2421
|
AaveV3Withdraw: string;
|
|
2384
2422
|
AaveV3SwapBorrowRateMode: string;
|
|
2385
2423
|
AaveV3Supply: string;
|
|
@@ -2397,8 +2435,6 @@ declare const _default: {
|
|
|
2397
2435
|
CompV3Supply: string;
|
|
2398
2436
|
CompV3Transfer: string;
|
|
2399
2437
|
CompV3Withdraw: string;
|
|
2400
|
-
SumInputs?: undefined;
|
|
2401
|
-
SubInputs?: undefined;
|
|
2402
2438
|
AutomationV2Unsub?: undefined;
|
|
2403
2439
|
SendTokenAndUnwrap?: undefined;
|
|
2404
2440
|
ToggleSub?: undefined;
|
|
@@ -2473,7 +2509,6 @@ declare const _default: {
|
|
|
2473
2509
|
FLDyDx?: undefined;
|
|
2474
2510
|
FLMaker?: undefined;
|
|
2475
2511
|
FLSpark?: undefined;
|
|
2476
|
-
FLAction?: undefined;
|
|
2477
2512
|
FLGho?: undefined;
|
|
2478
2513
|
FLMorphoBlue?: undefined;
|
|
2479
2514
|
UniSupply?: undefined;
|
|
@@ -2566,6 +2601,7 @@ declare const _default: {
|
|
|
2566
2601
|
LlamaLendWithdraw?: undefined;
|
|
2567
2602
|
LlamaLendPayback?: undefined;
|
|
2568
2603
|
LlamaLendSelfLiquidate?: undefined;
|
|
2604
|
+
MerklClaim?: undefined;
|
|
2569
2605
|
AaveV3DelegateCredit?: undefined;
|
|
2570
2606
|
AaveV3RatioTrigger?: undefined;
|
|
2571
2607
|
GasFeeTakerL2?: undefined;
|
|
@@ -2592,6 +2628,7 @@ declare const _default: {
|
|
|
2592
2628
|
SDaiUnwrap: string;
|
|
2593
2629
|
TokenizedVaultAdapter: string;
|
|
2594
2630
|
DFSSell: string;
|
|
2631
|
+
DFSSellTEMP: string;
|
|
2595
2632
|
McdGenerate: string;
|
|
2596
2633
|
McdGive: string;
|
|
2597
2634
|
McdMerge: string;
|
|
@@ -2669,6 +2706,7 @@ declare const _default: {
|
|
|
2669
2706
|
FLBalancer: string;
|
|
2670
2707
|
FLSpark: string;
|
|
2671
2708
|
FLAction: string;
|
|
2709
|
+
FLActionTEMP: string;
|
|
2672
2710
|
FLUniV3: string;
|
|
2673
2711
|
FLGho: string;
|
|
2674
2712
|
FLMorphoBlue: string;
|
|
@@ -2769,16 +2807,20 @@ declare const _default: {
|
|
|
2769
2807
|
LlamaLendWithdraw: string;
|
|
2770
2808
|
LlamaLendPayback: string;
|
|
2771
2809
|
LlamaLendSelfLiquidate: string;
|
|
2810
|
+
MerklClaim: string;
|
|
2772
2811
|
AaveV3DelegateCredit?: undefined;
|
|
2773
2812
|
AaveV3RatioTrigger?: undefined;
|
|
2774
2813
|
GasFeeTakerL2?: undefined;
|
|
2775
2814
|
AaveV3RatioCheck?: undefined;
|
|
2776
2815
|
} | {
|
|
2777
2816
|
DFSSell: string;
|
|
2817
|
+
DFSSellTEMP: string;
|
|
2778
2818
|
WrapEth: string;
|
|
2779
2819
|
UnwrapEth: string;
|
|
2780
2820
|
SendToken: string;
|
|
2781
2821
|
PullToken: string;
|
|
2822
|
+
SumInputs: string;
|
|
2823
|
+
SubInputs: string;
|
|
2782
2824
|
ApproveToken: string;
|
|
2783
2825
|
SendTokenAndUnwrap: string;
|
|
2784
2826
|
ToggleSub: string;
|
|
@@ -2799,6 +2841,7 @@ declare const _default: {
|
|
|
2799
2841
|
FLAaveV3: string;
|
|
2800
2842
|
FLBalancer: string;
|
|
2801
2843
|
FLAction: string;
|
|
2844
|
+
FLActionTEMP: string;
|
|
2802
2845
|
AaveV3RatioTrigger: string;
|
|
2803
2846
|
GasFeeTakerL2: string;
|
|
2804
2847
|
AaveV3RatioCheck: string;
|
|
@@ -2807,8 +2850,6 @@ declare const _default: {
|
|
|
2807
2850
|
UniSupplyV3: string;
|
|
2808
2851
|
UniWithdrawV3: string;
|
|
2809
2852
|
UniCreatePoolV3: string;
|
|
2810
|
-
SumInputs?: undefined;
|
|
2811
|
-
SubInputs?: undefined;
|
|
2812
2853
|
AutomationV2Unsub?: undefined;
|
|
2813
2854
|
UpdateSub?: undefined;
|
|
2814
2855
|
TransferNFT?: undefined;
|
|
@@ -2974,12 +3015,16 @@ declare const _default: {
|
|
|
2974
3015
|
LlamaLendWithdraw?: undefined;
|
|
2975
3016
|
LlamaLendPayback?: undefined;
|
|
2976
3017
|
LlamaLendSelfLiquidate?: undefined;
|
|
3018
|
+
MerklClaim?: undefined;
|
|
2977
3019
|
} | {
|
|
2978
3020
|
DFSSell: string;
|
|
3021
|
+
DFSSellTEMP: string;
|
|
2979
3022
|
WrapEth: string;
|
|
2980
3023
|
UnwrapEth: string;
|
|
2981
3024
|
SendToken: string;
|
|
2982
3025
|
PullToken: string;
|
|
3026
|
+
SumInputs: string;
|
|
3027
|
+
SubInputs: string;
|
|
2983
3028
|
SendTokenAndUnwrap: string;
|
|
2984
3029
|
ToggleSub: string;
|
|
2985
3030
|
TokenBalance: string;
|
|
@@ -3004,6 +3049,7 @@ declare const _default: {
|
|
|
3004
3049
|
FLAaveV3: string;
|
|
3005
3050
|
FLBalancer: string;
|
|
3006
3051
|
FLAction: string;
|
|
3052
|
+
FLActionTEMP: string;
|
|
3007
3053
|
GasFeeTakerL2: string;
|
|
3008
3054
|
AaveV3RatioCheck: string;
|
|
3009
3055
|
UniCollectV3: string;
|
|
@@ -3011,8 +3057,6 @@ declare const _default: {
|
|
|
3011
3057
|
UniSupplyV3: string;
|
|
3012
3058
|
UniWithdrawV3: string;
|
|
3013
3059
|
UniCreatePoolV3: string;
|
|
3014
|
-
SumInputs?: undefined;
|
|
3015
|
-
SubInputs?: undefined;
|
|
3016
3060
|
AutomationV2Unsub?: undefined;
|
|
3017
3061
|
UpdateSub?: undefined;
|
|
3018
3062
|
TransferNFT?: undefined;
|
|
@@ -3173,19 +3217,25 @@ declare const _default: {
|
|
|
3173
3217
|
LlamaLendWithdraw?: undefined;
|
|
3174
3218
|
LlamaLendPayback?: undefined;
|
|
3175
3219
|
LlamaLendSelfLiquidate?: undefined;
|
|
3220
|
+
MerklClaim?: undefined;
|
|
3176
3221
|
AaveV3DelegateCredit?: undefined;
|
|
3177
3222
|
AaveV3RatioTrigger?: undefined;
|
|
3178
3223
|
} | {
|
|
3179
3224
|
DFSSell: string;
|
|
3225
|
+
DFSSellTEMP: string;
|
|
3180
3226
|
WrapEth: string;
|
|
3181
3227
|
UnwrapEth: string;
|
|
3182
3228
|
SendToken: string;
|
|
3183
3229
|
PullToken: string;
|
|
3230
|
+
SumInputs: string;
|
|
3231
|
+
SubInputs: string;
|
|
3184
3232
|
TokenBalance: string;
|
|
3185
3233
|
ChangeProxyOwner: string;
|
|
3186
3234
|
FLAaveV3: string;
|
|
3187
3235
|
FLBalancer: string;
|
|
3188
3236
|
FLUniV3: string;
|
|
3237
|
+
FLAction: string;
|
|
3238
|
+
FLActionTEMP: string;
|
|
3189
3239
|
AaveV3Withdraw: string;
|
|
3190
3240
|
AaveV3SwapBorrowRateMode: string;
|
|
3191
3241
|
AaveV3Supply: string;
|
|
@@ -3203,8 +3253,6 @@ declare const _default: {
|
|
|
3203
3253
|
CompV3Supply: string;
|
|
3204
3254
|
CompV3Transfer: string;
|
|
3205
3255
|
CompV3Withdraw: string;
|
|
3206
|
-
SumInputs?: undefined;
|
|
3207
|
-
SubInputs?: undefined;
|
|
3208
3256
|
AutomationV2Unsub?: undefined;
|
|
3209
3257
|
SendTokenAndUnwrap?: undefined;
|
|
3210
3258
|
ToggleSub?: undefined;
|
|
@@ -3279,7 +3327,6 @@ declare const _default: {
|
|
|
3279
3327
|
FLDyDx?: undefined;
|
|
3280
3328
|
FLMaker?: undefined;
|
|
3281
3329
|
FLSpark?: undefined;
|
|
3282
|
-
FLAction?: undefined;
|
|
3283
3330
|
FLGho?: undefined;
|
|
3284
3331
|
FLMorphoBlue?: undefined;
|
|
3285
3332
|
UniSupply?: undefined;
|
|
@@ -3372,6 +3419,7 @@ declare const _default: {
|
|
|
3372
3419
|
LlamaLendWithdraw?: undefined;
|
|
3373
3420
|
LlamaLendPayback?: undefined;
|
|
3374
3421
|
LlamaLendSelfLiquidate?: undefined;
|
|
3422
|
+
MerklClaim?: undefined;
|
|
3375
3423
|
AaveV3DelegateCredit?: undefined;
|
|
3376
3424
|
AaveV3RatioTrigger?: undefined;
|
|
3377
3425
|
GasFeeTakerL2?: undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category Triggers
|
|
7
|
+
*/
|
|
8
|
+
export declare class CurveUsdHealthRatioTrigger extends Action {
|
|
9
|
+
constructor(user: EthAddress, controller: EthAddress, ratio: uint256);
|
|
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 CurveUsdHealthRatioTrigger extends Action {
|
|
9
|
+
constructor(user, controller, ratio) {
|
|
10
|
+
super('CurveUsdHealthRatioTrigger', getAddr('CurveUsdHealthRatioTrigger'), [['address', 'address', 'uint256']], [[user, controller, ratio]]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category Triggers
|
|
7
|
+
*/
|
|
8
|
+
export class OffchainPriceTrigger extends Action {
|
|
9
|
+
constructor(limitPrice, limitType) {
|
|
10
|
+
super('OffchainPriceTrigger', getAddr('OffchainPriceTrigger'), ['uint256', 'uint8'], [limitPrice, limitType]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -17,4 +17,6 @@ export * from './SparkRatioTrigger';
|
|
|
17
17
|
export * from './SparkQuotePriceTrigger';
|
|
18
18
|
export * from './LiquityDebtInFrontWithLimitTrigger';
|
|
19
19
|
export * from './CurveUsdCollRatioTrigger';
|
|
20
|
+
export * from './CurveUsdHealthRatioTrigger';
|
|
20
21
|
export * from './MorphoBlueRatioTrigger';
|
|
22
|
+
export * from './OffchainPriceTrigger';
|
|
@@ -17,4 +17,6 @@ export * from './SparkRatioTrigger';
|
|
|
17
17
|
export * from './SparkQuotePriceTrigger';
|
|
18
18
|
export * from './LiquityDebtInFrontWithLimitTrigger';
|
|
19
19
|
export * from './CurveUsdCollRatioTrigger';
|
|
20
|
+
export * from './CurveUsdHealthRatioTrigger';
|
|
20
21
|
export * from './MorphoBlueRatioTrigger';
|
|
22
|
+
export * from './OffchainPriceTrigger';
|
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import {
|
|
4
|
+
EthAddress,
|
|
5
|
+
bytes,
|
|
6
|
+
uint256,
|
|
7
|
+
uint8,
|
|
8
|
+
} from '../../types';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* ExecuteSafeTxAction - Execute Safe transaction
|
|
12
|
+
*
|
|
13
|
+
* @category BasicActions
|
|
14
|
+
*/
|
|
15
|
+
export class ExecuteSafeTxAction extends Action {
|
|
16
|
+
/**
|
|
17
|
+
* @param safe Address of the Safe wallet
|
|
18
|
+
* @param to Destination address of Safe transaction
|
|
19
|
+
* @param value Ether value of Safe transaction
|
|
20
|
+
* @param data Data payload of Safe transaction
|
|
21
|
+
* @param operation Operation type of Safe transaction. 0 = call, 1 = delegateCall
|
|
22
|
+
* @param safeTxGas Gas that should be used for the Safe transaction
|
|
23
|
+
* @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)
|
|
24
|
+
* @param gasPrice Gas price that should be used for the payment calculation
|
|
25
|
+
* @param gasToken Token address (or 0 if ETH) that is used for the payment
|
|
26
|
+
* @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin
|
|
27
|
+
* @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})
|
|
28
|
+
*/
|
|
29
|
+
constructor(
|
|
30
|
+
safe: EthAddress,
|
|
31
|
+
to: EthAddress,
|
|
32
|
+
value: uint256,
|
|
33
|
+
data: bytes,
|
|
34
|
+
operation: uint8,
|
|
35
|
+
safeTxGas: uint256,
|
|
36
|
+
baseGas: uint256,
|
|
37
|
+
gasPrice: uint256,
|
|
38
|
+
gasToken: EthAddress,
|
|
39
|
+
refundReceiver: EthAddress,
|
|
40
|
+
signatures: bytes,
|
|
41
|
+
) {
|
|
42
|
+
super(
|
|
43
|
+
'ExecuteSafeTx',
|
|
44
|
+
getAddr('ExecuteSafeTx'),
|
|
45
|
+
[
|
|
46
|
+
'address',
|
|
47
|
+
'address',
|
|
48
|
+
'uint256',
|
|
49
|
+
'bytes',
|
|
50
|
+
'uint8',
|
|
51
|
+
'uint256',
|
|
52
|
+
'uint256',
|
|
53
|
+
'uint256',
|
|
54
|
+
'address',
|
|
55
|
+
'address',
|
|
56
|
+
'bytes',
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
safe,
|
|
60
|
+
to,
|
|
61
|
+
value,
|
|
62
|
+
data,
|
|
63
|
+
operation,
|
|
64
|
+
safeTxGas,
|
|
65
|
+
baseGas,
|
|
66
|
+
gasPrice,
|
|
67
|
+
gasToken,
|
|
68
|
+
refundReceiver,
|
|
69
|
+
signatures,
|
|
70
|
+
],
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
this.mappableArgs = [
|
|
74
|
+
this.args[0],
|
|
75
|
+
this.args[1],
|
|
76
|
+
this.args[2],
|
|
77
|
+
this.args[4],
|
|
78
|
+
this.args[5],
|
|
79
|
+
this.args[6],
|
|
80
|
+
this.args[7],
|
|
81
|
+
this.args[8],
|
|
82
|
+
this.args[9],
|
|
83
|
+
];
|
|
84
|
+
}
|
|
85
|
+
}
|