@morpho-org/blue-sdk 5.11.0 → 5.12.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.
@@ -551,6 +551,20 @@ declare const _addressesRegistry: {
551
551
  readonly preLiquidationFactory: "0x717a3eF7D366F5ce4636011924D0Bd65ea5eCE2f";
552
552
  readonly usdc: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C";
553
553
  };
554
+ readonly 2741: {
555
+ readonly morpho: "0xc85CE8ffdA27b646D269516B8d0Fa6ec2E958B55";
556
+ readonly bundler3: {
557
+ readonly bundler3: "0xc13A3Ca3B0120EE6121d1E0ca9Da22fDD7ed28Cd";
558
+ readonly generalAdapter1: "0x3716AA06304D1bC70f553Da44904d13086A4a791";
559
+ };
560
+ readonly adaptiveCurveIrm: "0xd334eb112CfD1EB4a50FB871b7D9895EBB955C43";
561
+ readonly publicAllocator: "0x609f3DF49806B5617A0Bd3301f04Ac3CB26d9e82";
562
+ readonly metaMorphoFactory: "0x83A7f60c9fc57cEf1e8001bda98783AA1A53E4b1";
563
+ readonly chainlinkOracleFactory: "0x3585E3fD72F8d1b02250E1F6496b706c6e092884";
564
+ readonly preLiquidationFactory: "0x1058DA51242dF63bA3A61c838A61405ea6Edb083";
565
+ readonly wNative: "0x3439153EB7AF838Ad19d56E1571FBD09333C2809";
566
+ readonly usdc: "0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1";
567
+ };
554
568
  };
555
569
  export type ChainDeployments<Addresses = ChainAddresses> = {
556
570
  [key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
@@ -992,6 +1006,19 @@ declare const _deployments: {
992
1006
  readonly preLiquidationFactory: 41808392n;
993
1007
  readonly usdc: 23412006n;
994
1008
  };
1009
+ readonly 2741: {
1010
+ readonly morpho: 13947713n;
1011
+ readonly bundler3: {
1012
+ readonly bundler3: 13949482n;
1013
+ readonly generalAdapter1: 13949482n;
1014
+ };
1015
+ readonly adaptiveCurveIrm: 13947713n;
1016
+ readonly publicAllocator: 13947713n;
1017
+ readonly metaMorphoFactory: 13949369n;
1018
+ readonly chainlinkOracleFactory: 13949369n;
1019
+ readonly preLiquidationFactory: 13949482n;
1020
+ readonly usdc: 53247n;
1021
+ };
995
1022
  };
996
1023
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
997
1024
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -1526,6 +1553,20 @@ export declare let addressesRegistry: {
1526
1553
  readonly preLiquidationFactory: "0x717a3eF7D366F5ce4636011924D0Bd65ea5eCE2f";
1527
1554
  readonly usdc: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C";
1528
1555
  };
1556
+ readonly 2741: {
1557
+ readonly morpho: "0xc85CE8ffdA27b646D269516B8d0Fa6ec2E958B55";
1558
+ readonly bundler3: {
1559
+ readonly bundler3: "0xc13A3Ca3B0120EE6121d1E0ca9Da22fDD7ed28Cd";
1560
+ readonly generalAdapter1: "0x3716AA06304D1bC70f553Da44904d13086A4a791";
1561
+ };
1562
+ readonly adaptiveCurveIrm: "0xd334eb112CfD1EB4a50FB871b7D9895EBB955C43";
1563
+ readonly publicAllocator: "0x609f3DF49806B5617A0Bd3301f04Ac3CB26d9e82";
1564
+ readonly metaMorphoFactory: "0x83A7f60c9fc57cEf1e8001bda98783AA1A53E4b1";
1565
+ readonly chainlinkOracleFactory: "0x3585E3fD72F8d1b02250E1F6496b706c6e092884";
1566
+ readonly preLiquidationFactory: "0x1058DA51242dF63bA3A61c838A61405ea6Edb083";
1567
+ readonly wNative: "0x3439153EB7AF838Ad19d56E1571FBD09333C2809";
1568
+ readonly usdc: "0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1";
1569
+ };
1529
1570
  };
1530
1571
  export declare let addresses: Record<number, ChainAddresses>;
1531
1572
  export declare let deployments: {
@@ -1965,6 +2006,19 @@ export declare let deployments: {
1965
2006
  readonly preLiquidationFactory: 41808392n;
1966
2007
  readonly usdc: 23412006n;
1967
2008
  };
2009
+ readonly 2741: {
2010
+ readonly morpho: 13947713n;
2011
+ readonly bundler3: {
2012
+ readonly bundler3: 13949482n;
2013
+ readonly generalAdapter1: 13949482n;
2014
+ };
2015
+ readonly adaptiveCurveIrm: 13947713n;
2016
+ readonly publicAllocator: 13947713n;
2017
+ readonly metaMorphoFactory: 13949369n;
2018
+ readonly chainlinkOracleFactory: 13949369n;
2019
+ readonly preLiquidationFactory: 13949482n;
2020
+ readonly usdc: 53247n;
2021
+ };
1968
2022
  };
