@morpho-org/blue-sdk 5.3.0 → 5.5.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.
@@ -450,6 +450,42 @@ declare const _addressesRegistry: {
450
450
  readonly preLiquidationFactory: "0x534858821653467c2ae231dc027aa1F2c8D91802";
451
451
  readonly wNative: "0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c";
452
452
  };
453
+ readonly 59144: {
454
+ readonly morpho: "0x6B0D716aC0A45536172308e08fC2C40387262c9F";
455
+ readonly bundler3: {
456
+ readonly bundler3: "0x1Ee8Ec299E8014760D50A4E3CfC3b44Cc2242625";
457
+ readonly generalAdapter1: "0x454dAb6ce9891245696b239b4845a1cDC268255d";
458
+ };
459
+ readonly adaptiveCurveIrm: "0x85C2Ef4Bd69f42D7Da19Fb9dcdD7Fb8d0F59cDeE";
460
+ readonly publicAllocator: "0x2d4cf00e18D48fD030d9b1E2FAAE6e0384C7610B";
461
+ readonly metaMorphoFactory: "0xA148a8223B622A72dC36472DE1492aBb5c089BA7";
462
+ readonly vaultV2Factory: "0x5DC11CF8BA4C39d1194F91218D35008d9F52A5d0";
463
+ readonly morphoMarketV1AdapterFactory: "0x3267BbdC94274B4BE081c01ffc6123dA12E8c043";
464
+ readonly morphoVaultV1AdapterFactory: "0x6FaF26DD640e22457cA4fd5DA702BA3E169eEd87";
465
+ readonly registryList: "0x122Ea8ff8888C29F8736665d576e3fAEF15D27D5";
466
+ readonly chainlinkOracleFactory: "0x3FFF726062B03BfD5BC485eeEEcc92CF1d8F0105";
467
+ readonly preLiquidationFactory: "0x05a0Ff4E564ED1ba6B42247E19edFf83545C3C40";
468
+ readonly wNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f";
469
+ readonly usdc: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff";
470
+ };
471
+ readonly 143: {
472
+ readonly morpho: "0xD5D960E8C380B724a48AC59E2DfF1b2CB4a1eAee";
473
+ readonly bundler3: {
474
+ readonly bundler3: "0x82b684483e844422FD339df0b67b3B111F02c66E";
475
+ readonly generalAdapter1: "0x725AB8CAd931BCb80Fdbf10955a806765cCe00e5";
476
+ };
477
+ readonly adaptiveCurveIrm: "0x09475a3D6eA8c314c592b1a3799bDE044E2F400F";
478
+ readonly publicAllocator: "0xfd70575B732F9482F4197FE1075492e114E97302";
479
+ readonly metaMorphoFactory: "0x33f20973275B2F574488b18929cd7DCBf1AbF275";
480
+ readonly vaultV2Factory: "0x8B2F922162FBb60A6a072cC784A2E4168fB0bb0c";
481
+ readonly morphoMarketV1AdapterFactory: "0x8Da54fbF89B3D6fC6DCC92F31CF75a211ACF3d46";
482
+ readonly morphoVaultV1AdapterFactory: "0x9f3c0999425656fD189C69a8aD68cB64986D644A";
483
+ readonly registryList: "0x6a42f8b46224baA4DbBBc2F860F4675eeA7bd52B";
484
+ readonly chainlinkOracleFactory: "0xC8659Bcd5279DB664Be973aEFd752a5326653739";
485
+ readonly preLiquidationFactory: "0xB5b3e541abD19799E0c65905a5a42BD37d6c94c0";
486
+ readonly wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A";
487
+ readonly usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
488
+ };
453
489
  };
