@morpho-org/blue-sdk 5.8.0 → 5.9.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.
@@ -507,6 +507,23 @@ declare const _addressesRegistry: {
507
507
  readonly chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505";
508
508
  readonly preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e";
509
509
  };
510
+ readonly 25: {
511
+ readonly morpho: "0xDF9a1DC07e5dEe5ccCCaBeC35e446C70fAF7434e";
512
+ readonly bundler3: {
513
+ readonly bundler3: "0xb1c59fE6A0DCE25b804F6113C441Bf4F3a4Ab6bC";
514
+ readonly generalAdapter1: "0xCa470cBBc3de56FDe336466f2107cC969174d513";
515
+ };
516
+ readonly adaptiveCurveIrm: "0x1Db002C086439d55B9f33E6c0693Eb850F7c0607";
517
+ readonly publicAllocator: "0xFEAbEf95f3C937Ff4d5fD70005CF3392f8Ca02d5";
518
+ readonly metaMorphoFactory: "0xEA67e5566Ca2c0176d9db172A7f9A1e1F22E9D3A";
519
+ readonly vaultV2Factory: "0x05519a0835a1bFD90f110aA7ca46e9A5F81Ed3b4";
520
+ readonly morphoMarketV1AdapterFactory: "0xaCFf4ad3B357F5A43A20570cF3eb9Ba0086d4e9a";
521
+ readonly morphoVaultV1AdapterFactory: "0x8840F99Bb2D4f69fb02b2d019384C5c98a11746c";
522
+ readonly registryList: "0x295e0aB80f8234398cd0E51C85D873ee69E5F0DD";
523
+ readonly chainlinkOracleFactory: "0x44b2c8e4474751EF2BBC57B92928aFB99DA785De";
524
+ readonly preLiquidationFactory: "0x8bedC738f5F0D54dF7E003297AAc6692b870F3Ed";
525
+ readonly wNative: "0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23";
526
+ };
510
527
  };
511
528
  export type ChainDeployments<Addresses = ChainAddresses> = {
512
529
  [key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
@@ -908,6 +925,22 @@ declare const _deployments: {
908
925
  readonly chainlinkOracleFactory: 1504774n;
909
926
  readonly preLiquidationFactory: 1741861n;
910
927
  };
928
+ readonly 25: {
929
+ readonly morpho: 38459435n;
930
+ readonly bundler3: {
931
+ readonly bundler3: 38460388n;
932
+ readonly generalAdapter1: 38460388n;
933
+ };
934
+ readonly adaptiveCurveIrm: 38459435n;
935
+ readonly publicAllocator: 38459435n;
936
+ readonly metaMorphoFactory: 38459727n;
937
+ readonly vaultV2Factory: 38461643n;
938
+ readonly morphoMarketV1AdapterFactory: 38461643n;
939
+ readonly morphoVaultV1AdapterFactory: 38461643n;
940
+ readonly registryList: 38461812n;
941
+ readonly chainlinkOracleFactory: 38459727n;
942
+ readonly preLiquidationFactory: 38460388n;
943
+ };
911
944
  };
912
945
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
913
946
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -1399,6 +1432,23 @@ export declare let addressesRegistry: {
1399
1432
  readonly chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505";
1400
1433
  readonly preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e";
1401
1434
  };
1435
+ readonly 25: {
1436
+ readonly morpho: "0xDF9a1DC07e5dEe5ccCCaBeC35e446C70fAF7434e";
1437
+ readonly bundler3: {
1438
+ readonly bundler3: "0xb1c59fE6A0DCE25b804F6113C441Bf4F3a4Ab6bC";
1439
+ readonly generalAdapter1: "0xCa470cBBc3de56FDe336466f2107cC969174d513";
1440
+ };
1441
+ readonly adaptiveCurveIrm: "0x1Db002C086439d55B9f33E6c0693Eb850F7c0607";
1442
+ readonly publicAllocator: "0xFEAbEf95f3C937Ff4d5fD70005CF3392f8Ca02d5";
1443
+ readonly metaMorphoFactory: "0xEA67e5566Ca2c0176d9db172A7f9A1e1F22E9D3A";
1444
+ readonly vaultV2Factory: "0x05519a0835a1bFD90f110aA7ca46e9A5F81Ed3b4";
1445
+ readonly morphoMarketV1AdapterFactory: "0xaCFf4ad3B357F5A43A20570cF3eb9Ba0086d4e9a";
1446
+ readonly morphoVaultV1AdapterFactory: "0x8840F99Bb2D4f69fb02b2d019384C5c98a11746c";
1447
+ readonly registryList: "0x295e0aB80f8234398cd0E51C85D873ee69E5F0DD";
1448
+ readonly chainlinkOracleFactory: "0x44b2c8e4474751EF2BBC57B92928aFB99DA785De";
1449
+ readonly preLiquidationFactory: "0x8bedC738f5F0D54dF7E003297AAc6692b870F3Ed";
1450
+ readonly wNative: "0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23";
1451
+ };
1402
1452
  };
