@1delta/lender-registry 0.0.25 → 0.0.26

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,10 @@ 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";
59
63
  Lender2["ZEROLEND"] = "ZEROLEND";
60
64
  Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
61
65
  Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
@@ -225,6 +229,10 @@ var AAVE_V3_LENDERS = [
225
229
  "YEI" /* YEI */,
226
230
  "YEI_SOLV" /* YEI_SOLV */,
227
231
  "NEVERLAND" /* NEVERLAND */,
232
+ "KONA_LEND" /* KONA_LEND */,
233
+ "EDEL" /* EDEL */,
234
+ "VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
235
+ "AQUALOAN" /* AQUALOAN */,
228
236
  // zerolends
229
237
  "ZEROLEND" /* ZEROLEND */,
230
238
  "ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
@@ -328,6 +336,8 @@ var LenderGroups = /* @__PURE__ */ ((LenderGroups2) => {
328
336
  LenderGroups2[LenderGroups2["MorphoBlue"] = 5] = "MorphoBlue";
329
337
  LenderGroups2[LenderGroups2["SiloV2"] = 6] = "SiloV2";
330
338
  LenderGroups2[LenderGroups2["SiloV3"] = 7] = "SiloV3";
339
+ LenderGroups2[LenderGroups2["FluidT1"] = 8] = "FluidT1";
340
+ LenderGroups2[LenderGroups2["GearboxV3"] = 9] = "GearboxV3";
331
341
  return LenderGroups2;
332
342
  })(LenderGroups || {});
333
343
  var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
@@ -339,6 +349,9 @@ var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
339
349
  LenderIds2[LenderIds2["UP_TO_SILO_V2"] = 6e3] = "UP_TO_SILO_V2";
340
350
  LenderIds2[LenderIds2["UP_TO_AAVE_V4"] = 7e3] = "UP_TO_AAVE_V4";
341
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";
342
355
  return LenderIds2;
343
356
  })(LenderIds || {});
