@defisaver/sdk 1.0.8 → 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.
@@ -62,6 +62,13 @@ export declare class Action {
62
62
  getAssetsToApprove(): Promise<Array<{
63
63
  owner?: string;
64
64
  asset?: string;
65
+ specialApproveLabel?: string;
66
+ [key: string]: any;
67
+ } | {
68
+ owner: string;
69
+ nft: EthAddress;
70
+ tokenId: string;
71
+ specialApproveLabel?: string;
65
72
  [key: string]: any;
66
73
  }>>;
67
74
  /**
@@ -1,5 +1,5 @@
1
1
  import { Action } from './Action';
2
- import { AccessListItem } from './types';
2
+ import { AccessListItem, EthAddress } from './types';
3
3
  /**
4
4
  * Set of Actions to be performed sequentially in a single transaction
5
5
  *
@@ -36,6 +36,12 @@ export declare class Recipe {
36
36
  getAssetsToApprove(): Promise<Array<{
37
37
  owner: string;
38
38
  asset: string;
39
+ specialApproveLabel?: string;
40
+ } | {
41
+ owner: string;
42
+ nft: EthAddress;
43
+ tokenId: string;
44
+ specialApproveLabel?: string;
39
45
  }>>;
40
46
  /**
41
47
  * ETH value to be sent with transaction
package/esm/src/Recipe.js CHANGED
@@ -86,7 +86,17 @@ export class Recipe {
86
86
  for (const pair of pairsPerAction) {
87
87
  const isNft = !pair.asset;
88
88
  if (!uniqueAssetOwnerPairs.find(_pair => _pair.owner === pair.owner && (isNft ? _pair.tokenId === pair.tokenId : _pair.asset === pair.asset))) {
89
- uniqueAssetOwnerPairs.push({ owner: pair.owner, asset: pair.asset });
89
+ if (isNft) {
90
+ uniqueAssetOwnerPairs.push({
91
+ owner: pair.owner,
92
+ nft: pair.nft,
93
+ tokenId: pair.tokenId,
94
+ specialApproveLabel: pair.specialApproveLabel,
95
+ });
96
+ }
97
+ else {
98
+ uniqueAssetOwnerPairs.push({ owner: pair.owner, asset: pair.asset, specialApproveLabel: pair.specialApproveLabel });
99
+ }
90
100
  }
91
101
  }
92
102
  }
@@ -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
  };
@@ -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',
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
package/src/Action.ts CHANGED
@@ -191,7 +191,7 @@ export class Action {
191
191
  * Assets requiring approval to be used by DsProxy
192
192
  * Approval is done from owner to DsProxy
193
193
  */
194
- async getAssetsToApprove(): Promise<Array<{ owner?: string, asset?: string, [key: string]:any }>> {
194
+ async getAssetsToApprove(): Promise<Array<{ owner?: string, asset?: string, specialApproveLabel?: string, [key: string]:any } | { owner: string, nft: EthAddress, tokenId: string, specialApproveLabel?: string, [key: string]:any }>> {
195
195
  return [];
196
196
  }
197
197
 
package/src/Recipe.ts CHANGED
@@ -89,14 +89,23 @@ export class Recipe {
89
89
  * Assets requiring approval to be used by DsProxy
90
90
  * Approval is done from owner to DsProxy
91
91
  */
92
- async getAssetsToApprove() : Promise<Array<{ owner: string, asset: string }>> {
93
- const uniqueAssetOwnerPairs : Array<{ owner: string, asset: string, [key: string]:any }> = [];
92
+ async getAssetsToApprove() : Promise<Array<{ owner: string, asset: string, specialApproveLabel?: string } | { owner: string, nft: EthAddress, tokenId: string, specialApproveLabel?: string }>> {
93
+ const uniqueAssetOwnerPairs : Array<{ owner: string, asset: string, specialApproveLabel?: string, [key: string]:any } | { owner: string, nft: EthAddress, tokenId: string, specialApproveLabel?: string, [key: string]:any }> = [];
94
94
  const assetOwnerPairs = await Promise.all(this.actions.map(a => a.getAssetsToApprove()));
95
95
  for (const pairsPerAction of assetOwnerPairs) {
96
96
  for (const pair of pairsPerAction) {
97
97
  const isNft = !pair.asset;
98
98
  if (!uniqueAssetOwnerPairs.find(_pair => _pair.owner === pair.owner && (isNft ? _pair.tokenId === pair.tokenId : _pair.asset === pair.asset))) {
99
- uniqueAssetOwnerPairs.push({ owner: pair.owner!, asset: pair.asset! });
99
+ if (isNft) {
100
+ uniqueAssetOwnerPairs.push({
101
+ owner: pair.owner!,
102
+ nft: pair.nft!,
103
+ tokenId: pair.tokenId!,
104
+ specialApproveLabel: pair.specialApproveLabel!,
105
+ });
106
+ } else {
107
+ uniqueAssetOwnerPairs.push({ owner: pair.owner!, asset: pair.asset!, specialApproveLabel: pair.specialApproveLabel! });
108
+ }
100
109
  }
101
110
  }
102
111
  }
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',
package/umd/index.js CHANGED
@@ -1154,10 +1154,20 @@ class Recipe {
1154
1154
  var _loop = function _loop(pair) {
1155
1155
  var isNft = !pair.asset;
1156
1156
  if (!uniqueAssetOwnerPairs.find(_pair => _pair.owner === pair.owner && (isNft ? _pair.tokenId === pair.tokenId : _pair.asset === pair.asset))) {
1157
- uniqueAssetOwnerPairs.push({
1158
- owner: pair.owner,
1159
- asset: pair.asset
1160
- });
1157
+ if (isNft) {
1158
+ uniqueAssetOwnerPairs.push({
1159
+ owner: pair.owner,
1160
+ nft: pair.nft,
1161
+ tokenId: pair.tokenId,
1162
+ specialApproveLabel: pair.specialApproveLabel
1163
+ });
1164
+ } else {
1165
+ uniqueAssetOwnerPairs.push({
1166
+ owner: pair.owner,
1167
+ asset: pair.asset,
1168
+ specialApproveLabel: pair.specialApproveLabel
1169
+ });
1170
+ }
1161
1171
  }
1162
1172
  };
1163
1173
  for (var pair of pairsPerAction) {
@@ -1271,6 +1281,17 @@ var actionAddresses = {
1271
1281
  AaveSupply: '0xEbB200a529058B561B42Eab510DA157a63243CEc',
1272
1282
  AaveWithdraw: '0x754C58fA92246414a448c1ed44ea3D1AD446d482',
1273
1283
  AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
1284
+ // aave v3
1285
+ AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
1286
+ AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
1287
+ AaveV3Supply: '0x2d10281757ca0a716311A6C5eb456A098cD14Cd7',
1288
+ AaveV3SetEMode: '0xBe7F735d7955e0461579E34266f41F928AE06D78',
1289
+ AaveV3Payback: '0xe29265217D65F5a2ae41972E09C13E107D049004',
1290
+ AaveV3CollateralSwitch: '0x54A4d6cB567B2C6CDe4687c361b24fd912695DAb',
1291
+ AaveV3ClaimRewards: '0x998A2E9aaE03c11b7A9863C1F59c42A21fcf47D0',
1292
+ AaveV3Borrow: '0x7079ba1Bd00EeFCD2a260BbD6D088230505e3858',
1293
+ AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
1294
+ AaveV3View: '0x9ECB0645b357fDD7B92789B91595160862Bd45d0',
1274
1295
  // compound
1275
1296
  CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
1276
1297
  CompClaim: '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
@@ -1281,6 +1302,7 @@ var actionAddresses = {
1281
1302
  CompCollateralSwitch: '0xC3d89139508A3883775D3d1E62E2A0fea363b448',
1282
1303
  // flashloan
1283
1304
  FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
1305
+ FLAaveV3: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
1284
1306
  FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
1285
1307
  FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
1286
1308
  FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',