@1delta/lender-registry 0.0.30 → 0.0.31
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 +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -1
- package/dist/index.mjs +12 -2
- package/dist/lenders.d.ts +5 -0
- package/package.json +1 -1
package/dist/getters.d.ts
CHANGED
|
@@ -39,14 +39,15 @@ export declare function isSumerType(lender: string): lender is Lender.SUMER;
|
|
|
39
39
|
export declare function isCompoundV2PerSecond(lender: string): lender is Lender.SUMER;
|
|
40
40
|
export declare function isTectonicType(lender: string): boolean;
|
|
41
41
|
export declare function isBenqiType(lender: string): boolean;
|
|
42
|
+
export declare function isKineticType(lender: string): boolean;
|
|
42
43
|
export declare function isMoonwellType(lender: string): lender is Lender.MOONWELL;
|
|
43
44
|
/**
|
|
44
45
|
* Returns true for Compound V2 forks that store interest rates per-timestamp
|
|
45
46
|
* (instead of per-block or per-second). These use `*PerTimestamp` getters.
|
|
46
47
|
*
|
|
47
|
-
* Known per-timestamp forks: Moonwell
|
|
48
|
+
* Known per-timestamp forks: Moonwell, Kinetic
|
|
48
49
|
*/
|
|
49
|
-
export declare function isCompoundV2PerTimestamp(lender: string):
|
|
50
|
+
export declare function isCompoundV2PerTimestamp(lender: string): boolean;
|
|
50
51
|
export declare function isMultiMarket(lender: string): boolean;
|
|
51
52
|
/** Alias for isAaveType */
|
|
52
53
|
export declare function isAave(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, aaveForkCannotPermit, supportsSameAsset, isLista, isYLDR, isSumerType, isCompoundV2PerSecond, isTectonicType, isBenqiType, isMoonwellType, isCompoundV2PerTimestamp, isMultiMarket, isAave, isCompoundV2, isAaveV4Type, isSiloV2Type, isSiloV3Type, isSiloType, isFluid, isGearboxV3, } from './getters.js';
|
|
2
|
+
export { isAaveV2Type, isAaveV3Type, isAaveV32Type, isAaveType, isCompoundV3, extractLenderBeforeLastUnderscore, isMorphoBlue, isListaDao, isMorphoType, isVenusType, isCompoundV2Type, isCompoundV3Type, isInit, isEulerType, aaveForkCannotPermit, supportsSameAsset, isLista, isYLDR, isSumerType, isCompoundV2PerSecond, isTectonicType, isBenqiType, isKineticType, isMoonwellType, isCompoundV2PerTimestamp, isMultiMarket, isAave, isCompoundV2, isAaveV4Type, isSiloV2Type, isSiloV3Type, isSiloType, isFluid, isGearboxV3, } from './getters.js';
|
package/dist/index.js
CHANGED
|
@@ -132,6 +132,9 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
132
132
|
Lender2["TECTONIC"] = "TECTONIC";
|
|
133
133
|
Lender2["TECTONIC_VENO"] = "TECTONIC_VENO";
|
|
134
134
|
Lender2["TECTONIC_DEFI"] = "TECTONIC_DEFI";
|
|
135
|
+
Lender2["KINETIC"] = "KINETIC";
|
|
136
|
+
Lender2["KINETIC_FXRP"] = "KINETIC_FXRP";
|
|
137
|
+
Lender2["KINETIC_JOULE"] = "KINETIC_JOULE";
|
|
135
138
|
Lender2["SHOEBILL"] = "SHOEBILL";
|
|
136
139
|
Lender2["DFORCE"] = "DFORCE";
|
|
137
140
|
Lender2["TENDER"] = "TENDER";
|
|
@@ -304,6 +307,9 @@ var COMPOUND_V2_LENDERS = [
|
|
|
304
307
|
"TECTONIC" /* TECTONIC */,
|
|
305
308
|
"TECTONIC_DEFI" /* TECTONIC_DEFI */,
|
|
306
309
|
"TECTONIC_VENO" /* TECTONIC_VENO */,
|
|
310
|
+
"KINETIC" /* KINETIC */,
|
|
311
|
+
"KINETIC_FXRP" /* KINETIC_FXRP */,
|
|
312
|
+
"KINETIC_JOULE" /* KINETIC_JOULE */,
|
|
307
313
|
"TENDER" /* TENDER */,
|
|
308
314
|
"FLUX_FINANCE" /* FLUX_FINANCE */,
|
|
309
315
|
"WE_PIGGY" /* WE_PIGGY */,
|
|
@@ -328,6 +334,7 @@ var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA
|
|
|
328
334
|
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
329
335
|
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
330
336
|
var TECTONIC_LENDERS = ["TECTONIC" /* TECTONIC */, "TECTONIC_VENO" /* TECTONIC_VENO */, "TECTONIC_DEFI" /* TECTONIC_DEFI */];
|
|
337
|
+
var KINETIC_LENDERS = ["KINETIC" /* KINETIC */, "KINETIC_FXRP" /* KINETIC_FXRP */, "KINETIC_JOULE" /* KINETIC_JOULE */];
|
|
331
338
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
332
339
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
333
340
|
var SILO_V3_LENDERS = ["SILO_V3" /* SILO_V3 */];
|
|
@@ -504,11 +511,14 @@ function isTectonicType(lender) {
|
|
|
504
511
|
function isBenqiType(lender) {
|
|
505
512
|
return BENQI_LENDERS.includes(lender);
|
|
506
513
|
}
|
|
514
|
+
function isKineticType(lender) {
|
|
515
|
+
return KINETIC_LENDERS.includes(lender);
|
|
516
|
+
}
|
|
507
517
|
function isMoonwellType(lender) {
|
|
508
518
|
return lender === "MOONWELL" /* MOONWELL */;
|
|
509
519
|
}
|
|
510
520
|
function isCompoundV2PerTimestamp(lender) {
|
|
511
|
-
return isMoonwellType(lender);
|
|
521
|
+
return isMoonwellType(lender) || isKineticType(lender);
|
|
512
522
|
}
|
|
513
523
|
function isMultiMarket(lender) {
|
|
514
524
|
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
@@ -529,6 +539,7 @@ exports.COMPOUND_V2_LENDERS = COMPOUND_V2_LENDERS;
|
|
|
529
539
|
exports.COMPOUND_V3_LENDERS = COMPOUND_V3_LENDERS;
|
|
530
540
|
exports.FLUID_LENDERS = FLUID_LENDERS;
|
|
531
541
|
exports.GEARBOX_V3_LENDERS = GEARBOX_V3_LENDERS;
|
|
542
|
+
exports.KINETIC_LENDERS = KINETIC_LENDERS;
|
|
532
543
|
exports.Lender = Lender;
|
|
533
544
|
exports.LenderGroups = LenderGroups;
|
|
534
545
|
exports.LenderIds = LenderIds;
|
|
@@ -558,6 +569,7 @@ exports.isEulerType = isEulerType;
|
|
|
558
569
|
exports.isFluid = isFluid;
|
|
559
570
|
exports.isGearboxV3 = isGearboxV3;
|
|
560
571
|
exports.isInit = isInit;
|
|
572
|
+
exports.isKineticType = isKineticType;
|
|
561
573
|
exports.isLista = isLista;
|
|
562
574
|
exports.isListaDao = isListaDao;
|
|
563
575
|
exports.isMoonwellType = isMoonwellType;
|
package/dist/index.mjs
CHANGED
|
@@ -130,6 +130,9 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
130
130
|
Lender2["TECTONIC"] = "TECTONIC";
|
|
131
131
|
Lender2["TECTONIC_VENO"] = "TECTONIC_VENO";
|
|
132
132
|
Lender2["TECTONIC_DEFI"] = "TECTONIC_DEFI";
|
|
133
|
+
Lender2["KINETIC"] = "KINETIC";
|
|
134
|
+
Lender2["KINETIC_FXRP"] = "KINETIC_FXRP";
|
|
135
|
+
Lender2["KINETIC_JOULE"] = "KINETIC_JOULE";
|
|
133
136
|
Lender2["SHOEBILL"] = "SHOEBILL";
|
|
134
137
|
Lender2["DFORCE"] = "DFORCE";
|
|
135
138
|
Lender2["TENDER"] = "TENDER";
|
|
@@ -302,6 +305,9 @@ var COMPOUND_V2_LENDERS = [
|
|
|
302
305
|
"TECTONIC" /* TECTONIC */,
|
|
303
306
|
"TECTONIC_DEFI" /* TECTONIC_DEFI */,
|
|
304
307
|
"TECTONIC_VENO" /* TECTONIC_VENO */,
|
|
308
|
+
"KINETIC" /* KINETIC */,
|
|
309
|
+
"KINETIC_FXRP" /* KINETIC_FXRP */,
|
|
310
|
+
"KINETIC_JOULE" /* KINETIC_JOULE */,
|
|
305
311
|
"TENDER" /* TENDER */,
|
|
306
312
|
"FLUX_FINANCE" /* FLUX_FINANCE */,
|
|
307
313
|
"WE_PIGGY" /* WE_PIGGY */,
|
|
@@ -326,6 +332,7 @@ var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA
|
|
|
326
332
|
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
327
333
|
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
328
334
|
var TECTONIC_LENDERS = ["TECTONIC" /* TECTONIC */, "TECTONIC_VENO" /* TECTONIC_VENO */, "TECTONIC_DEFI" /* TECTONIC_DEFI */];
|
|
335
|
+
var KINETIC_LENDERS = ["KINETIC" /* KINETIC */, "KINETIC_FXRP" /* KINETIC_FXRP */, "KINETIC_JOULE" /* KINETIC_JOULE */];
|
|
329
336
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
330
337
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
331
338
|
var SILO_V3_LENDERS = ["SILO_V3" /* SILO_V3 */];
|
|
@@ -502,11 +509,14 @@ function isTectonicType(lender) {
|
|
|
502
509
|
function isBenqiType(lender) {
|
|
503
510
|
return BENQI_LENDERS.includes(lender);
|
|
504
511
|
}
|
|
512
|
+
function isKineticType(lender) {
|
|
513
|
+
return KINETIC_LENDERS.includes(lender);
|
|
514
|
+
}
|
|
505
515
|
function isMoonwellType(lender) {
|
|
506
516
|
return lender === "MOONWELL" /* MOONWELL */;
|
|
507
517
|
}
|
|
508
518
|
function isCompoundV2PerTimestamp(lender) {
|
|
509
|
-
return isMoonwellType(lender);
|
|
519
|
+
return isMoonwellType(lender) || isKineticType(lender);
|
|
510
520
|
}
|
|
511
521
|
function isMultiMarket(lender) {
|
|
512
522
|
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
@@ -518,4 +528,4 @@ function isCompoundV2(lender) {
|
|
|
518
528
|
return isCompoundV2Type(lender);
|
|
519
529
|
}
|
|
520
530
|
|
|
521
|
-
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 };
|
|
531
|
+
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, KINETIC_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, isKineticType, isLista, isListaDao, isMoonwellType, isMorphoBlue, isMorphoType, isMultiMarket, isSiloType, isSiloV2Type, isSiloV3Type, isSumerType, isTectonicType, isVenusType, isYLDR, supportsSameAsset };
|
package/dist/lenders.d.ts
CHANGED
|
@@ -131,6 +131,9 @@ export declare enum Lender {
|
|
|
131
131
|
TECTONIC = "TECTONIC",
|
|
132
132
|
TECTONIC_VENO = "TECTONIC_VENO",
|
|
133
133
|
TECTONIC_DEFI = "TECTONIC_DEFI",
|
|
134
|
+
KINETIC = "KINETIC",
|
|
135
|
+
KINETIC_FXRP = "KINETIC_FXRP",
|
|
136
|
+
KINETIC_JOULE = "KINETIC_JOULE",
|
|
134
137
|
SHOEBILL = "SHOEBILL",
|
|
135
138
|
DFORCE = "DFORCE",
|
|
136
139
|
TENDER = "TENDER",
|
|
@@ -182,6 +185,8 @@ export declare const FLUID_LENDERS: Lender[];
|
|
|
182
185
|
export declare const GEARBOX_V3_LENDERS: Lender[];
|
|
183
186
|
/** Tectonic lenders */
|
|
184
187
|
export declare const TECTONIC_LENDERS: Lender[];
|
|
188
|
+
/** Kinetic lenders */
|
|
189
|
+
export declare const KINETIC_LENDERS: Lender[];
|
|
185
190
|
/** Benqi lenders */
|
|
186
191
|
export declare const BENQI_LENDERS: Lender[];
|
|
187
192
|
/** Silo lenders */
|