@defisaver/sdk 1.1.2-dev → 1.1.3

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.
@@ -248,6 +248,13 @@ export declare const actionAddresses: {
248
248
  UniSupplyV3: string;
249
249
  UniWithdrawV3: string;
250
250
  UniCreatePoolV3: string;
251
+ CompV3Allow: string;
252
+ CompV3Borrow: string;
253
+ CompV3Claim: string;
254
+ CompV3Payback: string;
255
+ CompV3Supply: string;
256
+ CompV3Transfer: string;
257
+ CompV3Withdraw: string;
251
258
  AutomationV2Unsub?: undefined;
252
259
  UpdateSub?: undefined;
253
260
  TransferNFT?: undefined;
@@ -379,13 +386,6 @@ export declare const actionAddresses: {
379
386
  CBChickenOut?: undefined;
380
387
  CBCreateRebondSub?: undefined;
381
388
  FetchBondId?: undefined;
382
- CompV3Allow?: undefined;
383
- CompV3Borrow?: undefined;
384
- CompV3Claim?: undefined;
385
- CompV3Payback?: undefined;
386
- CompV3Supply?: undefined;
387
- CompV3Transfer?: undefined;
388
- CompV3Withdraw?: undefined;
389
389
  CurveUsdBorrow?: undefined;
390
390
  CurveUsdCreate?: undefined;
391
391
  CurveUsdPayback?: undefined;
@@ -453,6 +453,7 @@ export declare const actionAddresses: {
453
453
  FLAaveV3NoFee: string;
454
454
  FLAaveV3: string;
455
455
  FLBalancer: string;
456
+ FLUniV3: string;
456
457
  FLAction: string;
457
458
  FLActionTEMP: string;
458
459
  GasFeeTakerL2: string;
@@ -545,7 +546,6 @@ export declare const actionAddresses: {
545
546
  FLDyDx?: undefined;
546
547
  FLMaker?: undefined;
547
548
  FLSpark?: undefined;
548
- FLUniV3?: undefined;
549
549
  FLGho?: undefined;
550
550
  FLMorphoBlue?: undefined;
551
551
  UniSupply?: undefined;
@@ -280,6 +280,14 @@ export const actionAddresses = {
280
280
  UniSupplyV3: '0x533aDec68Eed581F4a7F202493Eaf4Df77b89EC0',
281
281
  UniWithdrawV3: '0xE920235ED2d52EcF6157BBAFedfB5bbbcF7c5825',
282
282
  UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e',
283
+ // CompV3
284
+ CompV3Allow: '0xec4937686022c6b83f0d914dde7a465b1108227e',
285
+ CompV3Borrow: '0x2cc1ec3c2b8734b4e57c0415a7641bbaba1d8c21',
286
+ CompV3Claim: '0xAD36437D50DB3C6c225564A4081acb354b55a5D6',
287
+ CompV3Payback: '0xdd15d90f92a4973b4c979e58b9e1eebbb4d1cc26',
288
+ CompV3Supply: '0xf4c3D99c43E1DB968CF92770DaE6d377697b0B81',
289
+ CompV3Transfer: '0x3e5af71709a9e591c5b25422a4419164bb5aba4b',
290
+ CompV3Withdraw: '0x744ad24e92d092e0788d429f5178286672288782',
283
291
  },
284
292
  [NETWORKS.arbitrum.chainId]: {
285
293
  DFSSell: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
@@ -318,6 +326,7 @@ export const actionAddresses = {
318
326
  FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
319
327
  FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
320
328
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
329
+ FLUniV3: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3',
321
330
  FLAction: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3',
322
331
  FLActionTEMP: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3',
323
332
  GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
@@ -333,8 +342,8 @@ export const actionAddresses = {
333
342
  LlamaLendSupply: '0x8f0814709d6d8b7c4b3021f7cb80e08476bc6959',
334
343
  LlamaLendBorrow: '0x4948135f8b3a8f3b51fbd1050f5d0f755accb8e7',
335
344
  LlamaLendWithdraw: '0xd7a80e7a2296d75cd1eebc2f0de0cebd14fbe117',
336
- LlamaLendPayback: '0x21e05ffb9cf729630b5a9c2f01ff3b41f38be48c',
337
- LlamaLendSelfLiquidate: '0xc9fd91f932d903023e887e4e4af0a298e10529a8',
345
+ LlamaLendPayback: '0xB2B93495dA2Fee8F92513fBBfA804564110B63ee',
346
+ LlamaLendSelfLiquidate: '0xe63e836C3ab61481F60A9a56aA72d1D0c55Fc280',
338
347
  LlamaLendGetDebt: '0x81c01f08b8fc4487501c88404ed17ebc17764f9c',
339
348
  LlamaLendBoost: '0xc52a3af27696f8cf999463f3455e23440a376f8d',
340
349
  LlamaLendRepay: '0x320fdfa922ee33c1cc8a042ada855c9dfe9bed06',
@@ -259,6 +259,13 @@ declare const actionAddressesAllChains: {
259
259
  UniSupplyV3: string;
260
260
  UniWithdrawV3: string;
261
261
  UniCreatePoolV3: string;
262
+ CompV3Allow: string;
263
+ CompV3Borrow: string;
264
+ CompV3Claim: string;
265
+ CompV3Payback: string;
266
+ CompV3Supply: string;
267
+ CompV3Transfer: string;
268
+ CompV3Withdraw: string;
262
269
  AutomationV2Unsub?: undefined;
263
270
  UpdateSub?: undefined;
264
271
  TransferNFT?: undefined;
@@ -390,13 +397,6 @@ declare const actionAddressesAllChains: {
390
397
  CBChickenOut?: undefined;
391
398
  CBCreateRebondSub?: undefined;
392
399
  FetchBondId?: undefined;
393
- CompV3Allow?: undefined;
394
- CompV3Borrow?: undefined;
395
- CompV3Claim?: undefined;
396
- CompV3Payback?: undefined;
397
- CompV3Supply?: undefined;
398
- CompV3Transfer?: undefined;
399
- CompV3Withdraw?: undefined;
400
400
  CurveUsdBorrow?: undefined;
401
401
  CurveUsdCreate?: undefined;
402
402
  CurveUsdPayback?: undefined;
@@ -464,6 +464,7 @@ declare const actionAddressesAllChains: {
464
464
  FLAaveV3NoFee: string;
465
465
  FLAaveV3: string;
466
466
  FLBalancer: string;
467
+ FLUniV3: string;
467
468
  FLAction: string;
468
469
  FLActionTEMP: string;
469
470
  GasFeeTakerL2: string;
@@ -556,7 +557,6 @@ declare const actionAddressesAllChains: {
556
557
  FLDyDx?: undefined;
557
558
  FLMaker?: undefined;
558
559
  FLSpark?: undefined;
559
- FLUniV3?: undefined;
560
560
  FLGho?: undefined;
561
561
  FLMorphoBlue?: undefined;
562
562
  UniSupply?: undefined;
@@ -1101,6 +1101,13 @@ declare const actionAddresses: (chainId?: null) => {
1101
1101
  UniSupplyV3: string;
1102
1102
  UniWithdrawV3: string;
1103
1103
  UniCreatePoolV3: string;
1104
+ CompV3Allow: string;
1105
+ CompV3Borrow: string;
1106
+ CompV3Claim: string;
1107
+ CompV3Payback: string;
1108
+ CompV3Supply: string;
1109
+ CompV3Transfer: string;
1110
+ CompV3Withdraw: string;
1104
1111
  AutomationV2Unsub?: undefined;
1105
1112
  UpdateSub?: undefined;
1106
1113
  TransferNFT?: undefined;
@@ -1232,13 +1239,6 @@ declare const actionAddresses: (chainId?: null) => {
1232
1239
  CBChickenOut?: undefined;
1233
1240
  CBCreateRebondSub?: undefined;
1234
1241
  FetchBondId?: undefined;
1235
- CompV3Allow?: undefined;
1236
- CompV3Borrow?: undefined;
1237
- CompV3Claim?: undefined;
1238
- CompV3Payback?: undefined;
1239
- CompV3Supply?: undefined;
1240
- CompV3Transfer?: undefined;
1241
- CompV3Withdraw?: undefined;
1242
1242
  CurveUsdBorrow?: undefined;
1243
1243
  CurveUsdCreate?: undefined;
1244
1244
  CurveUsdPayback?: undefined;
@@ -1306,6 +1306,7 @@ declare const actionAddresses: (chainId?: null) => {
1306
1306
  FLAaveV3NoFee: string;
1307
1307
  FLAaveV3: string;
1308
1308
  FLBalancer: string;
1309
+ FLUniV3: string;
1309
1310
  FLAction: string;
1310
1311
  FLActionTEMP: string;
1311
1312
  GasFeeTakerL2: string;
@@ -1398,7 +1399,6 @@ declare const actionAddresses: (chainId?: null) => {
1398
1399
  FLDyDx?: undefined;
1399
1400
  FLMaker?: undefined;
1400
1401
  FLSpark?: undefined;
1401
- FLUniV3?: undefined;
1402
1402
  FLGho?: undefined;
1403
1403
  FLMorphoBlue?: undefined;
1404
1404
  UniSupply?: undefined;
@@ -2086,6 +2086,13 @@ declare const _default: {
2086
2086
  UniSupplyV3: string;
2087
2087
  UniWithdrawV3: string;
2088
2088
  UniCreatePoolV3: string;
2089
+ CompV3Allow: string;
2090
+ CompV3Borrow: string;
2091
+ CompV3Claim: string;
2092
+ CompV3Payback: string;
2093
+ CompV3Supply: string;
2094
+ CompV3Transfer: string;
2095
+ CompV3Withdraw: string;
2089
2096
  AutomationV2Unsub?: undefined;
2090
2097
  UpdateSub?: undefined;
2091
2098
  TransferNFT?: undefined;
@@ -2217,13 +2224,6 @@ declare const _default: {
2217
2224
  CBChickenOut?: undefined;
2218
2225
  CBCreateRebondSub?: undefined;
2219
2226
  FetchBondId?: undefined;
2220
- CompV3Allow?: undefined;
2221
- CompV3Borrow?: undefined;
2222
- CompV3Claim?: undefined;
2223
- CompV3Payback?: undefined;
2224
- CompV3Supply?: undefined;
2225
- CompV3Transfer?: undefined;
2226
- CompV3Withdraw?: undefined;
2227
2227
  CurveUsdBorrow?: undefined;
2228
2228
  CurveUsdCreate?: undefined;
2229
2229
  CurveUsdPayback?: undefined;
@@ -2291,6 +2291,7 @@ declare const _default: {
2291
2291
  FLAaveV3NoFee: string;
2292
2292
  FLAaveV3: string;
2293
2293
  FLBalancer: string;
2294
+ FLUniV3: string;
2294
2295
  FLAction: string;
2295
2296
  FLActionTEMP: string;
2296
2297
  GasFeeTakerL2: string;
@@ -2383,7 +2384,6 @@ declare const _default: {
2383
2384
  FLDyDx?: undefined;
2384
2385
  FLMaker?: undefined;
2385
2386
  FLSpark?: undefined;
2386
- FLUniV3?: undefined;
2387
2387
  FLGho?: undefined;
2388
2388
  FLMorphoBlue?: undefined;
2389
2389
  UniSupply?: undefined;
@@ -2928,6 +2928,13 @@ declare const _default: {
2928
2928
  UniSupplyV3: string;
2929
2929
  UniWithdrawV3: string;
2930
2930
  UniCreatePoolV3: string;
2931
+ CompV3Allow: string;
2932
+ CompV3Borrow: string;
2933
+ CompV3Claim: string;
2934
+ CompV3Payback: string;
2935
+ CompV3Supply: string;
2936
+ CompV3Transfer: string;
2937
+ CompV3Withdraw: string;
2931
2938
  AutomationV2Unsub?: undefined;
2932
2939
  UpdateSub?: undefined;
2933
2940
  TransferNFT?: undefined;
@@ -3059,13 +3066,6 @@ declare const _default: {
3059
3066
  CBChickenOut?: undefined;
3060
3067
  CBCreateRebondSub?: undefined;
3061
3068
  FetchBondId?: undefined;
3062
- CompV3Allow?: undefined;
3063
- CompV3Borrow?: undefined;
3064
- CompV3Claim?: undefined;
3065
- CompV3Payback?: undefined;
3066
- CompV3Supply?: undefined;
3067
- CompV3Transfer?: undefined;
3068
- CompV3Withdraw?: undefined;
3069
3069
  CurveUsdBorrow?: undefined;
3070
3070
  CurveUsdCreate?: undefined;
3071
3071
  CurveUsdPayback?: undefined;
@@ -3133,6 +3133,7 @@ declare const _default: {
3133
3133
  FLAaveV3NoFee: string;
3134
3134
  FLAaveV3: string;
3135
3135
  FLBalancer: string;
3136
+ FLUniV3: string;
3136
3137
  FLAction: string;
3137
3138
  FLActionTEMP: string;
3138
3139
  GasFeeTakerL2: string;
@@ -3225,7 +3226,6 @@ declare const _default: {
3225
3226
  FLDyDx?: undefined;
3226
3227
  FLMaker?: undefined;
3227
3228
  FLSpark?: undefined;
3228
- FLUniV3?: undefined;
3229
3229
  FLGho?: undefined;
3230
3230
  FLMorphoBlue?: undefined;
3231
3231
  UniSupply?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.1.2-dev",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -31,10 +31,10 @@
31
31
  "web3-utils": "^1.8.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@babel/core": "^7.12.10",
35
- "@babel/eslint-parser": "^7.12.17",
36
- "@babel/preset-env": "^7.12.11",
37
- "@babel/preset-typescript": "^7.12.7",
34
+ "@babel/core": "^7.24.4",
35
+ "@babel/eslint-parser": "^7.24.1",
36
+ "@babel/preset-env": "^7.24.4",
37
+ "@babel/preset-typescript": "^7.24.1",
38
38
  "@types/node": "^18.11.8",
39
39
  "@types/web3": "^1.2.2",
40
40
  "@typescript-eslint/eslint-plugin": "^5.42.0",
@@ -42,20 +42,14 @@
42
42
  "babel-loader": "^8.2.2",
43
43
  "chai": "^4.2.0",
44
44
  "dotenv": "^10.0.0",
45
- "eslint": "8.22.0",
46
- "eslint-config-airbnb": "^18.0.2",
47
- "eslint-config-airbnb-typescript": "^17.0.0",
48
- "eslint-import-resolver-typescript": "^3.5.1",
49
- "eslint-plugin-import": "^2.22.0",
50
- "eslint-plugin-jsx-a11y": "^6.6.1",
51
- "eslint-plugin-react": "^7.31.11",
45
+ "eslint": "^8.57.0",
52
46
  "jsdoc-to-markdown": "^6.0.1",
53
- "mocha": "^8.2.1",
47
+ "mocha": "^8.4.0",
54
48
  "ts-node": "^10.9.1",
55
49
  "typedoc": "^0.23.20",
56
50
  "typedoc-plugin-markdown": "^3.13.6",
57
51
  "typescript": "^4.8.4",
58
- "webpack": "^5.13.0",
52
+ "webpack": "^5.91.0",
59
53
  "webpack-cli": "^4.10.0"
60
54
  }
61
55
  }
package/src/addresses.ts CHANGED
@@ -324,6 +324,16 @@ export const actionAddresses = {
324
324
  UniSupplyV3: '0x533aDec68Eed581F4a7F202493Eaf4Df77b89EC0',
325
325
  UniWithdrawV3: '0xE920235ED2d52EcF6157BBAFedfB5bbbcF7c5825',
326
326
  UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e',
327
+
328
+ // CompV3
329
+ CompV3Allow: '0xec4937686022c6b83f0d914dde7a465b1108227e',
330
+ CompV3Borrow: '0x2cc1ec3c2b8734b4e57c0415a7641bbaba1d8c21',
331
+ CompV3Claim: '0xAD36437D50DB3C6c225564A4081acb354b55a5D6',
332
+ CompV3Payback: '0xdd15d90f92a4973b4c979e58b9e1eebbb4d1cc26',
333
+ CompV3Supply: '0xf4c3D99c43E1DB968CF92770DaE6d377697b0B81',
334
+ CompV3Transfer: '0x3e5af71709a9e591c5b25422a4419164bb5aba4b',
335
+ CompV3Withdraw: '0x744ad24e92d092e0788d429f5178286672288782',
336
+
327
337
  },
328
338
  [NETWORKS.arbitrum.chainId]: {
329
339
  DFSSell: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
@@ -366,6 +376,7 @@ export const actionAddresses = {
366
376
  FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
367
377
  FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
368
378
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
379
+ FLUniV3: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3', // @DEV - incorrect, same as FLAction
369
380
  FLAction: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3', // temp fixed
370
381
  FLActionTEMP: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3',
371
382
 
@@ -384,8 +395,8 @@ export const actionAddresses = {
384
395
  LlamaLendSupply: '0x8f0814709d6d8b7c4b3021f7cb80e08476bc6959',
385
396
  LlamaLendBorrow: '0x4948135f8b3a8f3b51fbd1050f5d0f755accb8e7',
386
397
  LlamaLendWithdraw: '0xd7a80e7a2296d75cd1eebc2f0de0cebd14fbe117',
387
- LlamaLendPayback: '0x21e05ffb9cf729630b5a9c2f01ff3b41f38be48c',
388
- LlamaLendSelfLiquidate: '0xc9fd91f932d903023e887e4e4af0a298e10529a8',
398
+ LlamaLendPayback: '0xB2B93495dA2Fee8F92513fBBfA804564110B63ee',
399
+ LlamaLendSelfLiquidate: '0xe63e836C3ab61481F60A9a56aA72d1D0c55Fc280',
389
400
  LlamaLendGetDebt: '0x81c01f08b8fc4487501c88404ed17ebc17764f9c',
390
401
  LlamaLendBoost: '0xc52a3af27696f8cf999463f3455e23440a376f8d',
391
402
  LlamaLendRepay: '0x320fdfa922ee33c1cc8a042ada855c9dfe9bed06',