@1delta/lender-registry 0.0.6 → 0.0.8

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.js CHANGED
@@ -57,6 +57,17 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
57
57
  Lender2["ZEROLEND_BTC_LRTS"] = "ZEROLEND_BTC_LRTS";
58
58
  Lender2["ZEROLEND_CROAK"] = "ZEROLEND_CROAK";
59
59
  Lender2["ZEROLEND_FOXY"] = "ZEROLEND_FOXY";
60
+ Lender2["LENDLE_SUSDE_USDT"] = "LENDLE_SUSDE_USDT";
61
+ Lender2["LENDLE_METH_WETH"] = "LENDLE_METH_WETH";
62
+ Lender2["LENDLE_METH_USDE"] = "LENDLE_METH_USDE";
63
+ Lender2["LENDLE_CMETH_WETH"] = "LENDLE_CMETH_WETH";
64
+ Lender2["LENDLE_CMETH_USDE"] = "LENDLE_CMETH_USDE";
65
+ Lender2["LENDLE_CMETH_WMNT"] = "LENDLE_CMETH_WMNT";
66
+ Lender2["LENDLE_FBTC_WETH"] = "LENDLE_FBTC_WETH";
67
+ Lender2["LENDLE_FBTC_USDE"] = "LENDLE_FBTC_USDE";
68
+ Lender2["LENDLE_FBTC_WMNT"] = "LENDLE_FBTC_WMNT";
69
+ Lender2["LENDLE_WMNT_WETH"] = "LENDLE_WMNT_WETH";
70
+ Lender2["LENDLE_WMNT_USDE"] = "LENDLE_WMNT_USDE";
60
71
  Lender2["AVALON"] = "AVALON";
61
72
  Lender2["AVALON_SOLVBTC"] = "AVALON_SOLVBTC";
62
73
  Lender2["AVALON_SWELLBTC"] = "AVALON_SWELLBTC";
@@ -111,6 +122,9 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
111
122
  Lender2["COMPOUND_V3_WBTC"] = "COMPOUND_V3_WBTC";
112
123
  Lender2["INIT"] = "INIT";
113
124
  Lender2["MORPHO_BLUE"] = "MORPHO_BLUE";
125
+ Lender2["LISTA_DAO"] = "LISTA_DAO";
126
+ Lender2["SILO_V2"] = "SILO_V2";
127
+ Lender2["EULER_V2"] = "EULER_V2";
114
128
  Lender2["SWAYLEND_USDC"] = "SWAYLEND_USDC";
115
129
  return Lender2;
116
130
  })(Lender || {});
@@ -122,6 +136,17 @@ var AAVE_V32_LENDERS = [
122
136
  "LENDLE_CMETH" /* LENDLE_CMETH */,
123
137
  "LENDLE_PT_CMETH" /* LENDLE_PT_CMETH */,
124
138
  "LENDLE_SUSDE" /* LENDLE_SUSDE */,
139
+ "LENDLE_SUSDE_USDT" /* LENDLE_SUSDE_USDT */,
140
+ "LENDLE_METH_WETH" /* LENDLE_METH_WETH */,
141
+ "LENDLE_METH_USDE" /* LENDLE_METH_USDE */,
142
+ "LENDLE_CMETH_WETH" /* LENDLE_CMETH_WETH */,
143
+ "LENDLE_CMETH_USDE" /* LENDLE_CMETH_USDE */,
144
+ "LENDLE_CMETH_WMNT" /* LENDLE_CMETH_WMNT */,
145
+ "LENDLE_FBTC_WETH" /* LENDLE_FBTC_WETH */,
146
+ "LENDLE_FBTC_USDE" /* LENDLE_FBTC_USDE */,
147
+ "LENDLE_FBTC_WMNT" /* LENDLE_FBTC_WMNT */,
148
+ "LENDLE_WMNT_WETH" /* LENDLE_WMNT_WETH */,
149
+ "LENDLE_WMNT_USDE" /* LENDLE_WMNT_USDE */,
125
150
  "HYPERLEND" /* HYPERLEND */,
126
151
  "LAYERBANK_V3" /* LAYERBANK_V3 */
127
152
  ];
@@ -233,13 +258,15 @@ var COMPOUND_V3_LENDERS = [
233
258
  "COMPOUND_V3_AERO" /* COMPOUND_V3_AERO */,
234
259
  "COMPOUND_V3_WSTETH" /* COMPOUND_V3_WSTETH */
235
260
  ];
