@xoxno/types 1.0.466 → 1.0.467
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.
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.467",
|
|
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",
|