@xoxno/types 1.0.422 → 1.0.423
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/cosmos-db/documents/lending/lending-emode-category-profile.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +4 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +4 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +32 -0
- package/dist/enums/lending-governance.enum.d.ts +1 -0
- package/dist/enums/lending-governance.enum.js +1 -0
- package/dist/enums/stellar-lending-topic.enum.d.ts +1 -0
- package/dist/enums/stellar-lending-topic.enum.js +1 -0
- package/dist/requests/lending/stellar-lending-admin-args.dto.d.ts +2 -2
- package/dist/requests/lending/stellar-lending-admin-args.dto.js +14 -12
- package/dist/requests/lending/stellar-lending-events.dto.d.ts +13 -1
- package/dist/requests/lending/stellar-lending-events.dto.js +41 -1
- package/package.json +1 -1
|
@@ -14,12 +14,12 @@ export declare class LendingEModeCategoryProfileDoc {
|
|
|
14
14
|
chain: ActivityChain;
|
|
15
15
|
constructor(props?: Partial<LendingEModeCategoryProfileDoc>);
|
|
16
16
|
}
|
|
17
|
-
declare type ShortLendingTokenEModeProfileDoc_base = Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory" | "ltv" | "liquidationThreshold" | "liquidationBonus">;
|
|
17
|
+
declare type ShortLendingTokenEModeProfileDoc_base = Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory" | "ltv" | "liquidationThreshold" | "liquidationBonus" | "supplyCap" | "borrowCap" | "suppliedScaledRay" | "borrowedScaledRay">;
|
|
18
18
|
export declare type ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc_base ;
|
|
19
|
-
declare const ShortLendingTokenEModeProfileDocNest_base: import("@nestjs/common").Type<Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory" | "ltv" | "liquidationThreshold" | "liquidationBonus">>;
|
|
19
|
+
declare const ShortLendingTokenEModeProfileDocNest_base: import("@nestjs/common").Type<Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory" | "ltv" | "liquidationThreshold" | "liquidationBonus" | "supplyCap" | "borrowCap" | "suppliedScaledRay" | "borrowedScaledRay">>;
|
|
20
20
|
export declare class ShortLendingTokenEModeProfileDocNest extends ShortLendingTokenEModeProfileDocNest_base {
|
|
21
21
|
}
|
|
22
22
|
export declare class LendingEModeCategoryProfile extends LendingEModeCategoryProfileDoc {
|
|
23
|
-
eModeTokenProfiles: Pick<LendingTokenEModeProfileDoc, 'token' | 'name' | 'canBeBorrowed' | 'canBeCollateral' | 'eModeCategory' | 'ltv' | 'liquidationThreshold' | 'liquidationBonus'>[];
|
|
23
|
+
eModeTokenProfiles: Pick<LendingTokenEModeProfileDoc, 'token' | 'name' | 'canBeBorrowed' | 'canBeCollateral' | 'eModeCategory' | 'ltv' | 'liquidationThreshold' | 'liquidationBonus' | 'supplyCap' | 'borrowCap' | 'suppliedScaledRay' | 'borrowedScaledRay'>[];
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -102,6 +102,10 @@ class ShortLendingTokenEModeProfileDoc extends (0, swagger_1.PickType)(lending_t
|
|
|
102
102
|
'ltv',
|
|
103
103
|
'liquidationThreshold',
|
|
104
104
|
'liquidationBonus',
|
|
105
|
+
'supplyCap',
|
|
106
|
+
'borrowCap',
|
|
107
|
+
'suppliedScaledRay',
|
|
108
|
+
'borrowedScaledRay',
|
|
105
109
|
]) {
|
|
106
110
|
}
|
|
107
111
|
exports.ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc;
|
|
@@ -10,6 +10,10 @@ export declare class LendingTokenEModeProfileDoc {
|
|
|
10
10
|
ltv?: string;
|
|
11
11
|
liquidationThreshold?: string;
|
|
12
12
|
liquidationBonus?: string;
|
|
13
|
+
supplyCap?: string;
|
|
14
|
+
borrowCap?: string;
|
|
15
|
+
suppliedScaledRay?: string;
|
|
16
|
+
borrowedScaledRay?: string;
|
|
13
17
|
id: string;
|
|
14
18
|
pk: string;
|
|
15
19
|
_ts: number;
|
|
@@ -92,6 +92,38 @@ __decorate([
|
|
|
92
92
|
}),
|
|
93
93
|
__metadata("design:type", String)
|
|
94
94
|
], LendingTokenEModeProfileDoc.prototype, "liquidationBonus", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)({
|
|
97
|
+
description: 'Spoke supply cap in asset-native units (0 = uncapped). Stellar e-mode only.',
|
|
98
|
+
required: false,
|
|
99
|
+
example: '100000000000000',
|
|
100
|
+
}),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], LendingTokenEModeProfileDoc.prototype, "supplyCap", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({
|
|
105
|
+
description: 'Spoke borrow cap in asset-native units (0 = uncapped). Stellar e-mode only.',
|
|
106
|
+
required: false,
|
|
107
|
+
example: '100000000000000',
|
|
108
|
+
}),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], LendingTokenEModeProfileDoc.prototype, "borrowCap", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)({
|
|
113
|
+
description: 'Aggregate supplied scaled amount (RAY) tracked for this asset within the spoke. Stellar indexer only.',
|
|
114
|
+
required: false,
|
|
115
|
+
example: '0',
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], LendingTokenEModeProfileDoc.prototype, "suppliedScaledRay", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)({
|
|
121
|
+
description: 'Aggregate borrowed scaled amount (RAY) tracked for this asset within the spoke. Stellar indexer only.',
|
|
122
|
+
required: false,
|
|
123
|
+
example: '0',
|
|
124
|
+
}),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], LendingTokenEModeProfileDoc.prototype, "borrowedScaledRay", void 0);
|
|
95
127
|
__decorate([
|
|
96
128
|
(0, swagger_1.ApiProperty)({
|
|
97
129
|
description: 'Cosmos DB document identifier',
|
|
@@ -22,6 +22,7 @@ export declare enum GovernanceProposalKind {
|
|
|
22
22
|
RevokeToken = "RevokeToken",
|
|
23
23
|
CreateLiquidityPool = "CreateLiquidityPool",
|
|
24
24
|
UpgradeLiquidityPoolParams = "UpgradeLiquidityPoolParams",
|
|
25
|
+
UpdatePoolCaps = "UpdatePoolCaps",
|
|
25
26
|
DeployPool = "DeployPool",
|
|
26
27
|
UpgradePool = "UpgradePool",
|
|
27
28
|
GrantControllerRole = "GrantControllerRole",
|
|
@@ -26,6 +26,7 @@ var GovernanceProposalKind;
|
|
|
26
26
|
GovernanceProposalKind["RevokeToken"] = "RevokeToken";
|
|
27
27
|
GovernanceProposalKind["CreateLiquidityPool"] = "CreateLiquidityPool";
|
|
28
28
|
GovernanceProposalKind["UpgradeLiquidityPoolParams"] = "UpgradeLiquidityPoolParams";
|
|
29
|
+
GovernanceProposalKind["UpdatePoolCaps"] = "UpdatePoolCaps";
|
|
29
30
|
GovernanceProposalKind["DeployPool"] = "DeployPool";
|
|
30
31
|
GovernanceProposalKind["UpgradePool"] = "UpgradePool";
|
|
31
32
|
GovernanceProposalKind["GrantControllerRole"] = "GrantControllerRole";
|
|
@@ -6,6 +6,7 @@ export declare enum StellarLendingTopic {
|
|
|
6
6
|
MarketCreate = "market:create",
|
|
7
7
|
MarketParamsUpdate = "market:params_update",
|
|
8
8
|
MarketStateBatchUpdate = "market:batch_state_update",
|
|
9
|
+
MarketParamsBatchUpdate = "market:batch_params_update",
|
|
9
10
|
PositionBatchUpdate = "position:batch_update",
|
|
10
11
|
PositionFlashLoan = "position:flash_loan",
|
|
11
12
|
ConfigAsset = "config:asset",
|
|
@@ -10,6 +10,7 @@ var StellarLendingTopic;
|
|
|
10
10
|
StellarLendingTopic["MarketCreate"] = "market:create";
|
|
11
11
|
StellarLendingTopic["MarketParamsUpdate"] = "market:params_update";
|
|
12
12
|
StellarLendingTopic["MarketStateBatchUpdate"] = "market:batch_state_update";
|
|
13
|
+
StellarLendingTopic["MarketParamsBatchUpdate"] = "market:batch_params_update";
|
|
13
14
|
StellarLendingTopic["PositionBatchUpdate"] = "position:batch_update";
|
|
14
15
|
StellarLendingTopic["PositionFlashLoan"] = "position:flash_loan";
|
|
15
16
|
StellarLendingTopic["ConfigAsset"] = "config:asset";
|
|
@@ -23,6 +23,8 @@ export declare class InterestRateModelDto {
|
|
|
23
23
|
export declare class MarketParamsRawDto extends InterestRateModelDto {
|
|
24
24
|
assetId: string;
|
|
25
25
|
assetDecimals: number;
|
|
26
|
+
supplyCap: string;
|
|
27
|
+
borrowCap: string;
|
|
26
28
|
}
|
|
27
29
|
export declare class AssetConfigRawDto {
|
|
28
30
|
loanToValueBps: number;
|
|
@@ -33,8 +35,6 @@ export declare class AssetConfigRawDto {
|
|
|
33
35
|
isBorrowable: boolean;
|
|
34
36
|
isFlashloanable: boolean;
|
|
35
37
|
flashloanFeeBps: number;
|
|
36
|
-
borrowCap: string;
|
|
37
|
-
supplyCap: string;
|
|
38
38
|
eModeCategories: number[];
|
|
39
39
|
}
|
|
40
40
|
export declare class PositionLimitsDto {
|
|
@@ -81,6 +81,20 @@ __decorate([
|
|
|
81
81
|
}),
|
|
82
82
|
__metadata("design:type", Number)
|
|
83
83
|
], MarketParamsRawDto.prototype, "assetDecimals", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Hub supply cap in asset-native units (0 = uncapped). Lives on the pool MarketParamsRaw.',
|
|
87
|
+
example: '100000000000000',
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], MarketParamsRawDto.prototype, "supplyCap", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)({
|
|
93
|
+
description: 'Hub borrow cap in asset-native units (0 = uncapped). Lives on the pool MarketParamsRaw.',
|
|
94
|
+
example: '100000000000000',
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], MarketParamsRawDto.prototype, "borrowCap", void 0);
|
|
84
98
|
class AssetConfigRawDto {
|
|
85
99
|
}
|
|
86
100
|
exports.AssetConfigRawDto = AssetConfigRawDto;
|
|
@@ -116,18 +130,6 @@ __decorate([
|
|
|
116
130
|
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'Flash-loan fee, bps' }),
|
|
117
131
|
__metadata("design:type", Number)
|
|
118
132
|
], AssetConfigRawDto.prototype, "flashloanFeeBps", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, swagger_1.ApiProperty)({
|
|
121
|
-
description: 'Borrow cap, asset units decimal string (0 = uncapped)',
|
|
122
|
-
}),
|
|
123
|
-
__metadata("design:type", String)
|
|
124
|
-
], AssetConfigRawDto.prototype, "borrowCap", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, swagger_1.ApiProperty)({
|
|
127
|
-
description: 'Supply cap, asset units decimal string (0 = uncapped)',
|
|
128
|
-
}),
|
|
129
|
-
__metadata("design:type", String)
|
|
130
|
-
], AssetConfigRawDto.prototype, "supplyCap", void 0);
|
|
131
133
|
__decorate([
|
|
132
134
|
(0, swagger_1.ApiProperty)({
|
|
133
135
|
type: 'integer',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssetConfigRawDto } from './stellar-lending-admin-args.dto';
|
|
1
|
+
import { AssetConfigRawDto, MarketParamsRawDto } from './stellar-lending-admin-args.dto';
|
|
2
2
|
import { StellarLendingOracleUpdateStruct } from '../../cosmos-db/documents/lending/lending-oracle';
|
|
3
3
|
/**
|
|
4
4
|
* Decoded Stellar lending event payload types.
|
|
@@ -40,6 +40,8 @@ export declare class StellarEModeAssetConfig {
|
|
|
40
40
|
loanToValueBps: number;
|
|
41
41
|
liquidationThresholdBps: number;
|
|
42
42
|
liquidationBonusBps: number;
|
|
43
|
+
supplyCap: string;
|
|
44
|
+
borrowCap: string;
|
|
43
45
|
}
|
|
44
46
|
export declare class StellarCreateMarketEvent {
|
|
45
47
|
baseAsset: string;
|
|
@@ -67,6 +69,13 @@ export declare class StellarUpdateMarketParamsEvent {
|
|
|
67
69
|
maxUtilizationRay?: string;
|
|
68
70
|
reserveFactorBps: number;
|
|
69
71
|
}
|
|
72
|
+
export declare class StellarPoolMarketParamsUpdate {
|
|
73
|
+
asset: string;
|
|
74
|
+
params: MarketParamsRawDto;
|
|
75
|
+
}
|
|
76
|
+
export declare class StellarUpdateMarketParamsBatchEvent {
|
|
77
|
+
updates: StellarPoolMarketParamsUpdate[];
|
|
78
|
+
}
|
|
70
79
|
export declare class StellarUpdateMarketStateBatchEvent {
|
|
71
80
|
updates: StellarMarketStateSnapshot[];
|
|
72
81
|
}
|
|
@@ -150,6 +159,9 @@ export type StellarLendingDecodedEvent = {
|
|
|
150
159
|
} | {
|
|
151
160
|
topic: 'market:batch_state_update';
|
|
152
161
|
data: StellarUpdateMarketStateBatchEvent;
|
|
162
|
+
} | {
|
|
163
|
+
topic: 'market:batch_params_update';
|
|
164
|
+
data: StellarUpdateMarketParamsBatchEvent;
|
|
153
165
|
} | {
|
|
154
166
|
topic: 'position:batch_update';
|
|
155
167
|
data: StellarUpdatePositionBatchEvent;
|
|
@@ -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.StellarOracleTwapDegradedEvent = exports.StellarOracleDisabledEvent = exports.StellarUpdatePositionLimitsEvent = exports.StellarUpdatePoolTemplateEvent = exports.StellarUpdateAccumulatorEvent = exports.StellarUpdateAggregatorEvent = exports.StellarApproveTokenEvent = exports.StellarInitialMultiplyPaymentEvent = exports.StellarCleanBadDebtEvent = exports.StellarRemoveEModeAssetEvent = exports.StellarUpdateEModeAssetEvent = exports.StellarUpdateEModeCategoryEvent = exports.StellarUpdateAssetOracleEvent = exports.StellarUpdateAssetConfigEvent = exports.StellarFlashLoanEvent = exports.StellarUpdatePositionBatchEvent = exports.StellarUpdateMarketStateBatchEvent = exports.StellarUpdateMarketParamsEvent = exports.StellarCreateMarketEvent = exports.StellarEModeAssetConfig = exports.StellarEventEModeCategory = exports.StellarEventPositionDelta = exports.StellarEventAccountAttributes = exports.StellarMarketStateSnapshot = void 0;
|
|
12
|
+
exports.StellarOracleTwapDegradedEvent = exports.StellarOracleDisabledEvent = exports.StellarUpdatePositionLimitsEvent = exports.StellarUpdatePoolTemplateEvent = exports.StellarUpdateAccumulatorEvent = exports.StellarUpdateAggregatorEvent = exports.StellarApproveTokenEvent = exports.StellarInitialMultiplyPaymentEvent = exports.StellarCleanBadDebtEvent = exports.StellarRemoveEModeAssetEvent = exports.StellarUpdateEModeAssetEvent = exports.StellarUpdateEModeCategoryEvent = exports.StellarUpdateAssetOracleEvent = exports.StellarUpdateAssetConfigEvent = exports.StellarFlashLoanEvent = exports.StellarUpdatePositionBatchEvent = exports.StellarUpdateMarketStateBatchEvent = exports.StellarUpdateMarketParamsBatchEvent = exports.StellarPoolMarketParamsUpdate = exports.StellarUpdateMarketParamsEvent = exports.StellarCreateMarketEvent = exports.StellarEModeAssetConfig = exports.StellarEventEModeCategory = exports.StellarEventPositionDelta = exports.StellarEventAccountAttributes = exports.StellarMarketStateSnapshot = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const lending_enum_1 = require("../../enums/lending.enum");
|
|
15
15
|
const stellar_lending_admin_args_dto_1 = require("./stellar-lending-admin-args.dto");
|
|
@@ -210,6 +210,20 @@ __decorate([
|
|
|
210
210
|
}),
|
|
211
211
|
__metadata("design:type", Number)
|
|
212
212
|
], StellarEModeAssetConfig.prototype, "liquidationBonusBps", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, swagger_1.ApiProperty)({
|
|
215
|
+
description: 'Spoke supply cap in asset-native units (0 = uncapped). Enforced per e-mode category.',
|
|
216
|
+
example: '0',
|
|
217
|
+
}),
|
|
218
|
+
__metadata("design:type", String)
|
|
219
|
+
], StellarEModeAssetConfig.prototype, "supplyCap", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, swagger_1.ApiProperty)({
|
|
222
|
+
description: 'Spoke borrow cap in asset-native units (0 = uncapped). Enforced per e-mode category.',
|
|
223
|
+
example: '0',
|
|
224
|
+
}),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], StellarEModeAssetConfig.prototype, "borrowCap", void 0);
|
|
213
227
|
// ---------- topic: market:create ----------
|
|
214
228
|
class StellarCreateMarketEvent {
|
|
215
229
|
}
|
|
@@ -312,6 +326,32 @@ __decorate([
|
|
|
312
326
|
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'Reserve factor, bps' }),
|
|
313
327
|
__metadata("design:type", Number)
|
|
314
328
|
], StellarUpdateMarketParamsEvent.prototype, "reserveFactorBps", void 0);
|
|
329
|
+
class StellarPoolMarketParamsUpdate {
|
|
330
|
+
}
|
|
331
|
+
exports.StellarPoolMarketParamsUpdate = StellarPoolMarketParamsUpdate;
|
|
332
|
+
__decorate([
|
|
333
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Pool asset address' }),
|
|
334
|
+
__metadata("design:type", String)
|
|
335
|
+
], StellarPoolMarketParamsUpdate.prototype, "asset", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
(0, swagger_1.ApiProperty)({
|
|
338
|
+
type: stellar_lending_admin_args_dto_1.MarketParamsRawDto,
|
|
339
|
+
description: 'Full pool market params including hub caps',
|
|
340
|
+
}),
|
|
341
|
+
__metadata("design:type", stellar_lending_admin_args_dto_1.MarketParamsRawDto)
|
|
342
|
+
], StellarPoolMarketParamsUpdate.prototype, "params", void 0);
|
|
343
|
+
// ---------- topic: market:batch_params_update ----------
|
|
344
|
+
class StellarUpdateMarketParamsBatchEvent {
|
|
345
|
+
}
|
|
346
|
+
exports.StellarUpdateMarketParamsBatchEvent = StellarUpdateMarketParamsBatchEvent;
|
|
347
|
+
__decorate([
|
|
348
|
+
(0, swagger_1.ApiProperty)({
|
|
349
|
+
type: StellarPoolMarketParamsUpdate,
|
|
350
|
+
isArray: true,
|
|
351
|
+
description: 'Per-asset hub cap / params updates from the central pool',
|
|
352
|
+
}),
|
|
353
|
+
__metadata("design:type", Array)
|
|
354
|
+
], StellarUpdateMarketParamsBatchEvent.prototype, "updates", void 0);
|
|
315
355
|
// ---------- topic: market:batch_state_update ----------
|
|
316
356
|
class StellarUpdateMarketStateBatchEvent {
|
|
317
357
|
}
|