@1delta/lender-registry 0.0.25 → 0.0.27

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 CHANGED
@@ -22,7 +22,6 @@ export declare function isAaveV4Type(lender: string): boolean;
22
22
  export declare function isSiloV2Type(lender: string): boolean;
23
23
  export declare function isSiloV3Type(lender: string): boolean;
24
24
  export declare function isSiloType(lender: string): boolean;
25
- export declare function lenderHasSubAccounts(lender: string): lender is Lender.INIT;
26
25
  export declare function aaveForkCannotPermit(lender: string): boolean;
27
26
  export declare function supportsSameAsset(lender: string): boolean;
28
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, lenderHasSubAccounts, 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, isMoonwellType, isCompoundV2PerTimestamp, isMultiMarket, isAave, isCompoundV2, isAaveV4Type, isSiloV2Type, isSiloV3Type, isSiloType, isFluid, isGearboxV3, } from './getters.js';
package/dist/index.js CHANGED
@@ -56,6 +56,11 @@ 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";
63
+ Lender2["BETTER_BANK"] = "BETTER_BANK";
59
64
  Lender2["ZEROLEND"] = "ZEROLEND";
60
65
  Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
61
66
  Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
@@ -225,6 +230,11 @@ var AAVE_V3_LENDERS = [
225
230
  "YEI" /* YEI */,
226
231
  "YEI_SOLV" /* YEI_SOLV */,
227
232
  "NEVERLAND" /* NEVERLAND */,
233
+ "KONA_LEND" /* KONA_LEND */,
234
+ "EDEL" /* EDEL */,
235
+ "VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
236
+ "AQUALOAN" /* AQUALOAN */,
237
+ "BETTER_BANK" /* BETTER_BANK */,
228
238
  // zerolends
229
239
  "ZEROLEND" /* ZEROLEND */,
230
240
  "ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
@@ -328,6 +338,8 @@ var LenderGroups = /* @__PURE__ */ ((LenderGroups2) => {
328
338
  LenderGroups2[LenderGroups2["MorphoBlue"] = 5] = "MorphoBlue";
329
339
  LenderGroups2[LenderGroups2["SiloV2"] = 6] = "SiloV2";
330
340
  LenderGroups2[LenderGroups2["SiloV3"] = 7] = "SiloV3";
341
+ LenderGroups2[LenderGroups2["FluidT1"] = 8] = "FluidT1";
342
+ LenderGroups2[LenderGroups2["GearboxV3"] = 9] = "GearboxV3";
331
343
  return LenderGroups2;
332
344
  })(LenderGroups || {});
333
345
  var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
@@ -339,6 +351,9 @@ var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
339
351
  LenderIds2[LenderIds2["UP_TO_SILO_V2"] = 6e3] = "UP_TO_SILO_V2";
340
352
  LenderIds2[LenderIds2["UP_TO_AAVE_V4"] = 7e3] = "UP_TO_AAVE_V4";
341
353
  LenderIds2[LenderIds2["UP_TO_SILO_V3"] = 8e3] = "UP_TO_SILO_V3";
354
+ LenderIds2[LenderIds2["UP_TO_FLUID"] = 8e3] = "UP_TO_FLUID";
355
+ LenderIds2[LenderIds2["UP_TO_FLUID_SMART"] = 9e3] = "UP_TO_FLUID_SMART";
356
+ LenderIds2[LenderIds2["UP_TO_GEARBOX_V3"] = 1e4] = "UP_TO_GEARBOX_V3";
342
357
  return LenderIds2;
343
358
  })(LenderIds || {});
