@xoxno/sdk-js 1.0.193 → 1.0.198

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/README.md CHANGED
@@ -506,6 +506,18 @@ sdk.faucet.POST(...); // SuccessDto
506
506
  // GET /hatom/user/:address
507
507
  sdk.hatom.user.address("...")(...); // UserInfo
508
508
 
509
+ // GET /integrations/lending/stellar
510
+ sdk.integrations.lending.stellar(...); // DefillamaLendingExport
511
+
512
+ // GET /integrations/lending/stellar/history
513
+ sdk.integrations.lending.stellar.history(...); // DefillamaLendingHistoryExport
514
+
515
+ // GET /integrations/lending/stellar/revenue
516
+ sdk.integrations.lending.stellar.revenue(...); // DefillamaLendingRevenueExport
517
+
518
+ // GET /integrations/lending/stellar/active-users
519
+ sdk.integrations.lending.stellar.activeUsers(...); // StellarLendingUserStatsExport
520
+
509
521
  // GET /launchpad/:scAddress/shareholders/royalties
510
522
  sdk.launchpad.scAddress("...").shareholders.royalties(...); // ShareholderDto[]
511
523
 
@@ -764,6 +776,9 @@ sdk.stellarLending.context(...); // StellarLendingContextDto
764
776
  // GET /stellar-lending/live-state
765
777
  sdk.stellarLending.liveState(...); // StellarLendingLiveStateDto
766
778
 
779
+ // GET /stellar-lending/markets/detailed
780
+ sdk.stellarLending.markets.detailed(...); // StellarDetailedMarketDto[]
781
+
767
782
  // GET /stellar-lending/hubs
768
783
  sdk.stellarLending.hubs(...); // StellarHubListItemDto[]
769
784
 
@@ -9,7 +9,8 @@
9
9
  * `opts.caller` as the leading `Address` arg; that account must hold the
10
10
  * role and sign the tx.
11
11
  */
12
- import type { InterestRateModelDto, MarketOracleConfigInputDto, MarketParamsRawDto, OracleSourceConfigInputDto, PositionLimitsDto } from '@xoxno/types';
12
+ import type { AssetOracleConfigInputDto, ConfigureAssetOracleArgsDto, EditOracleToleranceArgsDto, InterestRateModelDto, MarketParamsRawDto, PositionLimitsDto } from '@xoxno/types';
13
+ import type { StellarAssetOracle, StellarPriceKey } from '@xoxno/types/stellar-lending';
13
14
  import { type BuiltStellarTx, type StellarBuilderOptions } from './lending';
14
15
  import { xdr } from '@stellar/stellar-sdk';
15
16
  /** `InterestRateModel` — 8 RAY rates + reserve factor bps. */
@@ -18,10 +19,16 @@ export declare const encodeInterestRateModel: (m: InterestRateModelDto) => xdr.S
18
19
  export declare const encodeMarketParamsRaw: (p: MarketParamsRawDto) => xdr.ScVal;
19
20
  /** `PositionLimits` — per-account supply/borrow position caps. */
20
21
  export declare const encodePositionLimits: (l: PositionLimitsDto) => xdr.ScVal;
