@morpho-org/blue-sdk 4.2.0 → 4.3.0

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.
@@ -349,6 +349,20 @@ declare const _addressesRegistry: {
349
349
  readonly preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85";
350
350
  readonly wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62";
351
351
  };
352
+ readonly 1135: {
353
+ readonly morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8";
354
+ readonly bundler3: {
355
+ readonly bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00";
356
+ readonly generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584";
357
+ };
358
+ readonly adaptiveCurveIrm: "0x5576629f21D528A8c3e06C338dDa907B94563902";
359
+ readonly publicAllocator: "0xb1E5B1De2a54ab55C412B5ee1E38e46799588103";
360
+ readonly metaMorphoFactory: "0x01dD876130690469F685a65C2B295A90a81BaD91";
361
+ readonly chainlinkOracleFactory: "0x2eb4D17C2AAf1EA62Bf83Fb49Dd1128b14AF4D93";
362
+ readonly preLiquidationFactory: "0xF2c325F26691b6556e6f66451bb38bDa37FEbaa7";
363
+ readonly wNative: "0x4200000000000000000000000000000000000006";
364
+ readonly usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71";
365
+ };
352
366
  };
353
367
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
354
368
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -677,6 +691,20 @@ export declare let addressesRegistry: {
677
691
  readonly preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85";
678
692
  readonly wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62";
679
693
  };
694
+ readonly 1135: {
695
+ readonly morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8";
696
+ readonly bundler3: {
697
+ readonly bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00";
698
+ readonly generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584";
699
+ };
700
+ readonly adaptiveCurveIrm: "0x5576629f21D528A8c3e06C338dDa907B94563902";
701
+ readonly publicAllocator: "0xb1E5B1De2a54ab55C412B5ee1E38e46799588103";
702
+ readonly metaMorphoFactory: "0x01dD876130690469F685a65C2B295A90a81BaD91";
703
+ readonly chainlinkOracleFactory: "0x2eb4D17C2AAf1EA62Bf83Fb49Dd1128b14AF4D93";
704
+ readonly preLiquidationFactory: "0xF2c325F26691b6556e6f66451bb38bDa37FEbaa7";
705
+ readonly wNative: "0x4200000000000000000000000000000000000006";
706
+ readonly usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71";
707
+ };
680
708
  };
681
709
  export declare let addresses: Record<number, ChainAddresses>;
682
710
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
package/lib/addresses.js CHANGED
@@ -331,6 +331,21 @@ const _addressesRegistry = {
331
331
  preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85",
332
332
  wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62",
333
333
  },
334
+ [chain_js_1.ChainId.LiskMainnet]: {
335
+ morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8",
336
+ bundler3: {
337
+ bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00",
338
+ generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584",
339
+ },
340
+ adaptiveCurveIrm: "0x5576629f21D528A8c3e06C338dDa907B94563902",
341
+ publicAllocator: "0xb1E5B1De2a54ab55C412B5ee1E38e46799588103",
342
+ metaMorphoFactory: "0x01dD876130690469F685a65C2B295A90a81BaD91",
343
+ chainlinkOracleFactory: "0x2eb4D17C2AAf1EA62Bf83Fb49Dd1128b14AF4D93",
344
+ preLiquidationFactory: "0xF2c325F26691b6556e6f66451bb38bDa37FEbaa7",
345
+ wNative: "0x4200000000000000000000000000000000000006",
346
+ // Must implement USDC permit version 2 (otherwise breaks permit signatures).
347
+ usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71",
348
+ },
334
349
  };
335
350
  const getChainAddresses = (chainId) => {
336
351
  const chainAddresses = exports.addresses[chainId];
@@ -404,6 +419,9 @@ const _unwrappedTokensMapping = {
404
419
  [chain_js_1.ChainId.ArbitrumMainnet]: {
405
420
  [_addressesRegistry[chain_js_1.ChainId.ArbitrumMainnet].wNative]: exports.NATIVE_ADDRESS,
406
421
  },
422
+ [chain_js_1.ChainId.LiskMainnet]: {
423
+ [_addressesRegistry[chain_js_1.ChainId.LiskMainnet].wNative]: exports.NATIVE_ADDRESS,
424
+ },
407
425
  };
408
426
  function getUnwrappedToken(wrappedToken, chainId) {
409
427
  return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -15,7 +15,8 @@ export declare enum ChainId {
15
15
  CornMainnet = 21000000,
16
16
  PlumeMainnet = 98866,
17
17
  CampMainnet = 123420001114,
18
- KatanaMainnet = 747474
18
+ KatanaMainnet = 747474,
19
+ LiskMainnet = 1135
19
20
  }
20
21
  export interface ChainMetadata {
21
22
  readonly name: string;
package/lib/chain.js CHANGED
@@ -20,6 +20,7 @@ var ChainId;
20
20
  ChainId[ChainId["PlumeMainnet"] = 98866] = "PlumeMainnet";
21
21
  ChainId[ChainId["CampMainnet"] = 123420001114] = "CampMainnet";
22
22
  ChainId[ChainId["KatanaMainnet"] = 747474] = "KatanaMainnet";
23
+ ChainId[ChainId["LiskMainnet"] = 1135] = "LiskMainnet";
23
24
  })(ChainId || (exports.ChainId = ChainId = {}));
24
25
  var ChainUtils;
25
26
  (function (ChainUtils) {
@@ -155,5 +156,12 @@ var ChainUtils;
155
156
  explorerUrl: "https://explorer.katanarpc.com",
156
157
  identifier: "katana",
157
158
  },
159
+ [ChainId.LiskMainnet]: {
160
+ name: "Lisk",
161
+ id: ChainId.LiskMainnet,
162
+ nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
163
+ explorerUrl: "https://blockscout.lisk.com",
164
+ identifier: "lisk",
165
+ },
158
166
  };
159
167
  })(ChainUtils || (exports.ChainUtils = ChainUtils = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morpho-org/blue-sdk",
3
3
  "description": "Framework-agnostic package that defines Morpho-related entity classes (such as `Market`, `Token`, `Vault`).",
4
- "version": "4.2.0",
4
+ "version": "4.3.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"