@morpho-org/morpho-test 2.5.0 → 4.0.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.
package/README.md CHANGED
@@ -21,6 +21,8 @@
21
21
  <br />
22
22
  <br />
23
23
 
24
+ ## Overview
25
+
24
26
  Framework-agnostic extension of [`@morpho-org/blue-sdk`](../blue-sdk/) that exports test fixtures useful for E2E tests on forks.
25
27
 
26
28
  ## Installation
@@ -33,7 +35,7 @@ npm install @morpho-org/morpho-test
33
35
  yarn add @morpho-org/morpho-test
34
36
  ```
35
37
 
36
- ## Getting Started
38
+ ## Usage
37
39
 
38
40
  ```typescript
39
41
  import { ChainId } from "@morpho-org/blue-sdk";
@@ -43,3 +45,11 @@ const { usdc_wstEth, usdc_idle, eth_wstEth } = markets[ChainId.EthMainnet];
43
45
  ```
44
46
 
45
47
  See more on its internal usage for [E2E tests here](../blue-sdk-viem/test/Market.test.ts).
48
+
49
+ ## Development
50
+
51
+ Contribute from the monorepo root. See [CONTRIBUTING.md](../../CONTRIBUTING.md) for setup, checks, and package workflow. Report vulnerabilities through [SECURITY.md](../../SECURITY.md).
52
+
53
+ ## License
54
+
55
+ MIT. See [LICENSE](./LICENSE).
@@ -1,3 +1,3 @@
1
1
  export * from "./markets.js";
2
- export * from "./vaults.js";
3
2
  export * from "./tokens.js";
3
+ export * from "./vaults.js";
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./markets.js"), exports);
18
- __exportStar(require("./vaults.js"), exports);
19
18
  __exportStar(require("./tokens.js"), exports);
19
+ __exportStar(require("./vaults.js"), exports);
@@ -1,3 +1,3 @@
1
1
  export * from "./markets.js";
2
- export * from "./vaults.js";
3
2
  export * from "./tokens.js";
3
+ export * from "./vaults.js";
@@ -1,3 +1,3 @@
1
1
  export * from "./markets.js";
2
- export * from "./vaults.js";
3
2
  export * from "./tokens.js";
3
+ export * from "./vaults.js";
@@ -1,4 +1,4 @@
1
- import { ChainId, MarketParams, addressesRegistry, } from "@morpho-org/blue-sdk";
1
+ import { addressesRegistry, ChainId, MarketParams, } from "@morpho-org/blue-sdk";
2
2
  import { randomAddress } from "@morpho-org/test";
3
3
  import { parseEther, parseUnits } from "viem";
4
4
  const { adaptiveCurveIrm, wNative, sDai, usdc, wstEth, wbIB01, usdt, dai } = addressesRegistry[ChainId.EthMainnet];
@@ -1,4 +1,4 @@
1
- import { ChainId, addressesRegistry } from "@morpho-org/blue-sdk";
1
+ import { addressesRegistry, ChainId } from "@morpho-org/blue-sdk";
2
2
  export const withSimplePermit = {
3
3
  [ChainId.EthMainnet]: new Set([
4
4
  addressesRegistry[ChainId.EthMainnet].wstEth,
@@ -1,4 +1,4 @@
1
- import { ChainId, VaultConfig, addressesRegistry, } from "@morpho-org/blue-sdk";
1
+ import { addressesRegistry, ChainId, VaultConfig, } from "@morpho-org/blue-sdk";
2
2
  import { randomAddress } from "@morpho-org/test";
3
3
  const { wNative, usdc, dai } = addressesRegistry[ChainId.EthMainnet];
4
4
  export const vaults = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morpho-org/morpho-test",
3
3
  "description": "Framework-agnostic extension of `@morpho-org/blue-sdk` that exports test fixtures useful for E2E tests on forks.",
4
- "version": "2.5.0",
4
+ "version": "4.0.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -20,16 +20,16 @@
20
20
  "type": "module",
21
21
  "peerDependencies": {
22
22
  "viem": "^2.21.10",
23
- "@morpho-org/blue-sdk": "^5.17.0",
24
- "@morpho-org/morpho-ts": "^2.5.0",
25
- "@morpho-org/test": "^2.7.0"
23
+ "@morpho-org/blue-sdk": "^6.0.0",
24
+ "@morpho-org/morpho-ts": "^2.5.1",
25
+ "@morpho-org/test": "^2.8.0"
26
26
  },
27
27
  "devDependencies": {
28
- "typescript": "^5.9.3",
29
- "viem": "^2.41.2",
30
- "@morpho-org/blue-sdk": "^5.17.0",
31
- "@morpho-org/morpho-ts": "^2.5.0",
32
- "@morpho-org/test": "^2.7.0"
28
+ "typescript": "^6.0.3",
29
+ "viem": "^2.49.3",
30
+ "@morpho-org/blue-sdk": "^6.0.0",
31
+ "@morpho-org/morpho-ts": "^2.5.1",
32
+ "@morpho-org/test": "^2.8.0"
33
33
  },
34
34
  "scripts": {
35
35
  "prepublish": "$npm_execpath build",