454
490
  export type ChainDeployments<Addresses = ChainAddresses> = {
455
491
  [key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
@@ -798,6 +834,39 @@ declare const _deployments: {
798
834
  readonly chainlinkOracleFactory: 7526768n;
799
835
  readonly preLiquidationFactory: 7527649n;
800
836
  };
837
+ readonly 59144: {
838
+ readonly morpho: 25072608n;
839
+ readonly bundler3: {
840
+ readonly bundler3: 25072853n;
841
+ readonly generalAdapter1: 25072853n;
842
+ };
843
+ readonly adaptiveCurveIrm: 25072608n;
844
+ readonly publicAllocator: 25072608n;
845
+ readonly metaMorphoFactory: 25072665n;
846
+ readonly vaultV2Factory: 25072951n;
847
+ readonly morphoMarketV1AdapterFactory: 25072951n;
848
+ readonly morphoVaultV1AdapterFactory: 25072951n;
849
+ readonly registryList: 25073088n;
850
+ readonly chainlinkOracleFactory: 25072665n;
851
+ readonly preLiquidationFactory: 25072853n;
852
+ };
853
+ readonly 143: {
854
+ readonly morpho: 31907457n;
855
+ readonly bundler3: {
856
+ readonly bundler3: 32321504n;
857
+ readonly generalAdapter1: 32321504n;
858
+ };
859
+ readonly adaptiveCurveIrm: 31907457n;
860
+ readonly publicAllocator: 31907457n;
861
+ readonly metaMorphoFactory: 32320327n;
862
+ readonly vaultV2Factory: 32321811n;
863
+ readonly morphoMarketV1AdapterFactory: 32321811n;
864
+ readonly morphoVaultV1AdapterFactory: 32321811n;
865
+ readonly registryList: 32322465n;
866
+ readonly chainlinkOracleFactory: 32320327n;
867
+ readonly preLiquidationFactory: 32321504n;
868
+ readonly usdc: 22909616n;
869
+ };
801
870
  };
802
871
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
803
872
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -1232,6 +1301,42 @@ export declare let addressesRegistry: {
1232
1301
  readonly preLiquidationFactory: "0x534858821653467c2ae231dc027aa1F2c8D91802";
1233
1302
  readonly wNative: "0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c";
1234
1303
  };
1304
+ readonly 59144: {
1305
+ readonly morpho: "0x6B0D716aC0A45536172308e08fC2C40387262c9F";
1306
+ readonly bundler3: {
1307
+ readonly bundler3: "0x1Ee8Ec299E8014760D50A4E3CfC3b44Cc2242625";
1308
+ readonly generalAdapter1: "0x454dAb6ce9891245696b239b4845a1cDC268255d";
1309
+ };
1310
+ readonly adaptiveCurveIrm: "0x85C2Ef4Bd69f42D7Da19Fb9dcdD7Fb8d0F59cDeE";
1311
+ readonly publicAllocator: "0x2d4cf00e18D48fD030d9b1E2FAAE6e0384C7610B";
1312
+ readonly metaMorphoFactory: "0xA148a8223B622A72dC36472DE1492aBb5c089BA7";
1313
+ readonly vaultV2Factory: "0x5DC11CF8BA4C39d1194F91218D35008d9F52A5d0";
1314
+ readonly morphoMarketV1AdapterFactory: "0x3267BbdC94274B4BE081c01ffc6123dA12E8c043";
1315
+ readonly morphoVaultV1AdapterFactory: "0x6FaF26DD640e22457cA4fd5DA702BA3E169eEd87";
1316
+ readonly registryList: "0x122Ea8ff8888C29F8736665d576e3fAEF15D27D5";
1317
+ readonly chainlinkOracleFactory: "0x3FFF726062B03BfD5BC485eeEEcc92CF1d8F0105";
1318
+ readonly preLiquidationFactory: "0x05a0Ff4E564ED1ba6B42247E19edFf83545C3C40";
1319
+ readonly wNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f";
1320
+ readonly usdc: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff";
1321
+ };
1322
+ readonly 143: {
1323
+ readonly morpho: "0xD5D960E8C380B724a48AC59E2DfF1b2CB4a1eAee";
1324
+ readonly bundler3: {
1325
+ readonly bundler3: "0x82b684483e844422FD339df0b67b3B111F02c66E";
1326
+ readonly generalAdapter1: "0x725AB8CAd931BCb80Fdbf10955a806765cCe00e5";
1327
+ };
1328
+ readonly adaptiveCurveIrm: "0x09475a3D6eA8c314c592b1a3799bDE044E2F400F";
1329
+ readonly publicAllocator: "0xfd70575B732F9482F4197FE1075492e114E97302";
1330
+ readonly metaMorphoFactory: "0x33f20973275B2F574488b18929cd7DCBf1AbF275";
1331
+ readonly vaultV2Factory: "0x8B2F922162FBb60A6a072cC784A2E4168fB0bb0c";
1332
+ readonly morphoMarketV1AdapterFactory: "0x8Da54fbF89B3D6fC6DCC92F31CF75a211ACF3d46";
1333
+ readonly morphoVaultV1AdapterFactory: "0x9f3c0999425656fD189C69a8aD68cB64986D644A";
1334
+ readonly registryList: "0x6a42f8b46224baA4DbBBc2F860F4675eeA7bd52B";
1335
+ readonly chainlinkOracleFactory: "0xC8659Bcd5279DB664Be973aEFd752a5326653739";
1336
+ readonly preLiquidationFactory: "0xB5b3e541abD19799E0c65905a5a42BD37d6c94c0";
1337
+ readonly wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A";
1338
+ readonly usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
1339
+ };
1235
1340
  };