236
- var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */];
261
+ var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA_DAO */];
262
+ var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
237
263
  var LenderGroups = /* @__PURE__ */ ((LenderGroups2) => {
238
264
  LenderGroups2[LenderGroups2["AaveV2"] = 0] = "AaveV2";
239
265
  LenderGroups2[LenderGroups2["AaveV3"] = 1] = "AaveV3";
240
266
  LenderGroups2[LenderGroups2["CompoundV2"] = 2] = "CompoundV2";
241
267
  LenderGroups2[LenderGroups2["CompoundV3"] = 3] = "CompoundV3";
242
268
  LenderGroups2[LenderGroups2["MorphoBlue"] = 4] = "MorphoBlue";
269
+ LenderGroups2[LenderGroups2["SiloV2"] = 5] = "SiloV2";
243
270
  return LenderGroups2;
244
271
  })(LenderGroups || {});
245
272
  var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
@@ -248,6 +275,7 @@ var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
248
275
  LenderIds2[LenderIds2["UP_TO_COMPOUND_V3"] = 3e3] = "UP_TO_COMPOUND_V3";
249
276
  LenderIds2[LenderIds2["UP_TO_COMPOUND_V2"] = 4e3] = "UP_TO_COMPOUND_V2";
250
277
  LenderIds2[LenderIds2["UP_TO_MORPHO"] = 5e3] = "UP_TO_MORPHO";
278
+ LenderIds2[LenderIds2["UP_TO_SILO_V2"] = 6e3] = "UP_TO_SILO_V2";
251
279
  return LenderIds2;
252
280
  })(LenderIds || {});
253
281
  function getLenderId(lender) {
@@ -262,6 +290,8 @@ function getLenderId(lender) {
262
290
  return 3e3 /* UP_TO_COMPOUND_V3 */ - 1;
263
291
  case 4 /* MorphoBlue */:
264
292
  return 5e3 /* UP_TO_MORPHO */ - 1;
293
+ case 5 /* SiloV2 */:
294
+ return 6e3 /* UP_TO_SILO_V2 */ - 1;
265
295
  default:
266
296
  throw new Error("Unsupported lender");
267
297
  }
@@ -279,6 +309,9 @@ function getLenderGroup(lender) {
279
309
  if (MORPHO_BLUE_LENDERS.includes(lender)) {
280
310
  return 4 /* MorphoBlue */;
281
311
  }
312
+ if (SILO_V2_LENDERS.includes(lender)) {
313
+ return 5 /* SiloV2 */;
314
+ }
282
315
  throw new Error("Unsupported lender");
283
316
  }
284
317
 
@@ -292,5 +325,6 @@ exports.Lender = Lender;
292
325
  exports.LenderGroups = LenderGroups;
293
326
  exports.LenderIds = LenderIds;
294
327
  exports.MORPHO_BLUE_LENDERS = MORPHO_BLUE_LENDERS;
328
+ exports.SILO_V2_LENDERS = SILO_V2_LENDERS;
295
329
  exports.getLenderGroup = getLenderGroup;
296
330
  exports.getLenderId = getLenderId;
package/dist/index.mjs CHANGED
@@ -55,6 +55,17 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
55
55
  Lender2["ZEROLEND_BTC_LRTS"] = "ZEROLEND_BTC_LRTS";
56
56
  Lender2["ZEROLEND_CROAK"] = "ZEROLEND_CROAK";
57
57
  Lender2["ZEROLEND_FOXY"] = "ZEROLEND_FOXY";
58
+ Lender2["LENDLE_SUSDE_USDT"] = "LENDLE_SUSDE_USDT";
59
+ Lender2["LENDLE_METH_WETH"] = "LENDLE_METH_WETH";
60
+ Lender2["LENDLE_METH_USDE"] = "LENDLE_METH_USDE";
61
+ Lender2["LENDLE_CMETH_WETH"] = "LENDLE_CMETH_WETH";
62
+ Lender2["LENDLE_CMETH_USDE"] = "LENDLE_CMETH_USDE";
63
+ Lender2["LENDLE_CMETH_WMNT"] = "LENDLE_CMETH_WMNT";
64
+ Lender2["LENDLE_FBTC_WETH"] = "LENDLE_FBTC_WETH";
65
+ Lender2["LENDLE_FBTC_USDE"] = "LENDLE_FBTC_USDE";
66
+ Lender2["LENDLE_FBTC_WMNT"] = "LENDLE_FBTC_WMNT";
67
+ Lender2["LENDLE_WMNT_WETH"] = "LENDLE_WMNT_WETH";
68
+ Lender2["LENDLE_WMNT_USDE"] = "LENDLE_WMNT_USDE";
58
69
  Lender2["AVALON"] = "AVALON";
59
70
  Lender2["AVALON_SOLVBTC"] = "AVALON_SOLVBTC";
60
71
  Lender2["AVALON_SWELLBTC"] = "AVALON_SWELLBTC";
@@ -109,6 +120,9 @@ var Lender = /* @__PURE__ */ ((Lender2) => {
109
120
  Lender2["COMPOUND_V3_WBTC"] = "COMPOUND_V3_WBTC";
110
121
  Lender2["INIT"] = "INIT";
111
122
  Lender2["MORPHO_BLUE"] = "MORPHO_BLUE";
123
+ Lender2["LISTA_DAO"] = "LISTA_DAO";
124
+ Lender2["SILO_V2"] = "SILO_V2";
125
+ Lender2["EULER_V2"] = "EULER_V2";
112
126
  Lender2["SWAYLEND_USDC"] = "SWAYLEND_USDC";
113
127
  return Lender2;
114
128
  })(Lender || {});
@@ -120,6 +134,17 @@ var AAVE_V32_LENDERS = [
120
134
  "LENDLE_CMETH" /* LENDLE_CMETH */,
121
135
  "LENDLE_PT_CMETH" /* LENDLE_PT_CMETH */,
122
136
  "LENDLE_SUSDE" /* LENDLE_SUSDE */,
137
+ "LENDLE_SUSDE_USDT" /* LENDLE_SUSDE_USDT */,
138
+ "LENDLE_METH_WETH" /* LENDLE_METH_WETH */,
139
+ "LENDLE_METH_USDE" /* LENDLE_METH_USDE */,
140
+ "LENDLE_CMETH_WETH" /* LENDLE_CMETH_WETH */,
141
+ "LENDLE_CMETH_USDE" /* LENDLE_CMETH_USDE */,
142
+ "LENDLE_CMETH_WMNT" /* LENDLE_CMETH_WMNT */,
143
+ "LENDLE_FBTC_WETH" /* LENDLE_FBTC_WETH */,
144
+ "LENDLE_FBTC_USDE" /* LENDLE_FBTC_USDE */,
145
+ "LENDLE_FBTC_WMNT" /* LENDLE_FBTC_WMNT */,
146
+ "LENDLE_WMNT_WETH" /* LENDLE_WMNT_WETH */,
147
+ "LENDLE_WMNT_USDE" /* LENDLE_WMNT_USDE */,
123
148
  "HYPERLEND" /* HYPERLEND */,
124
149
  "LAYERBANK_V3" /* LAYERBANK_V3 */
125
150
  ];
@@ -231,13 +256,15 @@ var COMPOUND_V3_LENDERS = [
231
256
  "COMPOUND_V3_AERO" /* COMPOUND_V3_AERO */,
232
257
  "COMPOUND_V3_WSTETH" /* COMPOUND_V3_WSTETH */
233
258
  ];
234
- var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */];
259
+ var MORPHO_BLUE_LENDERS = ["MORPHO_BLUE" /* MORPHO_BLUE */, "LISTA_DAO" /* LISTA_DAO */];
260
+ var SILO_V2_LENDERS = ["SILO_V2" /* SILO_V2 */];
235
261
  var LenderGroups = /* @__PURE__ */ ((LenderGroups2) => {
236
262
  LenderGroups2[LenderGroups2["AaveV2"] = 0] = "AaveV2";
237
263
  LenderGroups2[LenderGroups2["AaveV3"] = 1] = "AaveV3";
238
264
  LenderGroups2[LenderGroups2["CompoundV2"] = 2] = "CompoundV2";
239
265
  LenderGroups2[LenderGroups2["CompoundV3"] = 3] = "CompoundV3";
240
266
  LenderGroups2[LenderGroups2["MorphoBlue"] = 4] = "MorphoBlue";
267
+ LenderGroups2[LenderGroups2["SiloV2"] = 5] = "SiloV2";
241
268
  return LenderGroups2;
242
269
  })(LenderGroups || {});
