@1delta/lender-registry 0.0.22 → 0.0.23
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/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
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, } 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, } from './getters.js';
|
package/dist/index.js
CHANGED
|
@@ -375,7 +375,7 @@ function getLenderGroup(lender) {
|
|
|
375
375
|
if (SILO_V3_LENDERS.includes(lender) || lender.startsWith("SILO_V3")) {
|
|
376
376
|
return 7 /* SiloV3 */;
|
|
377
377
|
}
|
|
378
|
-
if (SILO_V2_LENDERS.includes(lender)) {
|
|
378
|
+
if (SILO_V2_LENDERS.includes(lender) || lender.startsWith("SILO_V2")) {
|
|
379
379
|
return 6 /* SiloV2 */;
|
|
380
380
|
}
|
|
381
381
|
if (lender.startsWith("AAVE_V4")) {
|
|
@@ -439,6 +439,9 @@ function isSiloV2Type(lender) {
|
|
|
439
439
|
function isSiloV3Type(lender) {
|
|
440
440
|
return lender?.startsWith("SILO_V3");
|
|
441
441
|
}
|
|
442
|
+
function isSiloType(lender) {
|
|
443
|
+
return isSiloV2Type(lender) || isSiloV3Type(lender);
|
|
444
|
+
}
|
|
442
445
|
function lenderHasSubAccounts(lender) {
|
|
443
446
|
return isInit(lender);
|
|
444
447
|
}
|
|
@@ -523,6 +526,7 @@ exports.isMoonwellType = isMoonwellType;
|
|
|
523
526
|
exports.isMorphoBlue = isMorphoBlue;
|
|
524
527
|
exports.isMorphoType = isMorphoType;
|
|
525
528
|
exports.isMultiMarket = isMultiMarket;
|
|
529
|
+
exports.isSiloType = isSiloType;
|
|
526
530
|
exports.isSiloV2Type = isSiloV2Type;
|
|
527
531
|
exports.isSiloV3Type = isSiloV3Type;
|
|
528
532
|
exports.isSumerType = isSumerType;
|
package/dist/index.mjs
CHANGED
|
@@ -373,7 +373,7 @@ function getLenderGroup(lender) {
|
|
|
373
373
|
if (SILO_V3_LENDERS.includes(lender) || lender.startsWith("SILO_V3")) {
|
|
374
374
|
return 7 /* SiloV3 */;
|
|
375
375
|
}
|
|
376
|
-
if (SILO_V2_LENDERS.includes(lender)) {
|
|
376
|
+
if (SILO_V2_LENDERS.includes(lender) || lender.startsWith("SILO_V2")) {
|
|
377
377
|
return 6 /* SiloV2 */;
|
|
378
378
|
}
|
|
379
379
|
if (lender.startsWith("AAVE_V4")) {
|
|
@@ -437,6 +437,9 @@ function isSiloV2Type(lender) {
|
|
|
437
437
|
function isSiloV3Type(lender) {
|
|
438
438
|
return lender?.startsWith("SILO_V3");
|
|
439
439
|
}
|
|
440
|
+
function isSiloType(lender) {
|
|
441
|
+
return isSiloV2Type(lender) || isSiloV3Type(lender);
|
|
442
|
+
}
|
|
440
443
|
function lenderHasSubAccounts(lender) {
|
|
441
444
|
return isInit(lender);
|
|
442
445
|
}
|
|
@@ -481,4 +484,4 @@ function isCompoundV2(lender) {
|
|
|
481
484
|
return isCompoundV2Type(lender);
|
|
482
485
|
}
|
|
483
486
|
|
|
484
|
-
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, isSiloV2Type, isSiloV3Type, isSumerType, isTectonicType, isVenusType, isYLDR, lenderHasSubAccounts, supportsSameAsset };
|
|
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 };
|