344
359
  function getLenderId(lender) {
@@ -359,6 +374,10 @@ function getLenderId(lender) {
359
374
  return 6e3 /* UP_TO_SILO_V2 */ - 1;
360
375
  case 7 /* SiloV3 */:
361
376
  return 8e3 /* UP_TO_SILO_V3 */ - 1;
377
+ case 8 /* FluidT1 */:
378
+ return 8e3 /* UP_TO_FLUID */ - 1;
379
+ case 9 /* GearboxV3 */:
380
+ return 1e4 /* UP_TO_GEARBOX_V3 */ - 1;
362
381
  default:
363
382
  throw new Error(`getLenderId: Unsupported lender ${lender}`);
364
383
  }
@@ -385,6 +404,12 @@ function getLenderGroup(lender) {
385
404
  if (lender.startsWith("AAVE_V4")) {
386
405
  return 2 /* AaveV4 */;
387
406
  }
407
+ if (lender.startsWith("FLUID")) {
408
+ return 8 /* FluidT1 */;
409
+ }
410
+ if (lender.startsWith("GEARBOX_V3")) {
411
+ return 9 /* GearboxV3 */;
412
+ }
388
413
  throw new Error(`getLenderGroup: Unsupported lender ${lender}`);
389
414
  }
390
415
 
@@ -452,9 +477,6 @@ function isSiloV3Type(lender) {
452
477
  function isSiloType(lender) {
453
478
  return isSiloV2Type(lender) || isSiloV3Type(lender);
454
479
  }
455
- function lenderHasSubAccounts(lender) {
456
- return isInit(lender);
457
- }
458
480
  var SAME_ASSET_SUPPORTED = ["INIT" /* INIT */, ...AAVE_LENDERS];
459
481
  function aaveForkCannotPermit(lender) {
460
482
  return lender?.startsWith("ZEROLEND") || lender === "HYPERYIELD" /* HYPERYIELD */;
@@ -547,5 +569,4 @@ exports.isSumerType = isSumerType;
547
569
  exports.isTectonicType = isTectonicType;
548
570
  exports.isVenusType = isVenusType;
549
571
  exports.isYLDR = isYLDR;
550
- exports.lenderHasSubAccounts = lenderHasSubAccounts;
551
572
  exports.supportsSameAsset = supportsSameAsset;
package/dist/index.mjs CHANGED
@@ -54,6 +54,11 @@ 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";
61
+ Lender2["BETTER_BANK"] = "BETTER_BANK";
57
62
  Lender2["ZEROLEND"] = "ZEROLEND";
58
63
  Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
59
64
  Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
@@ -223,6 +228,11 @@ var AAVE_V3_LENDERS = [
223
228
  "YEI" /* YEI */,
224
229
  "YEI_SOLV" /* YEI_SOLV */,
225
230
  "NEVERLAND" /* NEVERLAND */,
231
+ "KONA_LEND" /* KONA_LEND */,
232
+ "EDEL" /* EDEL */,
233
+ "VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
234
+ "AQUALOAN" /* AQUALOAN */,
235
+ "BETTER_BANK" /* BETTER_BANK */,
226
236
  // zerolends
227
237
  "ZEROLEND" /* ZEROLEND */,
228
238
  "ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
@@ -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
 
@@ -450,9 +475,6 @@ function isSiloV3Type(lender) {
450
475
  function isSiloType(lender) {
451
476
  return isSiloV2Type(lender) || isSiloV3Type(lender);
452
477
  }
453
- function lenderHasSubAccounts(lender) {
454
- return isInit(lender);
455
- }
456
478
  var SAME_ASSET_SUPPORTED = ["INIT" /* INIT */, ...AAVE_LENDERS];
457
479
  function aaveForkCannotPermit(lender) {
458
480
  return lender?.startsWith("ZEROLEND") || lender === "HYPERYIELD" /* HYPERYIELD */;
@@ -494,4 +516,4 @@ function isCompoundV2(lender) {
494
516
  return isCompoundV2Type(lender);
495
517
  }
496
518
 
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 };
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 };
package/dist/lenders.d.ts CHANGED
@@ -54,6 +54,11 @@ 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",
61
+ BETTER_BANK = "BETTER_BANK",
57
62
  ZEROLEND = "ZEROLEND",
58
63
  ZEROLEND_STABLECOINS_RWA = "ZEROLEND_STABLECOINS_RWA",
59
64
  ZEROLEND_ETH_LRTS = "ZEROLEND_ETH_LRTS",
@@ -194,7 +199,9 @@ export declare enum LenderGroups {
194
199
  CompoundV3 = 4,
195
200
  MorphoBlue = 5,
196
201
  SiloV2 = 6,
197
- SiloV3 = 7
202
+ SiloV3 = 7,
203
+ FluidT1 = 8,
204
+ GearboxV3 = 9
198
205
  }
199
206
  export declare enum LenderIds {
200
207
  UP_TO_AAVE_V3 = 1000,
@@ -204,7 +211,10 @@ export declare enum LenderIds {
204
211
  UP_TO_MORPHO = 5000,
205
212
  UP_TO_SILO_V2 = 6000,
206
213
  UP_TO_AAVE_V4 = 7000,
207
- UP_TO_SILO_V3 = 8000
214
+ UP_TO_SILO_V3 = 8000,
215
+ UP_TO_FLUID = 8000,
216
+ UP_TO_FLUID_SMART = 9000,
217
+ UP_TO_GEARBOX_V3 = 10000
208
218
  }
209
219
  /** Get lenderId for lender enum */
210
220
  export declare function getLenderId(lender: LenderGroups): number;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.0.25",
7
+ "version": "0.0.27",
8
8
  "description": "Lenders as Enums for convenience",
9
9
  "files": [
10
10
  "dist"