@morpho-org/blue-sdk 5.3.0 → 5.4.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,24 @@ declare const _addressesRegistry: {
450
450
  readonly preLiquidationFactory: "0x534858821653467c2ae231dc027aa1F2c8D91802";
451
451
  readonly wNative: "0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c";
452
452
  };
453
+ readonly 143: {
454
+ readonly morpho: "0xD5D960E8C380B724a48AC59E2DfF1b2CB4a1eAee";
455
+ readonly bundler3: {
456
+ readonly bundler3: "0x82b684483e844422FD339df0b67b3B111F02c66E";
457
+ readonly generalAdapter1: "0x725AB8CAd931BCb80Fdbf10955a806765cCe00e5";
458
+ };
459
+ readonly adaptiveCurveIrm: "0x09475a3D6eA8c314c592b1a3799bDE044E2F400F";
460
+ readonly publicAllocator: "0xfd70575B732F9482F4197FE1075492e114E97302";
461
+ readonly metaMorphoFactory: "0x33f20973275B2F574488b18929cd7DCBf1AbF275";
462
+ readonly vaultV2Factory: "0x8B2F922162FBb60A6a072cC784A2E4168fB0bb0c";
463
+ readonly morphoMarketV1AdapterFactory: "0x8Da54fbF89B3D6fC6DCC92F31CF75a211ACF3d46";
464
+ readonly morphoVaultV1AdapterFactory: "0x9f3c0999425656fD189C69a8aD68cB64986D644A";
465
+ readonly registryList: "0x6a42f8b46224baA4DbBBc2F860F4675eeA7bd52B";
466
+ readonly chainlinkOracleFactory: "0xC8659Bcd5279DB664Be973aEFd752a5326653739";
467
+ readonly preLiquidationFactory: "0xB5b3e541abD19799E0c65905a5a42BD37d6c94c0";
468
+ readonly wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A";
469
+ readonly usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
470
+ };
453
471
  };
454
472
  export type ChainDeployments<Addresses = ChainAddresses> = {
455
473
  [key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
@@ -798,6 +816,23 @@ declare const _deployments: {
798
816
  readonly chainlinkOracleFactory: 7526768n;
799
817
  readonly preLiquidationFactory: 7527649n;
800
818
  };
819
+ readonly 143: {
820
+ readonly morpho: 31907457n;
821
+ readonly bundler3: {
822
+ readonly bundler3: 32321504n;
823
+ readonly generalAdapter1: 32321504n;
824
+ };
825
+ readonly adaptiveCurveIrm: 31907457n;
826
+ readonly publicAllocator: 31907457n;
827
+ readonly metaMorphoFactory: 32320327n;
828
+ readonly vaultV2Factory: 32321811n;
829
+ readonly morphoMarketV1AdapterFactory: 32321811n;
830
+ readonly morphoVaultV1AdapterFactory: 32321811n;
831
+ readonly registryList: 32322465n;
832
+ readonly chainlinkOracleFactory: 32320327n;
833
+ readonly preLiquidationFactory: 32321504n;
834
+ readonly usdc: 22909616n;
835
+ };
801
836
  };
802
837
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
803
838
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -1232,6 +1267,24 @@ export declare let addressesRegistry: {
1232
1267
  readonly preLiquidationFactory: "0x534858821653467c2ae231dc027aa1F2c8D91802";
1233
1268
  readonly wNative: "0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c";
1234
1269
  };
1270
+ readonly 143: {
1271
+ readonly morpho: "0xD5D960E8C380B724a48AC59E2DfF1b2CB4a1eAee";
1272
+ readonly bundler3: {
1273
+ readonly bundler3: "0x82b684483e844422FD339df0b67b3B111F02c66E";
1274
+ readonly generalAdapter1: "0x725AB8CAd931BCb80Fdbf10955a806765cCe00e5";
1275
+ };
1276
+ readonly adaptiveCurveIrm: "0x09475a3D6eA8c314c592b1a3799bDE044E2F400F";
1277
+ readonly publicAllocator: "0xfd70575B732F9482F4197FE1075492e114E97302";
1278
+ readonly metaMorphoFactory: "0x33f20973275B2F574488b18929cd7DCBf1AbF275";
1279
+ readonly vaultV2Factory: "0x8B2F922162FBb60A6a072cC784A2E4168fB0bb0c";
1280
+ readonly morphoMarketV1AdapterFactory: "0x8Da54fbF89B3D6fC6DCC92F31CF75a211ACF3d46";
1281
+ readonly morphoVaultV1AdapterFactory: "0x9f3c0999425656fD189C69a8aD68cB64986D644A";
1282
+ readonly registryList: "0x6a42f8b46224baA4DbBBc2F860F4675eeA7bd52B";
1283
+ readonly chainlinkOracleFactory: "0xC8659Bcd5279DB664Be973aEFd752a5326653739";
1284
+ readonly preLiquidationFactory: "0xB5b3e541abD19799E0c65905a5a42BD37d6c94c0";
1285
+ readonly wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A";
1286
+ readonly usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
1287
+ };
1235
1288
  };