1236
1341
  export declare let addresses: Record<number, ChainAddresses>;
1237
1342
  export declare let deployments: {
@@ -1578,6 +1683,39 @@ export declare let deployments: {
1578
1683
  readonly chainlinkOracleFactory: 7526768n;
1579
1684
  readonly preLiquidationFactory: 7527649n;
1580
1685
  };
1686
+ readonly 59144: {
1687
+ readonly morpho: 25072608n;
1688
+ readonly bundler3: {
1689
+ readonly bundler3: 25072853n;
1690
+ readonly generalAdapter1: 25072853n;
1691
+ };
1692
+ readonly adaptiveCurveIrm: 25072608n;
1693
+ readonly publicAllocator: 25072608n;
1694
+ readonly metaMorphoFactory: 25072665n;
1695
+ readonly vaultV2Factory: 25072951n;
1696
+ readonly morphoMarketV1AdapterFactory: 25072951n;
1697
+ readonly morphoVaultV1AdapterFactory: 25072951n;
1698
+ readonly registryList: 25073088n;
1699
+ readonly chainlinkOracleFactory: 25072665n;
1700
+ readonly preLiquidationFactory: 25072853n;
1701
+ };
1702
+ readonly 143: {
1703
+ readonly morpho: 31907457n;
1704
+ readonly bundler3: {
1705
+ readonly bundler3: 32321504n;
1706
+ readonly generalAdapter1: 32321504n;
1707
+ };
1708
+ readonly adaptiveCurveIrm: 31907457n;
1709
+ readonly publicAllocator: 31907457n;
1710
+ readonly metaMorphoFactory: 32320327n;
1711
+ readonly vaultV2Factory: 32321811n;
1712
+ readonly morphoMarketV1AdapterFactory: 32321811n;
1713
+ readonly morphoVaultV1AdapterFactory: 32321811n;
1714
+ readonly registryList: 32322465n;
1715
+ readonly chainlinkOracleFactory: 32320327n;
1716
+ readonly preLiquidationFactory: 32321504n;
1717
+ readonly usdc: 22909616n;
1718
+ };
1581
1719
  };
