@1delta/lender-registry 0.0.29 → 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 +15 -1
- package/dist/index.mjs +14 -2
- package/dist/lenders.d.ts +6 -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
|
@@ -61,6 +61,7 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
61
61
|
Lender2["VOLTAGE_LENDING"] = "VOLTAGE_LENDING";
|
|
62
62
|
Lender2["AQUALOAN"] = "AQUALOAN";
|
|
63
63
|
Lender2["BETTER_BANK"] = "BETTER_BANK";
|
|
64
|
+
Lender2["BETTER_BANK_ATROPA"] = "BETTER_BANK_ATROPA";
|
|
64
65
|
Lender2["ZEROLEND"] = "ZEROLEND";
|
|
65
66
|
Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
|
|
66
67
|
Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
|
|
@@ -131,6 +132,9 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
131
132
|
Lender2["TECTONIC"] = "TECTONIC";
|
|
132
133
|
Lender2["TECTONIC_VENO"] = "TECTONIC_VENO";
|
|
133
134
|
Lender2["TECTONIC_DEFI"] = "TECTONIC_DEFI";
|
|
135
|
+
Lender2["KINETIC"] = "KINETIC";
|
|
136
|
+
Lender2["KINETIC_FXRP"] = "KINETIC_FXRP";
|
|
137
|
+
Lender2["KINETIC_JOULE"] = "KINETIC_JOULE";
|
|
134
138
|
Lender2["SHOEBILL"] = "SHOEBILL";
|
|
135
139
|
Lender2["DFORCE"] = "DFORCE";
|
|
136
140
|
Lender2["TENDER"] = "TENDER";
|
|
@@ -235,6 +239,7 @@ var AAVE_V3_LENDERS = [
|
|
|
235
239
|
"VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
|
|
236
240
|
"AQUALOAN" /* AQUALOAN */,
|
|
237
241
|
"BETTER_BANK" /* BETTER_BANK */,
|
|
242
|
+
"BETTER_BANK_ATROPA" /* BETTER_BANK_ATROPA */,
|
|
238
243
|
// zerolends
|
|
239
244
|
"ZEROLEND" /* ZEROLEND */,
|
|
240
245
|
"ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
|
|
@@ -302,6 +307,9 @@ var COMPOUND_V2_LENDERS = [
|
|
|
302
307
|
"TECTONIC" /* TECTONIC */,
|
|
303
308
|
"TECTONIC_DEFI" /* TECTONIC_DEFI */,
|
|
304
309
|
"TECTONIC_VENO" /* TECTONIC_VENO */,
|
|
310
|
+
"KINETIC" /* KINETIC */,
|
|
311
|
+
"KINETIC_FXRP" /* KINETIC_FXRP */,
|
|
312
|
+
"KINETIC_JOULE" /* KINETIC_JOULE */,
|
|
305
313
|
"TENDER" /* TENDER */,
|
|
306
314
|
"FLUX_FINANCE" /* FLUX_FINANCE */,
|
|
307
315
|
"WE_PIGGY" /* WE_PIGGY */,
|
|
@@ -326,6 +334,7 @@ var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA
|
|
|
326
334
|
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
327
335
|
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
328
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 */];
|
|
329
338
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
330
339
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
331
340
|
var SILO_V3_LENDERS = ["SILO_V3" /* SILO_V3 */];
|
|
@@ -502,11 +511,14 @@ function isTectonicType(lender) {
|
|
|
502
511
|
function isBenqiType(lender) {
|
|
503
512
|
return BENQI_LENDERS.includes(lender);
|
|
504
513
|
}
|
|
514
|
+
function isKineticType(lender) {
|
|
515
|
+
return KINETIC_LENDERS.includes(lender);
|
|
516
|
+
}
|
|
505
517
|
function isMoonwellType(lender) {
|
|
506
518
|
return lender === "MOONWELL" /* MOONWELL */;
|
|
507
519
|
}
|
|
508
520
|
function isCompoundV2PerTimestamp(lender) {
|
|
509
|
-
return isMoonwellType(lender);
|
|
521
|
+
return isMoonwellType(lender) || isKineticType(lender);
|
|
510
522
|
}
|
|
511
523
|
function isMultiMarket(lender) {
|
|
512
524
|
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
@@ -527,6 +539,7 @@ exports.COMPOUND_V2_LENDERS = COMPOUND_V2_LENDERS;
|
|
|
527
539
|
exports.COMPOUND_V3_LENDERS = COMPOUND_V3_LENDERS;
|
|
528
540
|
exports.FLUID_LENDERS = FLUID_LENDERS;
|
|
529
541
|
exports.GEARBOX_V3_LENDERS = GEARBOX_V3_LENDERS;
|
|
542
|
+
exports.KINETIC_LENDERS = KINETIC_LENDERS;
|
|
530
543
|
exports.Lender = Lender;
|
|
531
544
|
exports.LenderGroups = LenderGroups;
|
|
532
545
|
exports.LenderIds = LenderIds;
|
|
@@ -556,6 +569,7 @@ exports.isEulerType = isEulerType;
|
|
|
556
569
|
exports.isFluid = isFluid;
|
|
557
570
|
exports.isGearboxV3 = isGearboxV3;
|
|
558
571
|
exports.isInit = isInit;
|
|
572
|
+
exports.isKineticType = isKineticType;
|
|
559
573
|
exports.isLista = isLista;
|
|
560
574
|
exports.isListaDao = isListaDao;
|
|
561
575
|
exports.isMoonwellType = isMoonwellType;
|
package/dist/index.mjs
CHANGED
|
@@ -59,6 +59,7 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
59
59
|
Lender2["VOLTAGE_LENDING"] = "VOLTAGE_LENDING";
|
|
60
60
|
Lender2["AQUALOAN"] = "AQUALOAN";
|
|
61
61
|
Lender2["BETTER_BANK"] = "BETTER_BANK";
|
|
62
|
+
Lender2["BETTER_BANK_ATROPA"] = "BETTER_BANK_ATROPA";
|
|
62
63
|
Lender2["ZEROLEND"] = "ZEROLEND";
|
|
63
64
|
Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
|
|
64
65
|
Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
|
|
@@ -129,6 +130,9 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
|
|
|
129
130
|
Lender2["TECTONIC"] = "TECTONIC";
|
|
130
131
|
Lender2["TECTONIC_VENO"] = "TECTONIC_VENO";
|
|
131
132
|
Lender2["TECTONIC_DEFI"] = "TECTONIC_DEFI";
|
|
133
|
+
Lender2["KINETIC"] = "KINETIC";
|
|
134
|
+
Lender2["KINETIC_FXRP"] = "KINETIC_FXRP";
|
|
135
|
+
Lender2["KINETIC_JOULE"] = "KINETIC_JOULE";
|
|
132
136
|
Lender2["SHOEBILL"] = "SHOEBILL";
|
|
133
137
|
Lender2["DFORCE"] = "DFORCE";
|
|
134
138
|
Lender2["TENDER"] = "TENDER";
|
|
@@ -233,6 +237,7 @@ var AAVE_V3_LENDERS = [
|
|
|
233
237
|
"VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
|
|
234
238
|
"AQUALOAN" /* AQUALOAN */,
|
|
235
239
|
"BETTER_BANK" /* BETTER_BANK */,
|
|
240
|
+
"BETTER_BANK_ATROPA" /* BETTER_BANK_ATROPA */,
|
|
236
241
|
// zerolends
|
|
237
242
|
"ZEROLEND" /* ZEROLEND */,
|
|
238
243
|
"ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
|
|
@@ -300,6 +305,9 @@ var COMPOUND_V2_LENDERS = [
|
|
|
300
305
|
"TECTONIC" /* TECTONIC */,
|
|
301
306
|
"TECTONIC_DEFI" /* TECTONIC_DEFI */,
|
|
302
307
|
"TECTONIC_VENO" /* TECTONIC_VENO */,
|
|
308
|
+
"KINETIC" /* KINETIC */,
|
|
309
|
+
"KINETIC_FXRP" /* KINETIC_FXRP */,
|
|
310
|
+
"KINETIC_JOULE" /* KINETIC_JOULE */,
|
|
303
311
|
"TENDER" /* TENDER */,
|
|
304
312
|
"FLUX_FINANCE" /* FLUX_FINANCE */,
|
|
305
313
|
"WE_PIGGY" /* WE_PIGGY */,
|
|
@@ -324,6 +332,7 @@ var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA
|
|
|
324
332
|
var FLUID_LENDERS = ["FLUID" /* FLUID */];
|
|
325
333
|
var GEARBOX_V3_LENDERS = ["GEARBOX_V3" /* GEARBOX_V3 */];
|
|
326
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 */];
|
|
327
336
|
var BENQI_LENDERS = ["BENQI" /* BENQI */, "BENQI_AVALANCHE_ECOSYSTEM" /* BENQI_AVALANCHE_ECOSYSTEM */];
|
|
328
337
|
var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
|
|
329
338
|
var SILO_V3_LENDERS = ["SILO_V3" /* SILO_V3 */];
|
|
@@ -500,11 +509,14 @@ function isTectonicType(lender) {
|
|
|
500
509
|
function isBenqiType(lender) {
|
|
501
510
|
return BENQI_LENDERS.includes(lender);
|
|
502
511
|
}
|
|
512
|
+
function isKineticType(lender) {
|
|
513
|
+
return KINETIC_LENDERS.includes(lender);
|
|
514
|
+
}
|
|
503
515
|
function isMoonwellType(lender) {
|
|
504
516
|
return lender === "MOONWELL" /* MOONWELL */;
|
|
505
517
|
}
|
|
506
518
|
function isCompoundV2PerTimestamp(lender) {
|
|
507
|
-
return isMoonwellType(lender);
|
|
519
|
+
return isMoonwellType(lender) || isKineticType(lender);
|
|
508
520
|
}
|
|
509
521
|
function isMultiMarket(lender) {
|
|
510
522
|
return isMorphoBlue(lender) || isListaDao(lender) || isFluid(lender) || isGearboxV3(lender);
|
|
@@ -516,4 +528,4 @@ function isCompoundV2(lender) {
|
|
|
516
528
|
return isCompoundV2Type(lender);
|
|
517
529
|
}
|
|
518
530
|
|
|
519
|
-
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
|
@@ -59,6 +59,7 @@ export declare enum Lender {
|
|
|
59
59
|
VOLTAGE_LENDING = "VOLTAGE_LENDING",
|
|
60
60
|
AQUALOAN = "AQUALOAN",
|
|
61
61
|
BETTER_BANK = "BETTER_BANK",
|
|
62
|
+
BETTER_BANK_ATROPA = "BETTER_BANK_ATROPA",
|
|
62
63
|
ZEROLEND = "ZEROLEND",
|
|
63
64
|
ZEROLEND_STABLECOINS_RWA = "ZEROLEND_STABLECOINS_RWA",
|
|
64
65
|
ZEROLEND_ETH_LRTS = "ZEROLEND_ETH_LRTS",
|
|
@@ -130,6 +131,9 @@ export declare enum Lender {
|
|
|
130
131
|
TECTONIC = "TECTONIC",
|
|
131
132
|
TECTONIC_VENO = "TECTONIC_VENO",
|
|
132
133
|
TECTONIC_DEFI = "TECTONIC_DEFI",
|
|
134
|
+
KINETIC = "KINETIC",
|
|
135
|
+
KINETIC_FXRP = "KINETIC_FXRP",
|
|
136
|
+
KINETIC_JOULE = "KINETIC_JOULE",
|
|
133
137
|
SHOEBILL = "SHOEBILL",
|
|
134
138
|
DFORCE = "DFORCE",
|
|
135
139
|
TENDER = "TENDER",
|
|
@@ -181,6 +185,8 @@ export declare const FLUID_LENDERS: Lender[];
|
|
|
181
185
|
export declare const GEARBOX_V3_LENDERS: Lender[];
|
|
182
186
|
/** Tectonic lenders */
|
|
183
187
|
export declare const TECTONIC_LENDERS: Lender[];
|
|
188
|
+
/** Kinetic lenders */
|
|
189
|
+
export declare const KINETIC_LENDERS: Lender[];
|
|
184
190
|
/** Benqi lenders */
|
|
185
191
|
export declare const BENQI_LENDERS: Lender[];
|
|
186
192
|
/** Silo lenders */
|