@morpho-org/blue-sdk 4.6.0 → 4.8.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.
@@ -161,6 +161,8 @@ declare const _addressesRegistry: {
161
161
  readonly bundler3: "0x1FA4431bC113D308beE1d46B0e98Cb805FB48C13";
162
162
  readonly generalAdapter1: "0x9954aFB60BB5A222714c478ac86990F221788B88";
163
163
  readonly paraswapAdapter: "0xAA5c30C1482c189cA0d56057D3ac4dD7Af1e4726";
164
+ readonly aaveV3CoreMigrationAdapter: "0x1923670d4F4eB7435d865E7477d28FEAFfA40C93";
165
+ readonly compoundV3MigrationAdapter: "0x86Ca77a4a37A9CDBe9bBf4975F6d69531B96444b";
164
166
  };
165
167
  readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
166
168
  readonly adaptiveCurveIrm: "0x66F30587FB8D4206918deb78ecA7d5eBbafD06DA";
@@ -247,6 +249,7 @@ declare const _addressesRegistry: {
247
249
  readonly bundler3: "0x7DD85759182495AF7F6757DA75036d24A9B58bc3";
248
250
  readonly generalAdapter1: "0xC11329d19C2275c9E759867e879ECFcEeD7e30A0";
249
251
  readonly paraswapAdapter: "0xAa870Da2a9F611A3A53d0D2AEe5664B3700a59c9";
252
+ readonly compoundV3MigrationAdapter: "0x617f8d7885CCE689115Af04576F7cB6F2534fA9a";
250
253
  };
251
254
  readonly adaptiveCurveIrm: "0x9a6061d51743B31D2c3Be75D83781Fa423f53F0E";
252
255
  readonly publicAllocator: "0xB0c9a107fA17c779B3378210A7a593e88938C7C9";
@@ -389,6 +392,19 @@ declare const _addressesRegistry: {
389
392
  readonly wNative: "0x4200000000000000000000000000000000000006";
390
393
  readonly usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71";
391
394
  };
395
+ readonly 999: {
396
+ readonly morpho: "0x68e37dE8d93d3496ae143F2E900490f6280C57cD";
397
+ readonly bundler3: {
398
+ readonly bundler3: "0xa3F50477AfA601C771874260A3B34B40e244Fa0e";
399
+ readonly generalAdapter1: "0xD7F48aDE56613E8605863832B7B8A1985B934aE4";
400
+ };
401
+ readonly adaptiveCurveIrm: "0xD4a426F010986dCad727e8dd6eed44cA4A9b7483";
402
+ readonly publicAllocator: "0x517505be22D9068687334e69ae7a02fC77edf4Fc";
403
+ readonly metaMorphoFactory: "0xec051b19d654C48c357dC974376DeB6272f24e53";
404
+ readonly chainlinkOracleFactory: "0xeb476f124FaD625178759d13557A72394A6f9aF5";
405
+ readonly preLiquidationFactory: "0x1b6782Ac7A859503cE953FBf4736311CC335B8f0";
406
+ readonly wNative: "0x5555555555555555555555555555555555555555";
407
+ };
392
408
  };
393
409
  export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
394
410
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
@@ -529,6 +545,8 @@ export declare let addressesRegistry: {
529
545
  readonly bundler3: "0x1FA4431bC113D308beE1d46B0e98Cb805FB48C13";
530
546
  readonly generalAdapter1: "0x9954aFB60BB5A222714c478ac86990F221788B88";
531
547
  readonly paraswapAdapter: "0xAA5c30C1482c189cA0d56057D3ac4dD7Af1e4726";
548
+ readonly aaveV3CoreMigrationAdapter: "0x1923670d4F4eB7435d865E7477d28FEAFfA40C93";
549
+ readonly compoundV3MigrationAdapter: "0x86Ca77a4a37A9CDBe9bBf4975F6d69531B96444b";
532
550
  };
533
551
  readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
534
552
  readonly adaptiveCurveIrm: "0x66F30587FB8D4206918deb78ecA7d5eBbafD06DA";