21
- /** `OracleSourceConfigInput` data-enum — `Reflector(...)` | `RedStone(...)` | `Xoxno(...)`. */
22
- export declare const encodeOracleSourceConfigInput: (src: OracleSourceConfigInputDto) => xdr.ScVal;
23
- /** `MarketOracleConfigInput` — strategy + primary/anchor sources + sanity bounds. */
24
- export declare const encodeMarketOracleConfigInput: (cfg: MarketOracleConfigInputDto) => xdr.ScVal;
22
+ /** On-chain `PriceKey` — `{ Token: "C…" }` or `{ Ref: "BTC" }`. */
23
+ export declare const encodePriceKey: (key: StellarPriceKey | Record<string, string>) => xdr.ScVal;
24
+ /**
25
+ * Encode on-chain `AssetOracle`. Accepts either the swagger DTO
26
+ * (`toleranceBps` + sources) or a full `StellarAssetOracle` with tolerance
27
+ * upper/lower bps (lower is derived as reciprocal when only bps is given).
28
+ */
29
+ export declare const encodeAssetOracle: (cfg: AssetOracleConfigInputDto | StellarAssetOracle | Record<string, unknown>) => xdr.ScVal;
30
+ /** @deprecated Use {@link encodeAssetOracle}. */
31
+ export declare const encodeMarketOracleConfigInput: (cfg: AssetOracleConfigInputDto | StellarAssetOracle | Record<string, unknown>) => xdr.ScVal;
25
32
  export interface RoleGrantArgs {
26
33
  account: string;
27
34
  role: string;
@@ -30,16 +37,12 @@ export interface TransferOwnershipArgs {
30
37
  newOwner: string;
31
38
  liveUntilLedger: number;
32
39
  }
33
- export interface ConfigureMarketOracleArgs {
34
- hubId: number;
35
- asset: string;
36
- config: MarketOracleConfigInputDto;
37
- }
38
- export interface EditOracleToleranceArgs {
39
- asset: string;
40
- upperRatioBps: number;
41
- lowerRatioBps: number;
42
- }
40
+ /** Governance / aggregator `ConfigureAssetOracle` args. */
41
+ export type ConfigureAssetOracleArgs = ConfigureAssetOracleArgsDto;
42
+ /** @deprecated Alias — use ConfigureAssetOracleArgs. */
43
+ export type ConfigureMarketOracleArgs = ConfigureAssetOracleArgs;
44
+ /** Edit dual-source tolerance (PriceKey + bps). */
45
+ export type EditOracleToleranceArgs = EditOracleToleranceArgsDto;
43
46
  export interface CreateLiquidityPoolArgs {
44
47
  hubId: number;
45
48
  asset: string;
@@ -79,32 +82,47 @@ export declare function buildStellarRevokeRoleTx(opts: StellarBuilderOptions, ar
79
82
  export declare function buildStellarTransferOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs): BuiltStellarTx;
80
83
  /** accept_ownership() */
81
84
  export declare function buildStellarAcceptOwnershipTx(opts: StellarBuilderOptions): BuiltStellarTx;
82
- /** set_aggregator(addr: Address) — #[only_owner] */
83
- export declare function buildStellarSetAggregatorTx(opts: StellarBuilderOptions, args: {
85
+ /** set_swap_aggregator(addr: Address) — #[only_owner] */
86
+ export declare function buildStellarSetSwapAggregatorTx(opts: StellarBuilderOptions, args: {
84
87
  aggregator: string;
85
88
  }): BuiltStellarTx;
89
+ /** set_price_aggregator(addr: Address) — #[only_owner] */
90
+ export declare function buildStellarSetPriceAggregatorTx(opts: StellarBuilderOptions, args: {
91
+ aggregator: string;
92
+ }): BuiltStellarTx;
93
+ /** @deprecated Use buildStellarSetSwapAggregatorTx. */
94
+ export declare const buildStellarSetAggregatorTx: typeof buildStellarSetSwapAggregatorTx;
86
95
  /** set_accumulator(addr: Address) — #[only_owner] */
87
96
  export declare function buildStellarSetAccumulatorTx(opts: StellarBuilderOptions, args: {
88
97
  accumulator: string;
89
98
  }): BuiltStellarTx;
90
- /** set_liquidity_pool_template(hash: BytesN<32>) — #[only_owner] */
91
- export declare function buildStellarSetLiquidityPoolTemplateTx(opts: StellarBuilderOptions, args: {
92
- wasmHash: string;
93
- }): BuiltStellarTx;
94
99
  /** set_position_limits(limits: PositionLimits) — #[only_owner] */
95
100
  export declare function buildStellarSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto): BuiltStellarTx;
96
- /** approve_token(token: Address) — #[only_owner] */
97
- export declare function buildStellarApproveTokenTx(opts: StellarBuilderOptions, args: {
98
- token: string;
101
+ /** approve_blend_pool(pool: Address) — #[only_owner] */
102
+ export declare function buildStellarApproveBlendPoolTx(opts: StellarBuilderOptions, args: {
103
+ pool: string;
99
104
  }): BuiltStellarTx;
100
- /** revoke_token(token: Address) — #[only_owner] */
101
- export declare function buildStellarRevokeTokenTx(opts: StellarBuilderOptions, args: {
102
- token: string;
105
+ /** revoke_blend_pool(pool: Address) — #[only_owner] */
106
+ export declare function buildStellarRevokeBlendPoolTx(opts: StellarBuilderOptions, args: {
107
+ pool: string;
108
+ }): BuiltStellarTx;
109
+ /** @deprecated Use buildStellarApproveBlendPoolTx. */
110
+ export declare const buildStellarApproveTokenTx: typeof buildStellarApproveBlendPoolTx;
111
+ /** @deprecated Use buildStellarRevokeBlendPoolTx. */
112
+ export declare const buildStellarRevokeTokenTx: typeof buildStellarRevokeBlendPoolTx;
113
+ /**
114
+ * Direct price-aggregator `set_oracle(key, oracle)` — owner only (governance
115
+ * contract address as tx source after deploy). Prefer governance propose path
116
+ * in production.
117
+ */
118
+ export declare function buildStellarSetOracleTx(opts: StellarBuilderOptions, args: ConfigureAssetOracleArgs): BuiltStellarTx;
119
+ /** @deprecated Use buildStellarSetOracleTx. */
120
+ export declare const buildStellarSetMarketOracleConfigTx: typeof buildStellarSetOracleTx;
121
+ /** price-aggregator `set_tolerance(key, OracleTolerance)` — owner only. */
122
+ export declare function buildStellarSetOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceArgs & {
123
+ upperRatioBps?: number;
124
+ lowerRatioBps?: number;
103
125
  }): BuiltStellarTx;
104
- /** configure_market_oracle(caller, asset, cfg) — #[only_role(caller, "ORACLE")] */
105
- export declare function buildStellarSetMarketOracleConfigTx(opts: StellarBuilderOptions, args: ConfigureMarketOracleArgs): BuiltStellarTx;
106
- /** set_oracle_tolerance(asset, tolerance: OraclePriceFluctuation) — #[only_owner] */
107
- export declare function buildStellarSetOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceArgs): BuiltStellarTx;
108
126
  /**
109
127
  * set_spoke_asset_flags(spoke_id, hub_asset, paused, frozen) — #[only_owner].
110
128
  * Flags-only listing edit; production callers route through the GUARDIAN-gated
@@ -1,14 +1,11 @@
1
1
  /**
2
2
  * Decoders for the Stellar lending `#[contractevent]`s (controller, pool, and
3
- * the price-aggregator's `config:oracle`).
3
+ * the price-aggregator's `config:asset_oracle`).
4
4
  *
5
- * Decodes the core protocol topics plus the pool's `strategy:fee`. Intentional
6
- * omissions (decodeStellarLendingEvent returns `null` for them, like any other
7
- * unhandled topic): `config:min_borrow_collateral` (a single global `i128`
8
- * floor with no indexing/UI consumer), `config:spoke_asset` /
9
- * `config:remove_spoke_asset` / `config:hub` / `config:approve_blend_pool` /
10
- * `strategy:blend_migration` (indexed by the az-functions pipeline's own
11
- * decoders).
5
+ * Decodes core protocol topics plus pool `strategy:fee` and live controller
6
+ * config topics used by the indexer. Intentional omissions still return
7
+ * `null`: `config:spoke_asset` / `config:remove_spoke_asset` / `config:hub` /
8
+ * `strategy:blend_migration` (handled by az-functions own decoders).
12
9
  *
13
10
  * The public API takes base64-XDR strings (`decodeStellarLendingEvent(topicsB64,
14
11
  * dataB64)`) and parses them with this SDK's bundled `@stellar/stellar-sdk`, so
@@ -26,7 +26,7 @@
26
26
  * XDR still needs `rpc.Server.prepareTransaction` before signing.
27
27
  */
28
28
  import type { PositionLimitsDto } from '@xoxno/types';
29
- import { type ConfigureMarketOracleArgs, type CreateLiquidityPoolArgs, type RoleGrantArgs, type TransferOwnershipArgs, type UpgradeLiquidityPoolParamsArgs } from './admin';
29
+ import { type ConfigureAssetOracleArgs, type CreateLiquidityPoolArgs, type RoleGrantArgs, type TransferOwnershipArgs, type UpgradeLiquidityPoolParamsArgs } from './admin';
30
30
  import type { BuiltStellarTx, StellarBuilderOptions } from './lending';
31
31
  /**
32
32
  * A `salt: BytesN<32>` for a governance proposal/execution. Accepts a 32-byte
@@ -38,9 +38,8 @@ export declare const STELLAR_GOVERNANCE_ZERO_PREDECESSOR: string;
38
38
  /**
39
39
  * `add_asset_to_spoke` / `edit_asset_in_spoke` payload: the per-(hub, spoke,
40
40
  * asset) risk config. Caps are asset-native i128 decimal strings (0 =
41
- * uncapped); ltv/threshold/bonus/liquidationFees are bps. The on-chain
42
- * `oracle_override` is always encoded as `None` — a `Some` carries a fully
43
- * resolved `MarketOracleConfig`, which no off-chain caller can safely build.
41
+ * uncapped); ltv/threshold/bonus/liquidationFees are bps. Oracle config is
42
+ * asset-level on the price-aggregator, not per-spoke.
44
43
  */
45
44
  export interface SpokeAssetArgs {
46
45
  hubId: number;
@@ -77,9 +76,10 @@ export interface SpokeLiquidationCurveArgs {
77
76
  hfForMaxBonusWad: string;
78
77
  liquidationBonusFactorBps: number;
79
78
  }
80
- /** Governance derives the OraclePriceFluctuation on-chain from one bps value. */
79
+ /** Governance derives the OracleTolerance band on-chain from one bps value. */
81
80
  export interface EditOracleToleranceProposalArgs {
82
- asset: string;
81
+ /** PriceKey: `{ Token: "C…" }` or `{ Ref: "BTC" }`. */
82
+ key: Record<string, string>;
83
83
  tolerance: number;
84
84
  }
85
85
  export interface UpgradeArgs {
@@ -91,18 +91,20 @@ export interface MigrateArgs {
91
91
  export interface UpdateDelayArgs {
92
92
  newDelay: number;
93
93
  }
94
- /** propose(SetAggregator(addr)) */
95
- export declare function buildStellarProposeSetAggregatorTx(opts: StellarBuilderOptions, args: {
94
+ /** propose(SetSwapAggregator(addr)) */
95
+ export declare function buildStellarProposeSetSwapAggregatorTx(opts: StellarBuilderOptions, args: {
96
+ aggregator: string;
97
+ }, salt: StellarGovernanceSalt): BuiltStellarTx;
98
+ /** propose(SetPriceAggregator(addr)) — Sensitive-tier self-op. */
99
+ export declare function buildStellarProposeSetPriceAggregatorTx(opts: StellarBuilderOptions, args: {
96
100
  aggregator: string;
97
101
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
102
+ /** @deprecated Use buildStellarProposeSetSwapAggregatorTx. */
103
+ export declare const buildStellarProposeSetAggregatorTx: typeof buildStellarProposeSetSwapAggregatorTx;
98
104
  /** propose(SetAccumulator(addr)) */
99
105
  export declare function buildStellarProposeSetAccumulatorTx(opts: StellarBuilderOptions, args: {
100
106
  accumulator: string;
101
107
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
102
- /** propose(SetLiquidityPoolTemplate(hash)) */
103
- export declare function buildStellarProposeSetPoolTemplateTx(opts: StellarBuilderOptions, args: {
104
- wasmHash: string;
105
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
106
108
  /** propose(SetPositionLimits(limits)) */
107
109
  export declare function buildStellarProposeSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto, salt: StellarGovernanceSalt): BuiltStellarTx;
108
110
  /** propose(CreateHub) */
@@ -150,8 +152,10 @@ export declare function buildStellarProposeRevokeBlendPoolTx(opts: StellarBuilde
150
152
  export declare function buildStellarProposeCreateLiquidityPoolTx(opts: StellarBuilderOptions, args: CreateLiquidityPoolArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
151
153
  /** propose(UpgradeLiquidityPoolParams(UpgradePoolParamsArgs)) */
152
154
  export declare function buildStellarProposeUpgradePoolParamsTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolParamsArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
153
- /** propose(DeployPool) */
154
- export declare function buildStellarProposeDeployPoolTx(opts: StellarBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
155
+ /** propose(DeployPool(hash)) */
156
+ export declare function buildStellarProposeDeployPoolTx(opts: StellarBuilderOptions, args: {
157
+ wasmHash: string;
158
+ }, salt: StellarGovernanceSalt): BuiltStellarTx;
155
159
  /** propose(UpgradePool(hash)) */
156
160
  export declare function buildStellarProposeUpgradePoolTx(opts: StellarBuilderOptions, args: {
157
161
  wasmHash: string;
@@ -163,12 +167,14 @@ export declare function buildStellarProposeMigrateControllerTx(opts: StellarBuil
163
167
  /** propose(TransferCtrlOwnership(TransferOwnershipArgs)) */
164
168
  export declare function buildStellarProposeTransferCtrlOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
165
169
  /**
166
- * propose(ConfigureMarketOracle(ConfigureOracleArgs))
170
+ * propose(ConfigureAssetOracle(ConfigureAssetOracleArgs))
167
171
  *
168
- * The SDK passes the oracle INPUT args verbatim; the contract resolves the
169
- * input to a resolved config at propose time (do NOT resolve in the SDK).
172
+ * Pass PriceKey + AssetOracle input; governance resolves asset_decimals for
173
+ * Token keys at propose time.
170
174
  */
171
- export declare function buildStellarProposeConfigureMarketOracleTx(opts: StellarBuilderOptions, args: ConfigureMarketOracleArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
175
+ export declare function buildStellarProposeConfigureAssetOracleTx(opts: StellarBuilderOptions, args: ConfigureAssetOracleArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
176
+ /** @deprecated Use buildStellarProposeConfigureAssetOracleTx. */
177
+ export declare const buildStellarProposeConfigureMarketOracleTx: typeof buildStellarProposeConfigureAssetOracleTx;
172
178
  /** propose(EditOracleTolerance(EditToleranceArgs)) */
173
179
  export declare function buildStellarProposeEditOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceProposalArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
174
180
  /** propose(UpgradeGov(hash)) */
@@ -10,48 +10,14 @@
10
10
  * Numeric `*Wad`/`*Ray`/`*ScaledRay` fields cross the wire as decimal strings
11
11
  * (1e18 / 1e27 fixed-point); `*Short` fields are already human-readable numbers.
12
12
  */
13
- import type { StellarGovernanceProposalField, StellarGovernanceProposalKind, StellarGovernanceProposalStatus, StellarGovernanceProposalTarget, StellarInitialPaymentMultiplier } from '@xoxno/types/stellar-lending';
13
+ import type { StellarAssetOracle, StellarGovernanceProposalField, StellarGovernanceProposalKind, StellarGovernanceProposalStatus, StellarGovernanceProposalTarget, StellarInitialPaymentMultiplier } from '@xoxno/types/stellar-lending';
14
14
  export type { StellarLendingContext, StellarAssetPage, StellarAssetPageGraphPoint, StellarAssetPageGraphSeries, StellarAssetPageMarket, } from '@xoxno/types/stellar-lending';
15
15
  /** Side selector for an asset's markets table. */
16
16
  export type StellarLendingMarketSide = 'deposit' | 'borrow';
17
17
  /** Side selector for a reserve's top-holders list. */
18
18
  export type StellarLendingHoldersSide = 'deposits' | 'borrows';
19
- /** Oracle configuration for a Stellar asset. */
20
- export interface StellarAssetOracleConfig {
21
- baseTokenId: string;
22
- quoteTokenSymbol: string;
23
- toleranceUpperBps: number;
24
- toleranceLowerBps: number;
25
- pricingMethod: number;
26
- oracleType: number;
27
- strategy: number;
28
- assetDecimals: number;
29
- maxPriceStaleSeconds: number;
30
- primaryProvider: number;
31
- primaryContract: string;
32
- primaryAsset: string | null;
33
- primarySymbol: string | null;
34
- primaryFeedId: string | null;
35
- primaryQuoteToken: string | null;
36
- primaryReadMode: number;
37
- primaryTwapRecords: number;
38
- primaryDecimals: number;
39
- primaryResolutionSeconds: number;
40
- primaryMaxStaleSeconds: number;
41
- anchorProvider: number | null;
42
- anchorContract: string | null;
43
- anchorAsset: string | null;
44
- anchorSymbol: string | null;
45
- anchorFeedId: string | null;
46
- anchorQuoteToken: string | null;
47
- anchorReadMode: number;
48
- anchorTwapRecords: number;
49
- anchorDecimals: number;
50
- anchorResolutionSeconds: number;
51
- anchorMaxStaleSeconds: number;
52
- minSanityPriceWad: string;
53
- maxSanityPriceWad: string;
54
- }
19
+ /** Composable AssetOracle persisted on an asset (from @xoxno/types). */
20
+ export type StellarAssetOracleConfig = StellarAssetOracle;
55
21
  /** One (spoke, hub) market row for an asset's markets table. */
56
22
  export interface StellarAssetMarket {
57
23
  spokeId: number;
@@ -1,4 +1,4 @@
1
- import type { PublicOnly, RateType, LoginAccessDto, LoginRequestDto, UserNetworkInfoDto, UserTokenInventoryResponseDto, UserProfileDoc, UserProfileEditDto, UserProfileDto, UserSettingsDoc, NotificationPreferencesPostDto, SetEmailDto, SetPhoneDto, UserBillingDetails, VerifyEmailDto, TradesilvaniaSignature, SuccessDto, CreatorProfileDto, CreatorProfileDoc, CreatorProfileEditDto, CollectionStatsFilter, CollectionStatsPaginated, CheckLikeStatusResponseDto, UserFavoriteResponseDto, TokenDataDocHydrated, XoxnoInfo, XoxnoLiquidStatsDto, AnalyticsMarketplaceUniqueUsers, ProtocolAprType, ProviderDto, DelegationDataOutput, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, LendingGovernanceProposalDoc, LendingAccountProfile, LendingIndexesDto, LendingAccountPnl, LendingAccountSummary, LendingEModeCategoryProfile, LendingMarketAnalyticsGraph, LendingStatsHistory, LendingMarketAverageGraph, LendingPositionStatus, LendingOverallStats, NftDocFilter, NftPaginated, LikeNftDto, InventorySummaryDtoHydrated, NftOfferPaginated, NftOfferDocFilter, NftOfferDocHydrated, ValueFp, TraitInfo, CollectionRanksDTO, ListingsResponseDto, NftDocHydrated, SignDataDto, SignWithdrawDto, SignAcceptGlobalOfferDto, SignMintDto, NftDocFull, CollectionProfileDoc, CollectionProfileEditDto, FloorPriceDto, PinnedCollectionDto, CollectionMintProfileDocHydrated, CollectionPinnedStatusDto, FollowCollectionDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionMintProfileDocWithStages, CollectionHoldersDto, CollectionHoldersExportDto, CollectionOwnerDto, CollectionStatsDocHydrated, CollectionOffersFilter, GlobalOfferPaginated, CreatorDetailsDto, ShareholderDto, StakingSummary, StakingPoolDoc, StakingEditDto, OwnedCollectionsDto, UserStakingSummaryDto, StakingCreatorDoc, StakingUserPoolNfts, StakingExploreDtoHydrated, OwnedServicesDto, FilterQueryDto, GlobalSearchResourcesPaginated, LendingNftAttributes, LendingTokenPriceDto, StellarAssetListItemDto, StellarLendingContextDto, StellarLendingLiveStateDto, StellarHubListItemDto, StellarSpokeListItemDto, StellarReserveListItemDto, ReserveDto, TopHoldersDto, AssetDto, AssetPageDto, AssetMarketDto, HubDto, SpokeDto, AccountPositionsDto, StellarUserActivityItemDto, GovernanceProposalsPageDto, MarketGraphDto, SpokeGraphDto, StellarStatsHistoryDto, StellarPositionsPnlDto, StellarPositionsRankDto, UserHistoryDto, PnlByScopeDto, RevenueSeriesDto, FeeRevenueSeriesDto, ParticipantCountsDto, LiquidationsSeriesDto, LiquidationsLeaderboardDto, VolumeSeriesDto, ActiveUsersSeriesDto, HolderDistributionDto, RateSpreadSeriesDto, DefiLlamaDimensionsDto, NotificationPaginated, PushNotificationCountResponse, NotificationDoc, MobileDeviceDoc, MobileDeviceRegistrationDto, PushNotificationResponse, PushNotificationDoc, NotificationSuccessResponseDto, EventNotificationDto, CreatorMarketingNotificationDto, StellarChallengeResponseDto, Web2UserDoc, SuccessWithMessageDto, NativeWalletDto, SwitchWalletDto, Web2WalletDto, Web2UserShardsDto, NftActivityFilter, NftActivityPaginated, NftActivityDocHydrated, VolumeGraph, AnalyticsVolumeDto, UserAnalyticsDto, GlobalAnalyticsOverviewResponseDto, UserStatsDto, AirdropDtoHydrated, TransactionDetailed, TransactionProcessStatus, TransactionCostData, TransactionCreate, TransactionSendResult, ChatMessageDocHydrated, SendChatMessageDto, UserConversationPaginated, ChatMessagePaginated, GlobalConversationSummaryDto, UserBlockPaginated, WebSocketTokenDto, UserInfo, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventRegistrationResponseDto, EventGuestRegistrationDto, EventTicketProfileDoc, EventTicketProfileCreateDto, EventTicketProfileEditDto, EventStageProfileDoc, EventStageProfileCreateDto, EventStageProfileEditDto, TicketPricesResponse, TicketCalculationRequestDto, DiscountCodeValidationResponse, EventInvitationDoc, EventInvitationCreateDto, EventInvitationFilter, EventInvitationQuery, EventInvitation, EventAcceptInvitation, EventClaimInvitationDto, EventVoucherFilter, EventVoucherQuery, EventQuestionDoc, EventQuestionCreateDto, EventQuestionEditDto, EventGuestFilter, EventGuestProfileQuery, EventGuestProfile, EventGuestExport, EventUserRole, EventUserRoleCreateDto, EventUserRoleEditDto, EventUserRoleDoc, BageQRData, TicketValidationResult, EventCheckInQR, EventVoucherDoc, EventVoucherCreateDto, EventVoucherEditDto, ManualCheckInDto, AnsweredQuestionWithDetails, EventGuestApproveDto, EventCountGroupedByCountry, EventReferralConfigDoc, EventReferralConfigCreateDto, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralDoc, EventReferralCreateDto, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, BlendUserPosition, SoroswapQuoteResponseDto, PerpOrderResponse, BarDto, SymbolInfoDto, PerpCoinExtended, PerpSpotCoinExtended, PerpCoinExtendedSlim, PerpLegalCheck, PerpSpotCoinExtendedSlim, L2BookPerpResponseSingle, TradesPerpResponseSingle, ActiveSpotAssetCtx, ActivePerpAssetCtx, PerpEvent } from '@xoxno/types';
1
+ import type { PublicOnly, RateType, LoginAccessDto, LoginRequestDto, UserNetworkInfoDto, UserTokenInventoryResponseDto, UserProfileDoc, UserProfileEditDto, UserProfileDto, UserSettingsDoc, NotificationPreferencesPostDto, SetEmailDto, SetPhoneDto, UserBillingDetails, VerifyEmailDto, TradesilvaniaSignature, SuccessDto, CreatorProfileDto, CreatorProfileDoc, CreatorProfileEditDto, CollectionStatsFilter, CollectionStatsPaginated, CheckLikeStatusResponseDto, UserFavoriteResponseDto, TokenDataDocHydrated, XoxnoInfo, XoxnoLiquidStatsDto, AnalyticsMarketplaceUniqueUsers, ProtocolAprType, ProviderDto, DelegationDataOutput, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, LendingGovernanceProposalDoc, LendingAccountProfile, LendingIndexesDto, LendingAccountPnl, LendingAccountSummary, LendingEModeCategoryProfile, LendingMarketAnalyticsGraph, LendingStatsHistory, LendingMarketAverageGraph, LendingPositionStatus, LendingOverallStats, DefillamaLendingExport, DefillamaLendingHistoryExport, DefillamaLendingRevenueExport, StellarLendingUserStatsExport, NftDocFilter, NftPaginated, LikeNftDto, InventorySummaryDtoHydrated, NftOfferPaginated, NftOfferDocFilter, NftOfferDocHydrated, ValueFp, TraitInfo, CollectionRanksDTO, ListingsResponseDto, NftDocHydrated, SignDataDto, SignWithdrawDto, SignAcceptGlobalOfferDto, SignMintDto, NftDocFull, CollectionProfileDoc, CollectionProfileEditDto, FloorPriceDto, PinnedCollectionDto, CollectionMintProfileDocHydrated, CollectionPinnedStatusDto, FollowCollectionDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionMintProfileDocWithStages, CollectionHoldersDto, CollectionHoldersExportDto, CollectionOwnerDto, CollectionStatsDocHydrated, CollectionOffersFilter, GlobalOfferPaginated, CreatorDetailsDto, ShareholderDto, StakingSummary, StakingPoolDoc, StakingEditDto, OwnedCollectionsDto, UserStakingSummaryDto, StakingCreatorDoc, StakingUserPoolNfts, StakingExploreDtoHydrated, OwnedServicesDto, FilterQueryDto, GlobalSearchResourcesPaginated, LendingNftAttributes, LendingTokenPriceDto, StellarAssetListItemDto, StellarLendingContextDto, StellarLendingLiveStateDto, StellarDetailedMarketDto, StellarHubListItemDto, StellarSpokeListItemDto, StellarReserveListItemDto, ReserveDto, TopHoldersDto, AssetDto, AssetPageDto, AssetMarketDto, HubDto, SpokeDto, AccountPositionsDto, StellarUserActivityItemDto, GovernanceProposalsPageDto, MarketGraphDto, SpokeGraphDto, StellarStatsHistoryDto, StellarPositionsPnlDto, StellarPositionsRankDto, UserHistoryDto, PnlByScopeDto, RevenueSeriesDto, FeeRevenueSeriesDto, ParticipantCountsDto, LiquidationsSeriesDto, LiquidationsLeaderboardDto, VolumeSeriesDto, ActiveUsersSeriesDto, HolderDistributionDto, RateSpreadSeriesDto, DefiLlamaDimensionsDto, NotificationPaginated, PushNotificationCountResponse, NotificationDoc, MobileDeviceDoc, MobileDeviceRegistrationDto, PushNotificationResponse, PushNotificationDoc, NotificationSuccessResponseDto, EventNotificationDto, CreatorMarketingNotificationDto, StellarChallengeResponseDto, Web2UserDoc, SuccessWithMessageDto, NativeWalletDto, SwitchWalletDto, Web2WalletDto, Web2UserShardsDto, NftActivityFilter, NftActivityPaginated, NftActivityDocHydrated, VolumeGraph, AnalyticsVolumeDto, UserAnalyticsDto, GlobalAnalyticsOverviewResponseDto, UserStatsDto, AirdropDtoHydrated, TransactionDetailed, TransactionProcessStatus, TransactionCostData, TransactionCreate, TransactionSendResult, ChatMessageDocHydrated, SendChatMessageDto, UserConversationPaginated, ChatMessagePaginated, GlobalConversationSummaryDto, UserBlockPaginated, WebSocketTokenDto, UserInfo, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventRegistrationResponseDto, EventGuestRegistrationDto, EventTicketProfileDoc, EventTicketProfileCreateDto, EventTicketProfileEditDto, EventStageProfileDoc, EventStageProfileCreateDto, EventStageProfileEditDto, TicketPricesResponse, TicketCalculationRequestDto, DiscountCodeValidationResponse, EventInvitationDoc, EventInvitationCreateDto, EventInvitationFilter, EventInvitationQuery, EventInvitation, EventAcceptInvitation, EventClaimInvitationDto, EventVoucherFilter, EventVoucherQuery, EventQuestionDoc, EventQuestionCreateDto, EventQuestionEditDto, EventGuestFilter, EventGuestProfileQuery, EventGuestProfile, EventGuestExport, EventUserRole, EventUserRoleCreateDto, EventUserRoleEditDto, EventUserRoleDoc, BageQRData, TicketValidationResult, EventCheckInQR, EventVoucherDoc, EventVoucherCreateDto, EventVoucherEditDto, ManualCheckInDto, AnsweredQuestionWithDetails, EventGuestApproveDto, EventCountGroupedByCountry, EventReferralConfigDoc, EventReferralConfigCreateDto, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralDoc, EventReferralCreateDto, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, BlendUserPosition, SoroswapQuoteResponseDto, PerpOrderResponse, BarDto, SymbolInfoDto, PerpCoinExtended, PerpSpotCoinExtended, PerpCoinExtendedSlim, PerpLegalCheck, PerpSpotCoinExtendedSlim, L2BookPerpResponseSingle, TradesPerpResponseSingle, ActiveSpotAssetCtx, ActivePerpAssetCtx, PerpEvent } from '@xoxno/types';
2
2
  import type { ActivityChain, TokenCategory, LendingPositionOrderByColumn, KustoOrderDirection, OfferType, StakingStatus, UserStatsOrderByColumn } from '@xoxno/types/enums';
3
3
  export declare const endpoints: {
4
4
  readonly "/liquid/xoxno/rate": {
@@ -465,11 +465,15 @@ export declare const endpoints: {
465
465
  readonly output: LendingPositionStatus[];
466
466
  };
467
467
  readonly "/lending/leaderboard/liquidate": {
468
- readonly input: {};
468
+ readonly input: {
469
+ chain?: ActivityChain[];
470
+ };
469
471
  readonly output: LendingPositionStatus[];
470
472
  };
471
473
  readonly "/lending/leaderboard/clean-bad-debt": {
472
- readonly input: {};
474
+ readonly input: {
475
+ chain?: ActivityChain[];
476
+ };
473
477
  readonly output: LendingPositionStatus[];
474
478
  };
475
479
  readonly "/lending/stats": {
@@ -482,6 +486,33 @@ export declare const endpoints: {
482
486
  };
483
487
  readonly output: Record<string, number>;
484
488
  };
489
+ readonly "/integrations/lending/stellar": {
490
+ readonly input: {};
491
+ readonly output: DefillamaLendingExport;
492
+ };
493
+ readonly "/integrations/lending/stellar/history": {
494
+ readonly input: {
495
+ startTime: string;
496
+ endTime: string;
497
+ bin?: string;
498
+ token?: string;
499
+ };
500
+ readonly output: DefillamaLendingHistoryExport;
501
+ };
502
+ readonly "/integrations/lending/stellar/revenue": {
503
+ readonly input: {
504
+ startTime: string;
505
+ endTime: string;
506
+ };
507
+ readonly output: DefillamaLendingRevenueExport;
508
+ };
509
+ readonly "/integrations/lending/stellar/active-users": {
510
+ readonly input: {
511
+ startTime: string;
512
+ endTime: string;
513
+ };
514
+ readonly output: StellarLendingUserStatsExport;
515
+ };
485
516
  readonly "/nft/query": {
486
517
  readonly input: {
487
518
  filter: PublicOnly<NftDocFilter>;
@@ -916,6 +947,10 @@ export declare const endpoints: {
916
947
  readonly input: {};
917
948
  readonly output: StellarLendingLiveStateDto;
918
949
  };
950
+ readonly "/stellar-lending/markets/detailed": {
951
+ readonly input: {};
952
+ readonly output: StellarDetailedMarketDto[];
953
+ };
919
954
  readonly "/stellar-lending/hubs": {
920
955
  readonly input: {};
921
956
  readonly output: StellarHubListItemDto[];