1403
1453
  export declare let addresses: Record<number, ChainAddresses>;
1404
1454
  export declare let deployments: {
@@ -1798,6 +1848,22 @@ export declare let deployments: {
1798
1848
  readonly chainlinkOracleFactory: 1504774n;
1799
1849
  readonly preLiquidationFactory: 1741861n;
1800
1850
  };
1851
+ readonly 25: {
1852
+ readonly morpho: 38459435n;
1853
+ readonly bundler3: {
1854
+ readonly bundler3: 38460388n;
1855
+ readonly generalAdapter1: 38460388n;
1856
+ };
1857
+ readonly adaptiveCurveIrm: 38459435n;
1858
+ readonly publicAllocator: 38459435n;
1859
+ readonly metaMorphoFactory: 38459727n;
1860
+ readonly vaultV2Factory: 38461643n;
1861
+ readonly morphoMarketV1AdapterFactory: 38461643n;
1862
+ readonly morphoVaultV1AdapterFactory: 38461643n;
1863
+ readonly registryList: 38461812n;
1864
+ readonly chainlinkOracleFactory: 38459727n;
1865
+ readonly preLiquidationFactory: 38460388n;
1866
+ };
1801
1867
  };
1802
1868
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
1803
1869
  /**
package/lib/addresses.js CHANGED
@@ -496,6 +496,23 @@ const _addressesRegistry = {
496
496
  chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505",
497
497
  preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e",
498
498
  },
499
+ [chain_js_1.ChainId.CronosMainnet]: {
500
+ morpho: "0xDF9a1DC07e5dEe5ccCCaBeC35e446C70fAF7434e",
501
+ bundler3: {
502
+ bundler3: "0xb1c59fE6A0DCE25b804F6113C441Bf4F3a4Ab6bC",
503
+ generalAdapter1: "0xCa470cBBc3de56FDe336466f2107cC969174d513",
504
+ },
505
+ adaptiveCurveIrm: "0x1Db002C086439d55B9f33E6c0693Eb850F7c0607",
506
+ publicAllocator: "0xFEAbEf95f3C937Ff4d5fD70005CF3392f8Ca02d5",
507
+ metaMorphoFactory: "0xEA67e5566Ca2c0176d9db172A7f9A1e1F22E9D3A",
508
+ vaultV2Factory: "0x05519a0835a1bFD90f110aA7ca46e9A5F81Ed3b4",
509
+ morphoMarketV1AdapterFactory: "0xaCFf4ad3B357F5A43A20570cF3eb9Ba0086d4e9a",
510
+ morphoVaultV1AdapterFactory: "0x8840F99Bb2D4f69fb02b2d019384C5c98a11746c",
511
+ registryList: "0x295e0aB80f8234398cd0E51C85D873ee69E5F0DD",
512
+ chainlinkOracleFactory: "0x44b2c8e4474751EF2BBC57B92928aFB99DA785De",
513
+ preLiquidationFactory: "0x8bedC738f5F0D54dF7E003297AAc6692b870F3Ed",
514
+ wNative: "0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23",
515
+ },
499
516
  };
500
517
  const _deployments = {
501
518
  [chain_js_1.ChainId.EthMainnet]: {
@@ -894,6 +911,22 @@ const _deployments = {
894
911
  chainlinkOracleFactory: 1504774n,
895
912
  preLiquidationFactory: 1741861n,
896
913
  },
914
+ [chain_js_1.ChainId.CronosMainnet]: {
915
+ morpho: 38459435n,
916
+ bundler3: {
917
+ bundler3: 38460388n,
918
+ generalAdapter1: 38460388n,
919
+ },
920
+ adaptiveCurveIrm: 38459435n,
921
+ publicAllocator: 38459435n,
922
+ metaMorphoFactory: 38459727n,
923
+ vaultV2Factory: 38461643n,
924
+ morphoMarketV1AdapterFactory: 38461643n,
925
+ morphoVaultV1AdapterFactory: 38461643n,
926
+ registryList: 38461812n,
927
+ chainlinkOracleFactory: 38459727n,
928
+ preLiquidationFactory: 38460388n,
929
+ },
897
930
  };
898
931
  const getChainAddresses = (chainId) => {
899
932
  const chainAddresses = exports.addresses[chainId];
@@ -991,6 +1024,9 @@ const _unwrappedTokensMapping = {
991
1024
  [chain_js_1.ChainId.MonadMainnet]: {
992
1025
  [_addressesRegistry[chain_js_1.ChainId.MonadMainnet].wNative]: exports.NATIVE_ADDRESS,
993
1026
  },
1027
+ [chain_js_1.ChainId.CronosMainnet]: {
1028
+ [_addressesRegistry[chain_js_1.ChainId.CronosMainnet].wNative]: exports.NATIVE_ADDRESS,
1029
+ },
994
1030
  };
995
1031
  function getUnwrappedToken(wrappedToken, chainId) {
996
1032
  return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -24,7 +24,8 @@ export declare enum ChainId {
24
24
  ZeroGMainnet = 16661,
25
25
  LineaMainnet = 59144,
26
26
  MonadMainnet = 143,
27
- StableMainnet = 988
27
+ StableMainnet = 988,
28
+ CronosMainnet = 25
28
29
  }
29
30
  export interface ChainMetadata {
30
31
  readonly name: string;
@@ -329,5 +330,16 @@ export declare namespace ChainUtils {
329
330
  explorerUrl: string;
330
331
  identifier: string;
331
332
  };
333
+ 25: {
334
+ name: string;
335
+ id: ChainId.CronosMainnet;
336
+ nativeCurrency: {
337
+ name: string;
338
+ symbol: string;
339
+ decimals: number;
340
+ };
341
+ explorerUrl: string;
342
+ identifier: string;
343
+ };
332
344
  };
333
345
  }
package/lib/chain.js CHANGED
@@ -29,6 +29,7 @@ var ChainId;
29
29
  ChainId[ChainId["LineaMainnet"] = 59144] = "LineaMainnet";
30
30
  ChainId[ChainId["MonadMainnet"] = 143] = "MonadMainnet";
31
31
  ChainId[ChainId["StableMainnet"] = 988] = "StableMainnet";
32
+ ChainId[ChainId["CronosMainnet"] = 25] = "CronosMainnet";
32
33
  })(ChainId || (exports.ChainId = ChainId = {}));
33
34
  var ChainUtils;
34
35
  (function (ChainUtils) {
@@ -227,5 +228,12 @@ var ChainUtils;
227
228
  explorerUrl: "https://stablescan.xyz",
228
229
  identifier: "stable",
229
230
  },
231
+ [ChainId.CronosMainnet]: {
232
+ name: "Cronos",
233
+ id: ChainId.CronosMainnet,
234
+ nativeCurrency: { name: "Cronos", symbol: "CRO", decimals: 18 },
235
+ explorerUrl: "https://explorer.cronos.org",
236
+ identifier: "cronos",
237
+ },
230
238
  };
231
239
  })(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.8.0",
4
+ "version": "5.9.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -31,8 +31,8 @@
31
31
  "typescript": "^5.7.2",
32
32
  "viem": "^2.33.3",
33
33
  "vitest": "^3.0.5",
34
- "@morpho-org/test": "^2.6.3",
35
- "@morpho-org/morpho-ts": "^2.4.5"
34
+ "@morpho-org/morpho-ts": "^2.4.5",
35
+ "@morpho-org/test": "^2.6.3"
36
36
  },
37
37
  "scripts": {
38
38
  "prepublish": "$npm_execpath build",