@defisaver/positions-sdk 2.1.150-cirbtc-dev → 2.1.151-midnight-dev

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.
Files changed (38) hide show
  1. package/cjs/claiming/compV3.js +0 -1
  2. package/cjs/config/contracts.d.ts +4 -0
  3. package/cjs/config/contracts.js +4 -0
  4. package/cjs/helpers/morphoMidnightHelpers/tenor.d.ts +6 -2
  5. package/cjs/helpers/morphoMidnightHelpers/tenor.js +5 -1
  6. package/cjs/markets/index.d.ts +1 -1
  7. package/cjs/markets/index.js +2 -1
  8. package/cjs/markets/morphoBlue/index.js +122 -122
  9. package/cjs/markets/morphoMidnight/index.d.ts +44 -10
  10. package/cjs/markets/morphoMidnight/index.js +380 -59
  11. package/cjs/morphoMidnight/index.js +11 -1
  12. package/cjs/portfolio/index.js +3 -27
  13. package/cjs/types/morphoMidnight.d.ts +35 -4
  14. package/cjs/types/morphoMidnight.js +23 -0
  15. package/esm/claiming/compV3.js +0 -1
  16. package/esm/config/contracts.d.ts +4 -0
  17. package/esm/config/contracts.js +4 -0
  18. package/esm/helpers/morphoMidnightHelpers/tenor.d.ts +6 -2
  19. package/esm/helpers/morphoMidnightHelpers/tenor.js +6 -2
  20. package/esm/markets/index.d.ts +1 -1
  21. package/esm/markets/index.js +1 -1
  22. package/esm/markets/morphoBlue/index.js +122 -122
  23. package/esm/markets/morphoMidnight/index.d.ts +44 -10
  24. package/esm/markets/morphoMidnight/index.js +356 -58
  25. package/esm/morphoMidnight/index.js +11 -1
  26. package/esm/portfolio/index.js +4 -28
  27. package/esm/types/morphoMidnight.d.ts +35 -4
  28. package/esm/types/morphoMidnight.js +23 -0
  29. package/package.json +1 -1
  30. package/src/claiming/compV3.ts +0 -1
  31. package/src/config/contracts.ts +4 -0
  32. package/src/helpers/morphoMidnightHelpers/tenor.ts +6 -2
  33. package/src/markets/index.ts +1 -0
  34. package/src/markets/morphoBlue/index.ts +122 -122
  35. package/src/markets/morphoMidnight/index.ts +446 -60
  36. package/src/morphoMidnight/index.ts +8 -1
  37. package/src/portfolio/index.ts +3 -27
  38. package/src/types/morphoMidnight.ts +37 -3
@@ -1,10 +1,13 @@
1
1
  import { MorphoMidnightCollateralParams, MorphoMidnightMarketData, NetworkNumber } from '../../types';
2
2
  /**
3
- * Morpho Midnight core contract on Base. Every Midnight market trades against this one, whoever curates
4
- * its order book — it is part of the market struct the id is hashed from, and it is what offer tuples
5
- * encode for `Midnight.take`.
3
+ * Morpho Midnight core contract, one per chain. Every Midnight market on a chain trades against its core,
4
+ * whoever curates the order book — it is part of the market struct the id is hashed from, and it is what
5
+ * offer tuples encode for `Midnight.take`. Listed at
6
+ * https://docs.morpho.org/get-started/resources/addresses/.
6
7
  */
7
8
  export declare const MIDNIGHT_BASE: "0xAdedD8ab6dE832766Fedf0FaC4992E5C4D3EA18A";
9
+ export declare const MIDNIGHT_ETH: "0x471686c42792F93528B000beF54bC10E3aa2045f";
10
+ export declare const midnightCoreAddress: (network: NetworkNumber) => "0xAdedD8ab6dE832766Fedf0FaC4992E5C4D3EA18A" | "0x471686c42792F93528B000beF54bC10E3aa2045f";
8
11
  export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20260731: (networkId?: NetworkNumber) => MorphoMidnightMarketData;
9
12
  export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20260828: (networkId?: NetworkNumber) => MorphoMidnightMarketData;
10
13
  export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925: (networkId?: NetworkNumber) => MorphoMidnightMarketData;
@@ -37,6 +40,26 @@ export declare const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261030: () => Morpho
37
40
  export declare const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261127: () => MorphoMidnightMarketData;
38
41
  export declare const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225: () => MorphoMidnightMarketData;
39
42
  export declare const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129: () => MorphoMidnightMarketData;
