@morpho-org/blue-sdk 3.0.1 → 3.0.3

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.
@@ -321,6 +321,19 @@ export declare const addressesRegistry: {
321
321
  readonly preLiquidationFactory: "0xF184156Cf6Ad4D3dA7F6449D40755A0f9de97ef3";
322
322
  readonly wNative: "0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1";
323
323
  };
324
+ readonly 123420001114: {
325
+ readonly morpho: "0xc7CAd9B1377Eb8103397Cb07Cb5c4f03eb2eBEa8";
326
+ readonly bundler3: {
327
+ readonly bundler3: "0xc1A86b3a552C5a34e1ecc910341A64Cc89b2CB01";
328
+ readonly generalAdapter1: "0x86eaf48Fd73c1Aa30E801D01d0efFd731c3E5E85";
329
+ };
330
+ readonly adaptiveCurveIrm: "0xeEccdD33c0C06d7DDa31E3C4a1Cdb35a2A756246";
331
+ readonly publicAllocator: "0x1e145648DA9aC9d831B4F7931C06e9828083BD40";
332
+ readonly metaMorphoFactory: "0xa8CD521d42b716821D7ddD2Ca6a237087aA5b487";
333
+ readonly chainlinkOracleFactory: "0x24Bc64f44B429EEA86c8B1f9C03F54Ab0C6c0C15";
334
+ readonly preLiquidationFactory: "0x6C0155CC30f760DC49138B389F5B69F56eD08841";
335
+ readonly wNative: "0x1aE9c40eCd2DD6ad5858E5430A556d7aff28A44b";
336
+ };
324
337
  };
325
338
  export declare const addresses: Record<number, ChainAddresses>;
326
339
  export type AddressLabel = DottedKeys<(typeof addressesRegistry)[ChainId]>;
package/lib/addresses.js CHANGED
@@ -296,6 +296,19 @@ exports.addressesRegistry = {
296
296
  preLiquidationFactory: "0xF184156Cf6Ad4D3dA7F6449D40755A0f9de97ef3",
297
297
  wNative: "0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1",
298
298
  },
299
+ [chain_js_1.ChainId.CampMainnet]: {
300
+ morpho: "0xc7CAd9B1377Eb8103397Cb07Cb5c4f03eb2eBEa8",
301
+ bundler3: {
302
+ bundler3: "0xc1A86b3a552C5a34e1ecc910341A64Cc89b2CB01",
303
+ generalAdapter1: "0x86eaf48Fd73c1Aa30E801D01d0efFd731c3E5E85",
304
+ },
305
+ adaptiveCurveIrm: "0xeEccdD33c0C06d7DDa31E3C4a1Cdb35a2A756246",
306
+ publicAllocator: "0x1e145648DA9aC9d831B4F7931C06e9828083BD40",
307
+ metaMorphoFactory: "0xa8CD521d42b716821D7ddD2Ca6a237087aA5b487",
308
+ chainlinkOracleFactory: "0x24Bc64f44B429EEA86c8B1f9C03F54Ab0C6c0C15",
309
+ preLiquidationFactory: "0x6C0155CC30f760DC49138B389F5B69F56eD08841",
310
+ wNative: "0x1aE9c40eCd2DD6ad5858E5430A556d7aff28A44b",
311
+ },
299
312
  };
300
313
  exports.addresses = exports.addressesRegistry;
301
314
  const getChainAddresses = (chainId) => {
@@ -341,6 +354,7 @@ exports.unwrappedTokensMapping = {
341
354
  [chain_js_1.ChainId.ModeMainnet]: {},
342
355
  [chain_js_1.ChainId.CornMainnet]: {},
343
356
  [chain_js_1.ChainId.PlumeMainnet]: {},
357
+ [chain_js_1.ChainId.CampMainnet]: {},
344
358
  };
345
359
  function getUnwrappedToken(wrappedToken, chainId) {
346
360
  return exports.unwrappedTokensMapping[chainId][wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -13,7 +13,8 @@ export declare enum ChainId {
13
13
  HemiMainnet = 43111,
14
14
  ModeMainnet = 34443,
15
15
  CornMainnet = 21000000,
16
- PlumeMainnet = 98866
16
+ PlumeMainnet = 98866,
17
+ CampMainnet = 123420001114
17
18
  }
18
19
  export interface ChainMetadata {
19
20
  readonly name: string;
package/lib/chain.js CHANGED
@@ -18,6 +18,7 @@ var ChainId;
18
18
  ChainId[ChainId["ModeMainnet"] = 34443] = "ModeMainnet";
19
19
  ChainId[ChainId["CornMainnet"] = 21000000] = "CornMainnet";
20
20
  ChainId[ChainId["PlumeMainnet"] = 98866] = "PlumeMainnet";
21
+ ChainId[ChainId["CampMainnet"] = 123420001114] = "CampMainnet";
21
22
  })(ChainId || (exports.ChainId = ChainId = {}));
22
23
  var ChainUtils;
23
24
  (function (ChainUtils) {
@@ -139,5 +140,12 @@ var ChainUtils;
139
140
  explorerUrl: "https://phoenix-explorer.plumenetwork.xyz",
140
141
  identifier: "plume",
141
142
  },
143
+ [ChainId.CampMainnet]: {
144
+ name: "Camp",
145
+ id: ChainId.CampMainnet,
146
+ nativeCurrency: { name: "Camp", symbol: "CAMP", decimals: 18 },
147
+ explorerUrl: "https://basecamp.cloud.blockscout.com/",
148
+ identifier: "camp",
149
+ },
142
150
  };
143
151
  })(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.1",
4
+ "version": "3.0.3",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"