@1delta/lender-registry 0.0.23 → 0.0.25
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 +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -1
- package/dist/index.mjs +12 -2
- package/dist/lenders.d.ts +6 -0
- package/package.json +1 -1
package/dist/getters.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export declare function extractLenderBeforeLastUnderscore(str: string): string;
|
|
|
9
9
|
export declare function isMorphoBlue(lender: string): boolean;
|
|
10
10
|
export declare function isListaDao(lender: string): boolean;
|
|
11
11
|
export declare function isMorphoType(lender: string): boolean;
|
|
12
|
+
/** Matches the bare `FLUID` key AND synthesized per-vault keys `FLUID_<vaultId>`. */
|
|
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;
|
|
12
16
|
export declare function isVenusType(lender: string): boolean;
|
|
13
17
|
export declare function isCompoundV2Type(lender: string): boolean;
|
|
14
18
|
export declare function isCompoundV3Type(lender: string): boolean;
|
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, lenderHasSubAccounts, aaveForkCannotPermit, supportsSameAsset, isLista, isYLDR, isSumerType, isCompoundV2PerSecond, isTectonicType, isBenqiType, isMoonwellType, isCompoundV2PerTimestamp, isMultiMarket, isAave, isCompoundV2, isAaveV4Type, isSiloV2Type, isSiloV3Type, isSiloType, } from './getters.js';
|
|
2
|
+
export { isAaveV2Type, isAaveV3Type, isAaveV32Type, isAaveType, isCompoundV3, extractLenderBeforeLastUnderscore, isMorphoBlue, isListaDao, isMorphoType, isVenusType, isCompoundV2Type, isCompoundV3Type, isInit, isEulerType, lenderHasSubAccounts, 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
|
@@ -148,6 +148,8 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
148
148
|
Lender2["INIT"] = "INIT";
|
|
149
149
|
Lender2["MORPHO_BLUE"] = "MORPHO_BLUE";
|
|
150
150
|
Lender2["LISTA_DAO"] = "LISTA_DAO";
|
|
151
|
+
Lender2["FLUID"] = "FLUID";
|
|
152
|
+
Lender2["GEARBOX_V3"] = "GEARBOX_V3";
|
|
151
153
|
Lender2["SILO_V2"] = "SILO_V2";
|
|
152
154
|
Lender2["SILO_V3"] = "SILO_V3";
|
|
153
155
|
Lender2["EULER_V2"] = "EULER_V2";
|
|
@@ -311,6 +313,8 @@ var COMPOUND_V3_LENDERS = [
|
|
|
311
313
|
"COMPOUND_V3_WRON" /* COMPOUND_V3_WRON */
|
|
312
314
|
];
|
|
313
315
|
var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA_DAO */];
|
|
316
|
+
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
317
|
+
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
314
318
|
var TECTONIC_LENDERS = ["TECTONIC" /* TECTONIC */, "TECTONIC_VENO" /* TECTONIC_VENO */, "TECTONIC_DEFI" /* TECTONIC_DEFI */];
|
|
315
319
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
316
320
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
@@ -415,6 +419,12 @@ function isListaDao(lender) {
|
|
|
415
419
|
function isMorphoType(lender) {
|
|
416
420
|
return isMorphoBlue(lender) || isListaDao(lender);
|
|
417
421
|
}
|
|
422
|
+
function isFluid(lender) {
|
|
423
|
+
return lender?.startsWith("FLUID");
|
|
424
|
+
}
|
|
425
|
+
function isGearboxV3(lender) {
|
|
426
|
+
return lender?.startsWith("GEARBOX_V3");
|
|
427
|
+
}
|
|
418
428
|
function isVenusType(lender) {
|
|
419
429
|
return VENUS_LENDERS.includes(lender);
|
|
420
430
|
}
|
|
@@ -477,7 +487,7 @@ function isCompoundV2PerTimestamp(lender) {
|
|
|
477
487
|
return isMoonwellType(lender);
|
|
478
488
|
}
|
|
479
489
|
function isMultiMarket(lender) {
|
|
480
|
-
return isMorphoBlue(lender) || isListaDao(lender);
|
|
490
|
+
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
481
491
|
}
|
|
482
492
|
function isAave(lender) {
|
|
483
493
|
return isAaveType(lender);
|
|
@@ -493,6 +503,8 @@ exports.AAVE_V3_LENDERS = AAVE_V3_LENDERS;
|
|
|
493
503
|
exports.BENQI_LENDERS = BENQI_LENDERS;
|
|
494
504
|
exports.COMPOUND_V2_LENDERS = COMPOUND_V2_LENDERS;
|
|
495
505
|
exports.COMPOUND_V3_LENDERS = COMPOUND_V3_LENDERS;
|
|
506
|
+
exports.FLUID_LENDERS = FLUID_LENDERS;
|
|
507
|
+
exports.GEARBOX_V3_LENDERS = GEARBOX_V3_LENDERS;
|
|
496
508
|
exports.Lender = Lender;
|
|
497
509
|
exports.LenderGroups = LenderGroups;
|
|
498
510
|
exports.LenderIds = LenderIds;
|
|
@@ -519,6 +531,8 @@ exports.isCompoundV2Type = isCompoundV2Type;
|
|
|
519
531
|
exports.isCompoundV3 = isCompoundV3;
|
|
520
532
|
exports.isCompoundV3Type = isCompoundV3Type;
|
|
521
533
|
exports.isEulerType = isEulerType;
|
|
534
|
+
exports.isFluid = isFluid;
|
|
535
|
+
exports.isGearboxV3 = isGearboxV3;
|
|
522
536
|
exports.isInit = isInit;
|
|
523
537
|
exports.isLista = isLista;
|
|
524
538
|
exports.isListaDao = isListaDao;
|
package/dist/index.mjs
CHANGED
|
@@ -146,6 +146,8 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
146
146
|
Lender2["INIT"] = "INIT";
|
|
147
147
|
Lender2["MORPHO_BLUE"] = "MORPHO_BLUE";
|
|
148
148
|
Lender2["LISTA_DAO"] = "LISTA_DAO";
|
|
149
|
+
Lender2["FLUID"] = "FLUID";
|
|
150
|
+
Lender2["GEARBOX_V3"] = "GEARBOX_V3";
|
|
149
151
|
Lender2["SILO_V2"] = "SILO_V2";
|
|
150
152
|
Lender2["SILO_V3"] = "SILO_V3";
|
|
151
153
|
Lender2["EULER_V2"] = "EULER_V2";
|
|
@@ -309,6 +311,8 @@ var COMPOUND_V3_LENDERS = [
|
|
|
309
311
|
"COMPOUND_V3_WRON" /* COMPOUND_V3_WRON */
|
|
310
312
|
];
|
|
311
313
|
var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA_DAO */];
|
|
314
|
+
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
315
|
+
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
312
316
|
var TECTONIC_LENDERS = ["TECTONIC" /* TECTONIC */, "TECTONIC_VENO" /* TECTONIC_VENO */, "TECTONIC_DEFI" /* TECTONIC_DEFI */];
|
|
313
317
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
314
318
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
@@ -413,6 +417,12 @@ function isListaDao(lender) {
|
|
|
413
417
|
function isMorphoType(lender) {
|
|
414
418
|
return isMorphoBlue(lender) || isListaDao(lender);
|
|
415
419
|
}
|
|
420
|
+
function isFluid(lender) {
|
|
421
|
+
return lender?.startsWith("FLUID");
|
|
422
|
+
}
|
|
423
|
+
function isGearboxV3(lender) {
|
|
424
|
+
return lender?.startsWith("GEARBOX_V3");
|
|
425
|
+
}
|
|
416
426
|
function isVenusType(lender) {
|
|
417
427
|
return VENUS_LENDERS.includes(lender);
|
|
418
428
|
}
|
|
@@ -475,7 +485,7 @@ function isCompoundV2PerTimestamp(lender) {
|
|
|
475
485
|
return isMoonwellType(lender);
|
|
476
486
|
}
|
|
477
487
|
function isMultiMarket(lender) {
|
|
478
|
-
return isMorphoBlue(lender) || isListaDao(lender);
|
|
488
|
+
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
479
489
|
}
|
|
480
490
|
function isAave(lender) {
|
|
481
491
|
return isAaveType(lender);
|
|
@@ -484,4 +494,4 @@ function isCompoundV2(lender) {
|
|
|
484
494
|
return isCompoundV2Type(lender);
|
|
485
495
|
}
|
|
486
496
|
|
|
487
|
-
export { AAVE_LENDERS, AAVE_V2_LENDERS, AAVE_V32_LENDERS, AAVE_V3_LENDERS, BENQI_LENDERS, COMPOUND_V2_LENDERS, COMPOUND_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, isInit, isLista, isListaDao, isMoonwellType, isMorphoBlue, isMorphoType, isMultiMarket, isSiloType, isSiloV2Type, isSiloV3Type, isSumerType, isTectonicType, isVenusType, isYLDR, lenderHasSubAccounts, supportsSameAsset };
|
|
497
|
+
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, lenderHasSubAccounts, supportsSameAsset };
|
package/dist/lenders.d.ts
CHANGED
|
@@ -148,6 +148,8 @@ export declare enum Lender {
|
|
|
148
148
|
INIT = "INIT",
|
|
149
149
|
MORPHO_BLUE = "MORPHO_BLUE",
|
|
150
150
|
LISTA_DAO = "LISTA_DAO",
|
|
151
|
+
FLUID = "FLUID",
|
|
152
|
+
GEARBOX_V3 = "GEARBOX_V3",
|
|
151
153
|
SILO_V2 = "SILO_V2",
|
|
152
154
|
SILO_V3 = "SILO_V3",
|
|
153
155
|
EULER_V2 = "EULER_V2",
|
|
@@ -168,6 +170,10 @@ export declare const COMPOUND_V2_LENDERS: Lender[];
|
|
|
168
170
|
export declare const COMPOUND_V3_LENDERS: Lender[];
|
|
169
171
|
/** Morpho Blue lenders */
|
|
170
172
|
export declare const MORPHO_BLUE_LENDERS: Lender[];
|
|
173
|
+
/** Fluid — single entity. Per-vault keys `FLUID_<vaultId>` are synthesized at runtime. */
|
|
174
|
+
export declare const FLUID_LENDERS: Lender[];
|
|
175
|
+
/** Gearbox V3 — single entity. Per-CreditManager keys `GEARBOX_V3_<HEX>` are synthesized at runtime. */
|
|
176
|
+
export declare const GEARBOX_V3_LENDERS: Lender[];
|
|
171
177
|
/** Tectonic lenders */
|
|
172
178
|
export declare const TECTONIC_LENDERS: Lender[];
|
|
173
179
|
/** Benqi lenders */
|