@xoxno/types 1.0.404 → 1.0.406
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-market-profile.doc.d.ts +3 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +18 -0
- package/dist/cosmos-db/documents/lending/lending-oracle.d.ts +2 -0
- package/dist/cosmos-db/documents/lending/lending-oracle.js +16 -0
- package/dist/enums/stellar-lending-topic.enum.d.ts +2 -7
- package/dist/enums/stellar-lending-topic.enum.js +2 -7
- package/dist/requests/lending/stellar-lending-admin-args.dto.d.ts +4 -8
- package/dist/requests/lending/stellar-lending-admin-args.dto.js +4 -8
- package/dist/requests/lending/stellar-lending-args.dto.d.ts +7 -15
- package/dist/requests/lending/stellar-lending-args.dto.js +9 -17
- package/dist/requests/lending/stellar-lending-events.dto.d.ts +1 -14
- package/dist/requests/lending/stellar-lending-events.dto.js +2 -15
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile
|
|
|
4
4
|
import { LendingOracleProvider } from './lending-oracle';
|
|
5
5
|
import { LendingIndexesDto } from '../../../requests/lending/lending-indexes.dto';
|
|
6
6
|
import { ActivityChain } from '../../../enums/common.enum';
|
|
7
|
+
import { MarketStatus } from '../../../enums/lending.enum';
|
|
7
8
|
export declare class LendingMarketProfileDoc {
|
|
8
9
|
dataType: LendingDataType;
|
|
9
10
|
token: string;
|
|
@@ -58,6 +59,8 @@ export declare class LendingMarketProfileDoc {
|
|
|
58
59
|
id: string;
|
|
59
60
|
pk: string;
|
|
60
61
|
_ts: number;
|
|
62
|
+
marketStatus?: MarketStatus;
|
|
63
|
+
maxUtilizationRay?: string;
|
|
61
64
|
constructor(props?: Partial<LendingMarketProfileDoc>);
|
|
62
65
|
}
|
|
63
66
|
export declare class LendingMarketParticipants {
|
|
@@ -18,6 +18,7 @@ const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-re
|
|
|
18
18
|
const lending_oracle_1 = require("./lending-oracle");
|
|
19
19
|
const lending_indexes_dto_1 = require("../../../requests/lending/lending-indexes.dto");
|
|
20
20
|
const common_enum_1 = require("../../../enums/common.enum");
|
|
21
|
+
const lending_enum_1 = require("../../../enums/lending.enum");
|
|
21
22
|
const lending_chain_1 = require("./lending-chain");
|
|
22
23
|
let LendingMarketProfileDoc = class LendingMarketProfileDoc {
|
|
23
24
|
constructor(props) {
|
|
@@ -333,6 +334,23 @@ __decorate([
|
|
|
333
334
|
}),
|
|
334
335
|
__metadata("design:type", Number)
|
|
335
336
|
], LendingMarketProfileDoc.prototype, "_ts", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
(0, swagger_1.ApiProperty)({
|
|
339
|
+
enum: lending_enum_1.MarketStatus,
|
|
340
|
+
enumName: 'MarketStatus',
|
|
341
|
+
required: false,
|
|
342
|
+
description: 'On-chain market lifecycle status (Stellar): PendingOracle/Active/Disabled',
|
|
343
|
+
}),
|
|
344
|
+
__metadata("design:type", String)
|
|
345
|
+
], LendingMarketProfileDoc.prototype, "marketStatus", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
(0, swagger_1.ApiProperty)({
|
|
348
|
+
type: String,
|
|
349
|
+
required: false,
|
|
350
|
+
description: 'Max utilization, RAY (1e27) decimal string (Stellar IRM)',
|
|
351
|
+
}),
|
|
352
|
+
__metadata("design:type", String)
|
|
353
|
+
], LendingMarketProfileDoc.prototype, "maxUtilizationRay", void 0);
|
|
336
354
|
exports.LendingMarketProfileDoc = LendingMarketProfileDoc = __decorate([
|
|
337
355
|
(0, swagger_1.ApiExtraModels)(lending_oracle_1.LendingOracleUpdateStruct, lending_oracle_1.StellarLendingOracleUpdateStruct),
|
|
338
356
|
__metadata("design:paramtypes", [Object])
|
|
@@ -45,6 +45,8 @@ export declare class StellarLendingOracleUpdateStruct {
|
|
|
45
45
|
strategy: LendingOracleStrategy;
|
|
46
46
|
primary: LendingOracleSource;
|
|
47
47
|
anchor?: LendingOracleSource;
|
|
48
|
+
minSanityPriceWad?: string;
|
|
49
|
+
maxSanityPriceWad?: string;
|
|
48
50
|
constructor(init?: Partial<StellarLendingOracleUpdateStruct>);
|
|
49
51
|
}
|
|
50
52
|
export type LendingOracleProvider = LendingOracleUpdateStruct | StellarLendingOracleUpdateStruct;
|
|
@@ -302,3 +302,19 @@ __decorate([
|
|
|
302
302
|
}),
|
|
303
303
|
__metadata("design:type", LendingOracleSource)
|
|
304
304
|
], StellarLendingOracleUpdateStruct.prototype, "anchor", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
(0, swagger_1.ApiProperty)({
|
|
307
|
+
type: String,
|
|
308
|
+
required: false,
|
|
309
|
+
description: 'Inclusive lower sanity bound, USD WAD decimal string',
|
|
310
|
+
}),
|
|
311
|
+
__metadata("design:type", String)
|
|
312
|
+
], StellarLendingOracleUpdateStruct.prototype, "minSanityPriceWad", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
(0, swagger_1.ApiProperty)({
|
|
315
|
+
type: String,
|
|
316
|
+
required: false,
|
|
317
|
+
description: 'Inclusive upper sanity bound, USD WAD decimal string',
|
|
318
|
+
}),
|
|
319
|
+
__metadata("design:type", String)
|
|
320
|
+
], StellarLendingOracleUpdateStruct.prototype, "maxSanityPriceWad", void 0);
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Soroban event dispatch keys for the XOXNO Stellar lending controller
|
|
3
|
-
*
|
|
4
|
-
* Each value is the `"<domain>:<action>"` join of a `#[contractevent]`'s two
|
|
5
|
-
* topic symbols (see `rs-lending-xlm/common/src/events.rs`). This is the single
|
|
6
|
-
* source of truth shared by the `@xoxno/sdk-js` decoder registry and every
|
|
7
|
-
* consumer; it is intentionally distinct from the MVX-named
|
|
8
|
-
* `LendingScEventIdentifier`, whose values do not match the Soroban topics.
|
|
2
|
+
* Soroban event dispatch keys for the XOXNO Stellar lending controller,
|
|
3
|
+
* each value joined as `"<domain>:<action>"`.
|
|
9
4
|
*/
|
|
10
5
|
export declare enum StellarLendingTopic {
|
|
11
6
|
MarketCreate = "market:create",
|
|
@@ -2,13 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StellarLendingTopic = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Soroban event dispatch keys for the XOXNO Stellar lending controller
|
|
6
|
-
*
|
|
7
|
-
* Each value is the `"<domain>:<action>"` join of a `#[contractevent]`'s two
|
|
8
|
-
* topic symbols (see `rs-lending-xlm/common/src/events.rs`). This is the single
|
|
9
|
-
* source of truth shared by the `@xoxno/sdk-js` decoder registry and every
|
|
10
|
-
* consumer; it is intentionally distinct from the MVX-named
|
|
11
|
-
* `LendingScEventIdentifier`, whose values do not match the Soroban topics.
|
|
5
|
+
* Soroban event dispatch keys for the XOXNO Stellar lending controller,
|
|
6
|
+
* each value joined as `"<domain>:<action>"`.
|
|
12
7
|
*/
|
|
13
8
|
var StellarLendingTopic;
|
|
14
9
|
(function (StellarLendingTopic) {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { LendingOracleProviderKind, LendingOracleReadMode, LendingOracleStrategy } from '../../enums/lending.enum';
|
|
2
2
|
import { LendingOracleAssetRef } from '../../cosmos-db/documents/lending/lending-oracle';
|
|
3
3
|
/**
|
|
4
|
-
* Admin
|
|
4
|
+
* Admin/config argument DTOs for the Stellar lending controller.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* values are decimal strings; bps and counts are numbers; addresses/feed ids
|
|
9
|
-
* are strings. The `@xoxno/sdk-js` Soroban builders encode them to ScVal.
|
|
6
|
+
* RAY/WAD integers cross as decimal strings; bps and counts are numbers;
|
|
7
|
+
* addresses and feed ids are strings.
|
|
10
8
|
*/
|
|
11
9
|
export declare class InterestRateModelDto {
|
|
12
10
|
maxBorrowRateRay: string;
|
|
@@ -20,9 +18,7 @@ export declare class InterestRateModelDto {
|
|
|
20
18
|
reserveFactorBps: number;
|
|
21
19
|
}
|
|
22
20
|
/**
|
|
23
|
-
* Interest rate model plus the pool asset identity
|
|
24
|
-
* `create_liquidity_pool`. `upgrade_liquidity_pool_params` takes only the
|
|
25
|
-
* `InterestRateModelDto` portion (asset is addressed separately).
|
|
21
|
+
* Interest rate model plus the pool asset identity.
|
|
26
22
|
*/
|
|
27
23
|
export declare class MarketParamsRawDto extends InterestRateModelDto {
|
|
28
24
|
assetId: string;
|
|
@@ -14,12 +14,10 @@ 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");
|
|
16
16
|
/**
|
|
17
|
-
* Admin
|
|
17
|
+
* Admin/config argument DTOs for the Stellar lending controller.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* values are decimal strings; bps and counts are numbers; addresses/feed ids
|
|
22
|
-
* are strings. The `@xoxno/sdk-js` Soroban builders encode them to ScVal.
|
|
19
|
+
* RAY/WAD integers cross as decimal strings; bps and counts are numbers;
|
|
20
|
+
* addresses and feed ids are strings.
|
|
23
21
|
*/
|
|
24
22
|
class InterestRateModelDto {
|
|
25
23
|
}
|
|
@@ -67,9 +65,7 @@ __decorate([
|
|
|
67
65
|
__metadata("design:type", Number)
|
|
68
66
|
], InterestRateModelDto.prototype, "reserveFactorBps", void 0);
|
|
69
67
|
/**
|
|
70
|
-
* Interest rate model plus the pool asset identity
|
|
71
|
-
* `create_liquidity_pool`. `upgrade_liquidity_pool_params` takes only the
|
|
72
|
-
* `InterestRateModelDto` portion (asset is addressed separately).
|
|
68
|
+
* Interest rate model plus the pool asset identity.
|
|
73
69
|
*/
|
|
74
70
|
class MarketParamsRawDto extends InterestRateModelDto {
|
|
75
71
|
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Chain-agnostic argument DTOs for the lending protocol
|
|
2
|
+
* Chain-agnostic argument DTOs for the lending protocol, decoupled from
|
|
3
|
+
* chain-specific types:
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* - `token` is a string (MVX uses ESDT ticker, Stellar uses contract
|
|
9
|
-
* address, SUI uses coin type) — callers pass whatever their chain
|
|
10
|
-
* uses, the SDK builder interprets it.
|
|
11
|
-
* - `amount` is a string to preserve precision across u64 / u128 /
|
|
12
|
-
* i128 backends.
|
|
5
|
+
* - `token` is a string (an ESDT ticker, a Soroban contract address, a
|
|
6
|
+
* SUI coin type — whatever the target chain uses).
|
|
7
|
+
* - `amount` is a decimal string to preserve precision across
|
|
8
|
+
* u64 / u128 / i128 backends.
|
|
13
9
|
* - `steps`, `data` are `unknown` — the concrete swap-path / callback
|
|
14
|
-
* struct is chain-specific and encoded by the
|
|
15
|
-
* builder.
|
|
16
|
-
*
|
|
17
|
-
* MVX flows can reuse these via a thin adapter; Stellar flows consume
|
|
18
|
-
* them directly in the `@xoxno/sdk-js` Soroban transaction builders.
|
|
10
|
+
* struct is chain-specific and encoded by the transaction builder.
|
|
19
11
|
*/
|
|
20
12
|
export declare class SupplyArgs {
|
|
21
13
|
token: string;
|
|
@@ -12,23 +12,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.FlashLoanArgs = exports.RepayDebtWithCollateralArgs = exports.SwapCollateralArgs = exports.SwapDebtArgs = exports.MultiplyArgs = exports.LiquidateArgs = exports.LiquidateDebtPayment = exports.WithdrawArgs = exports.RepayArgs = exports.BorrowArgs = exports.SupplyArgs = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
/**
|
|
15
|
-
* Chain-agnostic argument DTOs for the lending protocol
|
|
15
|
+
* Chain-agnostic argument DTOs for the lending protocol, decoupled from
|
|
16
|
+
* chain-specific types:
|
|
16
17
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* - `token` is a string (MVX uses ESDT ticker, Stellar uses contract
|
|
22
|
-
* address, SUI uses coin type) — callers pass whatever their chain
|
|
23
|
-
* uses, the SDK builder interprets it.
|
|
24
|
-
* - `amount` is a string to preserve precision across u64 / u128 /
|
|
25
|
-
* i128 backends.
|
|
18
|
+
* - `token` is a string (an ESDT ticker, a Soroban contract address, a
|
|
19
|
+
* SUI coin type — whatever the target chain uses).
|
|
20
|
+
* - `amount` is a decimal string to preserve precision across
|
|
21
|
+
* u64 / u128 / i128 backends.
|
|
26
22
|
* - `steps`, `data` are `unknown` — the concrete swap-path / callback
|
|
27
|
-
* struct is chain-specific and encoded by the
|
|
28
|
-
* builder.
|
|
29
|
-
*
|
|
30
|
-
* MVX flows can reuse these via a thin adapter; Stellar flows consume
|
|
31
|
-
* them directly in the `@xoxno/sdk-js` Soroban transaction builders.
|
|
23
|
+
* struct is chain-specific and encoded by the transaction builder.
|
|
32
24
|
*/
|
|
33
25
|
class SupplyArgs {
|
|
34
26
|
}
|
|
@@ -212,14 +204,14 @@ __decorate([
|
|
|
212
204
|
], MultiplyArgs.prototype, "accountNonce", void 0);
|
|
213
205
|
__decorate([
|
|
214
206
|
(0, swagger_1.ApiProperty)({
|
|
215
|
-
description: 'Optional initial collateral payment seeding the leverage entry
|
|
207
|
+
description: 'Optional initial collateral payment seeding the leverage entry',
|
|
216
208
|
required: false,
|
|
217
209
|
}),
|
|
218
210
|
__metadata("design:type", Object)
|
|
219
211
|
], MultiplyArgs.prototype, "initialPayment", void 0);
|
|
220
212
|
__decorate([
|
|
221
213
|
(0, swagger_1.ApiProperty)({
|
|
222
|
-
description: 'Optional secondary swap converting the initial payment into the collateral token
|
|
214
|
+
description: 'Optional secondary swap converting the initial payment into the collateral token',
|
|
223
215
|
required: false,
|
|
224
216
|
}),
|
|
225
217
|
__metadata("design:type", Object)
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { AssetConfigRawDto } from './stellar-lending-admin-args.dto';
|
|
2
2
|
import { StellarLendingOracleUpdateStruct } from '../../cosmos-db/documents/lending/lending-oracle';
|
|
3
3
|
/**
|
|
4
|
-
* Decoded
|
|
5
|
-
* `#[contractevent]`s (see `rs-lending-xlm/common/src/events.rs`).
|
|
6
|
-
*
|
|
7
|
-
* These are the normalized shapes the `@xoxno/sdk-js` decoder registry
|
|
8
|
-
* produces after funnelling the Soroban event `data` through
|
|
9
|
-
* `scValToNative`: i128/u128/u64 ids and amounts are decimal strings,
|
|
10
|
-
* u32 counts/bps are numbers, addresses/symbols are strings, int-enums are
|
|
11
|
-
* mapped to their string enum, and absent Soroban `Option`s are `undefined`.
|
|
12
|
-
*
|
|
13
|
-
* Borrow-side position deltas carry no collateral risk parameters: the
|
|
14
|
-
* contract zeroes `liquidation_threshold`/`liquidation_bonus`/`loan_to_value`
|
|
15
|
-
* for debt positions, so the decoder surfaces them as `undefined` (not 0) to
|
|
16
|
-
* stop consumers recording a spurious 0% threshold. There is no
|
|
17
|
-
* `liquidationFeesBps` on the delta — that field does not exist on-chain.
|
|
4
|
+
* Decoded Stellar lending event payload types.
|
|
18
5
|
*/
|
|
19
6
|
export declare class StellarMarketStateSnapshot {
|
|
20
7
|
asset: string;
|
|
@@ -15,20 +15,7 @@ const lending_enum_1 = require("../../enums/lending.enum");
|
|
|
15
15
|
const stellar_lending_admin_args_dto_1 = require("./stellar-lending-admin-args.dto");
|
|
16
16
|
const lending_oracle_1 = require("../../cosmos-db/documents/lending/lending-oracle");
|
|
17
17
|
/**
|
|
18
|
-
* Decoded
|
|
19
|
-
* `#[contractevent]`s (see `rs-lending-xlm/common/src/events.rs`).
|
|
20
|
-
*
|
|
21
|
-
* These are the normalized shapes the `@xoxno/sdk-js` decoder registry
|
|
22
|
-
* produces after funnelling the Soroban event `data` through
|
|
23
|
-
* `scValToNative`: i128/u128/u64 ids and amounts are decimal strings,
|
|
24
|
-
* u32 counts/bps are numbers, addresses/symbols are strings, int-enums are
|
|
25
|
-
* mapped to their string enum, and absent Soroban `Option`s are `undefined`.
|
|
26
|
-
*
|
|
27
|
-
* Borrow-side position deltas carry no collateral risk parameters: the
|
|
28
|
-
* contract zeroes `liquidation_threshold`/`liquidation_bonus`/`loan_to_value`
|
|
29
|
-
* for debt positions, so the decoder surfaces them as `undefined` (not 0) to
|
|
30
|
-
* stop consumers recording a spurious 0% threshold. There is no
|
|
31
|
-
* `liquidationFeesBps` on the delta — that field does not exist on-chain.
|
|
18
|
+
* Decoded Stellar lending event payload types.
|
|
32
19
|
*/
|
|
33
20
|
class StellarMarketStateSnapshot {
|
|
34
21
|
}
|
|
@@ -483,7 +470,7 @@ __decorate([
|
|
|
483
470
|
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
|
|
484
471
|
__metadata("design:type", Number)
|
|
485
472
|
], StellarRemoveEModeAssetEvent.prototype, "categoryId", void 0);
|
|
486
|
-
// ---------- topic: debt:ceiling_update
|
|
473
|
+
// ---------- topic: debt:ceiling_update ----------
|
|
487
474
|
class StellarUpdateDebtCeilingEvent {
|
|
488
475
|
}
|
|
489
476
|
exports.StellarUpdateDebtCeilingEvent = StellarUpdateDebtCeilingEvent;
|