243
270
  var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
@@ -246,6 +273,7 @@ var LenderIds = /* @__PURE__ */ ((LenderIds2) => {
246
273
  LenderIds2[LenderIds2["UP_TO_COMPOUND_V3"] = 3e3] = "UP_TO_COMPOUND_V3";
247
274
  LenderIds2[LenderIds2["UP_TO_COMPOUND_V2"] = 4e3] = "UP_TO_COMPOUND_V2";
248
275
  LenderIds2[LenderIds2["UP_TO_MORPHO"] = 5e3] = "UP_TO_MORPHO";
276
+ LenderIds2[LenderIds2["UP_TO_SILO_V2"] = 6e3] = "UP_TO_SILO_V2";
249
277
  return LenderIds2;
250
278
  })(LenderIds || {});
251
279
  function getLenderId(lender) {
@@ -260,6 +288,8 @@ function getLenderId(lender) {
260
288
  return 3e3 /* UP_TO_COMPOUND_V3 */ - 1;
261
289
  case 4 /* MorphoBlue */:
262
290
  return 5e3 /* UP_TO_MORPHO */ - 1;
291
+ case 5 /* SiloV2 */:
292
+ return 6e3 /* UP_TO_SILO_V2 */ - 1;
263
293
  default:
264
294
  throw new Error("Unsupported lender");
265
295
  }
@@ -277,7 +307,10 @@ function getLenderGroup(lender) {
277
307
  if (MORPHO_BLUE_LENDERS.includes(lender)) {
278
308
  return 4 /* MorphoBlue */;
279
309
  }
310
+ if (SILO_V2_LENDERS.includes(lender)) {
311
+ return 5 /* SiloV2 */;
312
+ }
280
313
  throw new Error("Unsupported lender");
281
314
  }
282
315
 
283
- export { AAVE_LENDERS, AAVE_V2_LENDERS, AAVE_V32_LENDERS, AAVE_V3_LENDERS, COMPOUND_V2_LENDERS, COMPOUND_V3_LENDERS, Lender, LenderGroups, LenderIds, MORPHO_BLUE_LENDERS, getLenderGroup, getLenderId };
316
+ export { AAVE_LENDERS, AAVE_V2_LENDERS, AAVE_V32_LENDERS, AAVE_V3_LENDERS, COMPOUND_V2_LENDERS, COMPOUND_V3_LENDERS, Lender, LenderGroups, LenderIds, MORPHO_BLUE_LENDERS, SILO_V2_LENDERS, getLenderGroup, getLenderId };
package/dist/lenders.d.ts CHANGED
@@ -55,6 +55,17 @@ export declare enum Lender {
55
55
  ZEROLEND_BTC_LRTS = "ZEROLEND_BTC_LRTS",
56
56
  ZEROLEND_CROAK = "ZEROLEND_CROAK",
57
57
  ZEROLEND_FOXY = "ZEROLEND_FOXY",
58
+ LENDLE_SUSDE_USDT = "LENDLE_SUSDE_USDT",
59
+ LENDLE_METH_WETH = "LENDLE_METH_WETH",
60
+ LENDLE_METH_USDE = "LENDLE_METH_USDE",
61
+ LENDLE_CMETH_WETH = "LENDLE_CMETH_WETH",
62
+ LENDLE_CMETH_USDE = "LENDLE_CMETH_USDE",
63
+ LENDLE_CMETH_WMNT = "LENDLE_CMETH_WMNT",
64
+ LENDLE_FBTC_WETH = "LENDLE_FBTC_WETH",
65
+ LENDLE_FBTC_USDE = "LENDLE_FBTC_USDE",
66
+ LENDLE_FBTC_WMNT = "LENDLE_FBTC_WMNT",
67
+ LENDLE_WMNT_WETH = "LENDLE_WMNT_WETH",
68
+ LENDLE_WMNT_USDE = "LENDLE_WMNT_USDE",
58
69
  AVALON = "AVALON",
59
70
  AVALON_SOLVBTC = "AVALON_SOLVBTC",
60
71
  AVALON_SWELLBTC = "AVALON_SWELLBTC",
@@ -111,6 +122,9 @@ export declare enum Lender {
111
122
  COMPOUND_V3_WBTC = "COMPOUND_V3_WBTC",
112
123
  INIT = "INIT",
113
124
  MORPHO_BLUE = "MORPHO_BLUE",
125
+ LISTA_DAO = "LISTA_DAO",
126
+ SILO_V2 = "SILO_V2",
127
+ EULER_V2 = "EULER_V2",
114
128
  SWAYLEND_USDC = "SWAYLEND_USDC"
115
129
  }
116
130
  export declare const AAVE_V32_LENDERS: Lender[];
@@ -126,19 +140,23 @@ export declare const COMPOUND_V2_LENDERS: Lender[];
126
140
  export declare const COMPOUND_V3_LENDERS: Lender[];
127
141
  /** Morpho Blue lenders */
128
142
  export declare const MORPHO_BLUE_LENDERS: Lender[];
143
+ /** Silo lenders */
144
+ export declare const SILO_V2_LENDERS: Lender[];
129
145
  export declare enum LenderGroups {
130
146
  AaveV2 = 0,
131
147
  AaveV3 = 1,
132
148
  CompoundV2 = 2,
133
149
  CompoundV3 = 3,
134
- MorphoBlue = 4
150
+ MorphoBlue = 4,
151
+ SiloV2 = 5
135
152
  }
136
153
  export declare enum LenderIds {
137
154
  UP_TO_AAVE_V3 = 1000,
138
155
  UP_TO_AAVE_V2 = 2000,
139
156
  UP_TO_COMPOUND_V3 = 3000,
140
157
  UP_TO_COMPOUND_V2 = 4000,
141
- UP_TO_MORPHO = 5000
158
+ UP_TO_MORPHO = 5000,
159
+ UP_TO_SILO_V2 = 6000
142
160
  }
143
161
  /** Get lenderId for lender enum */
144
162
  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.6",
7
+ "version": "0.0.8",
8
8
  "description": "Lenders as Enums for convenience",
9
9
  "files": [
10
10
  "dist"