@morpho-org/blue-sdk 4.0.0-next.0 → 4.0.0-next.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.
@@ -153,6 +153,7 @@ declare const _addressesRegistry: {
153
153
  readonly chainlinkOracleFactory: "0x1ff7895Eb842794c5d07C4c547b6730e61295215";
154
154
  readonly preLiquidationFactory: "0xeDadDe37D76c72b98725614d0b41C20Fe612d304";
155
155
  readonly wNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270";
156
+ readonly usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
156
157
  };
157
158
  readonly 42161: {
158
159
  readonly morpho: "0x6c247b1F6182318877311737BaC0844bAa518F5e";
@@ -334,6 +335,19 @@ declare const _addressesRegistry: {
334
335
  readonly preLiquidationFactory: "0x6C0155CC30f760DC49138B389F5B69F56eD08841";
335
336
  readonly wNative: "0x1aE9c40eCd2DD6ad5858E5430A556d7aff28A44b";
336
337
  };
338
+ readonly 747474: {
339
+ readonly morpho: "0xD50F2DffFd62f94Ee4AEd9ca05C61d0753268aBc";
340
+ readonly bundler3: {
341
+ readonly bundler3: "0xA8C5e23C9C0DF2b6fF716486c6bBEBB6661548C8";
342
+ readonly generalAdapter1: "0x916Aa175C36E845db45fF6DDB886AE437d403B61";
343
+ };
344
+ readonly adaptiveCurveIrm: "0x4F708C0ae7deD3d74736594C2109C2E3c065B428";
345
+ readonly publicAllocator: "0x39EB6Da5e88194C82B13491Df2e8B3E213eD2412";
346
+ readonly metaMorphoFactory: "0x1c8De6889acee12257899BFeAa2b7e534de32E16";
347
+ readonly chainlinkOracleFactory: "0x7D047fB910Bc187C18C81a69E30Fa164f8c536eC";
348
+ readonly preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85";
349
+ readonly wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62";
350
+ };
337
351
  };
338
352
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
339
353
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -466,6 +480,7 @@ export declare let addressesRegistry: {
466
480
  readonly chainlinkOracleFactory: "0x1ff7895Eb842794c5d07C4c547b6730e61295215";
467
481
  readonly preLiquidationFactory: "0xeDadDe37D76c72b98725614d0b41C20Fe612d304";
468
482
  readonly wNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270";
483
+ readonly usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
469
484
  };
470
485
  readonly 42161: {
471
486
  readonly morpho: "0x6c247b1F6182318877311737BaC0844bAa518F5e";
@@ -647,6 +662,19 @@ export declare let addressesRegistry: {
647
662
  readonly preLiquidationFactory: "0x6C0155CC30f760DC49138B389F5B69F56eD08841";
648
663
  readonly wNative: "0x1aE9c40eCd2DD6ad5858E5430A556d7aff28A44b";
649
664
  };
665
+ readonly 747474: {
666
+ readonly morpho: "0xD50F2DffFd62f94Ee4AEd9ca05C61d0753268aBc";
667
+ readonly bundler3: {
668
+ readonly bundler3: "0xA8C5e23C9C0DF2b6fF716486c6bBEBB6661548C8";
669
+ readonly generalAdapter1: "0x916Aa175C36E845db45fF6DDB886AE437d403B61";
670
+ };
671
+ readonly adaptiveCurveIrm: "0x4F708C0ae7deD3d74736594C2109C2E3c065B428";
672
+ readonly publicAllocator: "0x39EB6Da5e88194C82B13491Df2e8B3E213eD2412";
673
+ readonly metaMorphoFactory: "0x1c8De6889acee12257899BFeAa2b7e534de32E16";
674
+ readonly chainlinkOracleFactory: "0x7D047fB910Bc187C18C81a69E30Fa164f8c536eC";
675
+ readonly preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85";
676
+ readonly wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62";
677
+ };
650
678
  };
651
679
  export declare let addresses: Record<number, ChainAddresses>;
652
680
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
package/lib/addresses.js CHANGED
@@ -127,6 +127,8 @@ const _addressesRegistry = {
127
127
  chainlinkOracleFactory: "0x1ff7895Eb842794c5d07C4c547b6730e61295215",
128
128
  preLiquidationFactory: "0xeDadDe37D76c72b98725614d0b41C20Fe612d304",
129
129
  wNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
130
+ // Must implement USDC permit version 2 (otherwise breaks permit signatures).
131
+ usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
130
132
  },
