@xoxno/types 1.0.466 → 1.0.468

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.
@@ -37,6 +37,11 @@ export declare enum StellarGovernanceProposalKind {
37
37
  GrantGovernanceRole = "GrantGovernanceRole",
38
38
  RevokeGovernanceRole = "RevokeGovernanceRole",
39
39
  TransferGovernanceOwnership = "TransferGovernanceOwnership",
40
+ /**
41
+ * Owner-only, non-vetoable Recovery-tier council reset (`reset_cancellers`).
42
+ * Scheduled at the ~30-day Recovery delay to replace a captured canceller set.
43
+ */
44
+ CancellerReset = "CancellerReset",
40
45
  Unknown = "Unknown"
41
46
  }
42
47
  /**
@@ -41,6 +41,11 @@ var StellarGovernanceProposalKind;
41
41
  StellarGovernanceProposalKind["GrantGovernanceRole"] = "GrantGovernanceRole";
42
42
  StellarGovernanceProposalKind["RevokeGovernanceRole"] = "RevokeGovernanceRole";
43
43
  StellarGovernanceProposalKind["TransferGovernanceOwnership"] = "TransferGovernanceOwnership";
44
+ /**
45
+ * Owner-only, non-vetoable Recovery-tier council reset (`reset_cancellers`).
46
+ * Scheduled at the ~30-day Recovery delay to replace a captured canceller set.
47
+ */
48
+ StellarGovernanceProposalKind["CancellerReset"] = "CancellerReset";
44
49
  StellarGovernanceProposalKind["Unknown"] = "Unknown";
45
50
  })(StellarGovernanceProposalKind || (exports.StellarGovernanceProposalKind = StellarGovernanceProposalKind = {}));
46
51
  /**
@@ -4,4 +4,5 @@ export * from './documents';
4
4
  export * from './list';
5
5
  export * from './context';
6
6
  export * from './api-dto';
7
+ export * from './live-state';
7
8
  export * from './kusto';
@@ -20,4 +20,5 @@ __exportStar(require("./documents"), exports);
20
20
  __exportStar(require("./list"), exports);
21
21
  __exportStar(require("./context"), exports);
22
22
  __exportStar(require("./api-dto"), exports);
23
+ __exportStar(require("./live-state"), exports);
23
24
  __exportStar(require("./kusto"), exports);
@@ -131,6 +131,8 @@ export interface StellarSpokeListItem {
131
131
  name: string | null;
132
132
  /** Primary connected hub (`connectedHubIds[0]`); a spoke may span hubs. */
133
133
  hubId: number;
134
+ /** Every hub connected to the spoke. */
135
+ connectedHubIds: number[];
134
136
  /** Total value locked (USD); equals total deposits across reserves. */
135
137
  tvlUsd: number;
136
138
  totalBorrowsUsd: number;
@@ -0,0 +1,23 @@
1
+ import type { ActivityChain } from '../enums/common.enum';
2
+ /** Live controller index for one Stellar `(hub, asset)` market. */
3
+ export interface StellarMarketIndexByHub {
4
+ hubId: number;
5
+ asset: string;
6
+ supplyIndex: string;
7
+ supplyIndexShort: number;
8
+ borrowIndex: string;
9
+ borrowIndexShort: number;
10
+ usdPrice: string;
11
+ usdPriceShort: number;
12
+ primaryPriceUsd: string;
13
+ primaryPriceUsdShort: number;
14
+ anchorPriceUsd: string;
15
+ anchorPriceUsdShort: number;
16
+ chain: ActivityChain;
17
+ }
18
+ /** Live controller state needed by Stellar lending clients. */
19
+ export interface StellarLendingLiveStateDto {
20
+ indexes: StellarMarketIndexByHub[];
21
+ /** Raw 18-decimal WAD returned by `get_min_borrow_collateral_usd`. */
22
+ minBorrowCollateralUsdWad: string | null;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.466",
3
+ "version": "1.0.468",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {
@@ -34,7 +34,7 @@
34
34
  "lint:fix": "eslint 'src/**/*.ts' --fix",
35
35
  "test": "echo \"Error: no test specified\" && exit 1",
36
36
  "test:lending-chain": "npm run build && node test/lending-chain.test.mjs",
37
- "test:stellar-lending": "npm run build && node test/stellar-lending.test.mjs"
37
+ "test:stellar-lending": "npm run build && tsc --noEmit --target ES2020 --module commonjs --moduleResolution node --strict --skipLibCheck test/stellar-lending-live-state.types.ts && node test/stellar-lending.test.mjs"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",