@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
|
@@ -49,7 +49,7 @@ __decorate([
|
|
|
49
49
|
], LendingPositionStatus.prototype, "borrowed", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, swagger_1.ApiProperty)({
|
|
52
|
-
description: '
|
|
52
|
+
description: 'Health factor of the lending account. Stellar (StellarGetLendingPositions): debt / liquidation-weighted collateral × 100 — higher is riskier; >= 100 is liquidatable. MVX uses the same liquidatable threshold (>= 100) on GetLendingPositions. Do not invert the Stellar formula.',
|
|
53
53
|
example: 30,
|
|
54
54
|
}),
|
|
55
55
|
__metadata("design:type", Number)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExchangeSource, LendingOracleAssetRefKind, LendingOracleProviderKind, LendingOracleReadMode,
|
|
1
|
+
import { ExchangeSource, LendingOracleAssetRefKind, LendingOracleProviderKind, LendingOracleReadMode, OracleType, PricingMethod } from '../../../enums/lending.enum';
|
|
2
2
|
export declare class OraclePriceFluctuation {
|
|
3
3
|
upperRatio: number;
|
|
4
4
|
lowerRatio: number;
|
|
@@ -34,19 +34,20 @@ export declare class LendingOracleUpdateStruct {
|
|
|
34
34
|
maxPriceStaleSeconds: number;
|
|
35
35
|
constructor(init?: Partial<LendingOracleUpdateStruct>);
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* API / swagger projection of on-chain `AssetOracle` for Stellar
|
|
39
|
+
* `config:asset_oracle`. Sources are opaque JSON objects matching
|
|
40
|
+
* {@link import('../../../stellar-lending/oracle-provider').StellarPriceSource}
|
|
41
|
+
* so swagger stays stable without nesting every provider variant.
|
|
42
|
+
*/
|
|
37
43
|
export declare class StellarLendingOracleUpdateStruct {
|
|
38
|
-
baseTokenId: string;
|
|
39
|
-
quoteTokenId: string;
|
|
40
|
-
tolerance: OraclePriceFluctuation;
|
|
41
44
|
assetDecimals: number;
|
|
42
45
|
maxPriceStaleSeconds: number;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
minSanityPriceWad?: string;
|
|
49
|
-
maxSanityPriceWad?: string;
|
|
46
|
+
sources: Record<string, unknown>[];
|
|
47
|
+
tolerance: OraclePriceFluctuation;
|
|
48
|
+
independence: string | Record<string, unknown>;
|
|
49
|
+
minSanityPriceWad: string;
|
|
50
|
+
maxSanityPriceWad: string;
|
|
50
51
|
constructor(init?: Partial<StellarLendingOracleUpdateStruct>);
|
|
51
52
|
}
|
|
52
53
|
export type LendingOracleProvider = LendingOracleUpdateStruct | StellarLendingOracleUpdateStruct;
|
|
@@ -215,101 +215,59 @@ __decorate([
|
|
|
215
215
|
}),
|
|
216
216
|
__metadata("design:type", Number)
|
|
217
217
|
], LendingOracleUpdateStruct.prototype, "maxPriceStaleSeconds", void 0);
|
|
218
|
+
/**
|
|
219
|
+
* API / swagger projection of on-chain `AssetOracle` for Stellar
|
|
220
|
+
* `config:asset_oracle`. Sources are opaque JSON objects matching
|
|
221
|
+
* {@link import('../../../stellar-lending/oracle-provider').StellarPriceSource}
|
|
222
|
+
* so swagger stays stable without nesting every provider variant.
|
|
223
|
+
*/
|
|
218
224
|
class StellarLendingOracleUpdateStruct {
|
|
219
225
|
constructor(init) {
|
|
220
226
|
Object.assign(this, init);
|
|
221
227
|
if (init?.tolerance) {
|
|
222
228
|
this.tolerance = new OraclePriceFluctuation(init.tolerance);
|
|
223
229
|
}
|
|
224
|
-
if (init?.primary) {
|
|
225
|
-
this.primary = new LendingOracleSource(init.primary);
|
|
226
|
-
}
|
|
227
|
-
if (init?.anchor) {
|
|
228
|
-
this.anchor = new LendingOracleSource(init.anchor);
|
|
229
|
-
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
exports.StellarLendingOracleUpdateStruct = StellarLendingOracleUpdateStruct;
|
|
233
|
-
__decorate([
|
|
234
|
-
(0, swagger_1.ApiProperty)({
|
|
235
|
-
type: String,
|
|
236
|
-
description: 'Base token identifier',
|
|
237
|
-
}),
|
|
238
|
-
__metadata("design:type", String)
|
|
239
|
-
], StellarLendingOracleUpdateStruct.prototype, "baseTokenId", void 0);
|
|
240
|
-
__decorate([
|
|
241
|
-
(0, swagger_1.ApiProperty)({
|
|
242
|
-
type: String,
|
|
243
|
-
description: 'Quote token identifier',
|
|
244
|
-
}),
|
|
245
|
-
__metadata("design:type", String)
|
|
246
|
-
], StellarLendingOracleUpdateStruct.prototype, "quoteTokenId", void 0);
|
|
247
|
-
__decorate([
|
|
248
|
-
(0, swagger_1.ApiProperty)({
|
|
249
|
-
type: OraclePriceFluctuation,
|
|
250
|
-
description: 'Price fluctuation tolerance thresholds',
|
|
251
|
-
}),
|
|
252
|
-
__metadata("design:type", OraclePriceFluctuation)
|
|
253
|
-
], StellarLendingOracleUpdateStruct.prototype, "tolerance", void 0);
|
|
254
233
|
__decorate([
|
|
255
234
|
(0, swagger_1.ApiProperty)({
|
|
256
235
|
type: 'integer',
|
|
257
|
-
description: '
|
|
236
|
+
description: 'Token decimals (0 for PriceKey::Ref). Matches on-chain asset_decimals.',
|
|
258
237
|
}),
|
|
259
238
|
__metadata("design:type", Number)
|
|
260
239
|
], StellarLendingOracleUpdateStruct.prototype, "assetDecimals", void 0);
|
|
261
240
|
__decorate([
|
|
262
241
|
(0, swagger_1.ApiProperty)({
|
|
263
242
|
type: 'integer',
|
|
264
|
-
description: '
|
|
243
|
+
description: 'Asset-level staleness ceiling in seconds',
|
|
265
244
|
}),
|
|
266
245
|
__metadata("design:type", Number)
|
|
267
246
|
], StellarLendingOracleUpdateStruct.prototype, "maxPriceStaleSeconds", void 0);
|
|
268
247
|
__decorate([
|
|
269
248
|
(0, swagger_1.ApiProperty)({
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
description: '
|
|
273
|
-
}),
|
|
274
|
-
__metadata("design:type", String)
|
|
275
|
-
], StellarLendingOracleUpdateStruct.prototype, "strategy", void 0);
|
|
276
|
-
__decorate([
|
|
277
|
-
(0, swagger_1.ApiProperty)({
|
|
278
|
-
type: LendingOracleSource,
|
|
279
|
-
description: 'Primary oracle source',
|
|
280
|
-
}),
|
|
281
|
-
__metadata("design:type", LendingOracleSource)
|
|
282
|
-
], StellarLendingOracleUpdateStruct.prototype, "primary", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
(0, swagger_1.ApiProperty)({
|
|
285
|
-
type: LendingOracleSource,
|
|
286
|
-
required: false,
|
|
287
|
-
description: 'Optional anchor oracle source',
|
|
249
|
+
type: 'array',
|
|
250
|
+
items: { type: 'object', additionalProperties: true },
|
|
251
|
+
description: 'One or two PriceSource variants (Feed / Scaled / LpShare) as decoded from chain',
|
|
288
252
|
}),
|
|
289
|
-
__metadata("design:type",
|
|
290
|
-
], StellarLendingOracleUpdateStruct.prototype, "
|
|
253
|
+
__metadata("design:type", Array)
|
|
254
|
+
], StellarLendingOracleUpdateStruct.prototype, "sources", void 0);
|
|
291
255
|
__decorate([
|
|
292
256
|
(0, swagger_1.ApiProperty)({
|
|
293
|
-
type:
|
|
294
|
-
|
|
295
|
-
required: false,
|
|
296
|
-
description: 'Quote currency of the primary oracle feed. null = USD-quoted (common case) or RedStone source; non-null = Stellar quote token (e.g. USDC SAC) repriced to USD on-chain',
|
|
257
|
+
type: OraclePriceFluctuation,
|
|
258
|
+
description: 'Dual-source agreement band (BPS); ignored for single source',
|
|
297
259
|
}),
|
|
298
|
-
__metadata("design:type",
|
|
299
|
-
], StellarLendingOracleUpdateStruct.prototype, "
|
|
260
|
+
__metadata("design:type", OraclePriceFluctuation)
|
|
261
|
+
], StellarLendingOracleUpdateStruct.prototype, "tolerance", void 0);
|
|
300
262
|
__decorate([
|
|
301
263
|
(0, swagger_1.ApiProperty)({
|
|
302
|
-
|
|
303
|
-
nullable: true,
|
|
304
|
-
required: false,
|
|
305
|
-
description: 'Quote currency of the anchor oracle feed. null = no anchor, USD-quoted, or RedStone source; non-null = Stellar quote token (e.g. USDC SAC) repriced to USD on-chain',
|
|
264
|
+
description: 'Independence policy: string "RequireDisjoint" or object AllowShared domains',
|
|
306
265
|
}),
|
|
307
266
|
__metadata("design:type", Object)
|
|
308
|
-
], StellarLendingOracleUpdateStruct.prototype, "
|
|
267
|
+
], StellarLendingOracleUpdateStruct.prototype, "independence", void 0);
|
|
309
268
|
__decorate([
|
|
310
269
|
(0, swagger_1.ApiProperty)({
|
|
311
270
|
type: String,
|
|
312
|
-
required: false,
|
|
313
271
|
description: 'Inclusive lower sanity bound, USD WAD decimal string',
|
|
314
272
|
}),
|
|
315
273
|
__metadata("design:type", String)
|
|
@@ -317,7 +275,6 @@ __decorate([
|
|
|
317
275
|
__decorate([
|
|
318
276
|
(0, swagger_1.ApiProperty)({
|
|
319
277
|
type: String,
|
|
320
|
-
required: false,
|
|
321
278
|
description: 'Inclusive upper sanity bound, USD WAD decimal string',
|
|
322
279
|
}),
|
|
323
280
|
__metadata("design:type", String)
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Stellar lending governance (timelock) proposal taxonomy.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* symbol to one of these so the dashboard can title and group proposals.
|
|
4
|
+
* Mirrors live `AdminOperation` variants. Shared with MVX-era names kept only
|
|
5
|
+
* as deprecated aliases where the old string matched a renamed variant.
|
|
7
6
|
*/
|
|
8
7
|
export declare enum GovernanceProposalKind {
|
|
9
|
-
|
|
8
|
+
SetSwapAggregator = "SetSwapAggregator",
|
|
9
|
+
SetPriceAggregator = "SetPriceAggregator",
|
|
10
10
|
SetAccumulator = "SetAccumulator",
|
|
11
|
-
SetPoolTemplate = "SetPoolTemplate",
|
|
12
11
|
SetPositionLimits = "SetPositionLimits",
|
|
13
|
-
|
|
12
|
+
SetMinBorrowCollateralUsd = "SetMinBorrowCollateralUsd",
|
|
14
13
|
SetPositionManager = "SetPositionManager",
|
|
15
14
|
CreateHub = "CreateHub",
|
|
16
15
|
AddSpoke = "AddSpoke",
|
|
@@ -19,8 +18,6 @@ export declare enum GovernanceProposalKind {
|
|
|
19
18
|
EditAssetInSpoke = "EditAssetInSpoke",
|
|
20
19
|
RemoveAssetFromSpoke = "RemoveAssetFromSpoke",
|
|
21
20
|
SetSpokeLiquidationCurve = "SetSpokeLiquidationCurve",
|
|
22
|
-
ApproveToken = "ApproveToken",
|
|
23
|
-
RevokeToken = "RevokeToken",
|
|
24
21
|
ApproveBlendPool = "ApproveBlendPool",
|
|
25
22
|
RevokeBlendPool = "RevokeBlendPool",
|
|
26
23
|
CreateLiquidityPool = "CreateLiquidityPool",
|
|
@@ -29,36 +26,36 @@ export declare enum GovernanceProposalKind {
|
|
|
29
26
|
UpgradePool = "UpgradePool",
|
|
30
27
|
UpgradeController = "UpgradeController",
|
|
31
28
|
MigrateController = "MigrateController",
|
|
32
|
-
|
|
33
|
-
ConfigureMarketOracle = "ConfigureMarketOracle",
|
|
29
|
+
TransferCtrlOwnership = "TransferCtrlOwnership",
|
|
34
30
|
EditOracleTolerance = "EditOracleTolerance",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
*/
|
|
31
|
+
ForceSocializeBadDebt = "ForceSocializeBadDebt",
|
|
32
|
+
Unpause = "Unpause",
|
|
33
|
+
UpgradeGov = "UpgradeGov",
|
|
34
|
+
UpdateGovDelay = "UpdateGovDelay",
|
|
35
|
+
GrantGovRole = "GrantGovRole",
|
|
36
|
+
RevokeGovRole = "RevokeGovRole",
|
|
37
|
+
TransferGovOwnership = "TransferGovOwnership",
|
|
38
|
+
ConfigureAssetOracle = "ConfigureAssetOracle",
|
|
44
39
|
CancellerReset = "CancellerReset",
|
|
40
|
+
/** @deprecated Use `SetSwapAggregator`. */
|
|
41
|
+
SetAggregator = "SetSwapAggregator",
|
|
42
|
+
/** @deprecated Use `ConfigureAssetOracle`. */
|
|
43
|
+
ConfigureMarketOracle = "ConfigureAssetOracle",
|
|
44
|
+
/** @deprecated Use `ApproveBlendPool`. */
|
|
45
|
+
ApproveToken = "ApproveBlendPool",
|
|
46
|
+
/** @deprecated Removed from live AdminOperation. */
|
|
47
|
+
SetPoolTemplate = "SetPoolTemplate",
|
|
48
|
+
/** @deprecated Removed from live AdminOperation. */
|
|
49
|
+
RevokeToken = "RevokeToken",
|
|
45
50
|
Unknown = "Unknown"
|
|
46
51
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Coarse, event-derived proposal status. `Waiting`/`Ready`/`Expired` are NOT
|
|
49
|
-
* stored on-chain — clients derive them from `readyLedger`, `expiresLedger`,
|
|
50
|
-
* and the current ledger.
|
|
51
|
-
*/
|
|
52
52
|
export declare enum GovernanceProposalStatus {
|
|
53
53
|
Pending = "Pending",
|
|
54
54
|
Executed = "Executed",
|
|
55
55
|
Cancelled = "Cancelled"
|
|
56
56
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Whether executing the proposal invokes the lending controller (generic
|
|
59
|
-
* `execute`) or the governance contract itself (`execute_self`).
|
|
60
|
-
*/
|
|
61
57
|
export declare enum GovernanceProposalTarget {
|
|
62
58
|
Controller = "Controller",
|
|
63
|
-
Governance = "Governance"
|
|
59
|
+
Governance = "Governance",
|
|
60
|
+
PriceAggregator = "PriceAggregator"
|
|
64
61
|
}
|
|
@@ -4,17 +4,16 @@ exports.GovernanceProposalTarget = exports.GovernanceProposalStatus = exports.Go
|
|
|
4
4
|
/**
|
|
5
5
|
* Stellar lending governance (timelock) proposal taxonomy.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* symbol to one of these so the dashboard can title and group proposals.
|
|
7
|
+
* Mirrors live `AdminOperation` variants. Shared with MVX-era names kept only
|
|
8
|
+
* as deprecated aliases where the old string matched a renamed variant.
|
|
10
9
|
*/
|
|
11
10
|
var GovernanceProposalKind;
|
|
12
11
|
(function (GovernanceProposalKind) {
|
|
13
|
-
GovernanceProposalKind["
|
|
12
|
+
GovernanceProposalKind["SetSwapAggregator"] = "SetSwapAggregator";
|
|
13
|
+
GovernanceProposalKind["SetPriceAggregator"] = "SetPriceAggregator";
|
|
14
14
|
GovernanceProposalKind["SetAccumulator"] = "SetAccumulator";
|
|
15
|
-
GovernanceProposalKind["SetPoolTemplate"] = "SetPoolTemplate";
|
|
16
15
|
GovernanceProposalKind["SetPositionLimits"] = "SetPositionLimits";
|
|
17
|
-
GovernanceProposalKind["
|
|
16
|
+
GovernanceProposalKind["SetMinBorrowCollateralUsd"] = "SetMinBorrowCollateralUsd";
|
|
18
17
|
GovernanceProposalKind["SetPositionManager"] = "SetPositionManager";
|
|
19
18
|
GovernanceProposalKind["CreateHub"] = "CreateHub";
|
|
20
19
|
GovernanceProposalKind["AddSpoke"] = "AddSpoke";
|
|
@@ -23,8 +22,6 @@ var GovernanceProposalKind;
|
|
|
23
22
|
GovernanceProposalKind["EditAssetInSpoke"] = "EditAssetInSpoke";
|
|
24
23
|
GovernanceProposalKind["RemoveAssetFromSpoke"] = "RemoveAssetFromSpoke";
|
|
25
24
|
GovernanceProposalKind["SetSpokeLiquidationCurve"] = "SetSpokeLiquidationCurve";
|
|
26
|
-
GovernanceProposalKind["ApproveToken"] = "ApproveToken";
|
|
27
|
-
GovernanceProposalKind["RevokeToken"] = "RevokeToken";
|
|
28
25
|
GovernanceProposalKind["ApproveBlendPool"] = "ApproveBlendPool";
|
|
29
26
|
GovernanceProposalKind["RevokeBlendPool"] = "RevokeBlendPool";
|
|
30
27
|
GovernanceProposalKind["CreateLiquidityPool"] = "CreateLiquidityPool";
|
|
@@ -33,38 +30,38 @@ var GovernanceProposalKind;
|
|
|
33
30
|
GovernanceProposalKind["UpgradePool"] = "UpgradePool";
|
|
34
31
|
GovernanceProposalKind["UpgradeController"] = "UpgradeController";
|
|
35
32
|
GovernanceProposalKind["MigrateController"] = "MigrateController";
|
|
36
|
-
GovernanceProposalKind["
|
|
37
|
-
GovernanceProposalKind["ConfigureMarketOracle"] = "ConfigureMarketOracle";
|
|
33
|
+
GovernanceProposalKind["TransferCtrlOwnership"] = "TransferCtrlOwnership";
|
|
38
34
|
GovernanceProposalKind["EditOracleTolerance"] = "EditOracleTolerance";
|
|
39
|
-
GovernanceProposalKind["
|
|
40
|
-
GovernanceProposalKind["
|
|
41
|
-
GovernanceProposalKind["
|
|
42
|
-
GovernanceProposalKind["
|
|
43
|
-
GovernanceProposalKind["
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*/
|
|
35
|
+
GovernanceProposalKind["ForceSocializeBadDebt"] = "ForceSocializeBadDebt";
|
|
36
|
+
GovernanceProposalKind["Unpause"] = "Unpause";
|
|
37
|
+
GovernanceProposalKind["UpgradeGov"] = "UpgradeGov";
|
|
38
|
+
GovernanceProposalKind["UpdateGovDelay"] = "UpdateGovDelay";
|
|
39
|
+
GovernanceProposalKind["GrantGovRole"] = "GrantGovRole";
|
|
40
|
+
GovernanceProposalKind["RevokeGovRole"] = "RevokeGovRole";
|
|
41
|
+
GovernanceProposalKind["TransferGovOwnership"] = "TransferGovOwnership";
|
|
42
|
+
GovernanceProposalKind["ConfigureAssetOracle"] = "ConfigureAssetOracle";
|
|
48
43
|
GovernanceProposalKind["CancellerReset"] = "CancellerReset";
|
|
44
|
+
/** @deprecated Use `SetSwapAggregator`. */
|
|
45
|
+
GovernanceProposalKind["SetAggregator"] = "SetSwapAggregator";
|
|
46
|
+
/** @deprecated Use `ConfigureAssetOracle`. */
|
|
47
|
+
GovernanceProposalKind["ConfigureMarketOracle"] = "ConfigureAssetOracle";
|
|
48
|
+
/** @deprecated Use `ApproveBlendPool`. */
|
|
49
|
+
GovernanceProposalKind["ApproveToken"] = "ApproveBlendPool";
|
|
50
|
+
/** @deprecated Removed from live AdminOperation. */
|
|
51
|
+
GovernanceProposalKind["SetPoolTemplate"] = "SetPoolTemplate";
|
|
52
|
+
/** @deprecated Removed from live AdminOperation. */
|
|
53
|
+
GovernanceProposalKind["RevokeToken"] = "RevokeToken";
|
|
49
54
|
GovernanceProposalKind["Unknown"] = "Unknown";
|
|
50
55
|
})(GovernanceProposalKind || (exports.GovernanceProposalKind = GovernanceProposalKind = {}));
|
|
51
|
-
/**
|
|
52
|
-
* Coarse, event-derived proposal status. `Waiting`/`Ready`/`Expired` are NOT
|
|
53
|
-
* stored on-chain — clients derive them from `readyLedger`, `expiresLedger`,
|
|
54
|
-
* and the current ledger.
|
|
55
|
-
*/
|
|
56
56
|
var GovernanceProposalStatus;
|
|
57
57
|
(function (GovernanceProposalStatus) {
|
|
58
58
|
GovernanceProposalStatus["Pending"] = "Pending";
|
|
59
59
|
GovernanceProposalStatus["Executed"] = "Executed";
|
|
60
60
|
GovernanceProposalStatus["Cancelled"] = "Cancelled";
|
|
61
61
|
})(GovernanceProposalStatus || (exports.GovernanceProposalStatus = GovernanceProposalStatus = {}));
|
|
62
|
-
/**
|
|
63
|
-
* Whether executing the proposal invokes the lending controller (generic
|
|
64
|
-
* `execute`) or the governance contract itself (`execute_self`).
|
|
65
|
-
*/
|
|
66
62
|
var GovernanceProposalTarget;
|
|
67
63
|
(function (GovernanceProposalTarget) {
|
|
68
64
|
GovernanceProposalTarget["Controller"] = "Controller";
|
|
69
65
|
GovernanceProposalTarget["Governance"] = "Governance";
|
|
66
|
+
GovernanceProposalTarget["PriceAggregator"] = "PriceAggregator";
|
|
70
67
|
})(GovernanceProposalTarget || (exports.GovernanceProposalTarget = GovernanceProposalTarget = {}));
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Soroban event dispatch keys for
|
|
3
|
-
*
|
|
2
|
+
* Soroban event dispatch keys for XOXNO Stellar lending contracts
|
|
3
|
+
* (`"<domain>:<action>"`).
|
|
4
|
+
*
|
|
5
|
+
* Keep in parity with az-functions `StellarV2DispatchKey` and live
|
|
6
|
+
* `#[contractevent]` topics on pool, controller, and price-aggregator.
|
|
7
|
+
* Legacy topics retained for historical ledger replay are marked deprecated.
|
|
4
8
|
*/
|
|
5
9
|
export declare enum StellarLendingTopic {
|
|
6
10
|
MarketCreate = "market:create",
|
|
@@ -10,15 +14,46 @@ export declare enum StellarLendingTopic {
|
|
|
10
14
|
PositionBatchUpdate = "position:batch_update",
|
|
11
15
|
PositionFlashLoan = "position:flash_loan",
|
|
12
16
|
PositionLiquidation = "position:liquidation",
|
|
17
|
+
ConfigHub = "config:hub",
|
|
18
|
+
/**
|
|
19
|
+
* Live price-aggregator write topic (`set_oracle` / `set_sanity_band` /
|
|
20
|
+
* `set_tolerance`). Payload `{ key: PriceKey, oracle: AssetOracle }`.
|
|
21
|
+
*/
|
|
22
|
+
ConfigAssetOracle = "config:asset_oracle",
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Pre-composable aggregator topic. Keep for historical ledger
|
|
25
|
+
* replay only; live chain emits `config:asset_oracle`.
|
|
26
|
+
*/
|
|
13
27
|
ConfigOracle = "config:oracle",
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Never emitted by the composable aggregator. Historical only.
|
|
30
|
+
*/
|
|
31
|
+
ConfigOracleDisabled = "config:oracle_disabled",
|
|
32
|
+
ConfigSpoke = "config:spoke",
|
|
33
|
+
ConfigSpokeAsset = "config:spoke_asset",
|
|
34
|
+
ConfigRemoveSpokeAsset = "config:remove_spoke_asset",
|
|
14
35
|
DebtBadDebt = "debt:bad_debt",
|
|
15
36
|
StrategyInitialPayment = "strategy:initial_payment",
|
|
16
37
|
StrategyFee = "strategy:fee",
|
|
38
|
+
StrategyBlendMigration = "strategy:blend_migration",
|
|
39
|
+
/** Live controller: blend pool approve/revoke. */
|
|
40
|
+
ConfigApproveBlendPool = "config:approve_blend_pool",
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Replaced by `config:approve_blend_pool`. Historical only.
|
|
43
|
+
*/
|
|
17
44
|
ConfigApproveToken = "config:approve_token",
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Replaced by `config:swap_aggregator` /
|
|
47
|
+
* `config:price_aggregator`. Historical only.
|
|
48
|
+
*/
|
|
18
49
|
ConfigAggregator = "config:aggregator",
|
|
19
50
|
ConfigAccumulator = "config:accumulator",
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated No longer emitted by the controller. Historical only.
|
|
53
|
+
*/
|
|
20
54
|
ConfigPoolTemplate = "config:pool_template",
|
|
21
55
|
ConfigPositionLimits = "config:position_limits",
|
|
22
|
-
|
|
23
|
-
|
|
56
|
+
ConfigMinBorrowCollateral = "config:min_borrow_collateral",
|
|
57
|
+
ConfigSwapAggregator = "config:swap_aggregator",
|
|
58
|
+
ConfigPriceAggregator = "config:price_aggregator"
|
|
24
59
|
}
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StellarLendingTopic = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Soroban event dispatch keys for
|
|
6
|
-
*
|
|
5
|
+
* Soroban event dispatch keys for XOXNO Stellar lending contracts
|
|
6
|
+
* (`"<domain>:<action>"`).
|
|
7
|
+
*
|
|
8
|
+
* Keep in parity with az-functions `StellarV2DispatchKey` and live
|
|
9
|
+
* `#[contractevent]` topics on pool, controller, and price-aggregator.
|
|
10
|
+
* Legacy topics retained for historical ledger replay are marked deprecated.
|
|
7
11
|
*/
|
|
8
12
|
var StellarLendingTopic;
|
|
9
13
|
(function (StellarLendingTopic) {
|
|
@@ -14,15 +18,46 @@ var StellarLendingTopic;
|
|
|
14
18
|
StellarLendingTopic["PositionBatchUpdate"] = "position:batch_update";
|
|
15
19
|
StellarLendingTopic["PositionFlashLoan"] = "position:flash_loan";
|
|
16
20
|
StellarLendingTopic["PositionLiquidation"] = "position:liquidation";
|
|
21
|
+
StellarLendingTopic["ConfigHub"] = "config:hub";
|
|
22
|
+
/**
|
|
23
|
+
* Live price-aggregator write topic (`set_oracle` / `set_sanity_band` /
|
|
24
|
+
* `set_tolerance`). Payload `{ key: PriceKey, oracle: AssetOracle }`.
|
|
25
|
+
*/
|
|
26
|
+
StellarLendingTopic["ConfigAssetOracle"] = "config:asset_oracle";
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Pre-composable aggregator topic. Keep for historical ledger
|
|
29
|
+
* replay only; live chain emits `config:asset_oracle`.
|
|
30
|
+
*/
|
|
17
31
|
StellarLendingTopic["ConfigOracle"] = "config:oracle";
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Never emitted by the composable aggregator. Historical only.
|
|
34
|
+
*/
|
|
35
|
+
StellarLendingTopic["ConfigOracleDisabled"] = "config:oracle_disabled";
|
|
36
|
+
StellarLendingTopic["ConfigSpoke"] = "config:spoke";
|
|
37
|
+
StellarLendingTopic["ConfigSpokeAsset"] = "config:spoke_asset";
|
|
38
|
+
StellarLendingTopic["ConfigRemoveSpokeAsset"] = "config:remove_spoke_asset";
|
|
18
39
|
StellarLendingTopic["DebtBadDebt"] = "debt:bad_debt";
|
|
19
40
|
StellarLendingTopic["StrategyInitialPayment"] = "strategy:initial_payment";
|
|
20
41
|
StellarLendingTopic["StrategyFee"] = "strategy:fee";
|
|
42
|
+
StellarLendingTopic["StrategyBlendMigration"] = "strategy:blend_migration";
|
|
43
|
+
/** Live controller: blend pool approve/revoke. */
|
|
44
|
+
StellarLendingTopic["ConfigApproveBlendPool"] = "config:approve_blend_pool";
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Replaced by `config:approve_blend_pool`. Historical only.
|
|
47
|
+
*/
|
|
21
48
|
StellarLendingTopic["ConfigApproveToken"] = "config:approve_token";
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Replaced by `config:swap_aggregator` /
|
|
51
|
+
* `config:price_aggregator`. Historical only.
|
|
52
|
+
*/
|
|
22
53
|
StellarLendingTopic["ConfigAggregator"] = "config:aggregator";
|
|
23
54
|
StellarLendingTopic["ConfigAccumulator"] = "config:accumulator";
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated No longer emitted by the controller. Historical only.
|
|
57
|
+
*/
|
|
24
58
|
StellarLendingTopic["ConfigPoolTemplate"] = "config:pool_template";
|
|
25
59
|
StellarLendingTopic["ConfigPositionLimits"] = "config:position_limits";
|
|
26
|
-
StellarLendingTopic["
|
|
27
|
-
StellarLendingTopic["
|
|
60
|
+
StellarLendingTopic["ConfigMinBorrowCollateral"] = "config:min_borrow_collateral";
|
|
61
|
+
StellarLendingTopic["ConfigSwapAggregator"] = "config:swap_aggregator";
|
|
62
|
+
StellarLendingTopic["ConfigPriceAggregator"] = "config:price_aggregator";
|
|
28
63
|
})(StellarLendingTopic || (exports.StellarLendingTopic = StellarLendingTopic = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -212,6 +212,7 @@ export * from './requests/collection/pinned-collections';
|
|
|
212
212
|
export * from './requests/collection/ranks';
|
|
213
213
|
export * from './requests/collection/shareholder.dto';
|
|
214
214
|
export * from './requests/lending/blend.dto';
|
|
215
|
+
export * from './requests/lending/defillama-lending-export.dto';
|
|
215
216
|
export * from './requests/lending/hatom-info.dto';
|
|
216
217
|
export * from './requests/lending/lending-governance-proposal.filter';
|
|
217
218
|
export * from './requests/lending/lending-indexes.dto';
|
package/dist/index.js
CHANGED
|
@@ -303,6 +303,7 @@ __exportStar(require("./requests/collection/pinned-collections"), exports);
|
|
|
303
303
|
__exportStar(require("./requests/collection/ranks"), exports);
|
|
304
304
|
__exportStar(require("./requests/collection/shareholder.dto"), exports);
|
|
305
305
|
__exportStar(require("./requests/lending/blend.dto"), exports);
|
|
306
|
+
__exportStar(require("./requests/lending/defillama-lending-export.dto"), exports);
|
|
306
307
|
__exportStar(require("./requests/lending/hatom-info.dto"), exports);
|
|
307
308
|
__exportStar(require("./requests/lending/lending-governance-proposal.filter"), exports);
|
|
308
309
|
__exportStar(require("./requests/lending/lending-indexes.dto"), exports);
|