1236
1289
  export declare let addresses: Record<number, ChainAddresses>;
1237
1290
  export declare let deployments: {
@@ -1578,6 +1631,23 @@ export declare let deployments: {
1578
1631
  readonly chainlinkOracleFactory: 7526768n;
1579
1632
  readonly preLiquidationFactory: 7527649n;
1580
1633
  };
1634
+ readonly 143: {
1635
+ readonly morpho: 31907457n;
1636
+ readonly bundler3: {
1637
+ readonly bundler3: 32321504n;
1638
+ readonly generalAdapter1: 32321504n;
1639
+ };
1640
+ readonly adaptiveCurveIrm: 31907457n;
1641
+ readonly publicAllocator: 31907457n;
1642
+ readonly metaMorphoFactory: 32320327n;
1643
+ readonly vaultV2Factory: 32321811n;
1644
+ readonly morphoMarketV1AdapterFactory: 32321811n;
1645
+ readonly morphoVaultV1AdapterFactory: 32321811n;
1646
+ readonly registryList: 32322465n;
1647
+ readonly chainlinkOracleFactory: 32320327n;
1648
+ readonly preLiquidationFactory: 32321504n;
1649
+ readonly usdc: 22909616n;
1650
+ };
1581
1651
  };
1582
1652
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
1583
1653
  /**
package/lib/addresses.js CHANGED
@@ -439,6 +439,24 @@ const _addressesRegistry = {
439
439
  preLiquidationFactory: "0x534858821653467c2ae231dc027aa1F2c8D91802",
440
440
  wNative: "0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c",
441
441
  },
442
+ [chain_js_1.ChainId.MonadMainnet]: {
443
+ morpho: "0xD5D960E8C380B724a48AC59E2DfF1b2CB4a1eAee",
444
+ bundler3: {
445
+ bundler3: "0x82b684483e844422FD339df0b67b3B111F02c66E",
446
+ generalAdapter1: "0x725AB8CAd931BCb80Fdbf10955a806765cCe00e5",
447
+ },
448
+ adaptiveCurveIrm: "0x09475a3D6eA8c314c592b1a3799bDE044E2F400F",
449
+ publicAllocator: "0xfd70575B732F9482F4197FE1075492e114E97302",
450
+ metaMorphoFactory: "0x33f20973275B2F574488b18929cd7DCBf1AbF275",
451
+ vaultV2Factory: "0x8B2F922162FBb60A6a072cC784A2E4168fB0bb0c",
452
+ morphoMarketV1AdapterFactory: "0x8Da54fbF89B3D6fC6DCC92F31CF75a211ACF3d46",
453
+ morphoVaultV1AdapterFactory: "0x9f3c0999425656fD189C69a8aD68cB64986D644A",
454
+ registryList: "0x6a42f8b46224baA4DbBBc2F860F4675eeA7bd52B",
455
+ chainlinkOracleFactory: "0xC8659Bcd5279DB664Be973aEFd752a5326653739",
456
+ preLiquidationFactory: "0xB5b3e541abD19799E0c65905a5a42BD37d6c94c0",
457
+ wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A",
458
+ usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
459
+ },
442
460
  };
443
461
  const _deployments = {
444
462
  [chain_js_1.ChainId.EthMainnet]: {
@@ -784,6 +802,23 @@ const _deployments = {
784
802
  chainlinkOracleFactory: 7526768n,
785
803
  preLiquidationFactory: 7527649n,
786
804
  },
805
+ [chain_js_1.ChainId.MonadMainnet]: {
806
+ morpho: 31907457n,
807
+ bundler3: {
808
+ bundler3: 32321504n,
809
+ generalAdapter1: 32321504n,
810
+ },
811
+ adaptiveCurveIrm: 31907457n,
812
+ publicAllocator: 31907457n,
813
+ metaMorphoFactory: 32320327n,
814
+ vaultV2Factory: 32321811n,
815
+ morphoMarketV1AdapterFactory: 32321811n,
816
+ morphoVaultV1AdapterFactory: 32321811n,
817
+ registryList: 32322465n,
818
+ chainlinkOracleFactory: 32320327n,
819
+ preLiquidationFactory: 32321504n,
820
+ usdc: 22909616n,
821
+ },
787
822
  };
788
823
  const getChainAddresses = (chainId) => {
789
824
  const chainAddresses = exports.addresses[chainId];
@@ -875,6 +910,9 @@ const _unwrappedTokensMapping = {
875
910
  [chain_js_1.ChainId.ZeroGMainnet]: {
876
911
  [_addressesRegistry[chain_js_1.ChainId.ZeroGMainnet].wNative]: exports.NATIVE_ADDRESS,
877
912
  },
913
+ [chain_js_1.ChainId.MonadMainnet]: {
914
+ [_addressesRegistry[chain_js_1.ChainId.MonadMainnet].wNative]: exports.NATIVE_ADDRESS,
915
+ },
878
916
  };
879
917
  function getUnwrappedToken(wrappedToken, chainId) {
880
918
  return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -21,7 +21,8 @@ export declare enum ChainId {
21
21
  LiskMainnet = 1135,
22
22
  HyperliquidMainnet = 999,
23
23
  SeiMainnet = 1329,
24
- ZeroGMainnet = 16661
24
+ ZeroGMainnet = 16661,
25
+ MonadMainnet = 143
25
26
  }
26
27
  export interface ChainMetadata {
27
28
  readonly name: string;
@@ -293,5 +294,16 @@ export declare namespace ChainUtils {
293
294
  explorerUrl: string;
294
295
  identifier: string;
295
296
  };
297
+ 143: {
298
+ name: string;
299
+ id: ChainId.MonadMainnet;
300
+ nativeCurrency: {
301
+ name: string;
302
+ symbol: string;
303
+ decimals: number;
304
+ };
305
+ explorerUrl: string;
306
+ identifier: string;
307
+ };
296
308
  };
297
309
  }
package/lib/chain.js CHANGED
@@ -26,6 +26,7 @@ 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["MonadMainnet"] = 143] = "MonadMainnet";
29
30
  })(ChainId || (exports.ChainId = ChainId = {}));
30
31
  var ChainUtils;
31
32
  (function (ChainUtils) {
@@ -203,5 +204,12 @@ var ChainUtils;
203
204
  explorerUrl: "https://chainscan.0g.ai",
204
205
  identifier: "0G",
205
206
  },
207
+ [ChainId.MonadMainnet]: {
208
+ name: "Monad",
209
+ id: ChainId.MonadMainnet,
210
+ nativeCurrency: { name: "Monad", symbol: "MON", decimals: 18 },
211
+ explorerUrl: "https://monad.socialscan.io",
212
+ identifier: "monad",
213
+ },
206
214
  };
207
215
  })(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.4.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": {