@xoxno/types 1.0.437 → 1.0.439
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.
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import type { StellarAssetListItem, StellarAssetPage, StellarAssetPageMarket, StellarHubListItem, StellarReserveListItem, StellarSpokeListItem, StellarUserActivityItem } from './list';
|
|
2
|
+
export type StellarAssetListItemDto = StellarAssetListItem;
|
|
3
|
+
export type StellarHubListItemDto = StellarHubListItem;
|
|
4
|
+
export type StellarSpokeListItemDto = StellarSpokeListItem;
|
|
5
|
+
export type StellarReserveListItemDto = StellarReserveListItem;
|
|
6
|
+
export type AssetDto = Omit<StellarAssetPage, 'depositMarkets' | 'borrowMarkets' | 'graphSeries'>;
|
|
7
|
+
export type AssetPageDto = StellarAssetPage;
|
|
8
|
+
export type AssetMarketDto = StellarAssetPageMarket;
|
|
9
|
+
export interface ReserveDto extends StellarAssetPageMarket {
|
|
10
|
+
supplyCapShort: number;
|
|
11
|
+
borrowCapShort: number;
|
|
12
|
+
isFlashloanable: boolean;
|
|
13
|
+
flashloanFeeBps: number;
|
|
14
|
+
liquidationPenaltyBps: number;
|
|
15
|
+
liquidationFeesBps: number;
|
|
16
|
+
useAsCollateral: boolean;
|
|
17
|
+
targetHealthFactorWad: string;
|
|
18
|
+
healthFactorForMaxBonusWad: string;
|
|
19
|
+
liquidationBonusFactorBps: number;
|
|
20
|
+
}
|
|
21
|
+
export interface HubDto {
|
|
22
|
+
hubId: number;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
name: string | null;
|
|
25
|
+
totalDepositsUsd: number;
|
|
26
|
+
totalBorrowsUsd: number;
|
|
27
|
+
availableLiquidityUsd: number;
|
|
28
|
+
assetCount: number;
|
|
29
|
+
connectedSpokeCount: number;
|
|
30
|
+
assets: unknown[];
|
|
31
|
+
}
|
|
32
|
+
export interface SpokeDto {
|
|
33
|
+
spokeId: number;
|
|
34
|
+
isDeprecated: boolean;
|
|
35
|
+
name: string | null;
|
|
36
|
+
totalDepositsUsd: number;
|
|
37
|
+
totalBorrowsUsd: number;
|
|
38
|
+
assetCount: number;
|
|
39
|
+
connectedHubIds: number[];
|
|
40
|
+
connectedHubCount: number;
|
|
41
|
+
markets: unknown[];
|
|
42
|
+
}
|
|
43
|
+
export interface TopHoldersDto {
|
|
44
|
+
side: string;
|
|
45
|
+
holders: number;
|
|
46
|
+
totalUsd: number;
|
|
47
|
+
avgUsd: number;
|
|
48
|
+
medianUsd: number;
|
|
49
|
+
p90Usd: number;
|
|
50
|
+
top1Usd: number;
|
|
51
|
+
top10Usd: number;
|
|
52
|
+
top1SharePct: number;
|
|
53
|
+
top10SharePct: number;
|
|
54
|
+
}
|
|
55
|
+
export interface AccountPositionsDto {
|
|
56
|
+
positions: unknown[];
|
|
57
|
+
}
|
|
58
|
+
export type StellarUserActivityItemDto = StellarUserActivityItem;
|
|
59
|
+
export interface MarketGraphDto {
|
|
60
|
+
points: unknown[];
|
|
61
|
+
fees?: unknown[];
|
|
62
|
+
}
|
|
63
|
+
export interface SpokeGraphDto {
|
|
64
|
+
spokeId: number;
|
|
65
|
+
points: unknown[];
|
|
66
|
+
}
|
|
67
|
+
export interface StellarStatsHistoryDto {
|
|
68
|
+
timestamps: string[];
|
|
69
|
+
supplied: number[];
|
|
70
|
+
borrowed: number[];
|
|
71
|
+
revenue: number[];
|
|
72
|
+
}
|
|
73
|
+
export interface StellarPositionsPnlDto {
|
|
74
|
+
accountId?: string;
|
|
75
|
+
positions?: unknown[];
|
|
76
|
+
rows?: unknown[];
|
|
77
|
+
}
|
|
78
|
+
export interface StellarPositionsRankDto {
|
|
79
|
+
rows: unknown[];
|
|
80
|
+
}
|
|
81
|
+
export interface UserHistoryDto {
|
|
82
|
+
accountId: string;
|
|
83
|
+
points: unknown[];
|
|
84
|
+
}
|
|
85
|
+
export interface PnlByScopeDto {
|
|
86
|
+
rows: unknown[];
|
|
87
|
+
}
|
|
88
|
+
export interface RevenueSeriesDto {
|
|
89
|
+
points: unknown[];
|
|
90
|
+
}
|
|
91
|
+
export interface FeeRevenueSeriesDto {
|
|
92
|
+
points: unknown[];
|
|
93
|
+
}
|
|
94
|
+
export interface ParticipantCountsDto {
|
|
95
|
+
suppliers: number;
|
|
96
|
+
borrowers: number;
|
|
97
|
+
total: number;
|
|
98
|
+
}
|
|
99
|
+
export interface LiquidationsSeriesDto {
|
|
100
|
+
points: unknown[];
|
|
101
|
+
}
|
|
102
|
+
export interface LiquidationsLeaderboardDto {
|
|
103
|
+
liquidators: unknown[];
|
|
104
|
+
}
|
|
105
|
+
export interface VolumeSeriesDto {
|
|
106
|
+
points: unknown[];
|
|
107
|
+
}
|
|
108
|
+
export interface ActiveUsersSeriesDto {
|
|
109
|
+
points: unknown[];
|
|
110
|
+
}
|
|
111
|
+
export interface HolderDistributionDto {
|
|
112
|
+
side: string;
|
|
113
|
+
holders: number;
|
|
114
|
+
totalUsd: number;
|
|
115
|
+
}
|
|
116
|
+
export interface RateSpreadSeriesDto {
|
|
117
|
+
points: unknown[];
|
|
118
|
+
}
|
|
119
|
+
export interface DefiLlamaDimensionsDto {
|
|
120
|
+
protocol: string;
|
|
121
|
+
chain: string;
|
|
122
|
+
version: string;
|
|
123
|
+
}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./enums"), exports);
|
|
|
18
18
|
__exportStar(require("./oracle-provider"), exports);
|
|
19
19
|
__exportStar(require("./documents"), exports);
|
|
20
20
|
__exportStar(require("./list"), exports);
|
|
21
|
+
__exportStar(require("./api-dto"), exports);
|
|
21
22
|
__exportStar(require("./kusto"), exports);
|