@@ -615,6 +633,7 @@ export declare let addressesRegistry: {
615
633
  readonly bundler3: "0x7DD85759182495AF7F6757DA75036d24A9B58bc3";
616
634
  readonly generalAdapter1: "0xC11329d19C2275c9E759867e879ECFcEeD7e30A0";
617
635
  readonly paraswapAdapter: "0xAa870Da2a9F611A3A53d0D2AEe5664B3700a59c9";
636
+ readonly compoundV3MigrationAdapter: "0x617f8d7885CCE689115Af04576F7cB6F2534fA9a";
618
637
  };
619
638
  readonly adaptiveCurveIrm: "0x9a6061d51743B31D2c3Be75D83781Fa423f53F0E";
620
639
  readonly publicAllocator: "0xB0c9a107fA17c779B3378210A7a593e88938C7C9";
@@ -757,6 +776,19 @@ export declare let addressesRegistry: {
757
776
  readonly wNative: "0x4200000000000000000000000000000000000006";
758
777
  readonly usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71";
759
778
  };
779
+ readonly 999: {
780
+ readonly morpho: "0x68e37dE8d93d3496ae143F2E900490f6280C57cD";
781
+ readonly bundler3: {
782
+ readonly bundler3: "0xa3F50477AfA601C771874260A3B34B40e244Fa0e";
783
+ readonly generalAdapter1: "0xD7F48aDE56613E8605863832B7B8A1985B934aE4";
784
+ };
785
+ readonly adaptiveCurveIrm: "0xD4a426F010986dCad727e8dd6eed44cA4A9b7483";
786
+ readonly publicAllocator: "0x517505be22D9068687334e69ae7a02fC77edf4Fc";
787
+ readonly metaMorphoFactory: "0xec051b19d654C48c357dC974376DeB6272f24e53";
788
+ readonly chainlinkOracleFactory: "0xeb476f124FaD625178759d13557A72394A6f9aF5";
789
+ readonly preLiquidationFactory: "0x1b6782Ac7A859503cE953FBf4736311CC335B8f0";
790
+ readonly wNative: "0x5555555555555555555555555555555555555555";
791
+ };
760
792
  };
761
793
  export declare let addresses: Record<number, ChainAddresses>;
762
794
  export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
package/lib/addresses.js CHANGED
@@ -136,6 +136,8 @@ const _addressesRegistry = {
136
136
  bundler3: "0x1FA4431bC113D308beE1d46B0e98Cb805FB48C13",
137
137
  generalAdapter1: "0x9954aFB60BB5A222714c478ac86990F221788B88",
138
138
  paraswapAdapter: "0xAA5c30C1482c189cA0d56057D3ac4dD7Af1e4726",
139
+ aaveV3CoreMigrationAdapter: "0x1923670d4F4eB7435d865E7477d28FEAFfA40C93",
140
+ compoundV3MigrationAdapter: "0x86Ca77a4a37A9CDBe9bBf4975F6d69531B96444b",
139
141
  },
140
142
  permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
141
143
  adaptiveCurveIrm: "0x66F30587FB8D4206918deb78ecA7d5eBbafD06DA",
@@ -226,6 +228,7 @@ const _addressesRegistry = {
226
228
  bundler3: "0x7DD85759182495AF7F6757DA75036d24A9B58bc3",
227
229
  generalAdapter1: "0xC11329d19C2275c9E759867e879ECFcEeD7e30A0",
228
230
  paraswapAdapter: "0xAa870Da2a9F611A3A53d0D2AEe5664B3700a59c9",
231
+ compoundV3MigrationAdapter: "0x617f8d7885CCE689115Af04576F7cB6F2534fA9a",
229
232
  },
230
233
  adaptiveCurveIrm: "0x9a6061d51743B31D2c3Be75D83781Fa423f53F0E",
231
234
  publicAllocator: "0xB0c9a107fA17c779B3378210A7a593e88938C7C9",
@@ -372,6 +375,19 @@ const _addressesRegistry = {
372
375
  // Must implement USDC permit version 2 (otherwise breaks permit signatures).
373
376
  usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71",
374
377
  },
