@morpho-org/blue-sdk 3.0.0 → 3.0.2

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.
@@ -308,6 +308,19 @@ export declare const addressesRegistry: {
308
308
  readonly wNative: "0xda5dDd7270381A7C2717aD10D1c0ecB19e3CDFb2";
309
309
  readonly usdc: "0xDF0B24095e15044538866576754F3C964e902Ee6";
310
310
  };
311
+ readonly 98866: {
312
+ readonly morpho: "0x42b18785CE0Aed7BF7Ca43a39471ED4C0A3e0bB5";
313
+ readonly bundler3: {
314
+ readonly bundler3: "0x5437C8788f4CFbaA55be6FBf30379bc7dd7f69C3";
315
+ readonly generalAdapter1: "0x65ff368930Cb7eB4CA5C5eBC58bb69E6Ed198BA5";
316
+ };
317
+ readonly adaptiveCurveIrm: "0x7420302Ddd469031Cd2282cd64225cCd46F581eA";
318
+ readonly publicAllocator: "0x58485338D93F4e3b4Bf2Af1C9f9C0aDF087AEf1C";
319
+ readonly metaMorphoFactory: "0x2525D453D9BA13921D5aB5D8c12F9202b0e19456";
320
+ readonly chainlinkOracleFactory: "0x133F742c0D36864F37e15C33a18bA6fdc950ED0f";
321
+ readonly preLiquidationFactory: "0xF184156Cf6Ad4D3dA7F6449D40755A0f9de97ef3";
322
+ readonly wNative: "0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1";
323
+ };
311
324
  };
312
325
  export declare const addresses: Record<number, ChainAddresses>;
313
326
  export type AddressLabel = DottedKeys<(typeof addressesRegistry)[ChainId]>;
package/lib/addresses.js CHANGED
@@ -283,6 +283,19 @@ exports.addressesRegistry = {
283
283
  // Must implement USDC permit version 2 (otherwise breaks permit signatures).
284
284
  usdc: "0xDF0B24095e15044538866576754F3C964e902Ee6",
285
285
  },
286
+ [chain_js_1.ChainId.PlumeMainnet]: {
287
+ morpho: "0x42b18785CE0Aed7BF7Ca43a39471ED4C0A3e0bB5",
288
+ bundler3: {
289
+ bundler3: "0x5437C8788f4CFbaA55be6FBf30379bc7dd7f69C3",
290
+ generalAdapter1: "0x65ff368930Cb7eB4CA5C5eBC58bb69E6Ed198BA5",
291
+ },
292
+ adaptiveCurveIrm: "0x7420302Ddd469031Cd2282cd64225cCd46F581eA",
293
+ publicAllocator: "0x58485338D93F4e3b4Bf2Af1C9f9C0aDF087AEf1C",
294
+ metaMorphoFactory: "0x2525D453D9BA13921D5aB5D8c12F9202b0e19456",
295
+ chainlinkOracleFactory: "0x133F742c0D36864F37e15C33a18bA6fdc950ED0f",
296
+ preLiquidationFactory: "0xF184156Cf6Ad4D3dA7F6449D40755A0f9de97ef3",
297
+ wNative: "0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1",
298
+ },
286
299
  };
287
300
  exports.addresses = exports.addressesRegistry;
288
301
  const getChainAddresses = (chainId) => {
@@ -327,6 +340,7 @@ exports.unwrappedTokensMapping = {
327
340
  [chain_js_1.ChainId.HemiMainnet]: {},
328
341
  [chain_js_1.ChainId.ModeMainnet]: {},
329
342
  [chain_js_1.ChainId.CornMainnet]: {},
343
+ [chain_js_1.ChainId.PlumeMainnet]: {},
330
344
  };
331
345
  function getUnwrappedToken(wrappedToken, chainId) {
332
346
  return exports.unwrappedTokensMapping[chainId][wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -12,7 +12,8 @@ export declare enum ChainId {
12
12
  SonicMainnet = 146,
13
13
  HemiMainnet = 43111,
14
14
  ModeMainnet = 34443,
15
- CornMainnet = 21000000
15
+ CornMainnet = 21000000,
16
+ PlumeMainnet = 98866
16
17
  }
17
18
  export interface ChainMetadata {
18
19
  readonly name: string;
package/lib/chain.js CHANGED
@@ -17,6 +17,7 @@ var ChainId;
17
17
  ChainId[ChainId["HemiMainnet"] = 43111] = "HemiMainnet";
18
18
  ChainId[ChainId["ModeMainnet"] = 34443] = "ModeMainnet";
19
19
  ChainId[ChainId["CornMainnet"] = 21000000] = "CornMainnet";
20
+ ChainId[ChainId["PlumeMainnet"] = 98866] = "PlumeMainnet";
20
21
  })(ChainId || (exports.ChainId = ChainId = {}));
21
22
  var ChainUtils;
22
23
  (function (ChainUtils) {
@@ -131,5 +132,12 @@ var ChainUtils;
131
132
  explorerUrl: "https://cornscan.io",
132
133
  identifier: "corn",
133
134
  },
135
+ [ChainId.PlumeMainnet]: {
136
+ name: "Plume",
137
+ id: ChainId.PlumeMainnet,
138
+ nativeCurrency: { name: "Plume", symbol: "PLUME", decimals: 18 },
139
+ explorerUrl: "https://phoenix-explorer.plumenetwork.xyz",
140
+ identifier: "plume",
141
+ },
134
142
  };
135
143
  })(ChainUtils || (exports.ChainUtils = ChainUtils = {}));
@@ -54,6 +54,16 @@ exports.defaultPreLiquidationParamsRegistry = new Map([
54
54
  preLIF2: 1026167265264238070n,
55
55
  },
56
56
  ],
57
+ [
58
+ (0, viem_1.parseEther)("0.945"),
59
+ {
60
+ preLltv: 933746617913300027n,
61
+ preLCF1: 709220796660800n,
62
+ preLCF2: 236098907251355946n,
63
+ preLIF1: 1016776817488561260n,
64
+ preLIF2: 1016776817488561260n,
65
+ },
66
+ ],
57
67
  [
58
68
  (0, viem_1.parseEther)("0.965"),
59
69
  {
@@ -65,7 +75,7 @@ exports.defaultPreLiquidationParamsRegistry = new Map([
65
75
  },
66
76
  ],
67
77
  [
68
- (0, viem_1.parseEther)("0.985"),
78
+ (0, viem_1.parseEther)("0.98"),
69
79
  {
70
80
  preLltv: 975838577830248552n,
71
81
  preLCF1: 247773050273784n,
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": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -28,7 +28,7 @@
28
28
  "viem": "^2.23.0",
29
29
  "vitest": "^3.0.5",
30
30
  "@morpho-org/morpho-ts": "^2.3.0",
31
- "@morpho-org/test": "^2.1.2"
31
+ "@morpho-org/test": "^2.1.3"
32
32
  },
33
33
  "scripts": {
34
34
  "prepublish": "$npm_execpath build",