@morpho-org/morpho-test 2.0.0-next.20 → 2.0.0-next.22
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.
|
@@ -22,6 +22,7 @@ export declare const markets: {
|
|
|
22
22
|
readonly usdc_wstEth: MarketParams;
|
|
23
23
|
readonly usdc_sDai: MarketParams;
|
|
24
24
|
readonly usdc_wbIB01: MarketParams;
|
|
25
|
+
readonly dai_sUsde: MarketParams;
|
|
25
26
|
readonly crvUsd_stkcvxcrvUSDTWBTCWETH: MarketParams;
|
|
26
27
|
readonly crvUsd_stkcvxcrvUSDCWBTCWETH: MarketParams;
|
|
27
28
|
readonly crvUsd_stkcvxcrvCRVUSDTBTCWSTETH: MarketParams;
|
package/lib/fixtures/markets.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.randomMarket = exports.markets = void 0;
|
|
|
4
4
|
const blue_sdk_1 = require("@morpho-org/blue-sdk");
|
|
5
5
|
const test_1 = require("@morpho-org/test");
|
|
6
6
|
const viem_1 = require("viem");
|
|
7
|
-
const { adaptiveCurveIrm, wNative, sDai, usdc, wstEth, wbIB01, usdt } = blue_sdk_1.addresses[blue_sdk_1.ChainId.EthMainnet];
|
|
7
|
+
const { adaptiveCurveIrm, wNative, sDai, usdc, wstEth, wbIB01, usdt, dai } = blue_sdk_1.addresses[blue_sdk_1.ChainId.EthMainnet];
|
|
8
8
|
exports.markets = {
|
|
9
9
|
[blue_sdk_1.ChainId.EthMainnet]: {
|
|
10
10
|
eth_idle: blue_sdk_1.MarketParams.idle(wNative),
|
|
@@ -139,6 +139,14 @@ exports.markets = {
|
|
|
139
139
|
irm: adaptiveCurveIrm,
|
|
140
140
|
lltv: (0, viem_1.parseUnits)("96.5", 16),
|
|
141
141
|
}),
|
|
142
|
+
dai_sUsde: new blue_sdk_1.MarketParams({
|
|
143
|
+
// DAI(sUSDe, 86%, Exchange rate, AdaptiveCurve)
|
|
144
|
+
loanToken: dai,
|
|
145
|
+
collateralToken: "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
|
|
146
|
+
oracle: "0x5D916980D5Ae1737a8330Bf24dF812b2911Aae25",
|
|
147
|
+
irm: adaptiveCurveIrm,
|
|
148
|
+
lltv: (0, viem_1.parseUnits)("86", 16),
|
|
149
|
+
}),
|
|
142
150
|
crvUsd_stkcvxcrvUSDTWBTCWETH: new blue_sdk_1.MarketParams({
|
|
143
151
|
loanToken: "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E",
|
|
144
152
|
collateralToken: "0xb0Ce26C88e4e7DCa51968b6047f44646f5064278",
|
package/lib/fixtures/vaults.d.ts
CHANGED
package/lib/fixtures/vaults.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.randomVault = exports.vaults = void 0;
|
|
4
4
|
const blue_sdk_1 = require("@morpho-org/blue-sdk");
|
|
5
5
|
const test_1 = require("@morpho-org/test");
|
|
6
|
-
const { wNative, usdc } = blue_sdk_1.addresses[blue_sdk_1.ChainId.EthMainnet];
|
|
6
|
+
const { wNative, usdc, dai } = blue_sdk_1.addresses[blue_sdk_1.ChainId.EthMainnet];
|
|
7
7
|
exports.vaults = {
|
|
8
8
|
[blue_sdk_1.ChainId.EthMainnet]: {
|
|
9
9
|
steakUsdc: new blue_sdk_1.VaultConfig({
|
|
@@ -48,6 +48,13 @@ exports.vaults = {
|
|
|
48
48
|
name: "Re7 WETH",
|
|
49
49
|
asset: wNative,
|
|
50
50
|
}, blue_sdk_1.ChainId.EthMainnet),
|
|
51
|
+
gDai: new blue_sdk_1.VaultConfig({
|
|
52
|
+
address: "0x500331c9fF24D9d11aee6B07734Aa72343EA74a5",
|
|
53
|
+
decimalsOffset: 0n,
|
|
54
|
+
symbol: "gDAI",
|
|
55
|
+
name: "Gauntlet DAI Core",
|
|
56
|
+
asset: dai,
|
|
57
|
+
}, blue_sdk_1.ChainId.EthMainnet),
|
|
51
58
|
},
|
|
52
59
|
};
|
|
53
60
|
const randomVault = (config = {}) => new blue_sdk_1.VaultConfig({
|
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.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.22",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"viem": "^2.21.10",
|
|
22
|
-
"@morpho-org/blue-sdk": "^2.0.0-next.31",
|
|
23
22
|
"@morpho-org/morpho-ts": "^2.0.0-next.16",
|
|
24
|
-
"@morpho-org/
|
|
23
|
+
"@morpho-org/blue-sdk": "^2.0.0-next.32",
|
|
24
|
+
"@morpho-org/test": "^2.0.0-next.28"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.10.1",
|
|
28
28
|
"typescript": "^5.7.2",
|
|
29
29
|
"viem": "^2.21.54",
|
|
30
|
-
"@morpho-org/blue-sdk": "^2.0.0-next.
|
|
30
|
+
"@morpho-org/blue-sdk": "^2.0.0-next.32",
|
|
31
31
|
"@morpho-org/morpho-ts": "^2.0.0-next.16",
|
|
32
|
-
"@morpho-org/test": "^2.0.0-next.
|
|
32
|
+
"@morpho-org/test": "^2.0.0-next.28"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"prepublish": "$npm_execpath build",
|