43
+ export declare const MORPHO_MIDNIGHT_WBTC_USDC_860_20260925_ETH: () => MorphoMidnightMarketData;
44
+ export declare const MORPHO_MIDNIGHT_WBTC_USDC_860_20261030_ETH: () => MorphoMidnightMarketData;
45
+ export declare const MORPHO_MIDNIGHT_WBTC_USDC_860_20261127_ETH: () => MorphoMidnightMarketData;
46
+ export declare const MORPHO_MIDNIGHT_WBTC_USDC_860_20261225_ETH: () => MorphoMidnightMarketData;
47
+ export declare const MORPHO_MIDNIGHT_WBTC_USDC_860_20270129_ETH: () => MorphoMidnightMarketData;
48
+ export declare const MORPHO_MIDNIGHT_WBTC_USDC_860_20270226_ETH: () => MorphoMidnightMarketData;
49
+ export declare const MORPHO_MIDNIGHT_WBTC_USDC_860_20270326_ETH: () => MorphoMidnightMarketData;
50
+ export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925_ETH: () => MorphoMidnightMarketData;
51
+ export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20261030_ETH: () => MorphoMidnightMarketData;
52
+ export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20261127_ETH: () => MorphoMidnightMarketData;
53
+ export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20261225_ETH: () => MorphoMidnightMarketData;
54
+ export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129_ETH: () => MorphoMidnightMarketData;
55
+ export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20270226_ETH: () => MorphoMidnightMarketData;
56
+ export declare const MORPHO_MIDNIGHT_CBBTC_USDC_860_20270326_ETH: () => MorphoMidnightMarketData;
57
+ export declare const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260925_ETH: () => MorphoMidnightMarketData;
58
+ export declare const MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20260925_ETH: () => MorphoMidnightMarketData;
59
+ export declare const MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20260925_ETH: () => MorphoMidnightMarketData;
60
+ export declare const MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20260925_ETH: () => MorphoMidnightMarketData;
61
+ export declare const MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20260925_ETH: () => MorphoMidnightMarketData;
62
+ export declare const MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20260925_ETH: () => MorphoMidnightMarketData;
40
63
  export declare const MorphoMidnightMarkets: (networkId: NetworkNumber) => {
41
64
  readonly morphomidnightcbbtcusdc_860_20260731_base: MorphoMidnightMarketData;
42
65
  readonly morphomidnightcbbtcusdc_860_20260828_base: MorphoMidnightMarketData;
@@ -70,13 +93,24 @@ export declare const MorphoMidnightMarkets: (networkId: NetworkNumber) => {
70
93
  readonly morphomidnighttenorcbethweth_20261127_base: MorphoMidnightMarketData;
71
94
  readonly morphomidnighttenorcbethweth_20261225_base: MorphoMidnightMarketData;
72
95
  readonly morphomidnighttenorcbethweth_20270129_base: MorphoMidnightMarketData;
96
+ readonly morphomidnightwbtcusdc_860_20260925_eth: MorphoMidnightMarketData;
97
+ readonly morphomidnightwbtcusdc_860_20261030_eth: MorphoMidnightMarketData;
98
+ readonly morphomidnightwbtcusdc_860_20261127_eth: MorphoMidnightMarketData;
99
+ readonly morphomidnightwbtcusdc_860_20261225_eth: MorphoMidnightMarketData;
100
+ readonly morphomidnightwbtcusdc_860_20270129_eth: MorphoMidnightMarketData;
101
+ readonly morphomidnightwbtcusdc_860_20270226_eth: MorphoMidnightMarketData;
102
+ readonly morphomidnightwbtcusdc_860_20270326_eth: MorphoMidnightMarketData;
103
+ readonly morphomidnightcbbtcusdc_860_20260925_eth: MorphoMidnightMarketData;
104
+ readonly morphomidnightcbbtcusdc_860_20261030_eth: MorphoMidnightMarketData;
105
+ readonly morphomidnightcbbtcusdc_860_20261127_eth: MorphoMidnightMarketData;
106
+ readonly morphomidnightcbbtcusdc_860_20261225_eth: MorphoMidnightMarketData;
107
+ readonly morphomidnightcbbtcusdc_860_20270129_eth: MorphoMidnightMarketData;
108
+ readonly morphomidnightcbbtcusdc_860_20270226_eth: MorphoMidnightMarketData;
109
+ readonly morphomidnightcbbtcusdc_860_20270326_eth: MorphoMidnightMarketData;
110
+ readonly morphomidnighttenorwethusdc_20260925_eth: MorphoMidnightMarketData;
111
+ readonly morphomidnighttenorusd3usdc_20260925_eth: MorphoMidnightMarketData;
73
112
  };
74
113
  export declare const isTenorMidnightMarket: (market: Pick<MorphoMidnightMarketData, "curator"> | string) => boolean;
75
114
  export declare const findMorphoMidnightMarket: (marketId: string, network?: NetworkNumber) => MorphoMidnightMarketData | undefined;
76
- /**
77
- * The market's collateral set as the chain knows it: the listed collaterals followed by the curator's
78
- * hidden ones. This — not `collaterals` — is what a `Market` struct takes, since the market id is the hash
79
- * of that struct. Anything assembling one for a contract call goes through here so it can't quietly build
80
- * a market of its own instead.
81
- */
82
- export declare const morphoMidnightMarketCollateralParams: (market: Pick<MorphoMidnightMarketData, "collaterals" | "hiddenCollaterals">) => MorphoMidnightCollateralParams[];
115
+ export declare const morphoMidnightMarketCollateralParams: (market: Pick<MorphoMidnightMarketData, "collaterals">) => MorphoMidnightCollateralParams[];
116
+ export declare const morphoMidnightVisibleCollaterals: (market: Pick<MorphoMidnightMarketData, "collaterals">) => MorphoMidnightCollateralParams[];