1582
1720
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
1583
1721
  /**
package/lib/addresses.js CHANGED
@@ -439,6 +439,42 @@ const _addressesRegistry = {
439
439
  preLiquidationFactory: "0x534858821653467c2ae231dc027aa1F2c8D91802",
440
440
  wNative: "0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c",
441
441
  },
442
+ [chain_js_1.ChainId.LineaMainnet]: {
443
+ morpho: "0x6B0D716aC0A45536172308e08fC2C40387262c9F",
444
+ bundler3: {
445
+ bundler3: "0x1Ee8Ec299E8014760D50A4E3CfC3b44Cc2242625",
446
+ generalAdapter1: "0x454dAb6ce9891245696b239b4845a1cDC268255d",
447
+ },
448
+ adaptiveCurveIrm: "0x85C2Ef4Bd69f42D7Da19Fb9dcdD7Fb8d0F59cDeE",
449
+ publicAllocator: "0x2d4cf00e18D48fD030d9b1E2FAAE6e0384C7610B",
450
+ metaMorphoFactory: "0xA148a8223B622A72dC36472DE1492aBb5c089BA7",
451
+ vaultV2Factory: "0x5DC11CF8BA4C39d1194F91218D35008d9F52A5d0",
452
+ morphoMarketV1AdapterFactory: "0x3267BbdC94274B4BE081c01ffc6123dA12E8c043",
453
+ morphoVaultV1AdapterFactory: "0x6FaF26DD640e22457cA4fd5DA702BA3E169eEd87",
454
+ registryList: "0x122Ea8ff8888C29F8736665d576e3fAEF15D27D5",
455
+ chainlinkOracleFactory: "0x3FFF726062B03BfD5BC485eeEEcc92CF1d8F0105",
456
+ preLiquidationFactory: "0x05a0Ff4E564ED1ba6B42247E19edFf83545C3C40",
457
+ wNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
458
+ usdc: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff",
459
+ },
460
+ [chain_js_1.ChainId.MonadMainnet]: {
461
+ morpho: "0xD5D960E8C380B724a48AC59E2DfF1b2CB4a1eAee",
462
+ bundler3: {
463
+ bundler3: "0x82b684483e844422FD339df0b67b3B111F02c66E",
464
+ generalAdapter1: "0x725AB8CAd931BCb80Fdbf10955a806765cCe00e5",
465
+ },
466
+ adaptiveCurveIrm: "0x09475a3D6eA8c314c592b1a3799bDE044E2F400F",
467
+ publicAllocator: "0xfd70575B732F9482F4197FE1075492e114E97302",
468
+ metaMorphoFactory: "0x33f20973275B2F574488b18929cd7DCBf1AbF275",
469
+ vaultV2Factory: "0x8B2F922162FBb60A6a072cC784A2E4168fB0bb0c",
470
+ morphoMarketV1AdapterFactory: "0x8Da54fbF89B3D6fC6DCC92F31CF75a211ACF3d46",
471
+ morphoVaultV1AdapterFactory: "0x9f3c0999425656fD189C69a8aD68cB64986D644A",
472
+ registryList: "0x6a42f8b46224baA4DbBBc2F860F4675eeA7bd52B",
473
+ chainlinkOracleFactory: "0xC8659Bcd5279DB664Be973aEFd752a5326653739",
474
+ preLiquidationFactory: "0xB5b3e541abD19799E0c65905a5a42BD37d6c94c0",
475
+ wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A",
476
+ usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
477
+ },
442
478
  };
443
479
  const _deployments = {
444
480
  [chain_js_1.ChainId.EthMainnet]: {
@@ -784,6 +820,39 @@ const _deployments = {
784
820
  chainlinkOracleFactory: 7526768n,
785
821
  preLiquidationFactory: 7527649n,
786
822
  },
823
+ [chain_js_1.ChainId.LineaMainnet]: {
824
+ morpho: 25072608n,
825
+ bundler3: {
826
+ bundler3: 25072853n,
827
+ generalAdapter1: 25072853n,
828
+ },
829
+ adaptiveCurveIrm: 25072608n,
830
+ publicAllocator: 25072608n,
831
+ metaMorphoFactory: 25072665n,
832
+ vaultV2Factory: 25072951n,
833
+ morphoMarketV1AdapterFactory: 25072951n,
834
+ morphoVaultV1AdapterFactory: 25072951n,
835
+ registryList: 25073088n,
836
+ chainlinkOracleFactory: 25072665n,
837
+ preLiquidationFactory: 25072853n,
838
+ },
839
+ [chain_js_1.ChainId.MonadMainnet]: {
840
+ morpho: 31907457n,
841
+ bundler3: {
842
+ bundler3: 32321504n,
843
+ generalAdapter1: 32321504n,
844
+ },
845
+ adaptiveCurveIrm: 31907457n,
846
+ publicAllocator: 31907457n,
847
+ metaMorphoFactory: 32320327n,
848
+ vaultV2Factory: 32321811n,
849
+ morphoMarketV1AdapterFactory: 32321811n,
850
+ morphoVaultV1AdapterFactory: 32321811n,
851
+ registryList: 32322465n,
852
+ chainlinkOracleFactory: 32320327n,
853
+ preLiquidationFactory: 32321504n,
854
+ usdc: 22909616n,
855
+ },
787
856
  };
788
857
  const getChainAddresses = (chainId) => {
789
858
  const chainAddresses = exports.addresses[chainId];
@@ -875,6 +944,12 @@ const _unwrappedTokensMapping = {
875
944
  [chain_js_1.ChainId.ZeroGMainnet]: {
876
945
  [_addressesRegistry[chain_js_1.ChainId.ZeroGMainnet].wNative]: exports.NATIVE_ADDRESS,
877
946
  },
947
+ [chain_js_1.ChainId.LineaMainnet]: {
948
+ [_addressesRegistry[chain_js_1.ChainId.LineaMainnet].wNative]: exports.NATIVE_ADDRESS,
949
+ },
950
+ [chain_js_1.ChainId.MonadMainnet]: {
951
+ [_addressesRegistry[chain_js_1.ChainId.MonadMainnet].wNative]: exports.NATIVE_ADDRESS,
952
+ },
878
953
  };
879
954
  function getUnwrappedToken(wrappedToken, chainId) {
880
955
  return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -21,7 +21,9 @@ export declare enum ChainId {
21
21
  LiskMainnet = 1135,
22
22
  HyperliquidMainnet = 999,
23
23
  SeiMainnet = 1329,
24
- ZeroGMainnet = 16661
24
+ ZeroGMainnet = 16661,
25
+ LineaMainnet = 59144,
26
+ MonadMainnet = 143
25
27
  }
26
28
  export interface ChainMetadata {
27
29
  readonly name: string;
@@ -293,5 +295,27 @@ export declare namespace ChainUtils {
293
295
  explorerUrl: string;
294
296
  identifier: string;
295
297
  };
298
+ 59144: {
299
+ name: string;
300
+ id: ChainId.LineaMainnet;
301
+ nativeCurrency: {
302
+ name: string;
303
+ symbol: string;
304
+ decimals: number;
305
+ };
306
+ explorerUrl: string;
307
+ identifier: string;
308
+ };
309
+ 143: {
310
+ name: string;
311
+ id: ChainId.MonadMainnet;
312
+ nativeCurrency: {
313
+ name: string;
314
+ symbol: string;
315
+ decimals: number;
316
+ };
317
+ explorerUrl: string;
318
+ identifier: string;
319
+ };
296
320
  };
297
321
  }
package/lib/chain.js CHANGED
@@ -26,6 +26,8 @@ var ChainId;
26
26
  ChainId[ChainId["HyperliquidMainnet"] = 999] = "HyperliquidMainnet";
27
27
  ChainId[ChainId["SeiMainnet"] = 1329] = "SeiMainnet";
28
28
  ChainId[ChainId["ZeroGMainnet"] = 16661] = "ZeroGMainnet";
29
+ ChainId[ChainId["LineaMainnet"] = 59144] = "LineaMainnet";
30
+ ChainId[ChainId["MonadMainnet"] = 143] = "MonadMainnet";
29
31
  })(ChainId || (exports.ChainId = ChainId = {}));
30
32
  var ChainUtils;
31
33
  (function (ChainUtils) {
@@ -203,5 +205,19 @@ var ChainUtils;
203
205
  explorerUrl: "https://chainscan.0g.ai",
204
206
  identifier: "0G",
205
207
  },
208
+ [ChainId.LineaMainnet]: {
209
+ name: "Linea",
210
+ id: ChainId.LineaMainnet,
211
+ nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
212
+ explorerUrl: "https://lineascan.build",
213
+ identifier: "linea",
214
+ },
215
+ [ChainId.MonadMainnet]: {
216
+ name: "Monad",
217
+ id: ChainId.MonadMainnet,
218
+ nativeCurrency: { name: "Monad", symbol: "MON", decimals: 18 },
219
+ explorerUrl: "https://monad.socialscan.io",
220
+ identifier: "monad",
221
+ },
206
222
  };
207
223
  })(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.3.0",
4
+ "version": "5.5.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -25,13 +25,13 @@
25
25
  "lodash.mergewith": "^4.6.2"
26
26
  },
27
27
  "peerDependencies": {
28
- "@morpho-org/morpho-ts": "^2.4.3"
28
+ "@morpho-org/morpho-ts": "^2.4.4"
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/morpho-ts": "^2.4.3",
34
+ "@morpho-org/morpho-ts": "^2.4.4",
35
35
  "@morpho-org/test": "^2.6.0"
36
36
  },
37
37
  "scripts": {