@defisaver/sdk 1.3.28 → 1.3.30-aave-v4-delegate-dev
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/Action.js +23 -5
- package/esm/src/actions/aavev4/AaveV4DelegateBorrowAction.d.ts +16 -0
- package/esm/src/actions/aavev4/AaveV4DelegateBorrowAction.js +24 -0
- package/esm/src/actions/aavev4/AaveV4DelegateSetUsingAsCollateralAction.d.ts +15 -0
- package/esm/src/actions/aavev4/AaveV4DelegateSetUsingAsCollateralAction.js +22 -0
- package/esm/src/actions/aavev4/AaveV4DelegateWithdrawAction.d.ts +16 -0
- package/esm/src/actions/aavev4/AaveV4DelegateWithdrawAction.js +24 -0
- package/esm/src/actions/aavev4/AaveV4SetUserManagersAction.d.ts +14 -0
- package/esm/src/actions/aavev4/AaveV4SetUserManagersAction.js +16 -0
- package/esm/src/actions/aavev4/index.d.ts +4 -0
- package/esm/src/actions/aavev4/index.js +4 -0
- package/esm/src/actions/checkers/SparkRatioCheckAction.d.ts +4 -2
- package/esm/src/actions/checkers/SparkRatioCheckAction.js +6 -2
- package/esm/src/actions/checkers/SparkTargetRatioCheck.d.ts +2 -1
- package/esm/src/actions/checkers/SparkTargetRatioCheck.js +4 -2
- package/esm/src/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.d.ts +18 -0
- package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.js +28 -0
- package/esm/src/actions/midnight/MidnightPaybackDirectAction.d.ts +16 -0
- package/esm/src/actions/midnight/MidnightPaybackDirectAction.js +24 -0
- package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.d.ts +18 -0
- package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.js +28 -0
- package/esm/src/actions/midnight/MidnightSupplyCollateralAction.d.ts +17 -0
- package/esm/src/actions/midnight/MidnightSupplyCollateralAction.js +26 -0
- package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.d.ts +17 -0
- package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.js +26 -0
- package/esm/src/actions/midnight/index.d.ts +5 -0
- package/esm/src/actions/midnight/index.js +5 -0
- package/esm/src/addresses.d.ts +60 -0
- package/esm/src/addresses.js +12 -2
- package/esm/src/index.d.ts +240 -0
- package/package.json +1 -1
- package/src/Action.ts +21 -5
- package/src/actions/aavev4/AaveV4DelegateBorrowAction.ts +36 -0
- package/src/actions/aavev4/AaveV4DelegateSetUsingAsCollateralAction.ts +33 -0
- package/src/actions/aavev4/AaveV4DelegateWithdrawAction.ts +36 -0
- package/src/actions/aavev4/AaveV4SetUserManagersAction.ts +26 -0
- package/src/actions/aavev4/index.ts +5 -1
- package/src/actions/checkers/SparkRatioCheckAction.ts +18 -4
- package/src/actions/checkers/SparkTargetRatioCheck.ts +14 -3
- package/src/actions/index.ts +2 -0
- package/src/actions/midnight/MidnightBorrowFromOrdersAction.ts +44 -0
- package/src/actions/midnight/MidnightPaybackDirectAction.ts +36 -0
- package/src/actions/midnight/MidnightPaybackFromOrdersAction.ts +44 -0
- package/src/actions/midnight/MidnightSupplyCollateralAction.ts +39 -0
- package/src/actions/midnight/MidnightWithdrawCollateralAction.ts +39 -0
- package/src/actions/midnight/index.ts +5 -0
- package/src/addresses.ts +13 -2
- package/umd/index.js +443 -98
package/esm/src/addresses.d.ts
CHANGED
|
@@ -290,10 +290,20 @@ export declare const actionAddresses: {
|
|
|
290
290
|
AaveV4DelegateWithdrawWithSig: string;
|
|
291
291
|
AaveV4DelegateBorrowWithSig: string;
|
|
292
292
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
293
|
+
AaveV4DelegateBorrow: string;
|
|
294
|
+
AaveV4DelegateWithdraw: string;
|
|
295
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
296
|
+
AaveV4SetUserManagers: string;
|
|
293
297
|
AaveV3RatioTrigger?: undefined;
|
|
294
298
|
GasFeeTakerL2?: undefined;
|
|
295
299
|
AaveV3RatioCheck?: undefined;
|
|
296
300
|
MorphoBlueView?: undefined;
|
|
301
|
+
MidnightPaybackDirect?: undefined;
|
|
302
|
+
MidnightBorrowFromOrders?: undefined;
|
|
303
|
+
MidnightPaybackFromOrders?: undefined;
|
|
304
|
+
MidnightSupplyCollateral?: undefined;
|
|
305
|
+
MidnightWithdrawCollateral?: undefined;
|
|
306
|
+
MidnightView?: undefined;
|
|
297
307
|
} | {
|
|
298
308
|
DFSSell: string;
|
|
299
309
|
DFSSellNoFee: string;
|
|
@@ -587,7 +597,17 @@ export declare const actionAddresses: {
|
|
|
587
597
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
588
598
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
589
599
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
600
|
+
AaveV4DelegateBorrow?: undefined;
|
|
601
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
602
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
603
|
+
AaveV4SetUserManagers?: undefined;
|
|
590
604
|
MorphoBlueView?: undefined;
|
|
605
|
+
MidnightPaybackDirect?: undefined;
|
|
606
|
+
MidnightBorrowFromOrders?: undefined;
|
|
607
|
+
MidnightPaybackFromOrders?: undefined;
|
|
608
|
+
MidnightSupplyCollateral?: undefined;
|
|
609
|
+
MidnightWithdrawCollateral?: undefined;
|
|
610
|
+
MidnightView?: undefined;
|
|
591
611
|
} | {
|
|
592
612
|
DFSSell: string;
|
|
593
613
|
DFSSellNoFee: string;
|
|
@@ -881,7 +901,17 @@ export declare const actionAddresses: {
|
|
|
881
901
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
882
902
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
883
903
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
904
|
+
AaveV4DelegateBorrow?: undefined;
|
|
905
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
906
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
907
|
+
AaveV4SetUserManagers?: undefined;
|
|
884
908
|
AaveV3RatioTrigger?: undefined;
|
|
909
|
+
MidnightPaybackDirect?: undefined;
|
|
910
|
+
MidnightBorrowFromOrders?: undefined;
|
|
911
|
+
MidnightPaybackFromOrders?: undefined;
|
|
912
|
+
MidnightSupplyCollateral?: undefined;
|
|
913
|
+
MidnightWithdrawCollateral?: undefined;
|
|
914
|
+
MidnightView?: undefined;
|
|
885
915
|
} | {
|
|
886
916
|
DFSSell: string;
|
|
887
917
|
DFSSellNoFee: string;
|
|
@@ -955,6 +985,12 @@ export declare const actionAddresses: {
|
|
|
955
985
|
SFApproveTokens: string;
|
|
956
986
|
SummerfiUnsub: string;
|
|
957
987
|
SummerfiUnsubV2: string;
|
|
988
|
+
MidnightPaybackDirect: string;
|
|
989
|
+
MidnightBorrowFromOrders: string;
|
|
990
|
+
MidnightPaybackFromOrders: string;
|
|
991
|
+
MidnightSupplyCollateral: string;
|
|
992
|
+
MidnightWithdrawCollateral: string;
|
|
993
|
+
MidnightView: string;
|
|
958
994
|
AutomationV2Unsub?: undefined;
|
|
959
995
|
SendTokenAndUnwrap?: undefined;
|
|
960
996
|
SDaiWrap?: undefined;
|
|
@@ -1174,6 +1210,10 @@ export declare const actionAddresses: {
|
|
|
1174
1210
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1175
1211
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1176
1212
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1213
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1214
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1215
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1216
|
+
AaveV4SetUserManagers?: undefined;
|
|
1177
1217
|
AaveV3RatioTrigger?: undefined;
|
|
1178
1218
|
AaveV3RatioCheck?: undefined;
|
|
1179
1219
|
} | {
|
|
@@ -1466,10 +1506,20 @@ export declare const actionAddresses: {
|
|
|
1466
1506
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1467
1507
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1468
1508
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1509
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1510
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1511
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1512
|
+
AaveV4SetUserManagers?: undefined;
|
|
1469
1513
|
AaveV3RatioTrigger?: undefined;
|
|
1470
1514
|
GasFeeTakerL2?: undefined;
|
|
1471
1515
|
AaveV3RatioCheck?: undefined;
|
|
1472
1516
|
MorphoBlueView?: undefined;
|
|
1517
|
+
MidnightPaybackDirect?: undefined;
|
|
1518
|
+
MidnightBorrowFromOrders?: undefined;
|
|
1519
|
+
MidnightPaybackFromOrders?: undefined;
|
|
1520
|
+
MidnightSupplyCollateral?: undefined;
|
|
1521
|
+
MidnightWithdrawCollateral?: undefined;
|
|
1522
|
+
MidnightView?: undefined;
|
|
1473
1523
|
} | {
|
|
1474
1524
|
DFSSell: string;
|
|
1475
1525
|
DFSSellNoFee: string;
|
|
@@ -1760,10 +1810,20 @@ export declare const actionAddresses: {
|
|
|
1760
1810
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1761
1811
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1762
1812
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1813
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1814
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1815
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1816
|
+
AaveV4SetUserManagers?: undefined;
|
|
1763
1817
|
AaveV3RatioTrigger?: undefined;
|
|
1764
1818
|
GasFeeTakerL2?: undefined;
|
|
1765
1819
|
AaveV3RatioCheck?: undefined;
|
|
1766
1820
|
MorphoBlueView?: undefined;
|
|
1821
|
+
MidnightPaybackDirect?: undefined;
|
|
1822
|
+
MidnightBorrowFromOrders?: undefined;
|
|
1823
|
+
MidnightPaybackFromOrders?: undefined;
|
|
1824
|
+
MidnightSupplyCollateral?: undefined;
|
|
1825
|
+
MidnightWithdrawCollateral?: undefined;
|
|
1826
|
+
MidnightView?: undefined;
|
|
1767
1827
|
};
|
|
1768
1828
|
};
|
|
1769
1829
|
export declare const otherAddresses: {
|
package/esm/src/addresses.js
CHANGED
|
@@ -179,8 +179,8 @@ export const actionAddresses = {
|
|
|
179
179
|
LiquityV2Claim: '0x1b5a0c2573A1692bB183cC5d6f506e108c0599FC',
|
|
180
180
|
LiquityV2Adjust: '0x3BbC88f3b75cB898395C9b5AE8D9c2a26744993b',
|
|
181
181
|
LiquityV2AdjustInterestRate: '0x685f0237D8b85B2018278E975a481b0650dE0b54',
|
|
182
|
-
LiquityV2SPDeposit: '
|
|
183
|
-
LiquityV2SPWithdraw: '
|
|
182
|
+
LiquityV2SPDeposit: '0x256e97E7f7B42Cf7De5258C59A2935AdEdDdfC63',
|
|
183
|
+
LiquityV2SPWithdraw: '0x7ab4A43DE2628EA53c88E27755325d090f28D9c9',
|
|
184
184
|
LiquityV2SPClaimColl: '0x3f783de20C3095bcB999AEA999aF4DF184b6630f',
|
|
185
185
|
LiquityV2AdjustZombieTrove: '0x45F5CEe8f89AdBCe4f5B20f38a49402b152ba99e',
|
|
186
186
|
// b.protocol
|
|
@@ -332,6 +332,10 @@ export const actionAddresses = {
|
|
|
332
332
|
AaveV4DelegateWithdrawWithSig: '0x81864dBd69c46B19463eC7BEC6cE0B271126531a',
|
|
333
333
|
AaveV4DelegateBorrowWithSig: '0x9D68b41BB9f9e9Ac1E1ee49d3566CAd4624886BA',
|
|
334
334
|
AaveV4DelegateSetUsingAsCollateralWithSig: '0xF3D7C7e8F5154c669EAA0dE996cdE0575D7d3A00',
|
|
335
|
+
AaveV4DelegateBorrow: '0x4284B4e09c46Ee2b4E703dB8e5A2F892d12638e1',
|
|
336
|
+
AaveV4DelegateWithdraw: '0x5e7c404d46971E7BD3a95570A80Bc37F38bf9E29',
|
|
337
|
+
AaveV4DelegateSetUsingAsCollateral: '0xa97f8E483C147f27aE7370DeaC4E6585A37884A2',
|
|
338
|
+
AaveV4SetUserManagers: '0x61e5d59bD82FFC61B916d2F2114eF671b17d0662',
|
|
335
339
|
},
|
|
336
340
|
[NETWORKS.optimism.chainId]: {
|
|
337
341
|
DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
|
|
@@ -576,6 +580,12 @@ export const actionAddresses = {
|
|
|
576
580
|
SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
|
|
577
581
|
SummerfiUnsub: '0x0000000000000000000000000000000000000000',
|
|
578
582
|
SummerfiUnsubV2: '0x60587B8Fe62Fc149d285a611822263206b4138da',
|
|
583
|
+
MidnightPaybackDirect: '0xC1B049A038f9E9811dc1Ad1D335369844d4268D9',
|
|
584
|
+
MidnightBorrowFromOrders: '0x82F9dd7eA821463178A2c7bC4047057Bd338E5e5',
|
|
585
|
+
MidnightPaybackFromOrders: '0x4B0c242195B1C941A2e7a871Bfa242c40dbf032F',
|
|
586
|
+
MidnightSupplyCollateral: '0xC83C7Ca37203FC30636EDcd3Ef127194542504c5',
|
|
587
|
+
MidnightWithdrawCollateral: '0x4fA4DA5fDD813279409B4Bf0Bde5Fe9ca8006A9C',
|
|
588
|
+
MidnightView: '0x3aa272f329E8B562A3bA56Bb6979a44D23A28839',
|
|
579
589
|
},
|
|
580
590
|
[NETWORKS.linea.chainId]: {
|
|
581
591
|
// Basic
|
package/esm/src/index.d.ts
CHANGED
|
@@ -301,10 +301,20 @@ declare const actionAddressesAllChains: {
|
|
|
301
301
|
AaveV4DelegateWithdrawWithSig: string;
|
|
302
302
|
AaveV4DelegateBorrowWithSig: string;
|
|
303
303
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
304
|
+
AaveV4DelegateBorrow: string;
|
|
305
|
+
AaveV4DelegateWithdraw: string;
|
|
306
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
307
|
+
AaveV4SetUserManagers: string;
|
|
304
308
|
AaveV3RatioTrigger?: undefined;
|
|
305
309
|
GasFeeTakerL2?: undefined;
|
|
306
310
|
AaveV3RatioCheck?: undefined;
|
|
307
311
|
MorphoBlueView?: undefined;
|
|
312
|
+
MidnightPaybackDirect?: undefined;
|
|
313
|
+
MidnightBorrowFromOrders?: undefined;
|
|
314
|
+
MidnightPaybackFromOrders?: undefined;
|
|
315
|
+
MidnightSupplyCollateral?: undefined;
|
|
316
|
+
MidnightWithdrawCollateral?: undefined;
|
|
317
|
+
MidnightView?: undefined;
|
|
308
318
|
} | {
|
|
309
319
|
DFSSell: string;
|
|
310
320
|
DFSSellNoFee: string;
|
|
@@ -598,7 +608,17 @@ declare const actionAddressesAllChains: {
|
|
|
598
608
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
599
609
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
600
610
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
611
|
+
AaveV4DelegateBorrow?: undefined;
|
|
612
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
613
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
614
|
+
AaveV4SetUserManagers?: undefined;
|
|
601
615
|
MorphoBlueView?: undefined;
|
|
616
|
+
MidnightPaybackDirect?: undefined;
|
|
617
|
+
MidnightBorrowFromOrders?: undefined;
|
|
618
|
+
MidnightPaybackFromOrders?: undefined;
|
|
619
|
+
MidnightSupplyCollateral?: undefined;
|
|
620
|
+
MidnightWithdrawCollateral?: undefined;
|
|
621
|
+
MidnightView?: undefined;
|
|
602
622
|
} | {
|
|
603
623
|
DFSSell: string;
|
|
604
624
|
DFSSellNoFee: string;
|
|
@@ -892,7 +912,17 @@ declare const actionAddressesAllChains: {
|
|
|
892
912
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
893
913
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
894
914
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
915
|
+
AaveV4DelegateBorrow?: undefined;
|
|
916
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
917
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
918
|
+
AaveV4SetUserManagers?: undefined;
|
|
895
919
|
AaveV3RatioTrigger?: undefined;
|
|
920
|
+
MidnightPaybackDirect?: undefined;
|
|
921
|
+
MidnightBorrowFromOrders?: undefined;
|
|
922
|
+
MidnightPaybackFromOrders?: undefined;
|
|
923
|
+
MidnightSupplyCollateral?: undefined;
|
|
924
|
+
MidnightWithdrawCollateral?: undefined;
|
|
925
|
+
MidnightView?: undefined;
|
|
896
926
|
} | {
|
|
897
927
|
DFSSell: string;
|
|
898
928
|
DFSSellNoFee: string;
|
|
@@ -966,6 +996,12 @@ declare const actionAddressesAllChains: {
|
|
|
966
996
|
SFApproveTokens: string;
|
|
967
997
|
SummerfiUnsub: string;
|
|
968
998
|
SummerfiUnsubV2: string;
|
|
999
|
+
MidnightPaybackDirect: string;
|
|
1000
|
+
MidnightBorrowFromOrders: string;
|
|
1001
|
+
MidnightPaybackFromOrders: string;
|
|
1002
|
+
MidnightSupplyCollateral: string;
|
|
1003
|
+
MidnightWithdrawCollateral: string;
|
|
1004
|
+
MidnightView: string;
|
|
969
1005
|
AutomationV2Unsub?: undefined;
|
|
970
1006
|
SendTokenAndUnwrap?: undefined;
|
|
971
1007
|
SDaiWrap?: undefined;
|
|
@@ -1185,6 +1221,10 @@ declare const actionAddressesAllChains: {
|
|
|
1185
1221
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1186
1222
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1187
1223
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1224
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1225
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1226
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1227
|
+
AaveV4SetUserManagers?: undefined;
|
|
1188
1228
|
AaveV3RatioTrigger?: undefined;
|
|
1189
1229
|
AaveV3RatioCheck?: undefined;
|
|
1190
1230
|
} | {
|
|
@@ -1477,10 +1517,20 @@ declare const actionAddressesAllChains: {
|
|
|
1477
1517
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1478
1518
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1479
1519
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1520
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1521
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1522
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1523
|
+
AaveV4SetUserManagers?: undefined;
|
|
1480
1524
|
AaveV3RatioTrigger?: undefined;
|
|
1481
1525
|
GasFeeTakerL2?: undefined;
|
|
1482
1526
|
AaveV3RatioCheck?: undefined;
|
|
1483
1527
|
MorphoBlueView?: undefined;
|
|
1528
|
+
MidnightPaybackDirect?: undefined;
|
|
1529
|
+
MidnightBorrowFromOrders?: undefined;
|
|
1530
|
+
MidnightPaybackFromOrders?: undefined;
|
|
1531
|
+
MidnightSupplyCollateral?: undefined;
|
|
1532
|
+
MidnightWithdrawCollateral?: undefined;
|
|
1533
|
+
MidnightView?: undefined;
|
|
1484
1534
|
} | {
|
|
1485
1535
|
DFSSell: string;
|
|
1486
1536
|
DFSSellNoFee: string;
|
|
@@ -1771,10 +1821,20 @@ declare const actionAddressesAllChains: {
|
|
|
1771
1821
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1772
1822
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1773
1823
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1824
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1825
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1826
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1827
|
+
AaveV4SetUserManagers?: undefined;
|
|
1774
1828
|
AaveV3RatioTrigger?: undefined;
|
|
1775
1829
|
GasFeeTakerL2?: undefined;
|
|
1776
1830
|
AaveV3RatioCheck?: undefined;
|
|
1777
1831
|
MorphoBlueView?: undefined;
|
|
1832
|
+
MidnightPaybackDirect?: undefined;
|
|
1833
|
+
MidnightBorrowFromOrders?: undefined;
|
|
1834
|
+
MidnightPaybackFromOrders?: undefined;
|
|
1835
|
+
MidnightSupplyCollateral?: undefined;
|
|
1836
|
+
MidnightWithdrawCollateral?: undefined;
|
|
1837
|
+
MidnightView?: undefined;
|
|
1778
1838
|
};
|
|
1779
1839
|
};
|
|
1780
1840
|
declare const actionAddresses: (chainId?: null) => {
|
|
@@ -2067,10 +2127,20 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2067
2127
|
AaveV4DelegateWithdrawWithSig: string;
|
|
2068
2128
|
AaveV4DelegateBorrowWithSig: string;
|
|
2069
2129
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
2130
|
+
AaveV4DelegateBorrow: string;
|
|
2131
|
+
AaveV4DelegateWithdraw: string;
|
|
2132
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
2133
|
+
AaveV4SetUserManagers: string;
|
|
2070
2134
|
AaveV3RatioTrigger?: undefined;
|
|
2071
2135
|
GasFeeTakerL2?: undefined;
|
|
2072
2136
|
AaveV3RatioCheck?: undefined;
|
|
2073
2137
|
MorphoBlueView?: undefined;
|
|
2138
|
+
MidnightPaybackDirect?: undefined;
|
|
2139
|
+
MidnightBorrowFromOrders?: undefined;
|
|
2140
|
+
MidnightPaybackFromOrders?: undefined;
|
|
2141
|
+
MidnightSupplyCollateral?: undefined;
|
|
2142
|
+
MidnightWithdrawCollateral?: undefined;
|
|
2143
|
+
MidnightView?: undefined;
|
|
2074
2144
|
} | {
|
|
2075
2145
|
DFSSell: string;
|
|
2076
2146
|
DFSSellNoFee: string;
|
|
@@ -2364,7 +2434,17 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2364
2434
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2365
2435
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2366
2436
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2437
|
+
AaveV4DelegateBorrow?: undefined;
|
|
2438
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
2439
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
2440
|
+
AaveV4SetUserManagers?: undefined;
|
|
2367
2441
|
MorphoBlueView?: undefined;
|
|
2442
|
+
MidnightPaybackDirect?: undefined;
|
|
2443
|
+
MidnightBorrowFromOrders?: undefined;
|
|
2444
|
+
MidnightPaybackFromOrders?: undefined;
|
|
2445
|
+
MidnightSupplyCollateral?: undefined;
|
|
2446
|
+
MidnightWithdrawCollateral?: undefined;
|
|
2447
|
+
MidnightView?: undefined;
|
|
2368
2448
|
} | {
|
|
2369
2449
|
DFSSell: string;
|
|
2370
2450
|
DFSSellNoFee: string;
|
|
@@ -2658,7 +2738,17 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2658
2738
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2659
2739
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2660
2740
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2741
|
+
AaveV4DelegateBorrow?: undefined;
|
|
2742
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
2743
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
2744
|
+
AaveV4SetUserManagers?: undefined;
|
|
2661
2745
|
AaveV3RatioTrigger?: undefined;
|
|
2746
|
+
MidnightPaybackDirect?: undefined;
|
|
2747
|
+
MidnightBorrowFromOrders?: undefined;
|
|
2748
|
+
MidnightPaybackFromOrders?: undefined;
|
|
2749
|
+
MidnightSupplyCollateral?: undefined;
|
|
2750
|
+
MidnightWithdrawCollateral?: undefined;
|
|
2751
|
+
MidnightView?: undefined;
|
|
2662
2752
|
} | {
|
|
2663
2753
|
DFSSell: string;
|
|
2664
2754
|
DFSSellNoFee: string;
|
|
@@ -2732,6 +2822,12 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2732
2822
|
SFApproveTokens: string;
|
|
2733
2823
|
SummerfiUnsub: string;
|
|
2734
2824
|
SummerfiUnsubV2: string;
|
|
2825
|
+
MidnightPaybackDirect: string;
|
|
2826
|
+
MidnightBorrowFromOrders: string;
|
|
2827
|
+
MidnightPaybackFromOrders: string;
|
|
2828
|
+
MidnightSupplyCollateral: string;
|
|
2829
|
+
MidnightWithdrawCollateral: string;
|
|
2830
|
+
MidnightView: string;
|
|
2735
2831
|
AutomationV2Unsub?: undefined;
|
|
2736
2832
|
SendTokenAndUnwrap?: undefined;
|
|
2737
2833
|
SDaiWrap?: undefined;
|
|
@@ -2951,6 +3047,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2951
3047
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2952
3048
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2953
3049
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
3050
|
+
AaveV4DelegateBorrow?: undefined;
|
|
3051
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
3052
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
3053
|
+
AaveV4SetUserManagers?: undefined;
|
|
2954
3054
|
AaveV3RatioTrigger?: undefined;
|
|
2955
3055
|
AaveV3RatioCheck?: undefined;
|
|
2956
3056
|
} | {
|
|
@@ -3243,10 +3343,20 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3243
3343
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3244
3344
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3245
3345
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
3346
|
+
AaveV4DelegateBorrow?: undefined;
|
|
3347
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
3348
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
3349
|
+
AaveV4SetUserManagers?: undefined;
|
|
3246
3350
|
AaveV3RatioTrigger?: undefined;
|
|
3247
3351
|
GasFeeTakerL2?: undefined;
|
|
3248
3352
|
AaveV3RatioCheck?: undefined;
|
|
3249
3353
|
MorphoBlueView?: undefined;
|
|
3354
|
+
MidnightPaybackDirect?: undefined;
|
|
3355
|
+
MidnightBorrowFromOrders?: undefined;
|
|
3356
|
+
MidnightPaybackFromOrders?: undefined;
|
|
3357
|
+
MidnightSupplyCollateral?: undefined;
|
|
3358
|
+
MidnightWithdrawCollateral?: undefined;
|
|
3359
|
+
MidnightView?: undefined;
|
|
3250
3360
|
} | {
|
|
3251
3361
|
DFSSell: string;
|
|
3252
3362
|
DFSSellNoFee: string;
|
|
@@ -3537,10 +3647,20 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3537
3647
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3538
3648
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3539
3649
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
3650
|
+
AaveV4DelegateBorrow?: undefined;
|
|
3651
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
3652
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
3653
|
+
AaveV4SetUserManagers?: undefined;
|
|
3540
3654
|
AaveV3RatioTrigger?: undefined;
|
|
3541
3655
|
GasFeeTakerL2?: undefined;
|
|
3542
3656
|
AaveV3RatioCheck?: undefined;
|
|
3543
3657
|
MorphoBlueView?: undefined;
|
|
3658
|
+
MidnightPaybackDirect?: undefined;
|
|
3659
|
+
MidnightBorrowFromOrders?: undefined;
|
|
3660
|
+
MidnightPaybackFromOrders?: undefined;
|
|
3661
|
+
MidnightSupplyCollateral?: undefined;
|
|
3662
|
+
MidnightWithdrawCollateral?: undefined;
|
|
3663
|
+
MidnightView?: undefined;
|
|
3544
3664
|
};
|
|
3545
3665
|
declare const otherAddressesAllChains: {
|
|
3546
3666
|
[x: number]: {
|
|
@@ -4070,10 +4190,20 @@ declare const _default: {
|
|
|
4070
4190
|
AaveV4DelegateWithdrawWithSig: string;
|
|
4071
4191
|
AaveV4DelegateBorrowWithSig: string;
|
|
4072
4192
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
4193
|
+
AaveV4DelegateBorrow: string;
|
|
4194
|
+
AaveV4DelegateWithdraw: string;
|
|
4195
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
4196
|
+
AaveV4SetUserManagers: string;
|
|
4073
4197
|
AaveV3RatioTrigger?: undefined;
|
|
4074
4198
|
GasFeeTakerL2?: undefined;
|
|
4075
4199
|
AaveV3RatioCheck?: undefined;
|
|
4076
4200
|
MorphoBlueView?: undefined;
|
|
4201
|
+
MidnightPaybackDirect?: undefined;
|
|
4202
|
+
MidnightBorrowFromOrders?: undefined;
|
|
4203
|
+
MidnightPaybackFromOrders?: undefined;
|
|
4204
|
+
MidnightSupplyCollateral?: undefined;
|
|
4205
|
+
MidnightWithdrawCollateral?: undefined;
|
|
4206
|
+
MidnightView?: undefined;
|
|
4077
4207
|
} | {
|
|
4078
4208
|
DFSSell: string;
|
|
4079
4209
|
DFSSellNoFee: string;
|
|
@@ -4367,7 +4497,17 @@ declare const _default: {
|
|
|
4367
4497
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4368
4498
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4369
4499
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4500
|
+
AaveV4DelegateBorrow?: undefined;
|
|
4501
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
4502
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
4503
|
+
AaveV4SetUserManagers?: undefined;
|
|
4370
4504
|
MorphoBlueView?: undefined;
|
|
4505
|
+
MidnightPaybackDirect?: undefined;
|
|
4506
|
+
MidnightBorrowFromOrders?: undefined;
|
|
4507
|
+
MidnightPaybackFromOrders?: undefined;
|
|
4508
|
+
MidnightSupplyCollateral?: undefined;
|
|
4509
|
+
MidnightWithdrawCollateral?: undefined;
|
|
4510
|
+
MidnightView?: undefined;
|
|
4371
4511
|
} | {
|
|
4372
4512
|
DFSSell: string;
|
|
4373
4513
|
DFSSellNoFee: string;
|
|
@@ -4661,7 +4801,17 @@ declare const _default: {
|
|
|
4661
4801
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4662
4802
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4663
4803
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4804
|
+
AaveV4DelegateBorrow?: undefined;
|
|
4805
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
4806
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
4807
|
+
AaveV4SetUserManagers?: undefined;
|
|
4664
4808
|
AaveV3RatioTrigger?: undefined;
|
|
4809
|
+
MidnightPaybackDirect?: undefined;
|
|
4810
|
+
MidnightBorrowFromOrders?: undefined;
|
|
4811
|
+
MidnightPaybackFromOrders?: undefined;
|
|
4812
|
+
MidnightSupplyCollateral?: undefined;
|
|
4813
|
+
MidnightWithdrawCollateral?: undefined;
|
|
4814
|
+
MidnightView?: undefined;
|
|
4665
4815
|
} | {
|
|
4666
4816
|
DFSSell: string;
|
|
4667
4817
|
DFSSellNoFee: string;
|
|
@@ -4735,6 +4885,12 @@ declare const _default: {
|
|
|
4735
4885
|
SFApproveTokens: string;
|
|
4736
4886
|
SummerfiUnsub: string;
|
|
4737
4887
|
SummerfiUnsubV2: string;
|
|
4888
|
+
MidnightPaybackDirect: string;
|
|
4889
|
+
MidnightBorrowFromOrders: string;
|
|
4890
|
+
MidnightPaybackFromOrders: string;
|
|
4891
|
+
MidnightSupplyCollateral: string;
|
|
4892
|
+
MidnightWithdrawCollateral: string;
|
|
4893
|
+
MidnightView: string;
|
|
4738
4894
|
AutomationV2Unsub?: undefined;
|
|
4739
4895
|
SendTokenAndUnwrap?: undefined;
|
|
4740
4896
|
SDaiWrap?: undefined;
|
|
@@ -4954,6 +5110,10 @@ declare const _default: {
|
|
|
4954
5110
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4955
5111
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4956
5112
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
5113
|
+
AaveV4DelegateBorrow?: undefined;
|
|
5114
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
5115
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
5116
|
+
AaveV4SetUserManagers?: undefined;
|
|
4957
5117
|
AaveV3RatioTrigger?: undefined;
|
|
4958
5118
|
AaveV3RatioCheck?: undefined;
|
|
4959
5119
|
} | {
|
|
@@ -5246,10 +5406,20 @@ declare const _default: {
|
|
|
5246
5406
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5247
5407
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5248
5408
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
5409
|
+
AaveV4DelegateBorrow?: undefined;
|
|
5410
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
5411
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
5412
|
+
AaveV4SetUserManagers?: undefined;
|
|
5249
5413
|
AaveV3RatioTrigger?: undefined;
|
|
5250
5414
|
GasFeeTakerL2?: undefined;
|
|
5251
5415
|
AaveV3RatioCheck?: undefined;
|
|
5252
5416
|
MorphoBlueView?: undefined;
|
|
5417
|
+
MidnightPaybackDirect?: undefined;
|
|
5418
|
+
MidnightBorrowFromOrders?: undefined;
|
|
5419
|
+
MidnightPaybackFromOrders?: undefined;
|
|
5420
|
+
MidnightSupplyCollateral?: undefined;
|
|
5421
|
+
MidnightWithdrawCollateral?: undefined;
|
|
5422
|
+
MidnightView?: undefined;
|
|
5253
5423
|
} | {
|
|
5254
5424
|
DFSSell: string;
|
|
5255
5425
|
DFSSellNoFee: string;
|
|
@@ -5540,10 +5710,20 @@ declare const _default: {
|
|
|
5540
5710
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5541
5711
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5542
5712
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
5713
|
+
AaveV4DelegateBorrow?: undefined;
|
|
5714
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
5715
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
5716
|
+
AaveV4SetUserManagers?: undefined;
|
|
5543
5717
|
AaveV3RatioTrigger?: undefined;
|
|
5544
5718
|
GasFeeTakerL2?: undefined;
|
|
5545
5719
|
AaveV3RatioCheck?: undefined;
|
|
5546
5720
|
MorphoBlueView?: undefined;
|
|
5721
|
+
MidnightPaybackDirect?: undefined;
|
|
5722
|
+
MidnightBorrowFromOrders?: undefined;
|
|
5723
|
+
MidnightPaybackFromOrders?: undefined;
|
|
5724
|
+
MidnightSupplyCollateral?: undefined;
|
|
5725
|
+
MidnightWithdrawCollateral?: undefined;
|
|
5726
|
+
MidnightView?: undefined;
|
|
5547
5727
|
};
|
|
5548
5728
|
actionAddressesAllChains: {
|
|
5549
5729
|
[x: number]: {
|
|
@@ -5836,10 +6016,20 @@ declare const _default: {
|
|
|
5836
6016
|
AaveV4DelegateWithdrawWithSig: string;
|
|
5837
6017
|
AaveV4DelegateBorrowWithSig: string;
|
|
5838
6018
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
6019
|
+
AaveV4DelegateBorrow: string;
|
|
6020
|
+
AaveV4DelegateWithdraw: string;
|
|
6021
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
6022
|
+
AaveV4SetUserManagers: string;
|
|
5839
6023
|
AaveV3RatioTrigger?: undefined;
|
|
5840
6024
|
GasFeeTakerL2?: undefined;
|
|
5841
6025
|
AaveV3RatioCheck?: undefined;
|
|
5842
6026
|
MorphoBlueView?: undefined;
|
|
6027
|
+
MidnightPaybackDirect?: undefined;
|
|
6028
|
+
MidnightBorrowFromOrders?: undefined;
|
|
6029
|
+
MidnightPaybackFromOrders?: undefined;
|
|
6030
|
+
MidnightSupplyCollateral?: undefined;
|
|
6031
|
+
MidnightWithdrawCollateral?: undefined;
|
|
6032
|
+
MidnightView?: undefined;
|
|
5843
6033
|
} | {
|
|
5844
6034
|
DFSSell: string;
|
|
5845
6035
|
DFSSellNoFee: string;
|
|
@@ -6133,7 +6323,17 @@ declare const _default: {
|
|
|
6133
6323
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6134
6324
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6135
6325
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6326
|
+
AaveV4DelegateBorrow?: undefined;
|
|
6327
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
6328
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
6329
|
+
AaveV4SetUserManagers?: undefined;
|
|
6136
6330
|
MorphoBlueView?: undefined;
|
|
6331
|
+
MidnightPaybackDirect?: undefined;
|
|
6332
|
+
MidnightBorrowFromOrders?: undefined;
|
|
6333
|
+
MidnightPaybackFromOrders?: undefined;
|
|
6334
|
+
MidnightSupplyCollateral?: undefined;
|
|
6335
|
+
MidnightWithdrawCollateral?: undefined;
|
|
6336
|
+
MidnightView?: undefined;
|
|
6137
6337
|
} | {
|
|
6138
6338
|
DFSSell: string;
|
|
6139
6339
|
DFSSellNoFee: string;
|
|
@@ -6427,7 +6627,17 @@ declare const _default: {
|
|
|
6427
6627
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6428
6628
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6429
6629
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6630
|
+
AaveV4DelegateBorrow?: undefined;
|
|
6631
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
6632
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
6633
|
+
AaveV4SetUserManagers?: undefined;
|
|
6430
6634
|
AaveV3RatioTrigger?: undefined;
|
|
6635
|
+
MidnightPaybackDirect?: undefined;
|
|
6636
|
+
MidnightBorrowFromOrders?: undefined;
|
|
6637
|
+
MidnightPaybackFromOrders?: undefined;
|
|
6638
|
+
MidnightSupplyCollateral?: undefined;
|
|
6639
|
+
MidnightWithdrawCollateral?: undefined;
|
|
6640
|
+
MidnightView?: undefined;
|
|
6431
6641
|
} | {
|
|
6432
6642
|
DFSSell: string;
|
|
6433
6643
|
DFSSellNoFee: string;
|
|
@@ -6501,6 +6711,12 @@ declare const _default: {
|
|
|
6501
6711
|
SFApproveTokens: string;
|
|
6502
6712
|
SummerfiUnsub: string;
|
|
6503
6713
|
SummerfiUnsubV2: string;
|
|
6714
|
+
MidnightPaybackDirect: string;
|
|
6715
|
+
MidnightBorrowFromOrders: string;
|
|
6716
|
+
MidnightPaybackFromOrders: string;
|
|
6717
|
+
MidnightSupplyCollateral: string;
|
|
6718
|
+
MidnightWithdrawCollateral: string;
|
|
6719
|
+
MidnightView: string;
|
|
6504
6720
|
AutomationV2Unsub?: undefined;
|
|
6505
6721
|
SendTokenAndUnwrap?: undefined;
|
|
6506
6722
|
SDaiWrap?: undefined;
|
|
@@ -6720,6 +6936,10 @@ declare const _default: {
|
|
|
6720
6936
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6721
6937
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6722
6938
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6939
|
+
AaveV4DelegateBorrow?: undefined;
|
|
6940
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
6941
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
6942
|
+
AaveV4SetUserManagers?: undefined;
|
|
6723
6943
|
AaveV3RatioTrigger?: undefined;
|
|
6724
6944
|
AaveV3RatioCheck?: undefined;
|
|
6725
6945
|
} | {
|
|
@@ -7012,10 +7232,20 @@ declare const _default: {
|
|
|
7012
7232
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
7013
7233
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
7014
7234
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
7235
|
+
AaveV4DelegateBorrow?: undefined;
|
|
7236
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
7237
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
7238
|
+
AaveV4SetUserManagers?: undefined;
|
|
7015
7239
|
AaveV3RatioTrigger?: undefined;
|
|
7016
7240
|
GasFeeTakerL2?: undefined;
|
|
7017
7241
|
AaveV3RatioCheck?: undefined;
|
|
7018
7242
|
MorphoBlueView?: undefined;
|
|
7243
|
+
MidnightPaybackDirect?: undefined;
|
|
7244
|
+
MidnightBorrowFromOrders?: undefined;
|
|
7245
|
+
MidnightPaybackFromOrders?: undefined;
|
|
7246
|
+
MidnightSupplyCollateral?: undefined;
|
|
7247
|
+
MidnightWithdrawCollateral?: undefined;
|
|
7248
|
+
MidnightView?: undefined;
|
|
7019
7249
|
} | {
|
|
7020
7250
|
DFSSell: string;
|
|
7021
7251
|
DFSSellNoFee: string;
|
|
@@ -7306,10 +7536,20 @@ declare const _default: {
|
|
|
7306
7536
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
7307
7537
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
7308
7538
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
7539
|
+
AaveV4DelegateBorrow?: undefined;
|
|
7540
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
7541
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
7542
|
+
AaveV4SetUserManagers?: undefined;
|
|
7309
7543
|
AaveV3RatioTrigger?: undefined;
|
|
7310
7544
|
GasFeeTakerL2?: undefined;
|
|
7311
7545
|
AaveV3RatioCheck?: undefined;
|
|
7312
7546
|
MorphoBlueView?: undefined;
|
|
7547
|
+
MidnightPaybackDirect?: undefined;
|
|
7548
|
+
MidnightBorrowFromOrders?: undefined;
|
|
7549
|
+
MidnightPaybackFromOrders?: undefined;
|
|
7550
|
+
MidnightSupplyCollateral?: undefined;
|
|
7551
|
+
MidnightWithdrawCollateral?: undefined;
|
|
7552
|
+
MidnightView?: undefined;
|
|
7313
7553
|
};
|
|
7314
7554
|
};
|
|
7315
7555
|
otherAddresses: (chainId?: null) => {
|
package/package.json
CHANGED
package/src/Action.ts
CHANGED
|
@@ -101,14 +101,30 @@ export class Action {
|
|
|
101
101
|
|
|
102
102
|
_parseParamType(paramType:string | ParamTypes, arg:Args) {
|
|
103
103
|
if (typeof (paramType) === 'string') {
|
|
104
|
-
if (paramType.startsWith('(')) {
|
|
105
|
-
let _paramType = paramType.replace('(', '');
|
|
106
|
-
_paramType = _paramType.replace(')', '');
|
|
107
|
-
return _paramType.split(',');
|
|
108
|
-
}
|
|
109
104
|
if (paramType.endsWith('[]')) {
|
|
110
105
|
return Array.from(Array(arg.length).fill(paramType.replace('[]', '')));
|
|
111
106
|
}
|
|
107
|
+
if (paramType.startsWith('(') || paramType.startsWith('tuple(')) {
|
|
108
|
+
const tupleStart = paramType.indexOf('(');
|
|
109
|
+
const tupleEnd = paramType.lastIndexOf(')');
|
|
110
|
+
const tupleContents = paramType.slice(tupleStart + 1, tupleEnd);
|
|
111
|
+
const tupleTypes = [];
|
|
112
|
+
let currentType = '';
|
|
113
|
+
let nestingDepth = 0;
|
|
114
|
+
|
|
115
|
+
for (const character of tupleContents) {
|
|
116
|
+
if (character === ',' && nestingDepth === 0) {
|
|
117
|
+
tupleTypes.push(currentType);
|
|
118
|
+
currentType = '';
|
|
119
|
+
} else {
|
|
120
|
+
currentType += character;
|
|
121
|
+
if (character === '(') nestingDepth += 1;
|
|
122
|
+
if (character === ')') nestingDepth -= 1;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
tupleTypes.push(currentType);
|
|
126
|
+
return tupleTypes;
|
|
127
|
+
}
|
|
112
128
|
}
|
|
113
129
|
return paramType;
|
|
114
130
|
}
|