@morpho-org/blue-sdk 5.11.0 → 5.12.1

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
@@ -507,6 +507,7 @@ const _addressesRegistry = {
507
507
  registryList: "0xCe93fcB2849EB886F1e81d45D2747dF803f843C3",
508
508
  chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505",
509
509
  preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e",
510
+ // There is no wrapped native token because the native token USDT0 is already an ERC20.
510
511
  },
511
512
  [chain_js_1.ChainId.CronosMainnet]: {
512
513
  morpho: "0xDF9a1DC07e5dEe5ccCCaBeC35e446C70fAF7434e",
@@ -540,6 +541,21 @@ const _addressesRegistry = {
540
541
  // No wrapped native is provided as the native asset CELO is already an ERC20.
541
542
  usdc: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
542
543
  },
544
+ [chain_js_1.ChainId.AbstractMainnet]: {
545
+ morpho: "0xc85CE8ffdA27b646D269516B8d0Fa6ec2E958B55",
546
+ bundler3: {
547
+ bundler3: "0xc13A3Ca3B0120EE6121d1E0ca9Da22fDD7ed28Cd",
548
+ generalAdapter1: "0x3716AA06304D1bC70f553Da44904d13086A4a791",
549
+ },
550
+ adaptiveCurveIrm: "0xd334eb112CfD1EB4a50FB871b7D9895EBB955C43",
551
+ publicAllocator: "0x609f3DF49806B5617A0Bd3301f04Ac3CB26d9e82",
552
+ metaMorphoFactory: "0x83A7f60c9fc57cEf1e8001bda98783AA1A53E4b1",
553
+ chainlinkOracleFactory: "0x3585E3fD72F8d1b02250E1F6496b706c6e092884",
554
+ preLiquidationFactory: "0x1058DA51242dF63bA3A61c838A61405ea6Edb083",
555
+ wNative: "0x3439153EB7AF838Ad19d56E1571FBD09333C2809",
556
+ // Must implement USDC permit version 2 (otherwise breaks permit signatures).
557
+ usdc: "0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1",
558
+ },
543
559
  };
544
560
  const _deployments = {
545
561
  [chain_js_1.ChainId.EthMainnet]: {
@@ -978,6 +994,19 @@ const _deployments = {
978
994
  preLiquidationFactory: 41808392n,
979
995
  usdc: 23412006n,
980
996
  },
997
+ [chain_js_1.ChainId.AbstractMainnet]: {
998
+ morpho: 13947713n,
999
+ bundler3: {
1000
+ bundler3: 13949482n,
1001
+ generalAdapter1: 13949482n,
1002
+ },
1003
+ adaptiveCurveIrm: 13947713n,
1004
+ publicAllocator: 13947713n,
1005
+ metaMorphoFactory: 13949369n,
1006
+ chainlinkOracleFactory: 13949369n,
1007
+ preLiquidationFactory: 13949482n,
1008
+ usdc: 53247n,
1009
+ },
981
1010
  };
982
1011
  const getChainAddresses = (chainId) => {
983
1012
  const chainAddresses = exports.addresses[chainId];
@@ -1078,6 +1107,9 @@ const _unwrappedTokensMapping = {
1078
1107
  [chain_js_1.ChainId.CronosMainnet]: {
1079
1108
  [_addressesRegistry[chain_js_1.ChainId.CronosMainnet].wNative]: exports.NATIVE_ADDRESS,
1080
1109
  },
1110
+ [chain_js_1.ChainId.AbstractMainnet]: {
1111
+ [_addressesRegistry[chain_js_1.ChainId.AbstractMainnet].wNative]: exports.NATIVE_ADDRESS,
1112
+ },
1081
1113
  };
1082
1114
  function getUnwrappedToken(wrappedToken, chainId) {
1083
1115
  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) {
@@ -225,7 +226,7 @@ var ChainUtils;
225
226
  [ChainId.StableMainnet]: {
226
227
  name: "Stable",
227
228
  id: ChainId.StableMainnet,
228
- nativeCurrency: { name: "gUSDT", symbol: "gUSDT", decimals: 18 },
229
+ nativeCurrency: { name: "USDT0", symbol: "USDT0", decimals: 18 },
229
230
  explorerUrl: "https://stablescan.xyz",
230
231
  identifier: "stable",
231
232
  },
@@ -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.1",
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.7"
36
36
  },
37
37
  "scripts": {
38
38
  "prepublish": "$npm_execpath build",