@morpho-org/morpho-test 2.5.0 → 4.0.1
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 +11 -1
- package/lib/cjs/fixtures/index.d.ts +1 -1
- package/lib/cjs/fixtures/index.js +1 -1
- package/lib/esm/fixtures/index.d.ts +1 -1
- package/lib/esm/fixtures/index.js +1 -1
- package/lib/esm/fixtures/markets.js +1 -1
- package/lib/esm/fixtures/tokens.js +1 -1
- package/lib/esm/fixtures/vaults.js +1 -1
- package/package.json +15 -11
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
|
-
##
|
|
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).
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { ChainId, MarketParams,
|
|
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, VaultConfig,
|
|
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,12 +1,16 @@
|
|
|
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": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|
|
8
8
|
],
|
|
9
|
-
"repository":
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/morpho-org/sdks.git",
|
|
12
|
+
"directory": "packages/morpho-test"
|
|
13
|
+
},
|
|
10
14
|
"homepage": "https://github.com/morpho-org/sdks",
|
|
11
15
|
"bugs": {
|
|
12
16
|
"url": "https://github.com/morpho-org/sdks/issues",
|
|
@@ -19,17 +23,17 @@
|
|
|
19
23
|
"license": "MIT",
|
|
20
24
|
"type": "module",
|
|
21
25
|
"peerDependencies": {
|
|
22
|
-
"
|
|
23
|
-
"@morpho-org/
|
|
24
|
-
"@morpho-org/
|
|
25
|
-
"
|
|
26
|
+
"@morpho-org/blue-sdk": "^6.0.0",
|
|
27
|
+
"@morpho-org/morpho-ts": "^2.5.1",
|
|
28
|
+
"@morpho-org/test": "^2.8.0",
|
|
29
|
+
"viem": "^2.21.10"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
|
-
"typescript": "^
|
|
29
|
-
"viem": "^2.
|
|
30
|
-
"@morpho-org/blue-sdk": "^
|
|
31
|
-
"@morpho-org/morpho-ts": "^2.5.
|
|
32
|
-
"@morpho-org/test": "^2.
|
|
32
|
+
"typescript": "^6.0.3",
|
|
33
|
+
"viem": "^2.50.4",
|
|
34
|
+
"@morpho-org/blue-sdk": "^6.0.1",
|
|
35
|
+
"@morpho-org/morpho-ts": "^2.5.3",
|
|
36
|
+
"@morpho-org/test": "^2.8.1"
|
|
33
37
|
},
|
|
34
38
|
"scripts": {
|
|
35
39
|
"prepublish": "$npm_execpath build",
|