@defisaver/sdk 1.0.9 → 1.0.10
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.d.ts +2 -2
- package/esm/src/addresses.d.ts +14 -11
- package/esm/src/addresses.js +12 -0
- package/esm/src/index.d.ts +56 -44
- package/esm/src/types.d.ts +18 -18
- package/package.json +1 -1
- package/src/addresses.ts +13 -0
- package/umd/index.js +33 -59
- package/yarn-error.log +0 -3976
package/esm/src/Action.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccessListItem, EthAddress } from './types';
|
|
2
|
-
type ParamTypes = Array<string | Array<any>>;
|
|
3
|
-
type Args = Array<any>;
|
|
2
|
+
declare type ParamTypes = Array<string | Array<any>>;
|
|
3
|
+
declare type Args = Array<any>;
|
|
4
4
|
/**
|
|
5
5
|
* Single action that can be executed directly, or combined into a set (ie. supply a vault)
|
|
6
6
|
*
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -37,6 +37,16 @@ export declare const actionAddresses: {
|
|
|
37
37
|
AaveSupply: string;
|
|
38
38
|
AaveWithdraw: string;
|
|
39
39
|
AaveCollateralSwitch: string;
|
|
40
|
+
AaveV3Withdraw: string;
|
|
41
|
+
AaveV3SwapBorrowRateMode: string;
|
|
42
|
+
AaveV3Supply: string;
|
|
43
|
+
AaveV3SetEMode: string;
|
|
44
|
+
AaveV3Payback: string;
|
|
45
|
+
AaveV3CollateralSwitch: string;
|
|
46
|
+
AaveV3ClaimRewards: string;
|
|
47
|
+
AaveV3Borrow: string;
|
|
48
|
+
AaveV3ATokenPayback: string;
|
|
49
|
+
AaveV3View: string;
|
|
40
50
|
CompBorrow: string;
|
|
41
51
|
CompClaim: string;
|
|
42
52
|
CompPayback: string;
|
|
@@ -45,6 +55,7 @@ export declare const actionAddresses: {
|
|
|
45
55
|
CompGetDebt: string;
|
|
46
56
|
CompCollateralSwitch: string;
|
|
47
57
|
FLAaveV2: string;
|
|
58
|
+
FLAaveV3: string;
|
|
48
59
|
FLDyDx: string;
|
|
49
60
|
FLMaker: string;
|
|
50
61
|
FLBalancer: string;
|
|
@@ -112,16 +123,6 @@ export declare const actionAddresses: {
|
|
|
112
123
|
CompV3Supply: string;
|
|
113
124
|
CompV3Transfer: string;
|
|
114
125
|
CompV3Withdraw: string;
|
|
115
|
-
AaveV3ATokenPayback?: undefined;
|
|
116
|
-
AaveV3Borrow?: undefined;
|
|
117
|
-
AaveV3CollateralSwitch?: undefined;
|
|
118
|
-
AaveV3Payback?: undefined;
|
|
119
|
-
AaveV3SetEMode?: undefined;
|
|
120
|
-
AaveV3Supply?: undefined;
|
|
121
|
-
AaveV3SwapBorrowRateMode?: undefined;
|
|
122
|
-
AaveV3Withdraw?: undefined;
|
|
123
|
-
AaveV3ClaimRewards?: undefined;
|
|
124
|
-
FLAaveV3?: undefined;
|
|
125
126
|
AaveV3RatioTrigger?: undefined;
|
|
126
127
|
GasFeeTakerL2?: undefined;
|
|
127
128
|
AaveV3RatioCheck?: undefined;
|
|
@@ -182,6 +183,7 @@ export declare const actionAddresses: {
|
|
|
182
183
|
AaveSupply?: undefined;
|
|
183
184
|
AaveWithdraw?: undefined;
|
|
184
185
|
AaveCollateralSwitch?: undefined;
|
|
186
|
+
AaveV3View?: undefined;
|
|
185
187
|
CompBorrow?: undefined;
|
|
186
188
|
CompClaim?: undefined;
|
|
187
189
|
CompPayback?: undefined;
|
|
@@ -305,6 +307,8 @@ export declare const actionAddresses: {
|
|
|
305
307
|
AaveSupply?: undefined;
|
|
306
308
|
AaveWithdraw?: undefined;
|
|
307
309
|
AaveCollateralSwitch?: undefined;
|
|
310
|
+
AaveV3ClaimRewards?: undefined;
|
|
311
|
+
AaveV3View?: undefined;
|
|
308
312
|
CompBorrow?: undefined;
|
|
309
313
|
CompClaim?: undefined;
|
|
310
314
|
CompPayback?: undefined;
|
|
@@ -373,7 +377,6 @@ export declare const actionAddresses: {
|
|
|
373
377
|
CompV3Supply?: undefined;
|
|
374
378
|
CompV3Transfer?: undefined;
|
|
375
379
|
CompV3Withdraw?: undefined;
|
|
376
|
-
AaveV3ClaimRewards?: undefined;
|
|
377
380
|
AaveV3RatioTrigger?: undefined;
|
|
378
381
|
};
|
|
379
382
|
};
|
package/esm/src/addresses.js
CHANGED
|
@@ -43,6 +43,17 @@ export const actionAddresses = {
|
|
|
43
43
|
AaveSupply: '0xEbB200a529058B561B42Eab510DA157a63243CEc',
|
|
44
44
|
AaveWithdraw: '0x754C58fA92246414a448c1ed44ea3D1AD446d482',
|
|
45
45
|
AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
|
|
46
|
+
// aave v3
|
|
47
|
+
AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
|
|
48
|
+
AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
|
|
49
|
+
AaveV3Supply: '0x2d10281757ca0a716311A6C5eb456A098cD14Cd7',
|
|
50
|
+
AaveV3SetEMode: '0xBe7F735d7955e0461579E34266f41F928AE06D78',
|
|
51
|
+
AaveV3Payback: '0xe29265217D65F5a2ae41972E09C13E107D049004',
|
|
52
|
+
AaveV3CollateralSwitch: '0x54A4d6cB567B2C6CDe4687c361b24fd912695DAb',
|
|
53
|
+
AaveV3ClaimRewards: '0x998A2E9aaE03c11b7A9863C1F59c42A21fcf47D0',
|
|
54
|
+
AaveV3Borrow: '0x7079ba1Bd00EeFCD2a260BbD6D088230505e3858',
|
|
55
|
+
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
56
|
+
AaveV3View: '0x9ECB0645b357fDD7B92789B91595160862Bd45d0',
|
|
46
57
|
// compound
|
|
47
58
|
CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
|
|
48
59
|
CompClaim: '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
|
|
@@ -53,6 +64,7 @@ export const actionAddresses = {
|
|
|
53
64
|
CompCollateralSwitch: '0xC3d89139508A3883775D3d1E62E2A0fea363b448',
|
|
54
65
|
// flashloan
|
|
55
66
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
67
|
+
FLAaveV3: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
56
68
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
57
69
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
58
70
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -48,6 +48,16 @@ declare const actionAddressesAllChains: {
|
|
|
48
48
|
AaveSupply: string;
|
|
49
49
|
AaveWithdraw: string;
|
|
50
50
|
AaveCollateralSwitch: string;
|
|
51
|
+
AaveV3Withdraw: string;
|
|
52
|
+
AaveV3SwapBorrowRateMode: string;
|
|
53
|
+
AaveV3Supply: string;
|
|
54
|
+
AaveV3SetEMode: string;
|
|
55
|
+
AaveV3Payback: string;
|
|
56
|
+
AaveV3CollateralSwitch: string;
|
|
57
|
+
AaveV3ClaimRewards: string;
|
|
58
|
+
AaveV3Borrow: string;
|
|
59
|
+
AaveV3ATokenPayback: string;
|
|
60
|
+
AaveV3View: string;
|
|
51
61
|
CompBorrow: string;
|
|
52
62
|
CompClaim: string;
|
|
53
63
|
CompPayback: string;
|
|
@@ -56,6 +66,7 @@ declare const actionAddressesAllChains: {
|
|
|
56
66
|
CompGetDebt: string;
|
|
57
67
|
CompCollateralSwitch: string;
|
|
58
68
|
FLAaveV2: string;
|
|
69
|
+
FLAaveV3: string;
|
|
59
70
|
FLDyDx: string;
|
|
60
71
|
FLMaker: string;
|
|
61
72
|
FLBalancer: string;
|
|
@@ -123,16 +134,6 @@ declare const actionAddressesAllChains: {
|
|
|
123
134
|
CompV3Supply: string;
|
|
124
135
|
CompV3Transfer: string;
|
|
125
136
|
CompV3Withdraw: string;
|
|
126
|
-
AaveV3ATokenPayback?: undefined;
|
|
127
|
-
AaveV3Borrow?: undefined;
|
|
128
|
-
AaveV3CollateralSwitch?: undefined;
|
|
129
|
-
AaveV3Payback?: undefined;
|
|
130
|
-
AaveV3SetEMode?: undefined;
|
|
131
|
-
AaveV3Supply?: undefined;
|
|
132
|
-
AaveV3SwapBorrowRateMode?: undefined;
|
|
133
|
-
AaveV3Withdraw?: undefined;
|
|
134
|
-
AaveV3ClaimRewards?: undefined;
|
|
135
|
-
FLAaveV3?: undefined;
|
|
136
137
|
AaveV3RatioTrigger?: undefined;
|
|
137
138
|
GasFeeTakerL2?: undefined;
|
|
138
139
|
AaveV3RatioCheck?: undefined;
|
|
@@ -193,6 +194,7 @@ declare const actionAddressesAllChains: {
|
|
|
193
194
|
AaveSupply?: undefined;
|
|
194
195
|
AaveWithdraw?: undefined;
|
|
195
196
|
AaveCollateralSwitch?: undefined;
|
|
197
|
+
AaveV3View?: undefined;
|
|
196
198
|
CompBorrow?: undefined;
|
|
197
199
|
CompClaim?: undefined;
|
|
198
200
|
CompPayback?: undefined;
|
|
@@ -316,6 +318,8 @@ declare const actionAddressesAllChains: {
|
|
|
316
318
|
AaveSupply?: undefined;
|
|
317
319
|
AaveWithdraw?: undefined;
|
|
318
320
|
AaveCollateralSwitch?: undefined;
|
|
321
|
+
AaveV3ClaimRewards?: undefined;
|
|
322
|
+
AaveV3View?: undefined;
|
|
319
323
|
CompBorrow?: undefined;
|
|
320
324
|
CompClaim?: undefined;
|
|
321
325
|
CompPayback?: undefined;
|
|
@@ -384,7 +388,6 @@ declare const actionAddressesAllChains: {
|
|
|
384
388
|
CompV3Supply?: undefined;
|
|
385
389
|
CompV3Transfer?: undefined;
|
|
386
390
|
CompV3Withdraw?: undefined;
|
|
387
|
-
AaveV3ClaimRewards?: undefined;
|
|
388
391
|
AaveV3RatioTrigger?: undefined;
|
|
389
392
|
};
|
|
390
393
|
};
|
|
@@ -425,6 +428,16 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
425
428
|
AaveSupply: string;
|
|
426
429
|
AaveWithdraw: string;
|
|
427
430
|
AaveCollateralSwitch: string;
|
|
431
|
+
AaveV3Withdraw: string;
|
|
432
|
+
AaveV3SwapBorrowRateMode: string;
|
|
433
|
+
AaveV3Supply: string;
|
|
434
|
+
AaveV3SetEMode: string;
|
|
435
|
+
AaveV3Payback: string;
|
|
436
|
+
AaveV3CollateralSwitch: string;
|
|
437
|
+
AaveV3ClaimRewards: string;
|
|
438
|
+
AaveV3Borrow: string;
|
|
439
|
+
AaveV3ATokenPayback: string;
|
|
440
|
+
AaveV3View: string;
|
|
428
441
|
CompBorrow: string;
|
|
429
442
|
CompClaim: string;
|
|
430
443
|
CompPayback: string;
|
|
@@ -433,6 +446,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
433
446
|
CompGetDebt: string;
|
|
434
447
|
CompCollateralSwitch: string;
|
|
435
448
|
FLAaveV2: string;
|
|
449
|
+
FLAaveV3: string;
|
|
436
450
|
FLDyDx: string;
|
|
437
451
|
FLMaker: string;
|
|
438
452
|
FLBalancer: string;
|
|
@@ -500,16 +514,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
500
514
|
CompV3Supply: string;
|
|
501
515
|
CompV3Transfer: string;
|
|
502
516
|
CompV3Withdraw: string;
|
|
503
|
-
AaveV3ATokenPayback?: undefined;
|
|
504
|
-
AaveV3Borrow?: undefined;
|
|
505
|
-
AaveV3CollateralSwitch?: undefined;
|
|
506
|
-
AaveV3Payback?: undefined;
|
|
507
|
-
AaveV3SetEMode?: undefined;
|
|
508
|
-
AaveV3Supply?: undefined;
|
|
509
|
-
AaveV3SwapBorrowRateMode?: undefined;
|
|
510
|
-
AaveV3Withdraw?: undefined;
|
|
511
|
-
AaveV3ClaimRewards?: undefined;
|
|
512
|
-
FLAaveV3?: undefined;
|
|
513
517
|
AaveV3RatioTrigger?: undefined;
|
|
514
518
|
GasFeeTakerL2?: undefined;
|
|
515
519
|
AaveV3RatioCheck?: undefined;
|
|
@@ -570,6 +574,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
570
574
|
AaveSupply?: undefined;
|
|
571
575
|
AaveWithdraw?: undefined;
|
|
572
576
|
AaveCollateralSwitch?: undefined;
|
|
577
|
+
AaveV3View?: undefined;
|
|
573
578
|
CompBorrow?: undefined;
|
|
574
579
|
CompClaim?: undefined;
|
|
575
580
|
CompPayback?: undefined;
|
|
@@ -693,6 +698,8 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
693
698
|
AaveSupply?: undefined;
|
|
694
699
|
AaveWithdraw?: undefined;
|
|
695
700
|
AaveCollateralSwitch?: undefined;
|
|
701
|
+
AaveV3ClaimRewards?: undefined;
|
|
702
|
+
AaveV3View?: undefined;
|
|
696
703
|
CompBorrow?: undefined;
|
|
697
704
|
CompClaim?: undefined;
|
|
698
705
|
CompPayback?: undefined;
|
|
@@ -761,7 +768,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
761
768
|
CompV3Supply?: undefined;
|
|
762
769
|
CompV3Transfer?: undefined;
|
|
763
770
|
CompV3Withdraw?: undefined;
|
|
764
|
-
AaveV3ClaimRewards?: undefined;
|
|
765
771
|
AaveV3RatioTrigger?: undefined;
|
|
766
772
|
};
|
|
767
773
|
declare const otherAddressesAllChains: {
|
|
@@ -899,6 +905,16 @@ declare const _default: {
|
|
|
899
905
|
AaveSupply: string;
|
|
900
906
|
AaveWithdraw: string;
|
|
901
907
|
AaveCollateralSwitch: string;
|
|
908
|
+
AaveV3Withdraw: string;
|
|
909
|
+
AaveV3SwapBorrowRateMode: string;
|
|
910
|
+
AaveV3Supply: string;
|
|
911
|
+
AaveV3SetEMode: string;
|
|
912
|
+
AaveV3Payback: string;
|
|
913
|
+
AaveV3CollateralSwitch: string;
|
|
914
|
+
AaveV3ClaimRewards: string;
|
|
915
|
+
AaveV3Borrow: string;
|
|
916
|
+
AaveV3ATokenPayback: string;
|
|
917
|
+
AaveV3View: string;
|
|
902
918
|
CompBorrow: string;
|
|
903
919
|
CompClaim: string;
|
|
904
920
|
CompPayback: string;
|
|
@@ -907,6 +923,7 @@ declare const _default: {
|
|
|
907
923
|
CompGetDebt: string;
|
|
908
924
|
CompCollateralSwitch: string;
|
|
909
925
|
FLAaveV2: string;
|
|
926
|
+
FLAaveV3: string;
|
|
910
927
|
FLDyDx: string;
|
|
911
928
|
FLMaker: string;
|
|
912
929
|
FLBalancer: string;
|
|
@@ -974,16 +991,6 @@ declare const _default: {
|
|
|
974
991
|
CompV3Supply: string;
|
|
975
992
|
CompV3Transfer: string;
|
|
976
993
|
CompV3Withdraw: string;
|
|
977
|
-
AaveV3ATokenPayback?: undefined;
|
|
978
|
-
AaveV3Borrow?: undefined;
|
|
979
|
-
AaveV3CollateralSwitch?: undefined;
|
|
980
|
-
AaveV3Payback?: undefined;
|
|
981
|
-
AaveV3SetEMode?: undefined;
|
|
982
|
-
AaveV3Supply?: undefined;
|
|
983
|
-
AaveV3SwapBorrowRateMode?: undefined;
|
|
984
|
-
AaveV3Withdraw?: undefined;
|
|
985
|
-
AaveV3ClaimRewards?: undefined;
|
|
986
|
-
FLAaveV3?: undefined;
|
|
987
994
|
AaveV3RatioTrigger?: undefined;
|
|
988
995
|
GasFeeTakerL2?: undefined;
|
|
989
996
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1044,6 +1051,7 @@ declare const _default: {
|
|
|
1044
1051
|
AaveSupply?: undefined;
|
|
1045
1052
|
AaveWithdraw?: undefined;
|
|
1046
1053
|
AaveCollateralSwitch?: undefined;
|
|
1054
|
+
AaveV3View?: undefined;
|
|
1047
1055
|
CompBorrow?: undefined;
|
|
1048
1056
|
CompClaim?: undefined;
|
|
1049
1057
|
CompPayback?: undefined;
|
|
@@ -1167,6 +1175,8 @@ declare const _default: {
|
|
|
1167
1175
|
AaveSupply?: undefined;
|
|
1168
1176
|
AaveWithdraw?: undefined;
|
|
1169
1177
|
AaveCollateralSwitch?: undefined;
|
|
1178
|
+
AaveV3ClaimRewards?: undefined;
|
|
1179
|
+
AaveV3View?: undefined;
|
|
1170
1180
|
CompBorrow?: undefined;
|
|
1171
1181
|
CompClaim?: undefined;
|
|
1172
1182
|
CompPayback?: undefined;
|
|
@@ -1235,7 +1245,6 @@ declare const _default: {
|
|
|
1235
1245
|
CompV3Supply?: undefined;
|
|
1236
1246
|
CompV3Transfer?: undefined;
|
|
1237
1247
|
CompV3Withdraw?: undefined;
|
|
1238
|
-
AaveV3ClaimRewards?: undefined;
|
|
1239
1248
|
AaveV3RatioTrigger?: undefined;
|
|
1240
1249
|
};
|
|
1241
1250
|
actionAddressesAllChains: {
|
|
@@ -1276,6 +1285,16 @@ declare const _default: {
|
|
|
1276
1285
|
AaveSupply: string;
|
|
1277
1286
|
AaveWithdraw: string;
|
|
1278
1287
|
AaveCollateralSwitch: string;
|
|
1288
|
+
AaveV3Withdraw: string;
|
|
1289
|
+
AaveV3SwapBorrowRateMode: string;
|
|
1290
|
+
AaveV3Supply: string;
|
|
1291
|
+
AaveV3SetEMode: string;
|
|
1292
|
+
AaveV3Payback: string;
|
|
1293
|
+
AaveV3CollateralSwitch: string;
|
|
1294
|
+
AaveV3ClaimRewards: string;
|
|
1295
|
+
AaveV3Borrow: string;
|
|
1296
|
+
AaveV3ATokenPayback: string;
|
|
1297
|
+
AaveV3View: string;
|
|
1279
1298
|
CompBorrow: string;
|
|
1280
1299
|
CompClaim: string;
|
|
1281
1300
|
CompPayback: string;
|
|
@@ -1284,6 +1303,7 @@ declare const _default: {
|
|
|
1284
1303
|
CompGetDebt: string;
|
|
1285
1304
|
CompCollateralSwitch: string;
|
|
1286
1305
|
FLAaveV2: string;
|
|
1306
|
+
FLAaveV3: string;
|
|
1287
1307
|
FLDyDx: string;
|
|
1288
1308
|
FLMaker: string;
|
|
1289
1309
|
FLBalancer: string;
|
|
@@ -1351,16 +1371,6 @@ declare const _default: {
|
|
|
1351
1371
|
CompV3Supply: string;
|
|
1352
1372
|
CompV3Transfer: string;
|
|
1353
1373
|
CompV3Withdraw: string;
|
|
1354
|
-
AaveV3ATokenPayback?: undefined;
|
|
1355
|
-
AaveV3Borrow?: undefined;
|
|
1356
|
-
AaveV3CollateralSwitch?: undefined;
|
|
1357
|
-
AaveV3Payback?: undefined;
|
|
1358
|
-
AaveV3SetEMode?: undefined;
|
|
1359
|
-
AaveV3Supply?: undefined;
|
|
1360
|
-
AaveV3SwapBorrowRateMode?: undefined;
|
|
1361
|
-
AaveV3Withdraw?: undefined;
|
|
1362
|
-
AaveV3ClaimRewards?: undefined;
|
|
1363
|
-
FLAaveV3?: undefined;
|
|
1364
1374
|
AaveV3RatioTrigger?: undefined;
|
|
1365
1375
|
GasFeeTakerL2?: undefined;
|
|
1366
1376
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1421,6 +1431,7 @@ declare const _default: {
|
|
|
1421
1431
|
AaveSupply?: undefined;
|
|
1422
1432
|
AaveWithdraw?: undefined;
|
|
1423
1433
|
AaveCollateralSwitch?: undefined;
|
|
1434
|
+
AaveV3View?: undefined;
|
|
1424
1435
|
CompBorrow?: undefined;
|
|
1425
1436
|
CompClaim?: undefined;
|
|
1426
1437
|
CompPayback?: undefined;
|
|
@@ -1544,6 +1555,8 @@ declare const _default: {
|
|
|
1544
1555
|
AaveSupply?: undefined;
|
|
1545
1556
|
AaveWithdraw?: undefined;
|
|
1546
1557
|
AaveCollateralSwitch?: undefined;
|
|
1558
|
+
AaveV3ClaimRewards?: undefined;
|
|
1559
|
+
AaveV3View?: undefined;
|
|
1547
1560
|
CompBorrow?: undefined;
|
|
1548
1561
|
CompClaim?: undefined;
|
|
1549
1562
|
CompPayback?: undefined;
|
|
@@ -1612,7 +1625,6 @@ declare const _default: {
|
|
|
1612
1625
|
CompV3Supply?: undefined;
|
|
1613
1626
|
CompV3Transfer?: undefined;
|
|
1614
1627
|
CompV3Withdraw?: undefined;
|
|
1615
|
-
AaveV3ClaimRewards?: undefined;
|
|
1616
1628
|
AaveV3RatioTrigger?: undefined;
|
|
1617
1629
|
};
|
|
1618
1630
|
};
|
package/esm/src/types.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
type AccessListItem = {
|
|
1
|
+
declare type AccessListItem = {
|
|
2
2
|
address: EthAddress;
|
|
3
3
|
storageKeys: Array<any>;
|
|
4
4
|
};
|
|
5
|
-
type AccessList = Array<Array<any>>;
|
|
6
|
-
type AccessLists = {
|
|
5
|
+
declare type AccessList = Array<Array<any>>;
|
|
6
|
+
declare type AccessLists = {
|
|
7
7
|
[key: string]: AccessList;
|
|
8
8
|
};
|
|
9
|
-
type Config = {
|
|
9
|
+
declare type Config = {
|
|
10
10
|
chainId: number;
|
|
11
11
|
testingMode: boolean;
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
};
|
|
14
|
-
type Network = {
|
|
14
|
+
declare type Network = {
|
|
15
15
|
chainId: number;
|
|
16
16
|
chainName: string;
|
|
17
17
|
blockExplorerUrls: Array<string>;
|
|
@@ -23,21 +23,21 @@ type Network = {
|
|
|
23
23
|
symbol: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
type Networks = {
|
|
26
|
+
declare type Networks = {
|
|
27
27
|
ethereum: Network;
|
|
28
28
|
optimism: Network;
|
|
29
29
|
arbitrum: Network;
|
|
30
30
|
};
|
|
31
|
-
type EthAddress = string;
|
|
32
|
-
type bytes32 = string;
|
|
33
|
-
type bytes = string | Array<any>;
|
|
34
|
-
type uint256 = string;
|
|
35
|
-
type uint160 = string;
|
|
36
|
-
type uint128 = string;
|
|
37
|
-
type uint80 = string;
|
|
38
|
-
type uint64 = string;
|
|
39
|
-
type uint24 = string;
|
|
40
|
-
type uint16 = string;
|
|
41
|
-
type uint8 = string;
|
|
42
|
-
type int24 = string;
|
|
31
|
+
declare type EthAddress = string;
|
|
32
|
+
declare type bytes32 = string;
|
|
33
|
+
declare type bytes = string | Array<any>;
|
|
34
|
+
declare type uint256 = string;
|
|
35
|
+
declare type uint160 = string;
|
|
36
|
+
declare type uint128 = string;
|
|
37
|
+
declare type uint80 = string;
|
|
38
|
+
declare type uint64 = string;
|
|
39
|
+
declare type uint24 = string;
|
|
40
|
+
declare type uint16 = string;
|
|
41
|
+
declare type uint8 = string;
|
|
42
|
+
declare type int24 = string;
|
|
43
43
|
export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint128, uint80, uint64, uint24, uint16, uint8, int24, };
|
package/package.json
CHANGED
package/src/addresses.ts
CHANGED
|
@@ -50,6 +50,18 @@ export const actionAddresses = {
|
|
|
50
50
|
AaveWithdraw: '0x754C58fA92246414a448c1ed44ea3D1AD446d482',
|
|
51
51
|
AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
|
|
52
52
|
|
|
53
|
+
// aave v3
|
|
54
|
+
AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
|
|
55
|
+
AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
|
|
56
|
+
AaveV3Supply: '0x2d10281757ca0a716311A6C5eb456A098cD14Cd7',
|
|
57
|
+
AaveV3SetEMode: '0xBe7F735d7955e0461579E34266f41F928AE06D78',
|
|
58
|
+
AaveV3Payback: '0xe29265217D65F5a2ae41972E09C13E107D049004',
|
|
59
|
+
AaveV3CollateralSwitch: '0x54A4d6cB567B2C6CDe4687c361b24fd912695DAb',
|
|
60
|
+
AaveV3ClaimRewards: '0x998A2E9aaE03c11b7A9863C1F59c42A21fcf47D0',
|
|
61
|
+
AaveV3Borrow: '0x7079ba1Bd00EeFCD2a260BbD6D088230505e3858',
|
|
62
|
+
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
63
|
+
AaveV3View: '0x9ECB0645b357fDD7B92789B91595160862Bd45d0',
|
|
64
|
+
|
|
53
65
|
// compound
|
|
54
66
|
CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
|
|
55
67
|
CompClaim: '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
|
|
@@ -61,6 +73,7 @@ export const actionAddresses = {
|
|
|
61
73
|
|
|
62
74
|
// flashloan
|
|
63
75
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
76
|
+
FLAaveV3: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
64
77
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
65
78
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
66
79
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|