@1delta/lender-registry 0.0.24 → 0.0.26
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/dist/getters.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +31 -5
- package/dist/index.mjs +30 -5
- package/dist/lenders.d.ts +14 -2
- package/package.json +45 -45
package/dist/getters.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export declare function isListaDao(lender: string): boolean;
|
|
|
11
11
|
export declare function isMorphoType(lender: string): boolean;
|
|
12
12
|
/** Matches the bare `FLUID` key AND synthesized per-vault keys `FLUID_<vaultId>`. */
|
|
13
13
|
export declare function isFluid(lender: string): boolean;
|
|
14
|
+
/** Matches the bare `GEARBOX_V3` key AND synthesized per-CreditManager keys `GEARBOX_V3_<HEX>`. */
|
|
15
|
+
export declare function isGearboxV3(lender: string): boolean;
|
|
14
16
|
export declare function isVenusType(lender: string): boolean;
|
|
15
17
|
export declare function isCompoundV2Type(lender: string): boolean;
|
|
16
18
|
export declare function isCompoundV3Type(lender: string): boolean;
|
|
@@ -20,7 +22,6 @@ export declare function isAaveV4Type(lender: string): boolean;
|
|
|
20
22
|
export declare function isSiloV2Type(lender: string): boolean;
|
|
21
23
|
export declare function isSiloV3Type(lender: string): boolean;
|
|
22
24
|
export declare function isSiloType(lender: string): boolean;
|
|
23
|
-
export declare function lenderHasSubAccounts(lender: string): lender is Lender.INIT;
|
|
24
25
|
export declare function aaveForkCannotPermit(lender: string): boolean;
|
|
25
26
|
export declare function supportsSameAsset(lender: string): boolean;
|
|
26
27
|
/** Alias for isListaDao */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './lenders.js';
|
|
2
|
-
export { isAaveV2Type, isAaveV3Type, isAaveV32Type, isAaveType, isCompoundV3, extractLenderBeforeLastUnderscore, isMorphoBlue, isListaDao, isMorphoType, isVenusType, isCompoundV2Type, isCompoundV3Type, isInit, isEulerType,
|
|
2
|
+
export { isAaveV2Type, isAaveV3Type, isAaveV32Type, isAaveType, isCompoundV3, extractLenderBeforeLastUnderscore, isMorphoBlue, isListaDao, isMorphoType, isVenusType, isCompoundV2Type, isCompoundV3Type, isInit, isEulerType, aaveForkCannotPermit, supportsSameAsset, isLista, isYLDR, isSumerType, isCompoundV2PerSecond, isTectonicType, isBenqiType, isMoonwellType, isCompoundV2PerTimestamp, isMultiMarket, isAave, isCompoundV2, isAaveV4Type, isSiloV2Type, isSiloV3Type, isSiloType, isFluid, isGearboxV3, } from './getters.js';
|
package/dist/index.js
CHANGED
|
@@ -56,6 +56,10 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
56
56
|
Lender2["YEI"] = "YEI";
|
|
57
57
|
Lender2["YEI_SOLV"] = "YEI_SOLV";
|
|
58
58
|
Lender2["NEVERLAND"] = "NEVERLAND";
|
|
59
|
+
Lender2["KONA_LEND"] = "KONA_LEND";
|
|
60
|
+
Lender2["EDEL"] = "EDEL";
|
|
61
|
+
Lender2["VOLTAGE_LENDING"] = "VOLTAGE_LENDING";
|
|
62
|
+
Lender2["AQUALOAN"] = "AQUALOAN";
|
|
59
63
|
Lender2["ZEROLEND"] = "ZEROLEND";
|
|
60
64
|
Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
|
|
61
65
|
Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
|
|
@@ -149,6 +153,7 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
149
153
|
Lender2["MORPHO_BLUE"] = "MORPHO_BLUE";
|
|
150
154
|
Lender2["LISTA_DAO"] = "LISTA_DAO";
|
|
151
155
|
Lender2["FLUID"] = "FLUID";
|
|
156
|
+
Lender2["GEARBOX_V3"] = "GEARBOX_V3";
|
|
152
157
|
Lender2["SILO_V2"] = "SILO_V2";
|
|
153
158
|
Lender2["SILO_V3"] = "SILO_V3";
|
|
154
159
|
Lender2["EULER_V2"] = "EULER_V2";
|
|
@@ -224,6 +229,10 @@ var AAVE_V3_LENDERS = [
|
|
|
224
229
|
"YEI" /* YEI */,
|
|
225
230
|
"YEI_SOLV" /* YEI_SOLV */,
|
|
226
231
|
"NEVERLAND" /* NEVERLAND */,
|
|
232
|
+
"KONA_LEND" /* KONA_LEND */,
|
|
233
|
+
"EDEL" /* EDEL */,
|
|
234
|
+
"VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
|
|
235
|
+
"AQUALOAN" /* AQUALOAN */,
|
|
227
236
|
// zerolends
|
|
228
237
|
"ZEROLEND" /* ZEROLEND */,
|
|
229
238
|
"ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
|
|
@@ -313,6 +322,7 @@ var COMPOUND_V3_LENDERS = [
|
|
|
313
322
|
];
|
|
314
323
|
var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA_DAO */];
|
|
315
324
|
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
325
|
+
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
316
326
|
var TECTONIC_LENDERS = ["TECTONIC" /* TECTONIC */, "TECTONIC_VENO" /* TECTONIC_VENO */, "TECTONIC_DEFI" /* TECTONIC_DEFI */];
|
|
317
327
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
318
328
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
@@ -326,6 +336,8 @@ var LenderGroups = /* @__PURE__ */ ((LenderGroups2) => {
|
|
|
326
336
|
LenderGroups2[LenderGroups2["MorphoBlue"] = 5] = "MorphoBlue";
|
|
327
337
|
LenderGroups2[LenderGroups2["SiloV2"] = 6] = "SiloV2";
|
|
328
338
|
LenderGroups2[LenderGroups2["SiloV3"] = 7] = "SiloV3";
|
|
339
|
+
LenderGroups2[LenderGroups2["FluidT1"] = 8] = "FluidT1";
|
|
340
|
+
LenderGroups2[LenderGroups2["GearboxV3"] = 9] = "GearboxV3";
|
|
329
341
|
return LenderGroups2;
|
|
330
342
|
})(LenderGroups || {});
|
|
331
343
|
var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
|
|
@@ -337,6 +349,9 @@ var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
|
|
|
337
349
|
LenderIds2[LenderIds2["UP_TO_SILO_V2"] = 6e3] = "UP_TO_SILO_V2";
|
|
338
350
|
LenderIds2[LenderIds2["UP_TO_AAVE_V4"] = 7e3] = "UP_TO_AAVE_V4";
|
|
339
351
|
LenderIds2[LenderIds2["UP_TO_SILO_V3"] = 8e3] = "UP_TO_SILO_V3";
|
|
352
|
+
LenderIds2[LenderIds2["UP_TO_FLUID"] = 8e3] = "UP_TO_FLUID";
|
|
353
|
+
LenderIds2[LenderIds2["UP_TO_FLUID_SMART"] = 9e3] = "UP_TO_FLUID_SMART";
|
|
354
|
+
LenderIds2[LenderIds2["UP_TO_GEARBOX_V3"] = 1e4] = "UP_TO_GEARBOX_V3";
|
|
340
355
|
return LenderIds2;
|
|
341
356
|
})(LenderIds || {});
|
|
342
357
|
function getLenderId(lender) {
|
|
@@ -357,6 +372,10 @@ function getLenderId(lender) {
|
|
|
357
372
|
return 6e3 /* UP_TO_SILO_V2 */ - 1;
|
|
358
373
|
case 7 /* SiloV3 */:
|
|
359
374
|
return 8e3 /* UP_TO_SILO_V3 */ - 1;
|
|
375
|
+
case 8 /* FluidT1 */:
|
|
376
|
+
return 8e3 /* UP_TO_FLUID */ - 1;
|
|
377
|
+
case 9 /* GearboxV3 */:
|
|
378
|
+
return 1e4 /* UP_TO_GEARBOX_V3 */ - 1;
|
|
360
379
|
default:
|
|
361
380
|
throw new Error(`getLenderId: Unsupported lender ${lender}`);
|
|
362
381
|
}
|
|
@@ -383,6 +402,12 @@ function getLenderGroup(lender) {
|
|
|
383
402
|
if (lender.startsWith("AAVE_V4")) {
|
|
384
403
|
return 2 /* AaveV4 */;
|
|
385
404
|
}
|
|
405
|
+
if (lender.startsWith("FLUID")) {
|
|
406
|
+
return 8 /* FluidT1 */;
|
|
407
|
+
}
|
|
408
|
+
if (lender.startsWith("GEARBOX_V3")) {
|
|
409
|
+
return 9 /* GearboxV3 */;
|
|
410
|
+
}
|
|
386
411
|
throw new Error(`getLenderGroup: Unsupported lender ${lender}`);
|
|
387
412
|
}
|
|
388
413
|
|
|
@@ -420,6 +445,9 @@ function isMorphoType(lender) {
|
|
|
420
445
|
function isFluid(lender) {
|
|
421
446
|
return lender?.startsWith("FLUID");
|
|
422
447
|
}
|
|
448
|
+
function isGearboxV3(lender) {
|
|
449
|
+
return lender?.startsWith("GEARBOX_V3");
|
|
450
|
+
}
|
|
423
451
|
function isVenusType(lender) {
|
|
424
452
|
return VENUS_LENDERS.includes(lender);
|
|
425
453
|
}
|
|
@@ -447,9 +475,6 @@ function isSiloV3Type(lender) {
|
|
|
447
475
|
function isSiloType(lender) {
|
|
448
476
|
return isSiloV2Type(lender) || isSiloV3Type(lender);
|
|
449
477
|
}
|
|
450
|
-
function lenderHasSubAccounts(lender) {
|
|
451
|
-
return isInit(lender);
|
|
452
|
-
}
|
|
453
478
|
var SAME_ASSET_SUPPORTED = ["INIT" /* INIT */, ...AAVE_LENDERS];
|
|
454
479
|
function aaveForkCannotPermit(lender) {
|
|
455
480
|
return lender?.startsWith("ZEROLEND") || lender === "HYPERYIELD" /* HYPERYIELD */;
|
|
@@ -482,7 +507,7 @@ function isCompoundV2PerTimestamp(lender) {
|
|
|
482
507
|
return isMoonwellType(lender);
|
|
483
508
|
}
|
|
484
509
|
function isMultiMarket(lender) {
|
|
485
|
-
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender);
|
|
510
|
+
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
486
511
|
}
|
|
487
512
|
function isAave(lender) {
|
|
488
513
|
return isAaveType(lender);
|
|
@@ -499,6 +524,7 @@ exports.BENQI_LENDERS = BENQI_LENDERS;
|
|
|
499
524
|
exports.COMPOUND_V2_LENDERS = COMPOUND_V2_LENDERS;
|
|
500
525
|
exports.COMPOUND_V3_LENDERS = COMPOUND_V3_LENDERS;
|
|
501
526
|
exports.FLUID_LENDERS = FLUID_LENDERS;
|
|
527
|
+
exports.GEARBOX_V3_LENDERS = GEARBOX_V3_LENDERS;
|
|
502
528
|
exports.Lender = Lender;
|
|
503
529
|
exports.LenderGroups = LenderGroups;
|
|
504
530
|
exports.LenderIds = LenderIds;
|
|
@@ -526,6 +552,7 @@ exports.isCompoundV3 = isCompoundV3;
|
|
|
526
552
|
exports.isCompoundV3Type = isCompoundV3Type;
|
|
527
553
|
exports.isEulerType = isEulerType;
|
|
528
554
|
exports.isFluid = isFluid;
|
|
555
|
+
exports.isGearboxV3 = isGearboxV3;
|
|
529
556
|
exports.isInit = isInit;
|
|
530
557
|
exports.isLista = isLista;
|
|
531
558
|
exports.isListaDao = isListaDao;
|
|
@@ -540,5 +567,4 @@ exports.isSumerType = isSumerType;
|
|
|
540
567
|
exports.isTectonicType = isTectonicType;
|
|
541
568
|
exports.isVenusType = isVenusType;
|
|
542
569
|
exports.isYLDR = isYLDR;
|
|
543
|
-
exports.lenderHasSubAccounts = lenderHasSubAccounts;
|
|
544
570
|
exports.supportsSameAsset = supportsSameAsset;
|
package/dist/index.mjs
CHANGED
|
@@ -54,6 +54,10 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
54
54
|
Lender2["YEI"] = "YEI";
|
|
55
55
|
Lender2["YEI_SOLV"] = "YEI_SOLV";
|
|
56
56
|
Lender2["NEVERLAND"] = "NEVERLAND";
|
|
57
|
+
Lender2["KONA_LEND"] = "KONA_LEND";
|
|
58
|
+
Lender2["EDEL"] = "EDEL";
|
|
59
|
+
Lender2["VOLTAGE_LENDING"] = "VOLTAGE_LENDING";
|
|
60
|
+
Lender2["AQUALOAN"] = "AQUALOAN";
|
|
57
61
|
Lender2["ZEROLEND"] = "ZEROLEND";
|
|
58
62
|
Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
|
|
59
63
|
Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
|
|
@@ -147,6 +151,7 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
147
151
|
Lender2["MORPHO_BLUE"] = "MORPHO_BLUE";
|
|
148
152
|
Lender2["LISTA_DAO"] = "LISTA_DAO";
|
|
149
153
|
Lender2["FLUID"] = "FLUID";
|
|
154
|
+
Lender2["GEARBOX_V3"] = "GEARBOX_V3";
|
|
150
155
|
Lender2["SILO_V2"] = "SILO_V2";
|
|
151
156
|
Lender2["SILO_V3"] = "SILO_V3";
|
|
152
157
|
Lender2["EULER_V2"] = "EULER_V2";
|
|
@@ -222,6 +227,10 @@ var AAVE_V3_LENDERS = [
|
|
|
222
227
|
"YEI" /* YEI */,
|
|
223
228
|
"YEI_SOLV" /* YEI_SOLV */,
|
|
224
229
|
"NEVERLAND" /* NEVERLAND */,
|
|
230
|
+
"KONA_LEND" /* KONA_LEND */,
|
|
231
|
+
"EDEL" /* EDEL */,
|
|
232
|
+
"VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
|
|
233
|
+
"AQUALOAN" /* AQUALOAN */,
|
|
225
234
|
// zerolends
|
|
226
235
|
"ZEROLEND" /* ZEROLEND */,
|
|
227
236
|
"ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
|
|
@@ -311,6 +320,7 @@ var COMPOUND_V3_LENDERS = [
|
|
|
311
320
|
];
|
|
312
321
|
var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA_DAO */];
|
|
313
322
|
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
323
|
+
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
314
324
|
var TECTONIC_LENDERS = ["TECTONIC" /* TECTONIC */, "TECTONIC_VENO" /* TECTONIC_VENO */, "TECTONIC_DEFI" /* TECTONIC_DEFI */];
|
|
315
325
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
316
326
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
@@ -324,6 +334,8 @@ var LenderGroups = /* @__PURE__ */ ((LenderGroups2) => {
|
|
|
324
334
|
LenderGroups2[LenderGroups2["MorphoBlue"] = 5] = "MorphoBlue";
|
|
325
335
|
LenderGroups2[LenderGroups2["SiloV2"] = 6] = "SiloV2";
|
|
326
336
|
LenderGroups2[LenderGroups2["SiloV3"] = 7] = "SiloV3";
|
|
337
|
+
LenderGroups2[LenderGroups2["FluidT1"] = 8] = "FluidT1";
|
|
338
|
+
LenderGroups2[LenderGroups2["GearboxV3"] = 9] = "GearboxV3";
|
|
327
339
|
return LenderGroups2;
|
|
328
340
|
})(LenderGroups || {});
|
|
329
341
|
var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
|
|
@@ -335,6 +347,9 @@ var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
|
|
|
335
347
|
LenderIds2[LenderIds2["UP_TO_SILO_V2"] = 6e3] = "UP_TO_SILO_V2";
|
|
336
348
|
LenderIds2[LenderIds2["UP_TO_AAVE_V4"] = 7e3] = "UP_TO_AAVE_V4";
|
|
337
349
|
LenderIds2[LenderIds2["UP_TO_SILO_V3"] = 8e3] = "UP_TO_SILO_V3";
|
|
350
|
+
LenderIds2[LenderIds2["UP_TO_FLUID"] = 8e3] = "UP_TO_FLUID";
|
|
351
|
+
LenderIds2[LenderIds2["UP_TO_FLUID_SMART"] = 9e3] = "UP_TO_FLUID_SMART";
|
|
352
|
+
LenderIds2[LenderIds2["UP_TO_GEARBOX_V3"] = 1e4] = "UP_TO_GEARBOX_V3";
|
|
338
353
|
return LenderIds2;
|
|
339
354
|
})(LenderIds || {});
|
|
340
355
|
function getLenderId(lender) {
|
|
@@ -355,6 +370,10 @@ function getLenderId(lender) {
|
|
|
355
370
|
return 6e3 /* UP_TO_SILO_V2 */ - 1;
|
|
356
371
|
case 7 /* SiloV3 */:
|
|
357
372
|
return 8e3 /* UP_TO_SILO_V3 */ - 1;
|
|
373
|
+
case 8 /* FluidT1 */:
|
|
374
|
+
return 8e3 /* UP_TO_FLUID */ - 1;
|
|
375
|
+
case 9 /* GearboxV3 */:
|
|
376
|
+
return 1e4 /* UP_TO_GEARBOX_V3 */ - 1;
|
|
358
377
|
default:
|
|
359
378
|
throw new Error(`getLenderId: Unsupported lender ${lender}`);
|
|
360
379
|
}
|
|
@@ -381,6 +400,12 @@ function getLenderGroup(lender) {
|
|
|
381
400
|
if (lender.startsWith("AAVE_V4")) {
|
|
382
401
|
return 2 /* AaveV4 */;
|
|
383
402
|
}
|
|
403
|
+
if (lender.startsWith("FLUID")) {
|
|
404
|
+
return 8 /* FluidT1 */;
|
|
405
|
+
}
|
|
406
|
+
if (lender.startsWith("GEARBOX_V3")) {
|
|
407
|
+
return 9 /* GearboxV3 */;
|
|
408
|
+
}
|
|
384
409
|
throw new Error(`getLenderGroup: Unsupported lender ${lender}`);
|
|
385
410
|
}
|
|
386
411
|
|
|
@@ -418,6 +443,9 @@ function isMorphoType(lender) {
|
|
|
418
443
|
function isFluid(lender) {
|
|
419
444
|
return lender?.startsWith("FLUID");
|
|
420
445
|
}
|
|
446
|
+
function isGearboxV3(lender) {
|
|
447
|
+
return lender?.startsWith("GEARBOX_V3");
|
|
448
|
+
}
|
|
421
449
|
function isVenusType(lender) {
|
|
422
450
|
return VENUS_LENDERS.includes(lender);
|
|
423
451
|
}
|
|
@@ -445,9 +473,6 @@ function isSiloV3Type(lender) {
|
|
|
445
473
|
function isSiloType(lender) {
|
|
446
474
|
return isSiloV2Type(lender) || isSiloV3Type(lender);
|
|
447
475
|
}
|
|
448
|
-
function lenderHasSubAccounts(lender) {
|
|
449
|
-
return isInit(lender);
|
|
450
|
-
}
|
|
451
476
|
var SAME_ASSET_SUPPORTED = ["INIT" /* INIT */, ...AAVE_LENDERS];
|
|
452
477
|
function aaveForkCannotPermit(lender) {
|
|
453
478
|
return lender?.startsWith("ZEROLEND") || lender === "HYPERYIELD" /* HYPERYIELD */;
|
|
@@ -480,7 +505,7 @@ function isCompoundV2PerTimestamp(lender) {
|
|
|
480
505
|
return isMoonwellType(lender);
|
|
481
506
|
}
|
|
482
507
|
function isMultiMarket(lender) {
|
|
483
|
-
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender);
|
|
508
|
+
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
484
509
|
}
|
|
485
510
|
function isAave(lender) {
|
|
486
511
|
return isAaveType(lender);
|
|
@@ -489,4 +514,4 @@ function isCompoundV2(lender) {
|
|
|
489
514
|
return isCompoundV2Type(lender);
|
|
490
515
|
}
|
|
491
516
|
|
|
492
|
-
export { AAVE_LENDERS, AAVE_V2_LENDERS, AAVE_V32_LENDERS, AAVE_V3_LENDERS, BENQI_LENDERS, COMPOUND_V2_LENDERS, COMPOUND_V3_LENDERS, FLUID_LENDERS, Lender, LenderGroups, LenderIds, MORPHO_BLUE_LENDERS, SILO_V2_LENDERS, SILO_V3_LENDERS, TECTONIC_LENDERS, VENUS_LENDERS, aaveForkCannotPermit, extractLenderBeforeLastUnderscore, getLenderGroup, getLenderId, isAave, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isAaveV4Type, isBenqiType, isCompoundV2, isCompoundV2PerSecond, isCompoundV2PerTimestamp, isCompoundV2Type, isCompoundV3, isCompoundV3Type, isEulerType, isFluid, isInit, isLista, isListaDao, isMoonwellType, isMorphoBlue, isMorphoType, isMultiMarket, isSiloType, isSiloV2Type, isSiloV3Type, isSumerType, isTectonicType, isVenusType, isYLDR,
|
|
517
|
+
export { AAVE_LENDERS, AAVE_V2_LENDERS, AAVE_V32_LENDERS, AAVE_V3_LENDERS, BENQI_LENDERS, COMPOUND_V2_LENDERS, COMPOUND_V3_LENDERS, FLUID_LENDERS, GEARBOX_V3_LENDERS, Lender, LenderGroups, LenderIds, MORPHO_BLUE_LENDERS, SILO_V2_LENDERS, SILO_V3_LENDERS, TECTONIC_LENDERS, VENUS_LENDERS, aaveForkCannotPermit, extractLenderBeforeLastUnderscore, getLenderGroup, getLenderId, isAave, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isAaveV4Type, isBenqiType, isCompoundV2, isCompoundV2PerSecond, isCompoundV2PerTimestamp, isCompoundV2Type, isCompoundV3, isCompoundV3Type, isEulerType, isFluid, isGearboxV3, isInit, isLista, isListaDao, isMoonwellType, isMorphoBlue, isMorphoType, isMultiMarket, isSiloType, isSiloV2Type, isSiloV3Type, isSumerType, isTectonicType, isVenusType, isYLDR, supportsSameAsset };
|
package/dist/lenders.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ export declare enum Lender {
|
|
|
54
54
|
YEI = "YEI",
|
|
55
55
|
YEI_SOLV = "YEI_SOLV",
|
|
56
56
|
NEVERLAND = "NEVERLAND",
|
|
57
|
+
KONA_LEND = "KONA_LEND",
|
|
58
|
+
EDEL = "EDEL",
|
|
59
|
+
VOLTAGE_LENDING = "VOLTAGE_LENDING",
|
|
60
|
+
AQUALOAN = "AQUALOAN",
|
|
57
61
|
ZEROLEND = "ZEROLEND",
|
|
58
62
|
ZEROLEND_STABLECOINS_RWA = "ZEROLEND_STABLECOINS_RWA",
|
|
59
63
|
ZEROLEND_ETH_LRTS = "ZEROLEND_ETH_LRTS",
|
|
@@ -149,6 +153,7 @@ export declare enum Lender {
|
|
|
149
153
|
MORPHO_BLUE = "MORPHO_BLUE",
|
|
150
154
|
LISTA_DAO = "LISTA_DAO",
|
|
151
155
|
FLUID = "FLUID",
|
|
156
|
+
GEARBOX_V3 = "GEARBOX_V3",
|
|
152
157
|
SILO_V2 = "SILO_V2",
|
|
153
158
|
SILO_V3 = "SILO_V3",
|
|
154
159
|
EULER_V2 = "EULER_V2",
|
|
@@ -171,6 +176,8 @@ export declare const COMPOUND_V3_LENDERS: Lender[];
|
|
|
171
176
|
export declare const MORPHO_BLUE_LENDERS: Lender[];
|
|
172
177
|
/** Fluid — single entity. Per-vault keys `FLUID_<vaultId>` are synthesized at runtime. */
|
|
173
178
|
export declare const FLUID_LENDERS: Lender[];
|
|
179
|
+
/** Gearbox V3 — single entity. Per-CreditManager keys `GEARBOX_V3_<HEX>` are synthesized at runtime. */
|
|
180
|
+
export declare const GEARBOX_V3_LENDERS: Lender[];
|
|
174
181
|
/** Tectonic lenders */
|
|
175
182
|
export declare const TECTONIC_LENDERS: Lender[];
|
|
176
183
|
/** Benqi lenders */
|
|
@@ -191,7 +198,9 @@ export declare enum LenderGroups {
|
|
|
191
198
|
CompoundV3 = 4,
|
|
192
199
|
MorphoBlue = 5,
|
|
193
200
|
SiloV2 = 6,
|
|
194
|
-
SiloV3 = 7
|
|
201
|
+
SiloV3 = 7,
|
|
202
|
+
FluidT1 = 8,
|
|
203
|
+
GearboxV3 = 9
|
|
195
204
|
}
|
|
196
205
|
export declare enum LenderIds {
|
|
197
206
|
UP_TO_AAVE_V3 = 1000,
|
|
@@ -201,7 +210,10 @@ export declare enum LenderIds {
|
|
|
201
210
|
UP_TO_MORPHO = 5000,
|
|
202
211
|
UP_TO_SILO_V2 = 6000,
|
|
203
212
|
UP_TO_AAVE_V4 = 7000,
|
|
204
|
-
UP_TO_SILO_V3 = 8000
|
|
213
|
+
UP_TO_SILO_V3 = 8000,
|
|
214
|
+
UP_TO_FLUID = 8000,
|
|
215
|
+
UP_TO_FLUID_SMART = 9000,
|
|
216
|
+
UP_TO_GEARBOX_V3 = 10000
|
|
205
217
|
}
|
|
206
218
|
/** Get lenderId for lender enum */
|
|
207
219
|
export declare function getLenderId(lender: LenderGroups): number;
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
2
|
+
"name": "@1delta/lender-registry",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"version": "0.0.26",
|
|
8
|
+
"description": "Lenders as Enums for convenience",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"dex"
|
|
14
|
+
],
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"module": "dist/index.mjs",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"tsup": "^8.5.1",
|
|
21
|
+
"typescript": "^5.9.3"
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=20"
|
|
25
|
+
},
|
|
26
|
+
"prettier": {
|
|
27
|
+
"printWidth": 120,
|
|
28
|
+
"semi": false,
|
|
29
|
+
"singleQuote": true
|
|
30
|
+
},
|
|
31
|
+
"exports": {
|
|
32
|
+
"./package.json": "./package.json",
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.mjs",
|
|
36
|
+
"require": "./dist/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsup",
|
|
41
|
+
"dev": "tsup --watch",
|
|
42
|
+
"test": "vitest --run",
|
|
43
|
+
"coverage": "vitest run --coverage",
|
|
44
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
45
|
+
}
|
|
46
|
+
}
|