@defisaver/sdk 1.3.33 → 1.3.35
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/AccessLists/UtilsAccessLists.ts +0 -4
- package/esm/AccessLists/UtilsAccessLists.js +0 -3
- package/esm/src/DfsWeb3.js +10 -2
- package/esm/src/abis/DFSProxyRegistry.json +250 -42
- 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/addresses.d.ts +24 -0
- package/esm/src/addresses.js +9 -5
- package/esm/src/index.d.ts +96 -0
- package/package.json +1 -1
- package/src/DfsWeb3.ts +8 -2
- package/src/abis/DFSProxyRegistry.json +251 -43
- 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/addresses.ts +9 -5
- package/test/DfsWeb3.js +4 -2
- package/test/accessLists/MockAccessLists.json +0 -13
- package/umd/index.js +246 -109
package/esm/src/addresses.d.ts
CHANGED
|
@@ -290,6 +290,10 @@ 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
|
MidnightPaybackDirect: string;
|
|
294
298
|
MidnightBorrowFromOrders: string;
|
|
295
299
|
MidnightPaybackFromOrders: string;
|
|
@@ -593,6 +597,10 @@ export declare const actionAddresses: {
|
|
|
593
597
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
594
598
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
595
599
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
600
|
+
AaveV4DelegateBorrow?: undefined;
|
|
601
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
602
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
603
|
+
AaveV4SetUserManagers?: undefined;
|
|
596
604
|
MidnightPaybackDirect?: undefined;
|
|
597
605
|
MidnightBorrowFromOrders?: undefined;
|
|
598
606
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -893,6 +901,10 @@ export declare const actionAddresses: {
|
|
|
893
901
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
894
902
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
895
903
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
904
|
+
AaveV4DelegateBorrow?: undefined;
|
|
905
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
906
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
907
|
+
AaveV4SetUserManagers?: undefined;
|
|
896
908
|
MidnightPaybackDirect?: undefined;
|
|
897
909
|
MidnightBorrowFromOrders?: undefined;
|
|
898
910
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -1198,6 +1210,10 @@ export declare const actionAddresses: {
|
|
|
1198
1210
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1199
1211
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1200
1212
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1213
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1214
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1215
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1216
|
+
AaveV4SetUserManagers?: undefined;
|
|
1201
1217
|
AaveV3RatioTrigger?: undefined;
|
|
1202
1218
|
AaveV3RatioCheck?: undefined;
|
|
1203
1219
|
} | {
|
|
@@ -1490,6 +1506,10 @@ export declare const actionAddresses: {
|
|
|
1490
1506
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1491
1507
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1492
1508
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1509
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1510
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1511
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1512
|
+
AaveV4SetUserManagers?: undefined;
|
|
1493
1513
|
MidnightPaybackDirect?: undefined;
|
|
1494
1514
|
MidnightBorrowFromOrders?: undefined;
|
|
1495
1515
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -1790,6 +1810,10 @@ export declare const actionAddresses: {
|
|
|
1790
1810
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1791
1811
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1792
1812
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1813
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1814
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1815
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1816
|
+
AaveV4SetUserManagers?: undefined;
|
|
1793
1817
|
MidnightPaybackDirect?: undefined;
|
|
1794
1818
|
MidnightBorrowFromOrders?: undefined;
|
|
1795
1819
|
MidnightPaybackFromOrders?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -9,7 +9,7 @@ export const actionAddresses = {
|
|
|
9
9
|
SendTokens: '0x7d05c0ABeF6d91300a237026507c4a2631ddAdEa',
|
|
10
10
|
SumInputs: '0x70907d840aBBc984Fd949311d2f005e6aC4a4D7a',
|
|
11
11
|
SubInputs: '0xe1804b756188F63f723d2FECc02988D0Cc1aB823',
|
|
12
|
-
ChangeProxyOwner: '
|
|
12
|
+
ChangeProxyOwner: '0x1cc4A7f6B17a4C900F2afe4A0718A73714AC33f2',
|
|
13
13
|
TokenBalance: '0xa92B177950F1460119940436515FD857C24494BC',
|
|
14
14
|
AutomationV2Unsub: '0xe35Fb12fE9796847751076aCf5ee7d124108612C',
|
|
15
15
|
SendTokenAndUnwrap: '0x4155537e6933E59a62deb68f6ad93d237d07242a',
|
|
@@ -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
|
MidnightPaybackDirect: '0x2911FFF5C567Ac71d653AAf5919410A3e078D186',
|
|
336
340
|
MidnightBorrowFromOrders: '0xB37fB30b93e1D5b0E870312997426c4a04Cff8Ce',
|
|
337
341
|
MidnightPaybackFromOrders: '0x55cd72fB914A60587a88962Efa680117aE900729',
|
|
@@ -357,7 +361,7 @@ export const actionAddresses = {
|
|
|
357
361
|
CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
|
|
358
362
|
TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
|
|
359
363
|
TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
|
|
360
|
-
ChangeProxyOwner: '
|
|
364
|
+
ChangeProxyOwner: '0xf573585C38d947D8A70F7F6c83D060F1F89855AE',
|
|
361
365
|
PermitToken: '0xE70c05125E7Cfe929f7ccC1baD348004aCF0f0d6',
|
|
362
366
|
HandleAuth: '0x7f143607250ee51e4dce31254c8ad33ec4c2dad5',
|
|
363
367
|
MerklClaim: '0xa7574a72D93D236040648b1dc80ddA3E7A4de40F',
|
|
@@ -418,7 +422,7 @@ export const actionAddresses = {
|
|
|
418
422
|
CreateSub: '0xbFD17a0a844b75976585a382a5BcCaFC9EAd731f',
|
|
419
423
|
TokenBalance: '0x483B903E702F60698Dd8124558C6199922737f1F',
|
|
420
424
|
TokenizedVaultAdapter: '0xD05C512bDFf6D3eAc5328807B3bC075F35271167',
|
|
421
|
-
ChangeProxyOwner: '
|
|
425
|
+
ChangeProxyOwner: '0xacf5bAD9543A98EcAcC620cF6CB989Ec88f1650D',
|
|
422
426
|
PermitToken: '0x2E5E7a691092C158bb8341b936eF24FCcA6c0e00',
|
|
423
427
|
HandleAuth: '0xbfcab1339e1a56a0a836cbca6457eaf71f148fcb',
|
|
424
428
|
UpdateSub: '0x3511f444362F8cBd185DbF21C9488D16c1306461',
|
|
@@ -515,7 +519,7 @@ export const actionAddresses = {
|
|
|
515
519
|
SumInputs: '0xC856ef8fe425B2EFe373e0e7038fAFF4a4f764fE',
|
|
516
520
|
SubInputs: '0xd244B1991Fcb8FC0f32FA55bce37714fc5929B95',
|
|
517
521
|
TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
|
|
518
|
-
ChangeProxyOwner: '
|
|
522
|
+
ChangeProxyOwner: '0x7b55d25BfF49Fd62563823570f47E9a35AA39541',
|
|
519
523
|
PermitToken: '0x57c8ae94a5A11dA33e0518054102488b604628D0',
|
|
520
524
|
HandleAuth: '0x18a90e6db79199ace00140631ef931e0bd97837c',
|
|
521
525
|
ToggleSub: '0x5F16C0a08d52b67fc73706c494F7535Dd3382b58',
|
|
@@ -679,7 +683,7 @@ export const otherAddresses = {
|
|
|
679
683
|
[NETWORKS.ethereum.chainId]: {
|
|
680
684
|
RecipeExecutor: '0xbc3Fc959FeF3F12a41738f406c02198cdeE7481F',
|
|
681
685
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
682
|
-
DFSProxyRegistry: '
|
|
686
|
+
DFSProxyRegistry: '0x0cCB1F91beb8590949880D2a61C26C11d6280319',
|
|
683
687
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|
|
684
688
|
SFProxyEntryPoint: '0xAa15ca459659F35B1064EC546A44d962d54bA89e',
|
|
685
689
|
McdCdpManager: '0x5ef30b9986345249bc32d8928b7ee64de9435e39',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -301,6 +301,10 @@ 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
|
MidnightPaybackDirect: string;
|
|
305
309
|
MidnightBorrowFromOrders: string;
|
|
306
310
|
MidnightPaybackFromOrders: string;
|
|
@@ -604,6 +608,10 @@ declare const actionAddressesAllChains: {
|
|
|
604
608
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
605
609
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
606
610
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
611
|
+
AaveV4DelegateBorrow?: undefined;
|
|
612
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
613
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
614
|
+
AaveV4SetUserManagers?: undefined;
|
|
607
615
|
MidnightPaybackDirect?: undefined;
|
|
608
616
|
MidnightBorrowFromOrders?: undefined;
|
|
609
617
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -904,6 +912,10 @@ declare const actionAddressesAllChains: {
|
|
|
904
912
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
905
913
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
906
914
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
915
|
+
AaveV4DelegateBorrow?: undefined;
|
|
916
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
917
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
918
|
+
AaveV4SetUserManagers?: undefined;
|
|
907
919
|
MidnightPaybackDirect?: undefined;
|
|
908
920
|
MidnightBorrowFromOrders?: undefined;
|
|
909
921
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -1209,6 +1221,10 @@ declare const actionAddressesAllChains: {
|
|
|
1209
1221
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1210
1222
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1211
1223
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1224
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1225
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1226
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1227
|
+
AaveV4SetUserManagers?: undefined;
|
|
1212
1228
|
AaveV3RatioTrigger?: undefined;
|
|
1213
1229
|
AaveV3RatioCheck?: undefined;
|
|
1214
1230
|
} | {
|
|
@@ -1501,6 +1517,10 @@ declare const actionAddressesAllChains: {
|
|
|
1501
1517
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1502
1518
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1503
1519
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1520
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1521
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1522
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1523
|
+
AaveV4SetUserManagers?: undefined;
|
|
1504
1524
|
MidnightPaybackDirect?: undefined;
|
|
1505
1525
|
MidnightBorrowFromOrders?: undefined;
|
|
1506
1526
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -1801,6 +1821,10 @@ declare const actionAddressesAllChains: {
|
|
|
1801
1821
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1802
1822
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1803
1823
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1824
|
+
AaveV4DelegateBorrow?: undefined;
|
|
1825
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
1826
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
1827
|
+
AaveV4SetUserManagers?: undefined;
|
|
1804
1828
|
MidnightPaybackDirect?: undefined;
|
|
1805
1829
|
MidnightBorrowFromOrders?: undefined;
|
|
1806
1830
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -2103,6 +2127,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2103
2127
|
AaveV4DelegateWithdrawWithSig: string;
|
|
2104
2128
|
AaveV4DelegateBorrowWithSig: string;
|
|
2105
2129
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
2130
|
+
AaveV4DelegateBorrow: string;
|
|
2131
|
+
AaveV4DelegateWithdraw: string;
|
|
2132
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
2133
|
+
AaveV4SetUserManagers: string;
|
|
2106
2134
|
MidnightPaybackDirect: string;
|
|
2107
2135
|
MidnightBorrowFromOrders: string;
|
|
2108
2136
|
MidnightPaybackFromOrders: string;
|
|
@@ -2406,6 +2434,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2406
2434
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2407
2435
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2408
2436
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2437
|
+
AaveV4DelegateBorrow?: undefined;
|
|
2438
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
2439
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
2440
|
+
AaveV4SetUserManagers?: undefined;
|
|
2409
2441
|
MidnightPaybackDirect?: undefined;
|
|
2410
2442
|
MidnightBorrowFromOrders?: undefined;
|
|
2411
2443
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -2706,6 +2738,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2706
2738
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2707
2739
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2708
2740
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2741
|
+
AaveV4DelegateBorrow?: undefined;
|
|
2742
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
2743
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
2744
|
+
AaveV4SetUserManagers?: undefined;
|
|
2709
2745
|
MidnightPaybackDirect?: undefined;
|
|
2710
2746
|
MidnightBorrowFromOrders?: undefined;
|
|
2711
2747
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -3011,6 +3047,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3011
3047
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3012
3048
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3013
3049
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
3050
|
+
AaveV4DelegateBorrow?: undefined;
|
|
3051
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
3052
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
3053
|
+
AaveV4SetUserManagers?: undefined;
|
|
3014
3054
|
AaveV3RatioTrigger?: undefined;
|
|
3015
3055
|
AaveV3RatioCheck?: undefined;
|
|
3016
3056
|
} | {
|
|
@@ -3303,6 +3343,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3303
3343
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3304
3344
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3305
3345
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
3346
|
+
AaveV4DelegateBorrow?: undefined;
|
|
3347
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
3348
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
3349
|
+
AaveV4SetUserManagers?: undefined;
|
|
3306
3350
|
MidnightPaybackDirect?: undefined;
|
|
3307
3351
|
MidnightBorrowFromOrders?: undefined;
|
|
3308
3352
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -3603,6 +3647,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3603
3647
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3604
3648
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3605
3649
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
3650
|
+
AaveV4DelegateBorrow?: undefined;
|
|
3651
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
3652
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
3653
|
+
AaveV4SetUserManagers?: undefined;
|
|
3606
3654
|
MidnightPaybackDirect?: undefined;
|
|
3607
3655
|
MidnightBorrowFromOrders?: undefined;
|
|
3608
3656
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -4142,6 +4190,10 @@ declare const _default: {
|
|
|
4142
4190
|
AaveV4DelegateWithdrawWithSig: string;
|
|
4143
4191
|
AaveV4DelegateBorrowWithSig: string;
|
|
4144
4192
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
4193
|
+
AaveV4DelegateBorrow: string;
|
|
4194
|
+
AaveV4DelegateWithdraw: string;
|
|
4195
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
4196
|
+
AaveV4SetUserManagers: string;
|
|
4145
4197
|
MidnightPaybackDirect: string;
|
|
4146
4198
|
MidnightBorrowFromOrders: string;
|
|
4147
4199
|
MidnightPaybackFromOrders: string;
|
|
@@ -4445,6 +4497,10 @@ declare const _default: {
|
|
|
4445
4497
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4446
4498
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4447
4499
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4500
|
+
AaveV4DelegateBorrow?: undefined;
|
|
4501
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
4502
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
4503
|
+
AaveV4SetUserManagers?: undefined;
|
|
4448
4504
|
MidnightPaybackDirect?: undefined;
|
|
4449
4505
|
MidnightBorrowFromOrders?: undefined;
|
|
4450
4506
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -4745,6 +4801,10 @@ declare const _default: {
|
|
|
4745
4801
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4746
4802
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4747
4803
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4804
|
+
AaveV4DelegateBorrow?: undefined;
|
|
4805
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
4806
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
4807
|
+
AaveV4SetUserManagers?: undefined;
|
|
4748
4808
|
MidnightPaybackDirect?: undefined;
|
|
4749
4809
|
MidnightBorrowFromOrders?: undefined;
|
|
4750
4810
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -5050,6 +5110,10 @@ declare const _default: {
|
|
|
5050
5110
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5051
5111
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5052
5112
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
5113
|
+
AaveV4DelegateBorrow?: undefined;
|
|
5114
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
5115
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
5116
|
+
AaveV4SetUserManagers?: undefined;
|
|
5053
5117
|
AaveV3RatioTrigger?: undefined;
|
|
5054
5118
|
AaveV3RatioCheck?: undefined;
|
|
5055
5119
|
} | {
|
|
@@ -5342,6 +5406,10 @@ declare const _default: {
|
|
|
5342
5406
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5343
5407
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5344
5408
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
5409
|
+
AaveV4DelegateBorrow?: undefined;
|
|
5410
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
5411
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
5412
|
+
AaveV4SetUserManagers?: undefined;
|
|
5345
5413
|
MidnightPaybackDirect?: undefined;
|
|
5346
5414
|
MidnightBorrowFromOrders?: undefined;
|
|
5347
5415
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -5642,6 +5710,10 @@ declare const _default: {
|
|
|
5642
5710
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5643
5711
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5644
5712
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
5713
|
+
AaveV4DelegateBorrow?: undefined;
|
|
5714
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
5715
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
5716
|
+
AaveV4SetUserManagers?: undefined;
|
|
5645
5717
|
MidnightPaybackDirect?: undefined;
|
|
5646
5718
|
MidnightBorrowFromOrders?: undefined;
|
|
5647
5719
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -5944,6 +6016,10 @@ declare const _default: {
|
|
|
5944
6016
|
AaveV4DelegateWithdrawWithSig: string;
|
|
5945
6017
|
AaveV4DelegateBorrowWithSig: string;
|
|
5946
6018
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
6019
|
+
AaveV4DelegateBorrow: string;
|
|
6020
|
+
AaveV4DelegateWithdraw: string;
|
|
6021
|
+
AaveV4DelegateSetUsingAsCollateral: string;
|
|
6022
|
+
AaveV4SetUserManagers: string;
|
|
5947
6023
|
MidnightPaybackDirect: string;
|
|
5948
6024
|
MidnightBorrowFromOrders: string;
|
|
5949
6025
|
MidnightPaybackFromOrders: string;
|
|
@@ -6247,6 +6323,10 @@ declare const _default: {
|
|
|
6247
6323
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6248
6324
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6249
6325
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6326
|
+
AaveV4DelegateBorrow?: undefined;
|
|
6327
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
6328
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
6329
|
+
AaveV4SetUserManagers?: undefined;
|
|
6250
6330
|
MidnightPaybackDirect?: undefined;
|
|
6251
6331
|
MidnightBorrowFromOrders?: undefined;
|
|
6252
6332
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -6547,6 +6627,10 @@ declare const _default: {
|
|
|
6547
6627
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6548
6628
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6549
6629
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6630
|
+
AaveV4DelegateBorrow?: undefined;
|
|
6631
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
6632
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
6633
|
+
AaveV4SetUserManagers?: undefined;
|
|
6550
6634
|
MidnightPaybackDirect?: undefined;
|
|
6551
6635
|
MidnightBorrowFromOrders?: undefined;
|
|
6552
6636
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -6852,6 +6936,10 @@ declare const _default: {
|
|
|
6852
6936
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6853
6937
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6854
6938
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6939
|
+
AaveV4DelegateBorrow?: undefined;
|
|
6940
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
6941
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
6942
|
+
AaveV4SetUserManagers?: undefined;
|
|
6855
6943
|
AaveV3RatioTrigger?: undefined;
|
|
6856
6944
|
AaveV3RatioCheck?: undefined;
|
|
6857
6945
|
} | {
|
|
@@ -7144,6 +7232,10 @@ declare const _default: {
|
|
|
7144
7232
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
7145
7233
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
7146
7234
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
7235
|
+
AaveV4DelegateBorrow?: undefined;
|
|
7236
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
7237
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
7238
|
+
AaveV4SetUserManagers?: undefined;
|
|
7147
7239
|
MidnightPaybackDirect?: undefined;
|
|
7148
7240
|
MidnightBorrowFromOrders?: undefined;
|
|
7149
7241
|
MidnightPaybackFromOrders?: undefined;
|
|
@@ -7444,6 +7536,10 @@ declare const _default: {
|
|
|
7444
7536
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
7445
7537
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
7446
7538
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
7539
|
+
AaveV4DelegateBorrow?: undefined;
|
|
7540
|
+
AaveV4DelegateWithdraw?: undefined;
|
|
7541
|
+
AaveV4DelegateSetUsingAsCollateral?: undefined;
|
|
7542
|
+
AaveV4SetUserManagers?: undefined;
|
|
7447
7543
|
MidnightPaybackDirect?: undefined;
|
|
7448
7544
|
MidnightBorrowFromOrders?: undefined;
|
|
7449
7545
|
MidnightPaybackFromOrders?: undefined;
|
package/package.json
CHANGED
package/src/DfsWeb3.ts
CHANGED
|
@@ -47,8 +47,14 @@ export class DfsWeb3 {
|
|
|
47
47
|
const DFSPRoxyRegistyAbiItems : AbiItem[] = DFSPRoxyRegistyAbi.map(item => ({ ...item, stateMutability: item.stateMutability as StateMutabilityType, type: item.type as AbiType }));
|
|
48
48
|
const dfsRegistry = new this.web3.eth.Contract(DFSPRoxyRegistyAbiItems, getAddr('DFSProxyRegistry', CONFIG.chainId));
|
|
49
49
|
const proxies = await dfsRegistry.methods.getAllProxies(this.account).call();
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
const mcdProxy = proxies.mcdProxy ?? proxies[0];
|
|
51
|
+
const additionalProxies = proxies.validAdditionalProxies ?? proxies[1] ?? [];
|
|
52
|
+
// DFSProxyRegistryV2 only returns mcdProxy when Maker registry still matches current owner.
|
|
53
|
+
// Ownership-transferred wallets show up in validAdditionalProxies instead.
|
|
54
|
+
if (mcdProxy && mcdProxy !== '0x0000000000000000000000000000000000000000') {
|
|
55
|
+
this.proxy = mcdProxy;
|
|
56
|
+
} else if (additionalProxies.length > 0) {
|
|
57
|
+
this.proxy = additionalProxies[0];
|
|
52
58
|
}
|
|
53
59
|
this.accountReady = true;
|
|
54
60
|
}
|