378
+ [chain_js_1.ChainId.HyperliquidMainnet]: {
379
+ morpho: "0x68e37dE8d93d3496ae143F2E900490f6280C57cD",
380
+ bundler3: {
381
+ bundler3: "0xa3F50477AfA601C771874260A3B34B40e244Fa0e",
382
+ generalAdapter1: "0xD7F48aDE56613E8605863832B7B8A1985B934aE4",
383
+ },
384
+ adaptiveCurveIrm: "0xD4a426F010986dCad727e8dd6eed44cA4A9b7483",
385
+ publicAllocator: "0x517505be22D9068687334e69ae7a02fC77edf4Fc",
386
+ metaMorphoFactory: "0xec051b19d654C48c357dC974376DeB6272f24e53",
387
+ chainlinkOracleFactory: "0xeb476f124FaD625178759d13557A72394A6f9aF5",
388
+ preLiquidationFactory: "0x1b6782Ac7A859503cE953FBf4736311CC335B8f0",
389
+ wNative: "0x5555555555555555555555555555555555555555",
390
+ },
375
391
  };
376
392
  const getChainAddresses = (chainId) => {
377
393
  const chainAddresses = exports.addresses[chainId];
@@ -454,6 +470,9 @@ const _unwrappedTokensMapping = {
454
470
  [chain_js_1.ChainId.LiskMainnet]: {
455
471
  [_addressesRegistry[chain_js_1.ChainId.LiskMainnet].wNative]: exports.NATIVE_ADDRESS,
456
472
  },
473
+ [chain_js_1.ChainId.HyperliquidMainnet]: {
474
+ [_addressesRegistry[chain_js_1.ChainId.HyperliquidMainnet].wNative]: exports.NATIVE_ADDRESS,
475
+ },
457
476
  };
458
477
  function getUnwrappedToken(wrappedToken, chainId) {
459
478
  return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
package/lib/chain.d.ts CHANGED
@@ -18,7 +18,8 @@ export declare enum ChainId {
18
18
  KatanaMainnet = 747474,
19
19
  EtherlinkMainnet = 42793,
20
20
  TacMainnet = 239,
21
- LiskMainnet = 1135
21
+ LiskMainnet = 1135,
22
+ HyperliquidMainnet = 999
22
23
  }
23
24
  export interface ChainMetadata {
24
25
  readonly name: string;
package/lib/chain.js CHANGED
@@ -23,6 +23,7 @@ var ChainId;
23
23
  ChainId[ChainId["EtherlinkMainnet"] = 42793] = "EtherlinkMainnet";
24
24
  ChainId[ChainId["TacMainnet"] = 239] = "TacMainnet";
25
25
  ChainId[ChainId["LiskMainnet"] = 1135] = "LiskMainnet";
26
+ ChainId[ChainId["HyperliquidMainnet"] = 999] = "HyperliquidMainnet";
26
27
  })(ChainId || (exports.ChainId = ChainId = {}));
27
28
  var ChainUtils;
28
29
  (function (ChainUtils) {
@@ -179,5 +180,12 @@ var ChainUtils;
179
180
  explorerUrl: "https://blockscout.lisk.com",
180
181
  identifier: "lisk",
181
182
  },
183
+ [ChainId.HyperliquidMainnet]: {
184
+ name: "Hyperliquid",
185
+ id: ChainId.HyperliquidMainnet,
186
+ nativeCurrency: { name: "Hype", symbol: "HYPE", decimals: 18 },
187
+ explorerUrl: "https://hyperevmscan.io",
188
+ identifier: "hyperliquid",
189
+ },
182
190
  };
183
191
  })(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": "4.6.0",
4
+ "version": "4.8.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.23.0",
33
33
  "vitest": "^3.0.5",
34
- "@morpho-org/test": "^2.1.4",
35
- "@morpho-org/morpho-ts": "^2.4.1"
34
+ "@morpho-org/morpho-ts": "^2.4.1",
35
+ "@morpho-org/test": "^2.1.4"
36
36
  },
37
37
  "scripts": {
38
38
  "prepublish": "$npm_execpath build",