344
357
  function getLenderId(lender) {
@@ -359,6 +372,10 @@ function getLenderId(lender) {
359
372
  return 6e3 /* UP_TO_SILO_V2 */ - 1;
360
373
  case 7 /* SiloV3 */:
361
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;
362
379
  default:
363
380
  throw new Error(`getLenderId: Unsupported lender ${lender}`);
364
381
  }
@@ -385,6 +402,12 @@ function getLenderGroup(lender) {
385
402
  if (lender.startsWith("AAVE_V4")) {
386
403
  return 2 /* AaveV4 */;
387
404
  }
405
+ if (lender.startsWith("FLUID")) {
406
+ return 8 /* FluidT1 */;
407
+ }
408
+ if (lender.startsWith("GEARBOX_V3")) {
409
+ return 9 /* GearboxV3 */;
410
+ }
388
411
  throw new Error(`getLenderGroup: Unsupported lender ${lender}`);
389
412
  }
390
413
 
@@ -452,9 +475,6 @@ function isSiloV3Type(lender) {
452
475
  function isSiloType(lender) {
453
476
  return isSiloV2Type(lender) || isSiloV3Type(lender);
454
477
  }
455
- function lenderHasSubAccounts(lender) {
456
- return isInit(lender);
457
- }
458
478
  var SAME_ASSET_SUPPORTED = ["INIT" /* INIT */, ...AAVE_LENDERS];
459
479
  function aaveForkCannotPermit(lender) {
460
480
  return lender?.startsWith("ZEROLEND") || lender === "HYPERYIELD" /* HYPERYIELD */;
@@ -547,5 +567,4 @@ exports.isSumerType = isSumerType;
547
567
  exports.isTectonicType = isTectonicType;
548
568
  exports.isVenusType = isVenusType;
549
569
  exports.isYLDR = isYLDR;
550
- exports.lenderHasSubAccounts = lenderHasSubAccounts;
551
570
  exports.supportsSameAsset = supportsSameAsset;
package/dist/index.mjs CHANGED
@@ -54,6 +54,10 @@ 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";
57
61
  Lender2["ZEROLEND"] = "ZEROLEND";
58
62
  Lender2["ZEROLEND_STABLECOINS_RWA"] = "ZEROLEND_STABLECOINS_RWA";
59
63
  Lender2["ZEROLEND_ETH_LRTS"] = "ZEROLEND_ETH_LRTS";
@@ -223,6 +227,10 @@ var AAVE_V3_LENDERS = [
223
227
  "YEI" /* YEI */,
224
228
  "YEI_SOLV" /* YEI_SOLV */,
225
229
  "NEVERLAND" /* NEVERLAND */,
230
+ "KONA_LEND" /* KONA_LEND */,
231
+ "EDEL" /* EDEL */,
232
+ "VOLTAGE_LENDING" /* VOLTAGE_LENDING */,
233
+ "AQUALOAN" /* AQUALOAN */,
226
234
  // zerolends
227
235
  "ZEROLEND" /* ZEROLEND */,
228
236
  "ZEROLEND_STABLECOINS_RWA" /* ZEROLEND_STABLECOINS_RWA */,
@@ -326,6 +334,8 @@ var LenderGroups = /* @__PURE__ */ ((LenderGroups2) => {
326
334
  LenderGroups2[LenderGroups2["MorphoBlue"] = 5] = "MorphoBlue";
327
335
  LenderGroups2[LenderGroups2["SiloV2"] = 6] = "SiloV2";
328
336
  LenderGroups2[LenderGroups2["SiloV3"] = 7] = "SiloV3";
337
+ LenderGroups2[LenderGroups2["FluidT1"] = 8] = "FluidT1";
338
+ LenderGroups2[LenderGroups2["GearboxV3"] = 9] = "GearboxV3";
329
339
  return LenderGroups2;
330
340
  })(LenderGroups || {});
331
341
  var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
@@ -337,6 +347,9 @@ var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
337
347
  LenderIds2[LenderIds2["UP_TO_SILO_V2"] = 6e3] = "UP_TO_SILO_V2";
338
348
  LenderIds2[LenderIds2["UP_TO_AAVE_V4"] = 7e3] = "UP_TO_AAVE_V4";
339
349
  LenderIds2[LenderIds2["UP_TO_SILO_V3"] = 8e3] = "UP_TO_SILO_V3";
350
+ LenderIds2[LenderIds2["UP_TO_FLUID"] = 8e3] = "UP_TO_FLUID";
351
+ LenderIds2[LenderIds2["UP_TO_FLUID_SMART"] = 9e3] = "UP_TO_FLUID_SMART";
352
+ LenderIds2[LenderIds2["UP_TO_GEARBOX_V3"] = 1e4] = "UP_TO_GEARBOX_V3";
340
353
  return LenderIds2;
341
354
  })(LenderIds || {});
342
355
  function getLenderId(lender) {
@@ -357,6 +370,10 @@ function getLenderId(lender) {
357
370
  return 6e3 /* UP_TO_SILO_V2 */ - 1;
358
371
  case 7 /* SiloV3 */:
359
372
  return 8e3 /* UP_TO_SILO_V3 */ - 1;
373
+ case 8 /* FluidT1 */:
374
+ return 8e3 /* UP_TO_FLUID */ - 1;
375
+ case 9 /* GearboxV3 */:
376
+ return 1e4 /* UP_TO_GEARBOX_V3 */ - 1;
360
377
  default:
361
378
  throw new Error(`getLenderId: Unsupported lender ${lender}`);
362
379
  }
@@ -383,6 +400,12 @@ function getLenderGroup(lender) {
383
400
  if (lender.startsWith("AAVE_V4")) {
384
401
  return 2 /* AaveV4 */;
385
402
  }
403
+ if (lender.startsWith("FLUID")) {
404
+ return 8 /* FluidT1 */;
405
+ }
406
+ if (lender.startsWith("GEARBOX_V3")) {
407
+ return 9 /* GearboxV3 */;
408
+ }
386
409
  throw new Error(`getLenderGroup: Unsupported lender ${lender}`);
387
410
  }
388
411
 
@@ -450,9 +473,6 @@ function isSiloV3Type(lender) {
450
473
  function isSiloType(lender) {
451
474
  return isSiloV2Type(lender) || isSiloV3Type(lender);
452
475
  }
453
- function lenderHasSubAccounts(lender) {
454
- return isInit(lender);
455
- }
456
476
  var SAME_ASSET_SUPPORTED = ["INIT" /* INIT */, ...AAVE_LENDERS];
457
477
  function aaveForkCannotPermit(lender) {
458
478
  return lender?.startsWith("ZEROLEND") || lender === "HYPERYIELD" /* HYPERYIELD */;
@@ -494,4 +514,4 @@ function isCompoundV2(lender) {
494
514
  return isCompoundV2Type(lender);
495
515
  }
496
516
 
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 };
517
+ 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,10 @@ 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",
57
61
  ZEROLEND = "ZEROLEND",
58
62
  ZEROLEND_STABLECOINS_RWA = "ZEROLEND_STABLECOINS_RWA",
59
63
  ZEROLEND_ETH_LRTS = "ZEROLEND_ETH_LRTS",
@@ -194,7 +198,9 @@ export declare enum LenderGroups {
194
198
  CompoundV3 = 4,
195
199
  MorphoBlue = 5,
196
200
  SiloV2 = 6,
197
- SiloV3 = 7
201
+ SiloV3 = 7,
202
+ FluidT1 = 8,
203
+ GearboxV3 = 9
198
204
  }
199
205
  export declare enum LenderIds {
200
206
  UP_TO_AAVE_V3 = 1000,
@@ -204,7 +210,10 @@ export declare enum LenderIds {
204
210
  UP_TO_MORPHO = 5000,
205
211
  UP_TO_SILO_V2 = 6000,
206
212
  UP_TO_AAVE_V4 = 7000,
207
- UP_TO_SILO_V3 = 8000
213
+ UP_TO_SILO_V3 = 8000,
214
+ UP_TO_FLUID = 8000,
215
+ UP_TO_FLUID_SMART = 9000,
216
+ UP_TO_GEARBOX_V3 = 10000
208
217
  }
209
218
  /** Get lenderId for lender enum */
210
219
  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.26",
8
8
  "description": "Lenders as Enums for convenience",
9
9
  "files": [
10
10
  "dist"