@morpho-org/blue-sdk 5.6.0 → 5.7.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.
@@ -486,6 +486,22 @@ declare const _addressesRegistry: {
486
486
  readonly wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A";
487
487
  readonly usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
488
488
  };
489
+ readonly 988: {
490
+ readonly morpho: "0xa40103088A899514E3fe474cD3cc5bf811b1102e";
491
+ readonly bundler3: {
492
+ readonly bundler3: "0xA0bb114F927dF03d9a1a639b9c71F71B0FaFDf1B";
493
+ readonly generalAdapter1: "0x59b1F4376a81e39c466A0A218447E4D36f39A96b";
494
+ };
495
+ readonly adaptiveCurveIrm: "0x41e846FC8108b8527C1D4EDB4c9564E56442940f";
496
+ readonly publicAllocator: "0xbCB063D4B6D479b209C186e462828CBACaC82DbE";
497
+ readonly metaMorphoFactory: "0xb4ae5673c48621189E2bEfBA96F31912032DD1AE";
498
+ readonly vaultV2Factory: "0x7fc35488803D49D00a94b206A223f7661898BE3a";
499
+ readonly morphoMarketV1AdapterFactory: "0x2A5F218FE4Dac3b1f4E096e8ae83074bB1713833";
500
+ readonly morphoVaultV1AdapterFactory: "0x4EF83ACD552598a1196c1aBDD0bA2EdE6f2237B4";
501
+ readonly registryList: "0xCe93fcB2849EB886F1e81d45D2747dF803f843C3";
502
+ readonly chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505";
503
+ readonly preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e";
504
+ };
489
505
  };
490
506
  export type ChainDeployments<Addresses = ChainAddresses> = {
491
507
  [key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
@@ -867,6 +883,22 @@ declare const _deployments: {
867
883
  readonly preLiquidationFactory: 32321504n;
868
884
  readonly usdc: 22909616n;
869
885
  };
886
+ readonly 988: {
887
+ readonly morpho: 1504506n;
888
+ readonly bundler3: {
889
+ readonly bundler3: 1741861n;
890
+ readonly generalAdapter1: 1741861n;
891
+ };
892
+ readonly adaptiveCurveIrm: 1504506n;
893
+ readonly publicAllocator: 1504506n;
894
+ readonly metaMorphoFactory: 1504774n;
895
+ readonly vaultV2Factory: 1506182n;
896
+ readonly morphoMarketV1AdapterFactory: 1506182n;
897
+ readonly morphoVaultV1AdapterFactory: 1506182n;
898
+ readonly registryList: 1506877n;
899
+ readonly chainlinkOracleFactory: 1504774n;
900
+ readonly preLiquidationFactory: 1741861n;
901
+ };
870
902
  };
871
903
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
872
904
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -1337,6 +1369,22 @@ export declare let addressesRegistry: {
1337
1369
  readonly wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A";
1338
1370
  readonly usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
1339
1371
  };
1372
+ readonly 988: {
1373
+ readonly morpho: "0xa40103088A899514E3fe474cD3cc5bf811b1102e";
1374
+ readonly bundler3: {
1375
+ readonly bundler3: "0xA0bb114F927dF03d9a1a639b9c71F71B0FaFDf1B";
1376
+ readonly generalAdapter1: "0x59b1F4376a81e39c466A0A218447E4D36f39A96b";
1377
+ };
1378
+ readonly adaptiveCurveIrm: "0x41e846FC8108b8527C1D4EDB4c9564E56442940f";
1379
+ readonly publicAllocator: "0xbCB063D4B6D479b209C186e462828CBACaC82DbE";
1380
+ readonly metaMorphoFactory: "0xb4ae5673c48621189E2bEfBA96F31912032DD1AE";
1381
+ readonly vaultV2Factory: "0x7fc35488803D49D00a94b206A223f7661898BE3a";
1382
+ readonly morphoMarketV1AdapterFactory: "0x2A5F218FE4Dac3b1f4E096e8ae83074bB1713833";
1383
+ readonly morphoVaultV1AdapterFactory: "0x4EF83ACD552598a1196c1aBDD0bA2EdE6f2237B4";
1384
+ readonly registryList: "0xCe93fcB2849EB886F1e81d45D2747dF803f843C3";
1385
+ readonly chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505";
1386
+ readonly preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e";
1387
+ };
1340
1388
  };
1341
1389
  export declare let addresses: Record<number, ChainAddresses>;
1342
1390
  export declare let deployments: {
@@ -1716,6 +1764,22 @@ export declare let deployments: {
1716
1764
  readonly preLiquidationFactory: 32321504n;
1717
1765
  readonly usdc: 22909616n;
1718
1766
  };
1767
+ readonly 988: {
1768
+ readonly morpho: 1504506n;
1769
+ readonly bundler3: {
1770
+ readonly bundler3: 1741861n;
1771
+ readonly generalAdapter1: 1741861n;
1772
+ };
1773
+ readonly adaptiveCurveIrm: 1504506n;
1774
+ readonly publicAllocator: 1504506n;
1775
+ readonly metaMorphoFactory: 1504774n;
1776
+ readonly vaultV2Factory: 1506182n;
1777
+ readonly morphoMarketV1AdapterFactory: 1506182n;
1778
+ readonly morphoVaultV1AdapterFactory: 1506182n;
1779
+ readonly registryList: 1506877n;
1780
+ readonly chainlinkOracleFactory: 1504774n;
1781
+ readonly preLiquidationFactory: 1741861n;
1782
+ };
1719
1783
  };
