@xoxno/types 1.0.470 → 1.0.473
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.
- package/dist/common/kusto/lending-position-status.js +1 -1
- package/dist/cosmos-db/documents/lending/lending-oracle.d.ts +12 -11
- package/dist/cosmos-db/documents/lending/lending-oracle.js +19 -62
- package/dist/enums/lending-governance.enum.d.ts +26 -29
- package/dist/enums/lending-governance.enum.js +25 -28
- package/dist/enums/stellar-lending-topic.enum.d.ts +39 -4
- package/dist/enums/stellar-lending-topic.enum.js +39 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/requests/lending/defillama-lending-export.dto.d.ts +238 -0
- package/dist/requests/lending/defillama-lending-export.dto.js +862 -0
- package/dist/requests/lending/stellar-lending-events.dto.d.ts +37 -1
- package/dist/requests/lending/stellar-lending-events.dto.js +74 -11
- package/dist/stellar-lending/api-dto.d.ts +12 -3
- package/dist/stellar-lending/documents/asset.doc.d.ts +6 -2
- package/dist/stellar-lending/documents/asset.doc.js +4 -0
- package/dist/stellar-lending/documents/spoke-asset.doc.d.ts +2 -2
- package/dist/stellar-lending/documents/spoke-asset.doc.js +2 -1
- package/dist/stellar-lending/enums/activity.enum.d.ts +2 -0
- package/dist/stellar-lending/enums/activity.enum.js +2 -0
- package/dist/stellar-lending/enums/governance.enum.d.ts +28 -23
- package/dist/stellar-lending/enums/governance.enum.js +27 -22
- package/dist/stellar-lending/kusto/activity-data.d.ts +16 -1
- package/dist/stellar-lending/list.d.ts +1 -1
- package/dist/stellar-lending/live-state.d.ts +21 -1
- package/dist/stellar-lending/oracle-provider.d.ts +102 -33
- package/dist/stellar-lending/oracle-provider.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,862 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StellarLendingUserStatsExport = exports.DefillamaLendingRevenueExport = exports.DefillamaLendingRevenueMethodology = exports.DefillamaLendingRevenueMarketPointExport = exports.DefillamaLendingRevenuePointExport = exports.DefillamaLendingHistoryExport = exports.DefillamaLendingHistoryPointExport = exports.DefillamaLendingHistoryMarketExport = exports.DefillamaLendingExport = exports.DefillamaLendingExportMethodology = exports.DefillamaLendingExportSummary = exports.DefillamaLendingSpokeMarketExport = exports.DefillamaLendingHubMarketExport = exports.DefillamaLendingMarketExport = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const common_enum_1 = require("../../enums/common.enum");
|
|
15
|
+
/**
|
|
16
|
+
* Per-token (aggregated) market row for DeFiLlama / Dune integrations.
|
|
17
|
+
*
|
|
18
|
+
* TVL semantics (P2): two documented measures coexist —
|
|
19
|
+
* - `tvlCash*` / legacy `tvl*` = available pool cash (`hubAsset.cash`) × price
|
|
20
|
+
* - `tvlSupplied*` (= `supplied*`) = total supplied × price (Kusto/stats TVL)
|
|
21
|
+
*
|
|
22
|
+
* APY / utilization (P15): decimal fractions in [0, 1] (e.g. 0.05 = 5%).
|
|
23
|
+
*/
|
|
24
|
+
class DefillamaLendingMarketExport {
|
|
25
|
+
}
|
|
26
|
+
exports.DefillamaLendingMarketExport = DefillamaLendingMarketExport;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], DefillamaLendingMarketExport.prototype, "chain", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ example: 'xoxno-lending' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DefillamaLendingMarketExport.prototype, "project", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ example: 'USDC' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], DefillamaLendingMarketExport.prototype, "symbol", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({ description: 'Stellar market token contract id' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], DefillamaLendingMarketExport.prototype, "token", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ description: 'Market / hub-asset contract address' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], DefillamaLendingMarketExport.prototype, "marketAddress", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ example: 7 }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], DefillamaLendingMarketExport.prototype, "decimals", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Market status when known' }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], DefillamaLendingMarketExport.prototype, "marketStatus", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({ example: 1000 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], DefillamaLendingMarketExport.prototype, "reserveFactorBps", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({
|
|
61
|
+
description: 'Legacy alias of `tvlCashRaw` (available pool cash, base units)',
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], DefillamaLendingMarketExport.prototype, "tvlRaw", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
67
|
+
description: 'Available pool cash (`hubAsset.cash`), base units',
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], DefillamaLendingMarketExport.prototype, "tvlCashRaw", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
description: 'Total supplied balance, base units. Same as `suppliedRaw`',
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], DefillamaLendingMarketExport.prototype, "tvlSuppliedRaw", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], DefillamaLendingMarketExport.prototype, "suppliedRaw", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], DefillamaLendingMarketExport.prototype, "borrowedRaw", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
description: 'Legacy alias of `tvlCashUsd`',
|
|
88
|
+
example: 1000000,
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], DefillamaLendingMarketExport.prototype, "tvlUsd", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({
|
|
94
|
+
description: 'Available pool cash × oracle USD price',
|
|
95
|
+
example: 1000000,
|
|
96
|
+
}),
|
|
97
|
+
__metadata("design:type", Number)
|
|
98
|
+
], DefillamaLendingMarketExport.prototype, "tvlCashUsd", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)({
|
|
101
|
+
description: 'Total supplied × oracle USD price. Same as `suppliedUsd` / Kusto TVL',
|
|
102
|
+
example: 1250000,
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], DefillamaLendingMarketExport.prototype, "tvlSuppliedUsd", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, swagger_1.ApiProperty)(),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], DefillamaLendingMarketExport.prototype, "suppliedUsd", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiProperty)(),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], DefillamaLendingMarketExport.prototype, "borrowedUsd", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)({
|
|
116
|
+
description: 'Decimal fraction in [0, 1], not percent',
|
|
117
|
+
example: 0.05,
|
|
118
|
+
}),
|
|
119
|
+
__metadata("design:type", Number)
|
|
120
|
+
], DefillamaLendingMarketExport.prototype, "supplyApy", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
description: 'Decimal fraction in [0, 1], not percent',
|
|
124
|
+
example: 0.08,
|
|
125
|
+
}),
|
|
126
|
+
__metadata("design:type", Number)
|
|
127
|
+
], DefillamaLendingMarketExport.prototype, "borrowApy", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiProperty)({
|
|
130
|
+
description: 'Decimal fraction in [0, 1], not percent',
|
|
131
|
+
example: 0.72,
|
|
132
|
+
}),
|
|
133
|
+
__metadata("design:type", Number)
|
|
134
|
+
], DefillamaLendingMarketExport.prototype, "utilizationRate", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, swagger_1.ApiProperty)(),
|
|
137
|
+
__metadata("design:type", Number)
|
|
138
|
+
], DefillamaLendingMarketExport.prototype, "usdPrice", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, swagger_1.ApiProperty)(),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], DefillamaLendingMarketExport.prototype, "cumulativeProtocolRevenueRaw", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, swagger_1.ApiProperty)(),
|
|
145
|
+
__metadata("design:type", Number)
|
|
146
|
+
], DefillamaLendingMarketExport.prototype, "cumulativeProtocolRevenueUsd", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, swagger_1.ApiProperty)({
|
|
149
|
+
description: 'Distinct participants for this token across hubs (per-market count)',
|
|
150
|
+
}),
|
|
151
|
+
__metadata("design:type", Number)
|
|
152
|
+
], DefillamaLendingMarketExport.prototype, "participantsCount", void 0);
|
|
153
|
+
/**
|
|
154
|
+
* Per-(hub, asset) market row. Same fields as the aggregated per-token row
|
|
155
|
+
* plus `hubId` / `poolId` so DeFiLlama can emit one pool per (hub, asset).
|
|
156
|
+
*/
|
|
157
|
+
class DefillamaLendingHubMarketExport {
|
|
158
|
+
}
|
|
159
|
+
exports.DefillamaLendingHubMarketExport = DefillamaLendingHubMarketExport;
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], DefillamaLendingHubMarketExport.prototype, "chain", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, swagger_1.ApiProperty)(),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], DefillamaLendingHubMarketExport.prototype, "project", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, swagger_1.ApiProperty)(),
|
|
170
|
+
__metadata("design:type", Number)
|
|
171
|
+
], DefillamaLendingHubMarketExport.prototype, "hubId", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, swagger_1.ApiPropertyOptional)({ nullable: true, type: String }),
|
|
174
|
+
__metadata("design:type", Object)
|
|
175
|
+
], DefillamaLendingHubMarketExport.prototype, "hubName", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, swagger_1.ApiProperty)({ description: 'Stable DeFiLlama pool id for (hub, asset)' }),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], DefillamaLendingHubMarketExport.prototype, "poolId", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, swagger_1.ApiProperty)(),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], DefillamaLendingHubMarketExport.prototype, "url", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, swagger_1.ApiProperty)(),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], DefillamaLendingHubMarketExport.prototype, "symbol", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, swagger_1.ApiProperty)(),
|
|
190
|
+
__metadata("design:type", String)
|
|
191
|
+
], DefillamaLendingHubMarketExport.prototype, "token", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, swagger_1.ApiProperty)(),
|
|
194
|
+
__metadata("design:type", String)
|
|
195
|
+
], DefillamaLendingHubMarketExport.prototype, "marketAddress", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, swagger_1.ApiProperty)(),
|
|
198
|
+
__metadata("design:type", Number)
|
|
199
|
+
], DefillamaLendingHubMarketExport.prototype, "decimals", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
202
|
+
__metadata("design:type", String)
|
|
203
|
+
], DefillamaLendingHubMarketExport.prototype, "marketStatus", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, swagger_1.ApiProperty)(),
|
|
206
|
+
__metadata("design:type", Number)
|
|
207
|
+
], DefillamaLendingHubMarketExport.prototype, "reserveFactorBps", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, swagger_1.ApiProperty)({ description: 'Legacy alias of `tvlCashRaw`' }),
|
|
210
|
+
__metadata("design:type", String)
|
|
211
|
+
], DefillamaLendingHubMarketExport.prototype, "tvlRaw", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, swagger_1.ApiProperty)(),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], DefillamaLendingHubMarketExport.prototype, "tvlCashRaw", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, swagger_1.ApiProperty)(),
|
|
218
|
+
__metadata("design:type", String)
|
|
219
|
+
], DefillamaLendingHubMarketExport.prototype, "tvlSuppliedRaw", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, swagger_1.ApiProperty)(),
|
|
222
|
+
__metadata("design:type", String)
|
|
223
|
+
], DefillamaLendingHubMarketExport.prototype, "suppliedRaw", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, swagger_1.ApiProperty)(),
|
|
226
|
+
__metadata("design:type", String)
|
|
227
|
+
], DefillamaLendingHubMarketExport.prototype, "borrowedRaw", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, swagger_1.ApiProperty)({ description: 'Legacy alias of `tvlCashUsd`' }),
|
|
230
|
+
__metadata("design:type", Number)
|
|
231
|
+
], DefillamaLendingHubMarketExport.prototype, "tvlUsd", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, swagger_1.ApiProperty)(),
|
|
234
|
+
__metadata("design:type", Number)
|
|
235
|
+
], DefillamaLendingHubMarketExport.prototype, "tvlCashUsd", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, swagger_1.ApiProperty)(),
|
|
238
|
+
__metadata("design:type", Number)
|
|
239
|
+
], DefillamaLendingHubMarketExport.prototype, "tvlSuppliedUsd", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, swagger_1.ApiProperty)(),
|
|
242
|
+
__metadata("design:type", Number)
|
|
243
|
+
], DefillamaLendingHubMarketExport.prototype, "suppliedUsd", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, swagger_1.ApiProperty)(),
|
|
246
|
+
__metadata("design:type", Number)
|
|
247
|
+
], DefillamaLendingHubMarketExport.prototype, "borrowedUsd", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, swagger_1.ApiProperty)({ description: 'Decimal fraction in [0, 1], not percent' }),
|
|
250
|
+
__metadata("design:type", Number)
|
|
251
|
+
], DefillamaLendingHubMarketExport.prototype, "supplyApy", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, swagger_1.ApiProperty)({ description: 'Decimal fraction in [0, 1], not percent' }),
|
|
254
|
+
__metadata("design:type", Number)
|
|
255
|
+
], DefillamaLendingHubMarketExport.prototype, "borrowApy", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, swagger_1.ApiProperty)({ description: 'Decimal fraction in [0, 1], not percent' }),
|
|
258
|
+
__metadata("design:type", Number)
|
|
259
|
+
], DefillamaLendingHubMarketExport.prototype, "utilizationRate", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, swagger_1.ApiProperty)(),
|
|
262
|
+
__metadata("design:type", Number)
|
|
263
|
+
], DefillamaLendingHubMarketExport.prototype, "usdPrice", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
(0, swagger_1.ApiProperty)(),
|
|
266
|
+
__metadata("design:type", String)
|
|
267
|
+
], DefillamaLendingHubMarketExport.prototype, "cumulativeProtocolRevenueRaw", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, swagger_1.ApiProperty)(),
|
|
270
|
+
__metadata("design:type", Number)
|
|
271
|
+
], DefillamaLendingHubMarketExport.prototype, "cumulativeProtocolRevenueUsd", void 0);
|
|
272
|
+
/**
|
|
273
|
+
* Per-(spoke, hub, asset) risk/borrow-routing row for DefiLlama routing pools.
|
|
274
|
+
*/
|
|
275
|
+
class DefillamaLendingSpokeMarketExport {
|
|
276
|
+
}
|
|
277
|
+
exports.DefillamaLendingSpokeMarketExport = DefillamaLendingSpokeMarketExport;
|
|
278
|
+
__decorate([
|
|
279
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
280
|
+
__metadata("design:type", String)
|
|
281
|
+
], DefillamaLendingSpokeMarketExport.prototype, "chain", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
(0, swagger_1.ApiProperty)(),
|
|
284
|
+
__metadata("design:type", String)
|
|
285
|
+
], DefillamaLendingSpokeMarketExport.prototype, "project", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, swagger_1.ApiProperty)(),
|
|
288
|
+
__metadata("design:type", Number)
|
|
289
|
+
], DefillamaLendingSpokeMarketExport.prototype, "spokeId", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
(0, swagger_1.ApiPropertyOptional)({ nullable: true, type: String }),
|
|
292
|
+
__metadata("design:type", Object)
|
|
293
|
+
], DefillamaLendingSpokeMarketExport.prototype, "spokeName", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
(0, swagger_1.ApiProperty)(),
|
|
296
|
+
__metadata("design:type", Number)
|
|
297
|
+
], DefillamaLendingSpokeMarketExport.prototype, "hubId", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
(0, swagger_1.ApiPropertyOptional)({ nullable: true, type: String }),
|
|
300
|
+
__metadata("design:type", Object)
|
|
301
|
+
], DefillamaLendingSpokeMarketExport.prototype, "hubName", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
(0, swagger_1.ApiProperty)(),
|
|
304
|
+
__metadata("design:type", String)
|
|
305
|
+
], DefillamaLendingSpokeMarketExport.prototype, "poolId", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
(0, swagger_1.ApiProperty)(),
|
|
308
|
+
__metadata("design:type", String)
|
|
309
|
+
], DefillamaLendingSpokeMarketExport.prototype, "url", void 0);
|
|
310
|
+
__decorate([
|
|
311
|
+
(0, swagger_1.ApiProperty)(),
|
|
312
|
+
__metadata("design:type", String)
|
|
313
|
+
], DefillamaLendingSpokeMarketExport.prototype, "symbol", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
(0, swagger_1.ApiProperty)(),
|
|
316
|
+
__metadata("design:type", String)
|
|
317
|
+
], DefillamaLendingSpokeMarketExport.prototype, "token", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
(0, swagger_1.ApiProperty)(),
|
|
320
|
+
__metadata("design:type", String)
|
|
321
|
+
], DefillamaLendingSpokeMarketExport.prototype, "marketAddress", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
(0, swagger_1.ApiProperty)(),
|
|
324
|
+
__metadata("design:type", Number)
|
|
325
|
+
], DefillamaLendingSpokeMarketExport.prototype, "decimals", void 0);
|
|
326
|
+
__decorate([
|
|
327
|
+
(0, swagger_1.ApiProperty)(),
|
|
328
|
+
__metadata("design:type", Boolean)
|
|
329
|
+
], DefillamaLendingSpokeMarketExport.prototype, "active", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
(0, swagger_1.ApiProperty)(),
|
|
332
|
+
__metadata("design:type", Boolean)
|
|
333
|
+
], DefillamaLendingSpokeMarketExport.prototype, "collateral", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
(0, swagger_1.ApiProperty)(),
|
|
336
|
+
__metadata("design:type", Boolean)
|
|
337
|
+
], DefillamaLendingSpokeMarketExport.prototype, "borrowable", void 0);
|
|
338
|
+
__decorate([
|
|
339
|
+
(0, swagger_1.ApiProperty)({ description: 'LTV as decimal fraction or protocol scale' }),
|
|
340
|
+
__metadata("design:type", Number)
|
|
341
|
+
], DefillamaLendingSpokeMarketExport.prototype, "ltv", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
(0, swagger_1.ApiProperty)(),
|
|
344
|
+
__metadata("design:type", Number)
|
|
345
|
+
], DefillamaLendingSpokeMarketExport.prototype, "liquidationThreshold", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
(0, swagger_1.ApiProperty)(),
|
|
348
|
+
__metadata("design:type", String)
|
|
349
|
+
], DefillamaLendingSpokeMarketExport.prototype, "totalBorrowRaw", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
(0, swagger_1.ApiProperty)(),
|
|
352
|
+
__metadata("design:type", Number)
|
|
353
|
+
], DefillamaLendingSpokeMarketExport.prototype, "totalBorrowUsd", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
(0, swagger_1.ApiProperty)(),
|
|
356
|
+
__metadata("design:type", Number)
|
|
357
|
+
], DefillamaLendingSpokeMarketExport.prototype, "availableBorrowUsd", void 0);
|
|
358
|
+
__decorate([
|
|
359
|
+
(0, swagger_1.ApiProperty)(),
|
|
360
|
+
__metadata("design:type", Number)
|
|
361
|
+
], DefillamaLendingSpokeMarketExport.prototype, "usdPrice", void 0);
|
|
362
|
+
class DefillamaLendingExportSummary {
|
|
363
|
+
}
|
|
364
|
+
exports.DefillamaLendingExportSummary = DefillamaLendingExportSummary;
|
|
365
|
+
__decorate([
|
|
366
|
+
(0, swagger_1.ApiProperty)(),
|
|
367
|
+
__metadata("design:type", Number)
|
|
368
|
+
], DefillamaLendingExportSummary.prototype, "marketCount", void 0);
|
|
369
|
+
__decorate([
|
|
370
|
+
(0, swagger_1.ApiProperty)({
|
|
371
|
+
description: 'Legacy alias of `tvlCashUsd` (cash-liquidity TVL)',
|
|
372
|
+
}),
|
|
373
|
+
__metadata("design:type", Number)
|
|
374
|
+
], DefillamaLendingExportSummary.prototype, "tvlUsd", void 0);
|
|
375
|
+
__decorate([
|
|
376
|
+
(0, swagger_1.ApiProperty)({
|
|
377
|
+
description: 'Sum of market `tvlCashUsd` (available pool cash × price)',
|
|
378
|
+
}),
|
|
379
|
+
__metadata("design:type", Number)
|
|
380
|
+
], DefillamaLendingExportSummary.prototype, "tvlCashUsd", void 0);
|
|
381
|
+
__decorate([
|
|
382
|
+
(0, swagger_1.ApiProperty)({
|
|
383
|
+
description: 'Sum of market `tvlSuppliedUsd` / `suppliedUsd` (Kusto-style TVL)',
|
|
384
|
+
}),
|
|
385
|
+
__metadata("design:type", Number)
|
|
386
|
+
], DefillamaLendingExportSummary.prototype, "tvlSuppliedUsd", void 0);
|
|
387
|
+
__decorate([
|
|
388
|
+
(0, swagger_1.ApiProperty)(),
|
|
389
|
+
__metadata("design:type", Number)
|
|
390
|
+
], DefillamaLendingExportSummary.prototype, "suppliedUsd", void 0);
|
|
391
|
+
__decorate([
|
|
392
|
+
(0, swagger_1.ApiProperty)(),
|
|
393
|
+
__metadata("design:type", Number)
|
|
394
|
+
], DefillamaLendingExportSummary.prototype, "borrowedUsd", void 0);
|
|
395
|
+
__decorate([
|
|
396
|
+
(0, swagger_1.ApiProperty)(),
|
|
397
|
+
__metadata("design:type", Number)
|
|
398
|
+
], DefillamaLendingExportSummary.prototype, "cumulativeProtocolRevenueUsd", void 0);
|
|
399
|
+
__decorate([
|
|
400
|
+
(0, swagger_1.ApiProperty)({
|
|
401
|
+
description: 'Protocol-wide unique participants (same as `uniqueMarketParticipants`). Not the sum of per-token `markets[].participantsCount`.',
|
|
402
|
+
}),
|
|
403
|
+
__metadata("design:type", Number)
|
|
404
|
+
], DefillamaLendingExportSummary.prototype, "participantsCount", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
(0, swagger_1.ApiProperty)({
|
|
407
|
+
description: 'Protocol-wide unique participant addresses',
|
|
408
|
+
}),
|
|
409
|
+
__metadata("design:type", Number)
|
|
410
|
+
], DefillamaLendingExportSummary.prototype, "uniqueMarketParticipants", void 0);
|
|
411
|
+
class DefillamaLendingExportMethodology {
|
|
412
|
+
}
|
|
413
|
+
exports.DefillamaLendingExportMethodology = DefillamaLendingExportMethodology;
|
|
414
|
+
__decorate([
|
|
415
|
+
(0, swagger_1.ApiProperty)({
|
|
416
|
+
description: 'Legacy TVL methodology (cash liquidity)',
|
|
417
|
+
}),
|
|
418
|
+
__metadata("design:type", String)
|
|
419
|
+
], DefillamaLendingExportMethodology.prototype, "tvl", void 0);
|
|
420
|
+
__decorate([
|
|
421
|
+
(0, swagger_1.ApiProperty)({ description: 'Cash-liquidity TVL methodology' }),
|
|
422
|
+
__metadata("design:type", String)
|
|
423
|
+
], DefillamaLendingExportMethodology.prototype, "tvlCash", void 0);
|
|
424
|
+
__decorate([
|
|
425
|
+
(0, swagger_1.ApiProperty)({ description: 'Supplied×price (Kusto) TVL methodology' }),
|
|
426
|
+
__metadata("design:type", String)
|
|
427
|
+
], DefillamaLendingExportMethodology.prototype, "tvlSupplied", void 0);
|
|
428
|
+
__decorate([
|
|
429
|
+
(0, swagger_1.ApiProperty)(),
|
|
430
|
+
__metadata("design:type", String)
|
|
431
|
+
], DefillamaLendingExportMethodology.prototype, "supplied", void 0);
|
|
432
|
+
__decorate([
|
|
433
|
+
(0, swagger_1.ApiProperty)(),
|
|
434
|
+
__metadata("design:type", String)
|
|
435
|
+
], DefillamaLendingExportMethodology.prototype, "borrowed", void 0);
|
|
436
|
+
__decorate([
|
|
437
|
+
(0, swagger_1.ApiProperty)({
|
|
438
|
+
description: 'APY scale: decimal fractions in [0, 1]',
|
|
439
|
+
}),
|
|
440
|
+
__metadata("design:type", String)
|
|
441
|
+
], DefillamaLendingExportMethodology.prototype, "apy", void 0);
|
|
442
|
+
__decorate([
|
|
443
|
+
(0, swagger_1.ApiProperty)(),
|
|
444
|
+
__metadata("design:type", String)
|
|
445
|
+
], DefillamaLendingExportMethodology.prototype, "revenue", void 0);
|
|
446
|
+
__decorate([
|
|
447
|
+
(0, swagger_1.ApiProperty)({
|
|
448
|
+
description: 'Participants = protocol-wide unique addresses',
|
|
449
|
+
}),
|
|
450
|
+
__metadata("design:type", String)
|
|
451
|
+
], DefillamaLendingExportMethodology.prototype, "participants", void 0);
|
|
452
|
+
/**
|
|
453
|
+
* Canonical Stellar lending market export for `/integrations/lending/stellar`
|
|
454
|
+
* (and the excluded `/defillama/lending/stellar` alias).
|
|
455
|
+
*/
|
|
456
|
+
class DefillamaLendingExport {
|
|
457
|
+
}
|
|
458
|
+
exports.DefillamaLendingExport = DefillamaLendingExport;
|
|
459
|
+
__decorate([
|
|
460
|
+
(0, swagger_1.ApiProperty)(),
|
|
461
|
+
__metadata("design:type", String)
|
|
462
|
+
], DefillamaLendingExport.prototype, "project", void 0);
|
|
463
|
+
__decorate([
|
|
464
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
465
|
+
__metadata("design:type", String)
|
|
466
|
+
], DefillamaLendingExport.prototype, "chain", void 0);
|
|
467
|
+
__decorate([
|
|
468
|
+
(0, swagger_1.ApiProperty)({ description: 'ISO-8601 generation timestamp' }),
|
|
469
|
+
__metadata("design:type", String)
|
|
470
|
+
], DefillamaLendingExport.prototype, "generatedAt", void 0);
|
|
471
|
+
__decorate([
|
|
472
|
+
(0, swagger_1.ApiProperty)({ type: [DefillamaLendingMarketExport] }),
|
|
473
|
+
__metadata("design:type", Array)
|
|
474
|
+
], DefillamaLendingExport.prototype, "markets", void 0);
|
|
475
|
+
__decorate([
|
|
476
|
+
(0, swagger_1.ApiProperty)({ type: [DefillamaLendingHubMarketExport] }),
|
|
477
|
+
__metadata("design:type", Array)
|
|
478
|
+
], DefillamaLendingExport.prototype, "hubMarkets", void 0);
|
|
479
|
+
__decorate([
|
|
480
|
+
(0, swagger_1.ApiProperty)({ type: [DefillamaLendingSpokeMarketExport] }),
|
|
481
|
+
__metadata("design:type", Array)
|
|
482
|
+
], DefillamaLendingExport.prototype, "spokeMarkets", void 0);
|
|
483
|
+
__decorate([
|
|
484
|
+
(0, swagger_1.ApiProperty)({ type: DefillamaLendingExportSummary }),
|
|
485
|
+
__metadata("design:type", DefillamaLendingExportSummary)
|
|
486
|
+
], DefillamaLendingExport.prototype, "summary", void 0);
|
|
487
|
+
__decorate([
|
|
488
|
+
(0, swagger_1.ApiProperty)({ type: DefillamaLendingExportMethodology }),
|
|
489
|
+
__metadata("design:type", DefillamaLendingExportMethodology)
|
|
490
|
+
], DefillamaLendingExport.prototype, "methodology", void 0);
|
|
491
|
+
class DefillamaLendingHistoryMarketExport {
|
|
492
|
+
}
|
|
493
|
+
exports.DefillamaLendingHistoryMarketExport = DefillamaLendingHistoryMarketExport;
|
|
494
|
+
__decorate([
|
|
495
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
496
|
+
__metadata("design:type", String)
|
|
497
|
+
], DefillamaLendingHistoryMarketExport.prototype, "chain", void 0);
|
|
498
|
+
__decorate([
|
|
499
|
+
(0, swagger_1.ApiProperty)(),
|
|
500
|
+
__metadata("design:type", String)
|
|
501
|
+
], DefillamaLendingHistoryMarketExport.prototype, "project", void 0);
|
|
502
|
+
__decorate([
|
|
503
|
+
(0, swagger_1.ApiProperty)(),
|
|
504
|
+
__metadata("design:type", String)
|
|
505
|
+
], DefillamaLendingHistoryMarketExport.prototype, "token", void 0);
|
|
506
|
+
__decorate([
|
|
507
|
+
(0, swagger_1.ApiProperty)({ description: 'TWAP supply APY as [0, 1] fraction' }),
|
|
508
|
+
__metadata("design:type", Number)
|
|
509
|
+
], DefillamaLendingHistoryMarketExport.prototype, "twapSupplyApy", void 0);
|
|
510
|
+
__decorate([
|
|
511
|
+
(0, swagger_1.ApiProperty)({ description: 'TWAP borrow APY as [0, 1] fraction' }),
|
|
512
|
+
__metadata("design:type", Number)
|
|
513
|
+
], DefillamaLendingHistoryMarketExport.prototype, "twapBorrowApy", void 0);
|
|
514
|
+
__decorate([
|
|
515
|
+
(0, swagger_1.ApiProperty)({ description: 'TWAP utilization as [0, 1] fraction' }),
|
|
516
|
+
__metadata("design:type", Number)
|
|
517
|
+
], DefillamaLendingHistoryMarketExport.prototype, "twapUtilizationRate", void 0);
|
|
518
|
+
__decorate([
|
|
519
|
+
(0, swagger_1.ApiProperty)(),
|
|
520
|
+
__metadata("design:type", Number)
|
|
521
|
+
], DefillamaLendingHistoryMarketExport.prototype, "twapSupplyAmount", void 0);
|
|
522
|
+
__decorate([
|
|
523
|
+
(0, swagger_1.ApiProperty)(),
|
|
524
|
+
__metadata("design:type", Number)
|
|
525
|
+
], DefillamaLendingHistoryMarketExport.prototype, "twapBorrowAmount", void 0);
|
|
526
|
+
class DefillamaLendingHistoryPointExport {
|
|
527
|
+
}
|
|
528
|
+
exports.DefillamaLendingHistoryPointExport = DefillamaLendingHistoryPointExport;
|
|
529
|
+
__decorate([
|
|
530
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
531
|
+
__metadata("design:type", String)
|
|
532
|
+
], DefillamaLendingHistoryPointExport.prototype, "chain", void 0);
|
|
533
|
+
__decorate([
|
|
534
|
+
(0, swagger_1.ApiProperty)(),
|
|
535
|
+
__metadata("design:type", String)
|
|
536
|
+
], DefillamaLendingHistoryPointExport.prototype, "project", void 0);
|
|
537
|
+
__decorate([
|
|
538
|
+
(0, swagger_1.ApiProperty)(),
|
|
539
|
+
__metadata("design:type", String)
|
|
540
|
+
], DefillamaLendingHistoryPointExport.prototype, "token", void 0);
|
|
541
|
+
__decorate([
|
|
542
|
+
(0, swagger_1.ApiProperty)({ description: 'Bin timestamp (ISO-8601)' }),
|
|
543
|
+
__metadata("design:type", String)
|
|
544
|
+
], DefillamaLendingHistoryPointExport.prototype, "timestamp", void 0);
|
|
545
|
+
__decorate([
|
|
546
|
+
(0, swagger_1.ApiProperty)(),
|
|
547
|
+
__metadata("design:type", Number)
|
|
548
|
+
], DefillamaLendingHistoryPointExport.prototype, "minSupplyApy", void 0);
|
|
549
|
+
__decorate([
|
|
550
|
+
(0, swagger_1.ApiProperty)(),
|
|
551
|
+
__metadata("design:type", Number)
|
|
552
|
+
], DefillamaLendingHistoryPointExport.prototype, "maxSupplyApy", void 0);
|
|
553
|
+
__decorate([
|
|
554
|
+
(0, swagger_1.ApiProperty)(),
|
|
555
|
+
__metadata("design:type", Number)
|
|
556
|
+
], DefillamaLendingHistoryPointExport.prototype, "avgSupplyApy", void 0);
|
|
557
|
+
__decorate([
|
|
558
|
+
(0, swagger_1.ApiProperty)(),
|
|
559
|
+
__metadata("design:type", Number)
|
|
560
|
+
], DefillamaLendingHistoryPointExport.prototype, "minBorrowApy", void 0);
|
|
561
|
+
__decorate([
|
|
562
|
+
(0, swagger_1.ApiProperty)(),
|
|
563
|
+
__metadata("design:type", Number)
|
|
564
|
+
], DefillamaLendingHistoryPointExport.prototype, "maxBorrowApy", void 0);
|
|
565
|
+
__decorate([
|
|
566
|
+
(0, swagger_1.ApiProperty)(),
|
|
567
|
+
__metadata("design:type", Number)
|
|
568
|
+
], DefillamaLendingHistoryPointExport.prototype, "avgBorrowApy", void 0);
|
|
569
|
+
__decorate([
|
|
570
|
+
(0, swagger_1.ApiProperty)(),
|
|
571
|
+
__metadata("design:type", Number)
|
|
572
|
+
], DefillamaLendingHistoryPointExport.prototype, "minUtilizationRate", void 0);
|
|
573
|
+
__decorate([
|
|
574
|
+
(0, swagger_1.ApiProperty)(),
|
|
575
|
+
__metadata("design:type", Number)
|
|
576
|
+
], DefillamaLendingHistoryPointExport.prototype, "maxUtilizationRate", void 0);
|
|
577
|
+
__decorate([
|
|
578
|
+
(0, swagger_1.ApiProperty)(),
|
|
579
|
+
__metadata("design:type", Number)
|
|
580
|
+
], DefillamaLendingHistoryPointExport.prototype, "avgUtilizationRate", void 0);
|
|
581
|
+
__decorate([
|
|
582
|
+
(0, swagger_1.ApiProperty)(),
|
|
583
|
+
__metadata("design:type", Number)
|
|
584
|
+
], DefillamaLendingHistoryPointExport.prototype, "minSupplyAmount", void 0);
|
|
585
|
+
__decorate([
|
|
586
|
+
(0, swagger_1.ApiProperty)(),
|
|
587
|
+
__metadata("design:type", Number)
|
|
588
|
+
], DefillamaLendingHistoryPointExport.prototype, "maxSupplyAmount", void 0);
|
|
589
|
+
__decorate([
|
|
590
|
+
(0, swagger_1.ApiProperty)(),
|
|
591
|
+
__metadata("design:type", Number)
|
|
592
|
+
], DefillamaLendingHistoryPointExport.prototype, "avgSupplyAmount", void 0);
|
|
593
|
+
__decorate([
|
|
594
|
+
(0, swagger_1.ApiProperty)(),
|
|
595
|
+
__metadata("design:type", Number)
|
|
596
|
+
], DefillamaLendingHistoryPointExport.prototype, "minBorrowAmount", void 0);
|
|
597
|
+
__decorate([
|
|
598
|
+
(0, swagger_1.ApiProperty)(),
|
|
599
|
+
__metadata("design:type", Number)
|
|
600
|
+
], DefillamaLendingHistoryPointExport.prototype, "maxBorrowAmount", void 0);
|
|
601
|
+
__decorate([
|
|
602
|
+
(0, swagger_1.ApiProperty)(),
|
|
603
|
+
__metadata("design:type", Number)
|
|
604
|
+
], DefillamaLendingHistoryPointExport.prototype, "avgBorrowAmount", void 0);
|
|
605
|
+
class DefillamaLendingHistoryExport {
|
|
606
|
+
}
|
|
607
|
+
exports.DefillamaLendingHistoryExport = DefillamaLendingHistoryExport;
|
|
608
|
+
__decorate([
|
|
609
|
+
(0, swagger_1.ApiProperty)(),
|
|
610
|
+
__metadata("design:type", String)
|
|
611
|
+
], DefillamaLendingHistoryExport.prototype, "project", void 0);
|
|
612
|
+
__decorate([
|
|
613
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
614
|
+
__metadata("design:type", String)
|
|
615
|
+
], DefillamaLendingHistoryExport.prototype, "chain", void 0);
|
|
616
|
+
__decorate([
|
|
617
|
+
(0, swagger_1.ApiProperty)(),
|
|
618
|
+
__metadata("design:type", String)
|
|
619
|
+
], DefillamaLendingHistoryExport.prototype, "generatedAt", void 0);
|
|
620
|
+
__decorate([
|
|
621
|
+
(0, swagger_1.ApiProperty)(),
|
|
622
|
+
__metadata("design:type", String)
|
|
623
|
+
], DefillamaLendingHistoryExport.prototype, "startTime", void 0);
|
|
624
|
+
__decorate([
|
|
625
|
+
(0, swagger_1.ApiProperty)(),
|
|
626
|
+
__metadata("design:type", String)
|
|
627
|
+
], DefillamaLendingHistoryExport.prototype, "endTime", void 0);
|
|
628
|
+
__decorate([
|
|
629
|
+
(0, swagger_1.ApiProperty)({ example: '1d' }),
|
|
630
|
+
__metadata("design:type", String)
|
|
631
|
+
], DefillamaLendingHistoryExport.prototype, "bin", void 0);
|
|
632
|
+
__decorate([
|
|
633
|
+
(0, swagger_1.ApiProperty)({ type: [DefillamaLendingHistoryMarketExport] }),
|
|
634
|
+
__metadata("design:type", Array)
|
|
635
|
+
], DefillamaLendingHistoryExport.prototype, "markets", void 0);
|
|
636
|
+
__decorate([
|
|
637
|
+
(0, swagger_1.ApiProperty)({ type: [DefillamaLendingHistoryPointExport] }),
|
|
638
|
+
__metadata("design:type", Array)
|
|
639
|
+
], DefillamaLendingHistoryExport.prototype, "points", void 0);
|
|
640
|
+
class DefillamaLendingRevenuePointExport {
|
|
641
|
+
}
|
|
642
|
+
exports.DefillamaLendingRevenuePointExport = DefillamaLendingRevenuePointExport;
|
|
643
|
+
__decorate([
|
|
644
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
645
|
+
__metadata("design:type", String)
|
|
646
|
+
], DefillamaLendingRevenuePointExport.prototype, "chain", void 0);
|
|
647
|
+
__decorate([
|
|
648
|
+
(0, swagger_1.ApiProperty)(),
|
|
649
|
+
__metadata("design:type", String)
|
|
650
|
+
], DefillamaLendingRevenuePointExport.prototype, "project", void 0);
|
|
651
|
+
__decorate([
|
|
652
|
+
(0, swagger_1.ApiProperty)(),
|
|
653
|
+
__metadata("design:type", String)
|
|
654
|
+
], DefillamaLendingRevenuePointExport.prototype, "timestamp", void 0);
|
|
655
|
+
__decorate([
|
|
656
|
+
(0, swagger_1.ApiProperty)(),
|
|
657
|
+
__metadata("design:type", Number)
|
|
658
|
+
], DefillamaLendingRevenuePointExport.prototype, "dailyFeesUsd", void 0);
|
|
659
|
+
__decorate([
|
|
660
|
+
(0, swagger_1.ApiProperty)(),
|
|
661
|
+
__metadata("design:type", Number)
|
|
662
|
+
], DefillamaLendingRevenuePointExport.prototype, "dailyRevenueUsd", void 0);
|
|
663
|
+
__decorate([
|
|
664
|
+
(0, swagger_1.ApiProperty)(),
|
|
665
|
+
__metadata("design:type", Number)
|
|
666
|
+
], DefillamaLendingRevenuePointExport.prototype, "dailyProtocolRevenueUsd", void 0);
|
|
667
|
+
__decorate([
|
|
668
|
+
(0, swagger_1.ApiProperty)(),
|
|
669
|
+
__metadata("design:type", Number)
|
|
670
|
+
], DefillamaLendingRevenuePointExport.prototype, "dailyInterestRevenueUsd", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
(0, swagger_1.ApiProperty)(),
|
|
673
|
+
__metadata("design:type", Number)
|
|
674
|
+
], DefillamaLendingRevenuePointExport.prototype, "dailyStrategyFeeRevenueUsd", void 0);
|
|
675
|
+
__decorate([
|
|
676
|
+
(0, swagger_1.ApiProperty)(),
|
|
677
|
+
__metadata("design:type", Number)
|
|
678
|
+
], DefillamaLendingRevenuePointExport.prototype, "dailyFlashLoanRevenueUsd", void 0);
|
|
679
|
+
__decorate([
|
|
680
|
+
(0, swagger_1.ApiProperty)(),
|
|
681
|
+
__metadata("design:type", Number)
|
|
682
|
+
], DefillamaLendingRevenuePointExport.prototype, "dailySupplySideRevenueUsd", void 0);
|
|
683
|
+
__decorate([
|
|
684
|
+
(0, swagger_1.ApiProperty)(),
|
|
685
|
+
__metadata("design:type", Number)
|
|
686
|
+
], DefillamaLendingRevenuePointExport.prototype, "cumulativeProtocolRevenueUsd", void 0);
|
|
687
|
+
class DefillamaLendingRevenueMarketPointExport {
|
|
688
|
+
}
|
|
689
|
+
exports.DefillamaLendingRevenueMarketPointExport = DefillamaLendingRevenueMarketPointExport;
|
|
690
|
+
__decorate([
|
|
691
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
692
|
+
__metadata("design:type", String)
|
|
693
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "chain", void 0);
|
|
694
|
+
__decorate([
|
|
695
|
+
(0, swagger_1.ApiProperty)(),
|
|
696
|
+
__metadata("design:type", String)
|
|
697
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "project", void 0);
|
|
698
|
+
__decorate([
|
|
699
|
+
(0, swagger_1.ApiProperty)(),
|
|
700
|
+
__metadata("design:type", String)
|
|
701
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "timestamp", void 0);
|
|
702
|
+
__decorate([
|
|
703
|
+
(0, swagger_1.ApiProperty)(),
|
|
704
|
+
__metadata("design:type", String)
|
|
705
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "token", void 0);
|
|
706
|
+
__decorate([
|
|
707
|
+
(0, swagger_1.ApiProperty)(),
|
|
708
|
+
__metadata("design:type", String)
|
|
709
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "symbol", void 0);
|
|
710
|
+
__decorate([
|
|
711
|
+
(0, swagger_1.ApiProperty)(),
|
|
712
|
+
__metadata("design:type", Number)
|
|
713
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyFeesNative", void 0);
|
|
714
|
+
__decorate([
|
|
715
|
+
(0, swagger_1.ApiProperty)(),
|
|
716
|
+
__metadata("design:type", Number)
|
|
717
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyFeesUsd", void 0);
|
|
718
|
+
__decorate([
|
|
719
|
+
(0, swagger_1.ApiProperty)(),
|
|
720
|
+
__metadata("design:type", Number)
|
|
721
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyProtocolRevenueNative", void 0);
|
|
722
|
+
__decorate([
|
|
723
|
+
(0, swagger_1.ApiProperty)(),
|
|
724
|
+
__metadata("design:type", Number)
|
|
725
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyProtocolRevenueUsd", void 0);
|
|
726
|
+
__decorate([
|
|
727
|
+
(0, swagger_1.ApiProperty)(),
|
|
728
|
+
__metadata("design:type", Number)
|
|
729
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyInterestRevenueNative", void 0);
|
|
730
|
+
__decorate([
|
|
731
|
+
(0, swagger_1.ApiProperty)(),
|
|
732
|
+
__metadata("design:type", Number)
|
|
733
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyInterestRevenueUsd", void 0);
|
|
734
|
+
__decorate([
|
|
735
|
+
(0, swagger_1.ApiProperty)(),
|
|
736
|
+
__metadata("design:type", Number)
|
|
737
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyStrategyFeeRevenueNative", void 0);
|
|
738
|
+
__decorate([
|
|
739
|
+
(0, swagger_1.ApiProperty)(),
|
|
740
|
+
__metadata("design:type", Number)
|
|
741
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyStrategyFeeRevenueUsd", void 0);
|
|
742
|
+
__decorate([
|
|
743
|
+
(0, swagger_1.ApiProperty)(),
|
|
744
|
+
__metadata("design:type", Number)
|
|
745
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyFlashLoanRevenueNative", void 0);
|
|
746
|
+
__decorate([
|
|
747
|
+
(0, swagger_1.ApiProperty)(),
|
|
748
|
+
__metadata("design:type", Number)
|
|
749
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "dailyFlashLoanRevenueUsd", void 0);
|
|
750
|
+
__decorate([
|
|
751
|
+
(0, swagger_1.ApiProperty)(),
|
|
752
|
+
__metadata("design:type", Number)
|
|
753
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "cumulativeProtocolRevenueNative", void 0);
|
|
754
|
+
__decorate([
|
|
755
|
+
(0, swagger_1.ApiProperty)(),
|
|
756
|
+
__metadata("design:type", Number)
|
|
757
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "cumulativeProtocolRevenueUsd", void 0);
|
|
758
|
+
__decorate([
|
|
759
|
+
(0, swagger_1.ApiProperty)(),
|
|
760
|
+
__metadata("design:type", Number)
|
|
761
|
+
], DefillamaLendingRevenueMarketPointExport.prototype, "usdPrice", void 0);
|
|
762
|
+
class DefillamaLendingRevenueMethodology {
|
|
763
|
+
}
|
|
764
|
+
exports.DefillamaLendingRevenueMethodology = DefillamaLendingRevenueMethodology;
|
|
765
|
+
__decorate([
|
|
766
|
+
(0, swagger_1.ApiProperty)(),
|
|
767
|
+
__metadata("design:type", String)
|
|
768
|
+
], DefillamaLendingRevenueMethodology.prototype, "fees", void 0);
|
|
769
|
+
__decorate([
|
|
770
|
+
(0, swagger_1.ApiProperty)(),
|
|
771
|
+
__metadata("design:type", String)
|
|
772
|
+
], DefillamaLendingRevenueMethodology.prototype, "revenue", void 0);
|
|
773
|
+
__decorate([
|
|
774
|
+
(0, swagger_1.ApiProperty)(),
|
|
775
|
+
__metadata("design:type", String)
|
|
776
|
+
], DefillamaLendingRevenueMethodology.prototype, "breakdown", void 0);
|
|
777
|
+
__decorate([
|
|
778
|
+
(0, swagger_1.ApiProperty)(),
|
|
779
|
+
__metadata("design:type", String)
|
|
780
|
+
], DefillamaLendingRevenueMethodology.prototype, "nativeMarketValues", void 0);
|
|
781
|
+
__decorate([
|
|
782
|
+
(0, swagger_1.ApiProperty)(),
|
|
783
|
+
__metadata("design:type", String)
|
|
784
|
+
], DefillamaLendingRevenueMethodology.prototype, "supplySideRevenue", void 0);
|
|
785
|
+
class DefillamaLendingRevenueExport {
|
|
786
|
+
}
|
|
787
|
+
exports.DefillamaLendingRevenueExport = DefillamaLendingRevenueExport;
|
|
788
|
+
__decorate([
|
|
789
|
+
(0, swagger_1.ApiProperty)(),
|
|
790
|
+
__metadata("design:type", String)
|
|
791
|
+
], DefillamaLendingRevenueExport.prototype, "project", void 0);
|
|
792
|
+
__decorate([
|
|
793
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
794
|
+
__metadata("design:type", String)
|
|
795
|
+
], DefillamaLendingRevenueExport.prototype, "chain", void 0);
|
|
796
|
+
__decorate([
|
|
797
|
+
(0, swagger_1.ApiProperty)(),
|
|
798
|
+
__metadata("design:type", String)
|
|
799
|
+
], DefillamaLendingRevenueExport.prototype, "generatedAt", void 0);
|
|
800
|
+
__decorate([
|
|
801
|
+
(0, swagger_1.ApiProperty)(),
|
|
802
|
+
__metadata("design:type", String)
|
|
803
|
+
], DefillamaLendingRevenueExport.prototype, "startTime", void 0);
|
|
804
|
+
__decorate([
|
|
805
|
+
(0, swagger_1.ApiProperty)(),
|
|
806
|
+
__metadata("design:type", String)
|
|
807
|
+
], DefillamaLendingRevenueExport.prototype, "endTime", void 0);
|
|
808
|
+
__decorate([
|
|
809
|
+
(0, swagger_1.ApiProperty)({ type: [DefillamaLendingRevenuePointExport] }),
|
|
810
|
+
__metadata("design:type", Array)
|
|
811
|
+
], DefillamaLendingRevenueExport.prototype, "points", void 0);
|
|
812
|
+
__decorate([
|
|
813
|
+
(0, swagger_1.ApiProperty)({ type: [DefillamaLendingRevenueMarketPointExport] }),
|
|
814
|
+
__metadata("design:type", Array)
|
|
815
|
+
], DefillamaLendingRevenueExport.prototype, "markets", void 0);
|
|
816
|
+
__decorate([
|
|
817
|
+
(0, swagger_1.ApiProperty)({ type: DefillamaLendingRevenueMethodology }),
|
|
818
|
+
__metadata("design:type", DefillamaLendingRevenueMethodology)
|
|
819
|
+
], DefillamaLendingRevenueExport.prototype, "methodology", void 0);
|
|
820
|
+
/**
|
|
821
|
+
* Windowed lending user stats. Users are counted by OWNER (wallet address);
|
|
822
|
+
* `activeAccounts` is the sub-account count.
|
|
823
|
+
*/
|
|
824
|
+
class StellarLendingUserStatsExport {
|
|
825
|
+
}
|
|
826
|
+
exports.StellarLendingUserStatsExport = StellarLendingUserStatsExport;
|
|
827
|
+
__decorate([
|
|
828
|
+
(0, swagger_1.ApiProperty)(),
|
|
829
|
+
__metadata("design:type", String)
|
|
830
|
+
], StellarLendingUserStatsExport.prototype, "project", void 0);
|
|
831
|
+
__decorate([
|
|
832
|
+
(0, swagger_1.ApiProperty)({ enum: common_enum_1.ActivityChain, enumName: 'ActivityChain' }),
|
|
833
|
+
__metadata("design:type", String)
|
|
834
|
+
], StellarLendingUserStatsExport.prototype, "chain", void 0);
|
|
835
|
+
__decorate([
|
|
836
|
+
(0, swagger_1.ApiProperty)(),
|
|
837
|
+
__metadata("design:type", String)
|
|
838
|
+
], StellarLendingUserStatsExport.prototype, "generatedAt", void 0);
|
|
839
|
+
__decorate([
|
|
840
|
+
(0, swagger_1.ApiProperty)(),
|
|
841
|
+
__metadata("design:type", String)
|
|
842
|
+
], StellarLendingUserStatsExport.prototype, "startTime", void 0);
|
|
843
|
+
__decorate([
|
|
844
|
+
(0, swagger_1.ApiProperty)(),
|
|
845
|
+
__metadata("design:type", String)
|
|
846
|
+
], StellarLendingUserStatsExport.prototype, "endTime", void 0);
|
|
847
|
+
__decorate([
|
|
848
|
+
(0, swagger_1.ApiProperty)({ description: 'Distinct owner wallets active in the window' }),
|
|
849
|
+
__metadata("design:type", Number)
|
|
850
|
+
], StellarLendingUserStatsExport.prototype, "activeUsers", void 0);
|
|
851
|
+
__decorate([
|
|
852
|
+
(0, swagger_1.ApiProperty)({ description: 'Owners first seen in the window' }),
|
|
853
|
+
__metadata("design:type", Number)
|
|
854
|
+
], StellarLendingUserStatsExport.prototype, "newUsers", void 0);
|
|
855
|
+
__decorate([
|
|
856
|
+
(0, swagger_1.ApiProperty)({ description: 'Distinct lending sub-accounts in the window' }),
|
|
857
|
+
__metadata("design:type", Number)
|
|
858
|
+
], StellarLendingUserStatsExport.prototype, "activeAccounts", void 0);
|
|
859
|
+
__decorate([
|
|
860
|
+
(0, swagger_1.ApiProperty)(),
|
|
861
|
+
__metadata("design:type", Number)
|
|
862
|
+
], StellarLendingUserStatsExport.prototype, "transactions", void 0);
|