@xoxno/types 1.0.473 → 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.
|
@@ -55,6 +55,10 @@ export declare class OracleSourceConfigInputDto {
|
|
|
55
55
|
twapRecords?: number;
|
|
56
56
|
maxStaleSeconds?: number;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated v1 primary/anchor config. Prefer {@link AssetOracleConfigInputDto}
|
|
60
|
+
* for the composable price-aggregator.
|
|
61
|
+
*/
|
|
58
62
|
export declare class MarketOracleConfigInputDto {
|
|
59
63
|
maxPriceStaleSeconds: number;
|
|
60
64
|
toleranceBps: number;
|
|
@@ -64,3 +68,27 @@ export declare class MarketOracleConfigInputDto {
|
|
|
64
68
|
minSanityPriceWad: string;
|
|
65
69
|
maxSanityPriceWad: string;
|
|
66
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Composable on-chain `AssetOracle` input for governance
|
|
73
|
+
* `ConfigureAssetOracle` / price-aggregator `set_oracle`.
|
|
74
|
+
* `sources` mirror PriceSource tagged unions as JSON objects.
|
|
75
|
+
*/
|
|
76
|
+
export declare class AssetOracleConfigInputDto {
|
|
77
|
+
assetDecimals: number;
|
|
78
|
+
maxPriceStaleSeconds: number;
|
|
79
|
+
sources: Record<string, unknown>[];
|
|
80
|
+
toleranceBps: number;
|
|
81
|
+
independence: string | Record<string, unknown>;
|
|
82
|
+
minSanityPriceWad: string;
|
|
83
|
+
maxSanityPriceWad: string;
|
|
84
|
+
}
|
|
85
|
+
/** `ConfigureAssetOracleArgs` — PriceKey + AssetOracle. */
|
|
86
|
+
export declare class ConfigureAssetOracleArgsDto {
|
|
87
|
+
key: Record<string, string>;
|
|
88
|
+
oracle: AssetOracleConfigInputDto;
|
|
89
|
+
}
|
|
90
|
+
/** `EditToleranceArgs` — PriceKey + tolerance bps. */
|
|
91
|
+
export declare class EditOracleToleranceArgsDto {
|
|
92
|
+
key: Record<string, string>;
|
|
93
|
+
toleranceBps: number;
|
|
94
|
+
}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MarketOracleConfigInputDto = exports.OracleSourceConfigInputDto = exports.EModeCategoryArgsDto = exports.PositionLimitsDto = exports.AssetConfigRawDto = exports.MarketParamsRawDto = exports.InterestRateModelDto = void 0;
|
|
12
|
+
exports.EditOracleToleranceArgsDto = exports.ConfigureAssetOracleArgsDto = exports.AssetOracleConfigInputDto = exports.MarketOracleConfigInputDto = exports.OracleSourceConfigInputDto = exports.EModeCategoryArgsDto = exports.PositionLimitsDto = exports.AssetConfigRawDto = exports.MarketParamsRawDto = exports.InterestRateModelDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const lending_enum_1 = require("../../enums/lending.enum");
|
|
15
15
|
const lending_oracle_1 = require("../../cosmos-db/documents/lending/lending-oracle");
|
|
@@ -219,6 +219,10 @@ __decorate([
|
|
|
219
219
|
}),
|
|
220
220
|
__metadata("design:type", Number)
|
|
221
221
|
], OracleSourceConfigInputDto.prototype, "maxStaleSeconds", void 0);
|
|
222
|
+
/**
|
|
223
|
+
* @deprecated v1 primary/anchor config. Prefer {@link AssetOracleConfigInputDto}
|
|
224
|
+
* for the composable price-aggregator.
|
|
225
|
+
*/
|
|
222
226
|
class MarketOracleConfigInputDto {
|
|
223
227
|
}
|
|
224
228
|
exports.MarketOracleConfigInputDto = MarketOracleConfigInputDto;
|
|
@@ -271,3 +275,89 @@ __decorate([
|
|
|
271
275
|
}),
|
|
272
276
|
__metadata("design:type", String)
|
|
273
277
|
], MarketOracleConfigInputDto.prototype, "maxSanityPriceWad", void 0);
|
|
278
|
+
/**
|
|
279
|
+
* Composable on-chain `AssetOracle` input for governance
|
|
280
|
+
* `ConfigureAssetOracle` / price-aggregator `set_oracle`.
|
|
281
|
+
* `sources` mirror PriceSource tagged unions as JSON objects.
|
|
282
|
+
*/
|
|
283
|
+
class AssetOracleConfigInputDto {
|
|
284
|
+
}
|
|
285
|
+
exports.AssetOracleConfigInputDto = AssetOracleConfigInputDto;
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, swagger_1.ApiProperty)({
|
|
288
|
+
type: 'integer',
|
|
289
|
+
description: 'Token decimals (0 for Ref keys)',
|
|
290
|
+
}),
|
|
291
|
+
__metadata("design:type", Number)
|
|
292
|
+
], AssetOracleConfigInputDto.prototype, "assetDecimals", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
(0, swagger_1.ApiProperty)({
|
|
295
|
+
type: 'integer',
|
|
296
|
+
description: 'Asset-level staleness ceiling, seconds',
|
|
297
|
+
}),
|
|
298
|
+
__metadata("design:type", Number)
|
|
299
|
+
], AssetOracleConfigInputDto.prototype, "maxPriceStaleSeconds", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
(0, swagger_1.ApiProperty)({
|
|
302
|
+
type: 'array',
|
|
303
|
+
items: { type: 'object', additionalProperties: true },
|
|
304
|
+
description: 'One or two PriceSource variants (Feed / Scaled / LpShare)',
|
|
305
|
+
}),
|
|
306
|
+
__metadata("design:type", Array)
|
|
307
|
+
], AssetOracleConfigInputDto.prototype, "sources", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
(0, swagger_1.ApiProperty)({
|
|
310
|
+
type: 'integer',
|
|
311
|
+
description: 'Dual-source deviation tolerance band, bps (upper side of reciprocal pair)',
|
|
312
|
+
}),
|
|
313
|
+
__metadata("design:type", Number)
|
|
314
|
+
], AssetOracleConfigInputDto.prototype, "toleranceBps", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
(0, swagger_1.ApiProperty)({
|
|
317
|
+
description: 'Independence: "RequireDisjoint" or { AllowShared: [{ kind, contract }] }',
|
|
318
|
+
}),
|
|
319
|
+
__metadata("design:type", Object)
|
|
320
|
+
], AssetOracleConfigInputDto.prototype, "independence", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
(0, swagger_1.ApiProperty)({
|
|
323
|
+
description: 'Inclusive lower sanity bound, USD WAD decimal string',
|
|
324
|
+
}),
|
|
325
|
+
__metadata("design:type", String)
|
|
326
|
+
], AssetOracleConfigInputDto.prototype, "minSanityPriceWad", void 0);
|
|
327
|
+
__decorate([
|
|
328
|
+
(0, swagger_1.ApiProperty)({
|
|
329
|
+
description: 'Inclusive upper sanity bound, USD WAD decimal string',
|
|
330
|
+
}),
|
|
331
|
+
__metadata("design:type", String)
|
|
332
|
+
], AssetOracleConfigInputDto.prototype, "maxSanityPriceWad", void 0);
|
|
333
|
+
/** `ConfigureAssetOracleArgs` — PriceKey + AssetOracle. */
|
|
334
|
+
class ConfigureAssetOracleArgsDto {
|
|
335
|
+
}
|
|
336
|
+
exports.ConfigureAssetOracleArgsDto = ConfigureAssetOracleArgsDto;
|
|
337
|
+
__decorate([
|
|
338
|
+
(0, swagger_1.ApiProperty)({
|
|
339
|
+
description: 'PriceKey: { Token: "C…" } or { Ref: "BTC" }',
|
|
340
|
+
}),
|
|
341
|
+
__metadata("design:type", Object)
|
|
342
|
+
], ConfigureAssetOracleArgsDto.prototype, "key", void 0);
|
|
343
|
+
__decorate([
|
|
344
|
+
(0, swagger_1.ApiProperty)({ type: AssetOracleConfigInputDto }),
|
|
345
|
+
__metadata("design:type", AssetOracleConfigInputDto)
|
|
346
|
+
], ConfigureAssetOracleArgsDto.prototype, "oracle", void 0);
|
|
347
|
+
/** `EditToleranceArgs` — PriceKey + tolerance bps. */
|
|
348
|
+
class EditOracleToleranceArgsDto {
|
|
349
|
+
}
|
|
350
|
+
exports.EditOracleToleranceArgsDto = EditOracleToleranceArgsDto;
|
|
351
|
+
__decorate([
|
|
352
|
+
(0, swagger_1.ApiProperty)({
|
|
353
|
+
description: 'PriceKey: { Token: "C…" } or { Ref: "BTC" }',
|
|
354
|
+
}),
|
|
355
|
+
__metadata("design:type", Object)
|
|
356
|
+
], EditOracleToleranceArgsDto.prototype, "key", void 0);
|
|
357
|
+
__decorate([
|
|
358
|
+
(0, swagger_1.ApiProperty)({
|
|
359
|
+
type: 'integer',
|
|
360
|
+
description: 'Tolerance band half-width, bps',
|
|
361
|
+
}),
|
|
362
|
+
__metadata("design:type", Number)
|
|
363
|
+
], EditOracleToleranceArgsDto.prototype, "toleranceBps", void 0);
|
|
@@ -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
|
}
|