1720
1784
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
1721
1785
  /**
package/lib/addresses.js CHANGED
@@ -475,6 +475,22 @@ const _addressesRegistry = {
475
475
  wNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A",
476
476
  usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
477
477
  },
478
+ [chain_js_1.ChainId.StableMainnet]: {
479
+ morpho: "0xa40103088A899514E3fe474cD3cc5bf811b1102e",
480
+ bundler3: {
481
+ bundler3: "0xA0bb114F927dF03d9a1a639b9c71F71B0FaFDf1B",
482
+ generalAdapter1: "0x59b1F4376a81e39c466A0A218447E4D36f39A96b",
483
+ },
484
+ adaptiveCurveIrm: "0x41e846FC8108b8527C1D4EDB4c9564E56442940f",
485
+ publicAllocator: "0xbCB063D4B6D479b209C186e462828CBACaC82DbE",
486
+ metaMorphoFactory: "0xb4ae5673c48621189E2bEfBA96F31912032DD1AE",
487
+ vaultV2Factory: "0x7fc35488803D49D00a94b206A223f7661898BE3a",
488
+ morphoMarketV1AdapterFactory: "0x2A5F218FE4Dac3b1f4E096e8ae83074bB1713833",
489
+ morphoVaultV1AdapterFactory: "0x4EF83ACD552598a1196c1aBDD0bA2EdE6f2237B4",
490
+ registryList: "0xCe93fcB2849EB886F1e81d45D2747dF803f843C3",
491
+ chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505",
492
+ preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e",
493
+ },
478
494
  };
479
495
  const _deployments = {
480
496
  [chain_js_1.ChainId.EthMainnet]: {
@@ -853,6 +869,22 @@ const _deployments = {
853
869
  preLiquidationFactory: 32321504n,
854
870
  usdc: 22909616n,
855
871
  },
872
+ [chain_js_1.ChainId.StableMainnet]: {
873
+ morpho: 1504506n,
874
+ bundler3: {
875
+ bundler3: 1741861n,
876
+ generalAdapter1: 1741861n,
877
+ },
878
+ adaptiveCurveIrm: 1504506n,
879
+ publicAllocator: 1504506n,
880
+ metaMorphoFactory: 1504774n,
881
+ vaultV2Factory: 1506182n,
882
+ morphoMarketV1AdapterFactory: 1506182n,
883
+ morphoVaultV1AdapterFactory: 1506182n,
884
+ registryList: 1506877n,
885
+ chainlinkOracleFactory: 1504774n,
886
+ preLiquidationFactory: 1741861n,
887
+ },
856
888
  };
857
889
  const getChainAddresses = (chainId) => {
858
890
  const chainAddresses = exports.addresses[chainId];
package/lib/chain.d.ts CHANGED
@@ -23,7 +23,8 @@ export declare enum ChainId {
23
23
  SeiMainnet = 1329,
24
24
  ZeroGMainnet = 16661,
25
25
  LineaMainnet = 59144,
26
- MonadMainnet = 143
26
+ MonadMainnet = 143,
27
+ StableMainnet = 988
27
28
  }
28
29
  export interface ChainMetadata {
29
30
  readonly name: string;
@@ -317,5 +318,16 @@ export declare namespace ChainUtils {
317
318
  explorerUrl: string;
318
319
  identifier: string;
319
320
  };
321
+ 988: {
322
+ name: string;
323
+ id: ChainId.StableMainnet;
324
+ nativeCurrency: {
325
+ name: string;
326
+ symbol: string;
327
+ decimals: number;
328
+ };
329
+ explorerUrl: string;
330
+ identifier: string;
331
+ };
320
332
  };
321
333
  }
package/lib/chain.js CHANGED
@@ -28,6 +28,7 @@ var ChainId;
28
28
  ChainId[ChainId["ZeroGMainnet"] = 16661] = "ZeroGMainnet";
29
29
  ChainId[ChainId["LineaMainnet"] = 59144] = "LineaMainnet";
30
30
  ChainId[ChainId["MonadMainnet"] = 143] = "MonadMainnet";
31
+ ChainId[ChainId["StableMainnet"] = 988] = "StableMainnet";
31
32
  })(ChainId || (exports.ChainId = ChainId = {}));
32
33
  var ChainUtils;
33
34
  (function (ChainUtils) {
@@ -219,5 +220,12 @@ var ChainUtils;
219
220
  explorerUrl: "https://monad.socialscan.io",
220
221
  identifier: "monad",
221
222
  },
223
+ [ChainId.StableMainnet]: {
224
+ name: "Stable",
225
+ id: ChainId.StableMainnet,
226
+ nativeCurrency: { name: "gUSDT", symbol: "gUSDT", decimals: 18 },
227
+ explorerUrl: "https://stablescan.xyz",
228
+ identifier: "stable",
229
+ },
222
230
  };
223
231
  })(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.6.0",
4
+ "version": "5.7.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.33.3",
33
33
  "vitest": "^3.0.5",
34
34
  "@morpho-org/morpho-ts": "^2.4.5",
35
- "@morpho-org/test": "^2.6.1"
35
+ "@morpho-org/test": "^2.6.3"
36
36
  },
37
37
  "scripts": {
38
38
  "prepublish": "$npm_execpath build",