131
133
  [chain_js_1.ChainId.ArbitrumMainnet]: {
132
134
  morpho: "0x6c247b1F6182318877311737BaC0844bAa518F5e",
@@ -315,6 +317,19 @@ const _addressesRegistry = {
315
317
  preLiquidationFactory: "0x6C0155CC30f760DC49138B389F5B69F56eD08841",
316
318
  wNative: "0x1aE9c40eCd2DD6ad5858E5430A556d7aff28A44b",
317
319
  },
320
+ [chain_js_1.ChainId.KatanaMainnet]: {
321
+ morpho: "0xD50F2DffFd62f94Ee4AEd9ca05C61d0753268aBc",
322
+ bundler3: {
323
+ bundler3: "0xA8C5e23C9C0DF2b6fF716486c6bBEBB6661548C8",
324
+ generalAdapter1: "0x916Aa175C36E845db45fF6DDB886AE437d403B61",
325
+ },
326
+ adaptiveCurveIrm: "0x4F708C0ae7deD3d74736594C2109C2E3c065B428",
327
+ publicAllocator: "0x39EB6Da5e88194C82B13491Df2e8B3E213eD2412",
328
+ metaMorphoFactory: "0x1c8De6889acee12257899BFeAa2b7e534de32E16",
329
+ chainlinkOracleFactory: "0x7D047fB910Bc187C18C81a69E30Fa164f8c536eC",
330
+ preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85",
331
+ wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62",
332
+ },
318
333
  };
319
334
  const getChainAddresses = (chainId) => {
320
335
  const chainAddresses = exports.addresses[chainId];
@@ -382,6 +397,9 @@ const _unwrappedTokensMapping = {
382
397
  [chain_js_1.ChainId.CampMainnet]: {
383
398
  [_addressesRegistry[chain_js_1.ChainId.CampMainnet].wNative]: exports.NATIVE_ADDRESS,
384
399
  },
400
+ [chain_js_1.ChainId.KatanaMainnet]: {
401
+ [_addressesRegistry[chain_js_1.ChainId.KatanaMainnet].wNative]: exports.NATIVE_ADDRESS,
402
+ },
385
403
  };
386
404
  function getUnwrappedToken(wrappedToken, chainId) {
387
405
  return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -14,7 +14,8 @@ export declare enum ChainId {
14
14
  ModeMainnet = 34443,
15
15
  CornMainnet = 21000000,
16
16
  PlumeMainnet = 98866,
17
- CampMainnet = 123420001114
17
+ CampMainnet = 123420001114,
18
+ KatanaMainnet = 747474
18
19
  }
19
20
  export interface ChainMetadata {
20
21
  readonly name: string;
package/lib/chain.js CHANGED
@@ -19,6 +19,7 @@ var ChainId;
19
19
  ChainId[ChainId["CornMainnet"] = 21000000] = "CornMainnet";
20
20
  ChainId[ChainId["PlumeMainnet"] = 98866] = "PlumeMainnet";
21
21
  ChainId[ChainId["CampMainnet"] = 123420001114] = "CampMainnet";
22
+ ChainId[ChainId["KatanaMainnet"] = 747474] = "KatanaMainnet";
22
23
  })(ChainId || (exports.ChainId = ChainId = {}));
23
24
  var ChainUtils;
24
25
  (function (ChainUtils) {
@@ -144,8 +145,15 @@ var ChainUtils;
144
145
  name: "Camp",
145
146
  id: ChainId.CampMainnet,
146
147
  nativeCurrency: { name: "Camp", symbol: "CAMP", decimals: 18 },
147
- explorerUrl: "https://basecamp.cloud.blockscout.com/",
148
+ explorerUrl: "https://basecamp.cloud.blockscout.com",
148
149
  identifier: "camp",
149
150
  },
151
+ [ChainId.KatanaMainnet]: {
152
+ name: "Katana",
153
+ id: ChainId.KatanaMainnet,
154
+ nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
155
+ explorerUrl: "https://explorer.katana.network",
156
+ identifier: "katana",
157
+ },
150
158
  };
151
159
  })(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.0.0-next.0",
4
+ "version": "4.0.0-next.2",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -25,14 +25,14 @@
25
25
  "lodash.mergewith": "^4.6.2"
26
26
  },
27
27
  "peerDependencies": {
28
- "@morpho-org/morpho-ts": "^2.4.0-next.0"
28
+ "@morpho-org/morpho-ts": "^2.3.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.7.2",
32
32
  "viem": "^2.23.0",
33
33
  "vitest": "^3.0.5",
34
- "@morpho-org/test": "^2.1.4-next.0",
35
- "@morpho-org/morpho-ts": "^2.4.0-next.0"
34
+ "@morpho-org/morpho-ts": "^2.3.0",
35
+ "@morpho-org/test": "^2.1.3"
36
36
  },
37
37
  "scripts": {
38
38
  "prepublish": "$npm_execpath build",