1969
2023
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
1970
2024
  /**
package/lib/addresses.js CHANGED
@@ -540,6 +540,21 @@ const _addressesRegistry = {
540
540
  // No wrapped native is provided as the native asset CELO is already an ERC20.
541
541
  usdc: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
542
542
  },
543
+ [chain_js_1.ChainId.AbstractMainnet]: {
544
+ morpho: "0xc85CE8ffdA27b646D269516B8d0Fa6ec2E958B55",
545
+ bundler3: {
546
+ bundler3: "0xc13A3Ca3B0120EE6121d1E0ca9Da22fDD7ed28Cd",
547
+ generalAdapter1: "0x3716AA06304D1bC70f553Da44904d13086A4a791",
548
+ },
549
+ adaptiveCurveIrm: "0xd334eb112CfD1EB4a50FB871b7D9895EBB955C43",
550
+ publicAllocator: "0x609f3DF49806B5617A0Bd3301f04Ac3CB26d9e82",
551
+ metaMorphoFactory: "0x83A7f60c9fc57cEf1e8001bda98783AA1A53E4b1",
552
+ chainlinkOracleFactory: "0x3585E3fD72F8d1b02250E1F6496b706c6e092884",
553
+ preLiquidationFactory: "0x1058DA51242dF63bA3A61c838A61405ea6Edb083",
554
+ wNative: "0x3439153EB7AF838Ad19d56E1571FBD09333C2809",
555
+ // Must implement USDC permit version 2 (otherwise breaks permit signatures).
556
+ usdc: "0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1",
557
+ },
543
558
  };
544
559
  const _deployments = {
545
560
  [chain_js_1.ChainId.EthMainnet]: {
@@ -978,6 +993,19 @@ const _deployments = {
978
993
  preLiquidationFactory: 41808392n,
979
994
  usdc: 23412006n,
980
995
  },
996
+ [chain_js_1.ChainId.AbstractMainnet]: {
997
+ morpho: 13947713n,
998
+ bundler3: {
999
+ bundler3: 13949482n,
1000
+ generalAdapter1: 13949482n,
1001
+ },
1002
+ adaptiveCurveIrm: 13947713n,
1003
+ publicAllocator: 13947713n,
1004
+ metaMorphoFactory: 13949369n,
1005
+ chainlinkOracleFactory: 13949369n,
1006
+ preLiquidationFactory: 13949482n,
1007
+ usdc: 53247n,
1008
+ },
981
1009
  };
982
1010
  const getChainAddresses = (chainId) => {
983
1011
  const chainAddresses = exports.addresses[chainId];
@@ -1078,6 +1106,9 @@ const _unwrappedTokensMapping = {
1078
1106
  [chain_js_1.ChainId.CronosMainnet]: {
1079
1107
  [_addressesRegistry[chain_js_1.ChainId.CronosMainnet].wNative]: exports.NATIVE_ADDRESS,
1080
1108
  },
1109
+ [chain_js_1.ChainId.AbstractMainnet]: {
1110
+ [_addressesRegistry[chain_js_1.ChainId.AbstractMainnet].wNative]: exports.NATIVE_ADDRESS,
1111
+ },
1081
1112
  };
1082
1113
  function getUnwrappedToken(wrappedToken, chainId) {
1083
1114
  return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -26,7 +26,8 @@ export declare enum ChainId {
26
26
  MonadMainnet = 143,
27
27
  StableMainnet = 988,
28
28
  CronosMainnet = 25,
29
- CeloMainnet = 42220
29
+ CeloMainnet = 42220,
30
+ AbstractMainnet = 2741
30
31
  }
31
32
  export interface ChainMetadata {
32
33
  readonly name: string;
@@ -353,5 +354,16 @@ export declare namespace ChainUtils {
353
354
  explorerUrl: string;
354
355
  identifier: string;
355
356
  };
357
+ 2741: {
358
+ name: string;
359
+ id: ChainId.AbstractMainnet;
360
+ nativeCurrency: {
361
+ name: string;
362
+ symbol: string;
363
+ decimals: number;
364
+ };
365
+ explorerUrl: string;
366
+ identifier: string;
367
+ };
356
368
  };
357
369
  }
package/lib/chain.js CHANGED
@@ -31,6 +31,7 @@ var ChainId;
31
31
  ChainId[ChainId["StableMainnet"] = 988] = "StableMainnet";
32
32
  ChainId[ChainId["CronosMainnet"] = 25] = "CronosMainnet";
33
33
  ChainId[ChainId["CeloMainnet"] = 42220] = "CeloMainnet";
34
+ ChainId[ChainId["AbstractMainnet"] = 2741] = "AbstractMainnet";
34
35
  })(ChainId || (exports.ChainId = ChainId = {}));
35
36
  var ChainUtils;
36
37
  (function (ChainUtils) {
@@ -243,5 +244,12 @@ var ChainUtils;
243
244
  explorerUrl: "https://celoscan.io/",
244
245
  identifier: "celo",
245
246
  },
247
+ [ChainId.AbstractMainnet]: {
248
+ name: "Abstract",
249
+ id: ChainId.AbstractMainnet,
250
+ nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
251
+ explorerUrl: "https://abscan.org/",
252
+ identifier: "abstract",
253
+ },
246
254
  };
247
255
  })(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": "5.11.0",
4
+ "version": "5.12.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -32,7 +32,7 @@
32
32
  "viem": "^2.41.2",
33
33
  "vitest": "^4.0.15",
34
34
  "@morpho-org/morpho-ts": "^2.4.6",
35
- "@morpho-org/test": "^2.6.5"
35
+ "@morpho-org/test": "^2.6.6"
36
36
  },
37
37
  "scripts": {
38
38
  "prepublish": "$npm_execpath build",