@xoxno/types 1.0.474 → 1.0.475

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.
@@ -27,11 +27,37 @@ export interface StellarMarketIndexByHub {
27
27
  */
28
28
  anchorPriceUsd: string;
29
29
  anchorPriceUsdShort: number;
30
- /** Freshness timestamp of the final blend (seconds). */
30
+ /** Freshness timestamp of the final blend (seconds). Optional on live-state. */
31
+ priceTimestamp?: number;
32
+ stale?: boolean;
33
+ deviation?: boolean;
34
+ /** True when the price would pass the fail-closed solvency path. */
35
+ valid?: boolean;
36
+ chain: ActivityChain;
37
+ }
38
+ /**
39
+ * Full soft-status market row from controller `get_market_indexes_detailed`
40
+ * (api-v2 `/stellar-lending/detailed-markets`). Same price legs as
41
+ * `MarketIndexView` with required validity flags.
42
+ */
43
+ export interface StellarDetailedMarketDto {
44
+ hubId: number;
45
+ asset: string;
46
+ supplyIndex: string;
47
+ supplyIndexShort: number;
48
+ borrowIndex: string;
49
+ borrowIndexShort: number;
50
+ usdPrice: string;
51
+ usdPriceShort: number;
52
+ /** Primary leg (`safe_price_wad`). */
53
+ safePriceUsd: string;
54
+ safePriceUsdShort: number;
55
+ /** Secondary leg (`aggregator_price_wad`). */
56
+ aggregatorPriceUsd: string;
57
+ aggregatorPriceUsdShort: number;
31
58
  priceTimestamp: number;
32
59
  stale: boolean;
33
60
  deviation: boolean;
34
- /** True when the price would pass the fail-closed solvency path. */
35
61
  valid: boolean;
36
62
  chain: ActivityChain;
37
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.474",
3
+ "version": "1.0.475",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {