@xoxno/sdk-js 1.0.223 → 1.0.225

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.
Files changed (71) hide show
  1. package/dist/cjs/sdk/stellar/__tests__/admin.test.d.ts +0 -12
  2. package/dist/cjs/sdk/stellar/__tests__/builders-hubasset.test.d.ts +0 -11
  3. package/dist/cjs/sdk/stellar/__tests__/governance.test.d.ts +0 -4
  4. package/dist/cjs/sdk/stellar/__tests__/lending.test.d.ts +0 -20
  5. package/dist/cjs/sdk/stellar/__tests__/strategy-program.test.d.ts +0 -8
  6. package/dist/cjs/sdk/stellar/__tests__/swap-history.test.d.ts +1 -0
  7. package/dist/cjs/sdk/stellar/index.d.ts +1 -0
  8. package/dist/cjs/sdk/stellar/swap-history.d.ts +25 -0
  9. package/dist/cjs/sdk/stellar/swap-index.d.ts +2 -0
  10. package/dist/cjs/sdk/stellar/xdr-compat.d.ts +11 -0
  11. package/dist/esm/index.js +3 -0
  12. package/dist/esm/sdk/index.js +198 -0
  13. package/dist/esm/sdk/stellar/admin.js +385 -0
  14. package/dist/esm/sdk/stellar/auth-policy.js +310 -0
  15. package/dist/esm/sdk/stellar/cctp.js +23 -0
  16. package/dist/esm/sdk/stellar/contracts.js +49 -0
  17. package/dist/esm/sdk/stellar/events/decode.js +415 -0
  18. package/dist/esm/sdk/stellar/events/id.js +62 -0
  19. package/dist/esm/sdk/stellar/events/index.js +2 -0
  20. package/dist/esm/sdk/stellar/governance.js +403 -0
  21. package/dist/esm/sdk/stellar/index.js +25 -0
  22. package/dist/esm/sdk/stellar/lending-api-types.js +3 -0
  23. package/dist/esm/sdk/stellar/lending-read-types.js +1 -0
  24. package/dist/esm/sdk/stellar/lending-read.js +341 -0
  25. package/dist/esm/sdk/stellar/lending.js +358 -0
  26. package/dist/esm/sdk/stellar/math/account.js +256 -0
  27. package/dist/esm/sdk/stellar/math/index.js +11 -0
  28. package/dist/esm/sdk/stellar/math/limits.js +273 -0
  29. package/dist/esm/sdk/stellar/math/projection.js +130 -0
  30. package/dist/esm/sdk/stellar/math/rates.js +62 -0
  31. package/dist/esm/sdk/stellar/math/scaled.js +156 -0
  32. package/dist/esm/sdk/stellar/position-mode.js +11 -0
  33. package/dist/esm/sdk/stellar/prepare.js +47 -0
  34. package/dist/esm/sdk/stellar/quote.js +87 -0
  35. package/dist/esm/sdk/stellar/repay-swap.js +12 -0
  36. package/dist/esm/sdk/stellar/route-verify.js +285 -0
  37. package/dist/esm/sdk/stellar/scval-encode.js +464 -0
  38. package/dist/esm/sdk/stellar/swap-history.js +46 -0
  39. package/dist/esm/sdk/stellar/swap-index.js +1 -0
  40. package/dist/esm/sdk/stellar/swap.js +117 -0
  41. package/dist/esm/sdk/stellar/xdr-compat.js +17 -0
  42. package/dist/esm/sdk/stellar-schema.js +129 -0
  43. package/dist/esm/sdk/swagger.js +1957 -0
  44. package/dist/esm/sdk/types.js +1 -0
  45. package/dist/esm/sdk/utils.js +21 -0
  46. package/dist/esm/utils/api.js +169 -0
  47. package/dist/esm/utils/const.js +11 -0
  48. package/dist/esm/utils/errors.js +20 -0
  49. package/dist/esm/utils/guards.js +29 -0
  50. package/dist/esm/utils/helpers.js +20 -0
  51. package/dist/esm/utils/regex.js +14 -0
  52. package/dist/esm/utils/soroban-errors.js +149 -0
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.esm.js +1 -2
  55. package/dist/sdk/stellar/__tests__/admin.test.d.ts +0 -12
  56. package/dist/sdk/stellar/__tests__/builders-hubasset.test.d.ts +0 -11
  57. package/dist/sdk/stellar/__tests__/governance.test.d.ts +0 -4
  58. package/dist/sdk/stellar/__tests__/lending.test.d.ts +0 -20
  59. package/dist/sdk/stellar/__tests__/strategy-program.test.d.ts +0 -8
  60. package/dist/sdk/stellar/__tests__/swap-history.test.d.ts +1 -0
  61. package/dist/sdk/stellar/index.cjs +1 -1
  62. package/dist/sdk/stellar/index.d.ts +1 -0
  63. package/dist/sdk/stellar/index.esm.js +1 -1
  64. package/dist/sdk/stellar/swap-history.d.ts +25 -0
  65. package/dist/sdk/stellar/swap-index.cjs +2 -0
  66. package/dist/sdk/stellar/swap-index.d.ts +2 -0
  67. package/dist/sdk/stellar/swap-index.esm.js +2 -0
  68. package/dist/sdk/stellar/swap-index.esm.js.LICENSE.txt +8 -0
  69. package/dist/sdk/stellar/xdr-compat.d.ts +11 -0
  70. package/package.json +16 -5
  71. /package/dist/{index.esm.js.LICENSE.txt → sdk/stellar/swap-index.cjs.LICENSE.txt} +0 -0
@@ -0,0 +1,341 @@
1
+ /** Typed Stellar lending reads. Configure the API deployment with XOXNOClient.apiUrl.
2
+ * These cached HTTP reads do not simulate transactions or authorize spending.
3
+ */ const BASE = '/stellar-lending';
4
+ const enc = encodeURIComponent;
5
+ /** Load assets, hubs, spokes, reserves and keyed reserve details in one response.
6
+ * @category Stellar lending reads
7
+ */ export const getStellarLendingContext = (client, init)=>client.fetchWithTimeout(`${BASE}/context`, init);
8
+ /** Read live indexes and the controller collateral floor. Cached data is not transaction simulation.
9
+ * @category Stellar lending reads
10
+ */ export const getStellarLendingLiveState = (client, init)=>client.fetchWithTimeout(`${BASE}/live-state`, init);
11
+ /** Read detailed live market state for every hub and asset.
12
+ * @category Stellar lending reads
13
+ */ export const getStellarDetailedMarkets = (client, init)=>client.fetchWithTimeout(`${BASE}/markets/detailed`, init);
14
+ /** List lending assets aggregated across hubs.
15
+ * @category Stellar lending reads
16
+ */ export const getStellarAssets = (client, init)=>client.fetchWithTimeout(`${BASE}/assets`, init);
17
+ /** List liquidity hubs and their aggregate balances.
18
+ * @category Stellar lending reads
19
+ */ export const getStellarHubs = (client, init)=>client.fetchWithTimeout(`${BASE}/hubs`, init);
20
+ /** List risk spokes for market selection.
21
+ * @category Stellar lending reads
22
+ */ export const getStellarSpokes = (client, init)=>client.fetchWithTimeout(`${BASE}/spokes`, init);
23
+ /** List reserves, optionally filtered by hub, spoke and asset. A reserve is one (spokeId, hubId, asset) coordinate.
24
+ * @category Stellar lending reads
25
+ */ export const getStellarReserves = (client, params = {}, init)=>client.fetchWithTimeout(`${BASE}/reserves`, {
26
+ ...init,
27
+ params: {
28
+ ...params
29
+ }
30
+ });
31
+ /** Read one reserve with risk flags, capacity, rates and liquidity.
32
+ * @category Stellar lending reads
33
+ */ export const getStellarReserve = (client, spokeId, hubId, asset, init)=>client.fetchWithTimeout(`${BASE}/reserves/${spokeId}/${hubId}/${enc(asset)}`, init);
34
+ /** Read the aggregate overview for one lending token contract.
35
+ * @category Stellar lending reads
36
+ */ export const getStellarAsset = (client, asset, init)=>client.fetchWithTimeout(`${BASE}/assets/${enc(asset)}`, init);
37
+ /** Read hub totals and typed per-asset opportunities. USD totals are numbers.
38
+ * @category Stellar lending reads
39
+ */ export const getStellarHub = (client, hubId, init)=>client.fetchWithTimeout(`${BASE}/hubs/${hubId}`, init);
40
+ /** Read spoke totals, connected hubs and risk-configured markets.
41
+ * @category Stellar lending reads
42
+ */ export const getStellarSpoke = (client, spokeId, init)=>client.fetchWithTimeout(`${BASE}/spokes/${spokeId}`, init);
43
+ /** Read all positions for a wallet. supplyAmount and borrowAmount are RAY token quantities, not transaction base units.
44
+ * @category Stellar lending reads
45
+ */ export const getStellarUserPositions = (client, owner, init)=>client.fetchWithTimeout(`${BASE}/users/${enc(owner)}/positions`, init);
46
+ /** Read a single lending account, identified by its decimal ID; balances use RAY token quantities.
47
+ * @category Stellar lending reads
48
+ */ export const getStellarAccountPositions = (client, accountId, init)=>client.fetchWithTimeout(`${BASE}/accounts/${enc(accountId)}/positions`, init);
49
+ /** Read exact token base-unit holdings for a G or C wallet. Holdings may exceed spendable funds. Requires the API release exposing this route; older deployments return 404.
50
+ * @category Stellar lending reads
51
+ */ export const getStellarWalletBalance = (client, owner, asset, init)=>client.fetchWithTimeout(`${BASE}/users/${enc(owner)}/assets/${enc(asset)}/balance`, init);
52
+ /** Load overview, deposit/borrow markets and chart series for an asset page.
53
+ * @category Stellar lending reads
54
+ */ export const getStellarAssetPage = (client, asset, query, init)=>client.fetchWithTimeout(`${BASE}/assets/${enc(asset)}/page`, {
55
+ ...init,
56
+ params: {
57
+ ...query
58
+ }
59
+ });
60
+ /** List an asset’s markets, including pause/freeze flags and remaining capacity. side is deposit or borrow.
61
+ * @category Stellar lending reads
62
+ */ export const getStellarAssetMarkets = (client, asset, side, init)=>client.fetchWithTimeout(`${BASE}/assets/${enc(asset)}/markets`, {
63
+ ...init,
64
+ params: {
65
+ side
66
+ }
67
+ });
68
+ /** List holders and their shares; side is deposits or borrows.
69
+ * @category Stellar lending reads
70
+ */ export const getStellarReserveHolders = (client, spokeId, hubId, asset, side, init)=>client.fetchWithTimeout(`${BASE}/reserves/${spokeId}/${hubId}/${enc(asset)}/holders`, {
71
+ ...init,
72
+ params: {
73
+ side
74
+ }
75
+ });
76
+ /** List holders and their shares; side is deposits or borrows.
77
+ * @category Stellar lending reads
78
+ */ export const getStellarHubHolders = (client, hubId, side, init)=>client.fetchWithTimeout(`${BASE}/hubs/${hubId}/holders`, {
79
+ ...init,
80
+ params: {
81
+ side
82
+ }
83
+ });
84
+ /** List holders and their shares; side is deposits or borrows.
85
+ * @category Stellar lending reads
86
+ */ export const getStellarSpokeHolders = (client, spokeId, side, init)=>client.fetchWithTimeout(`${BASE}/spokes/${spokeId}/holders`, {
87
+ ...init,
88
+ params: {
89
+ side
90
+ }
91
+ });
92
+ /** Read binned market-history points.
93
+ * @category Stellar lending reads
94
+ */ export const getStellarAssetGraph = (client, asset, query, init)=>client.fetchWithTimeout(`${BASE}/assets/${enc(asset)}/graph`, {
95
+ ...init,
96
+ params: {
97
+ ...query
98
+ }
99
+ });
100
+ /** Read binned market-history points.
101
+ * @category Stellar lending reads
102
+ */ export const getStellarHubGraph = (client, hubId, query, init)=>client.fetchWithTimeout(`${BASE}/hubs/${hubId}/graph`, {
103
+ ...init,
104
+ params: {
105
+ ...query
106
+ }
107
+ });
108
+ /** Read spoke-attributed suppliedUsd/borrowedUsd and blended APYs.
109
+ * @category Stellar lending reads
110
+ */ export const getStellarSpokeGraph = (client, spokeId, query, init)=>client.fetchWithTimeout(`${BASE}/spokes/${spokeId}/graph`, {
111
+ ...init,
112
+ params: {
113
+ ...query
114
+ }
115
+ });
116
+ /** Read binned market-history points.
117
+ * @category Stellar lending reads
118
+ */ export const getStellarReserveGraph = (client, spokeId, hubId, asset, query, init)=>client.fetchWithTimeout(`${BASE}/reserves/${spokeId}/${hubId}/${enc(asset)}/graph`, {
119
+ ...init,
120
+ params: {
121
+ ...query
122
+ }
123
+ });
124
+ /** Read the legacy paged action feed. Display amounts are floating point; use userActivityPage for exact amounts and transaction hashes when available.
125
+ * @category Stellar lending reads
126
+ */ export const getStellarUserActivity = (client, owner, params = {}, init)=>client.fetchWithTimeout(`${BASE}/users/${enc(owner)}/activity`, {
127
+ ...init,
128
+ params: {
129
+ ...params
130
+ }
131
+ });
132
+ /** Read exact owner-attributed activity. Pass the opaque continuationToken unchanged for the next page. Requires the API release exposing this route; older deployments return 404.
133
+ * @category Stellar lending reads
134
+ */ export const getStellarUserActivityPage = (client, owner, params = {}, init)=>client.fetchWithTimeout(`${BASE}/users/${enc(owner)}/activity/page`, {
135
+ ...init,
136
+ params: {
137
+ ...params
138
+ }
139
+ });
140
+ /** Read governance proposals; pass the opaque continuationToken unchanged.
141
+ * @category Stellar lending reads
142
+ */ export const getStellarGovernanceProposals = (client, params = {}, init)=>client.fetchWithTimeout(`${BASE}/governance/proposals`, {
143
+ ...init,
144
+ params: {
145
+ ...params
146
+ }
147
+ });
148
+ /** Read a paged wallet leaderboard under positions. Its healthFactor is debt / liquidation-weighted collateral × 100; higher is riskier.
149
+ * @category Stellar lending reads
150
+ */ export const getStellarPositionsLeaderboard = (client, params = {}, init)=>client.fetchWithTimeout(`${BASE}/positions`, {
151
+ ...init,
152
+ params: {
153
+ ...params
154
+ }
155
+ });
156
+ /** Read distinct supplier, borrower and total account counts.
157
+ * @category Stellar lending reads
158
+ */ export const getStellarParticipantCounts = (client, params = {}, init)=>client.fetchWithTimeout(`${BASE}/participants`, {
159
+ ...init,
160
+ params: {
161
+ ...params
162
+ }
163
+ });
164
+ /** Read liquidators ranked by gross seized USD.
165
+ * @category Stellar lending reads
166
+ */ export const getStellarLiquidationsLeaderboard = (client, params = {}, init)=>client.fetchWithTimeout(`${BASE}/liquidations/leaderboard`, {
167
+ ...init,
168
+ params: {
169
+ ...params
170
+ }
171
+ });
172
+ /** Read position-size distribution; side is deposits or borrows.
173
+ * @category Stellar lending reads
174
+ */ export const getStellarHolderDistribution = (client, params = {}, init)=>client.fetchWithTimeout(`${BASE}/distribution`, {
175
+ ...init,
176
+ params: {
177
+ ...params
178
+ }
179
+ });
180
+ /** Read the paged Stellar campaign leaderboard.
181
+ * @category Stellar lending reads
182
+ */ export const getStellarCampaignLeaderboard = (client, params = {}, init)=>client.fetchWithTimeout(`${BASE}/campaign/leaderboard`, {
183
+ ...init,
184
+ params: {
185
+ ...params
186
+ }
187
+ });
188
+ /** Read protocol USD history as parallel arrays sharing timestamps.
189
+ * @category Stellar lending reads
190
+ */ export const getStellarStatsHistory = (client, query, init)=>client.fetchWithTimeout(`${BASE}/stats/history`, {
191
+ ...init,
192
+ params: {
193
+ ...query
194
+ }
195
+ });
196
+ /** Read reserve interest revenue for the selected scope.
197
+ * @category Stellar lending reads
198
+ */ export const getStellarRevenueSeries = (client, query, init)=>client.fetchWithTimeout(`${BASE}/revenue`, {
199
+ ...init,
200
+ params: {
201
+ ...query
202
+ }
203
+ });
204
+ /** Read flash-loan and strategy-fee revenue.
205
+ * @category Stellar lending reads
206
+ */ export const getStellarFeeRevenueSeries = (client, query, init)=>client.fetchWithTimeout(`${BASE}/revenue/fees`, {
207
+ ...init,
208
+ params: {
209
+ ...query
210
+ }
211
+ });
212
+ /** Read liquidation history. Gross seized collateral differs from net liquidator credit.
213
+ * @category Stellar lending reads
214
+ */ export const getStellarLiquidationsSeries = (client, query, init)=>client.fetchWithTimeout(`${BASE}/liquidations`, {
215
+ ...init,
216
+ params: {
217
+ ...query
218
+ }
219
+ });
220
+ /** Read supply, borrow, withdrawal and repayment volume.
221
+ * @category Stellar lending reads
222
+ */ export const getStellarVolumeSeries = (client, query, init)=>client.fetchWithTimeout(`${BASE}/volume`, {
223
+ ...init,
224
+ params: {
225
+ ...query
226
+ }
227
+ });
228
+ /** Read active owners/accounts and new-user history.
229
+ * @category Stellar lending reads
230
+ */ export const getStellarActiveUsersSeries = (client, query, init)=>client.fetchWithTimeout(`${BASE}/active-users`, {
231
+ ...init,
232
+ params: {
233
+ ...query
234
+ }
235
+ });
236
+ /** Read per-market borrow-minus-supply APY spreads.
237
+ * @category Stellar lending reads
238
+ */ export const getStellarRateSpreadSeries = (client, query, init)=>client.fetchWithTimeout(`${BASE}/rate-spread`, {
239
+ ...init,
240
+ params: {
241
+ ...query
242
+ }
243
+ });
244
+ /** Read protocol TVL, borrowing, fees and revenue dimensions.
245
+ * @category Stellar lending reads
246
+ */ export const getStellarDefiLlamaDimensions = (client, query, init)=>client.fetchWithTimeout(`${BASE}/defillama`, {
247
+ ...init,
248
+ params: {
249
+ ...query
250
+ }
251
+ });
252
+ /** Read supplied/borrowed history for a lending account, not a wallet address.
253
+ * @category Stellar lending reads
254
+ */ export const getStellarUserHistory = (client, accountId, query, init)=>client.fetchWithTimeout(`${BASE}/users/${enc(accountId)}/history`, {
255
+ ...init,
256
+ params: {
257
+ ...query
258
+ }
259
+ });
260
+ /** Read realized and unrealized interest PnL by asset for one account.
261
+ * @category Stellar lending reads
262
+ */ export const getStellarPositionsPnl = (client, accountId, init)=>client.fetchWithTimeout(`${BASE}/pnl`, {
263
+ ...init,
264
+ params: {
265
+ accountId
266
+ }
267
+ });
268
+ /** Read cross-account PnL grouped by scope.
269
+ * @category Stellar lending reads
270
+ */ export const getStellarPnlByScope = (client, scope, init)=>client.fetchWithTimeout(`${BASE}/pnl/scope`, {
271
+ ...init,
272
+ params: {
273
+ scope
274
+ }
275
+ });
276
+ /** Read one wallet’s Stellar campaign row.
277
+ * @category Stellar lending reads
278
+ */ export const getStellarCampaignMe = (client, owner, init)=>client.fetchWithTimeout(`${BASE}/campaign/me`, {
279
+ ...init,
280
+ params: {
281
+ owner
282
+ }
283
+ });
284
+ /** Bind a client once for typed market and portfolio reads.
285
+ * @param client - API client configured for the same Stellar deployment as your RPC/controller.
286
+ * @example
287
+ * ```ts
288
+ * const read = stellarLendingRead(new XOXNOClient({ apiUrl }))
289
+ * const markets = await read.reserves({ spokeId: 1 })
290
+ * const positions = await read.userPositions(walletAddress)
291
+ * ```
292
+ * @category Stellar lending reads
293
+ */ export const stellarLendingRead = (client)=>({
294
+ /** {@inheritDoc getStellarLendingContext} */ context: (init)=>getStellarLendingContext(client, init),
295
+ /** {@inheritDoc getStellarLendingLiveState} */ liveState: (init)=>getStellarLendingLiveState(client, init),
296
+ /** {@inheritDoc getStellarDetailedMarkets} */ marketsDetailed: (init)=>getStellarDetailedMarkets(client, init),
297
+ /** {@inheritDoc getStellarAssets} */ assets: (init)=>getStellarAssets(client, init),
298
+ /** {@inheritDoc getStellarHubs} */ hubs: (init)=>getStellarHubs(client, init),
299
+ /** {@inheritDoc getStellarSpokes} */ spokes: (init)=>getStellarSpokes(client, init),
300
+ /** List reserves. The one-argument request-init form is retained for compatibility. */ reserves: (paramsOrInit = {}, init)=>{
301
+ const filters = init !== undefined || 'hubId' in paramsOrInit || 'spokeId' in paramsOrInit || 'asset' in paramsOrInit;
302
+ return filters ? getStellarReserves(client, paramsOrInit, init) : getStellarReserves(client, {}, paramsOrInit);
303
+ },
304
+ /** {@inheritDoc getStellarReserve} */ reserve: (spokeId, hubId, asset, init)=>getStellarReserve(client, spokeId, hubId, asset, init),
305
+ /** {@inheritDoc getStellarAsset} */ asset: (asset, init)=>getStellarAsset(client, asset, init),
306
+ /** {@inheritDoc getStellarHub} */ hub: (hubId, init)=>getStellarHub(client, hubId, init),
307
+ /** {@inheritDoc getStellarSpoke} */ spoke: (spokeId, init)=>getStellarSpoke(client, spokeId, init),
308
+ /** {@inheritDoc getStellarUserPositions} */ userPositions: (owner, init)=>getStellarUserPositions(client, owner, init),
309
+ /** {@inheritDoc getStellarAccountPositions} */ accountPositions: (accountId, init)=>getStellarAccountPositions(client, accountId, init),
310
+ /** {@inheritDoc getStellarWalletBalance} */ walletBalance: (owner, asset, init)=>getStellarWalletBalance(client, owner, asset, init),
311
+ /** {@inheritDoc getStellarAssetPage} */ assetPage: (asset, query, init)=>getStellarAssetPage(client, asset, query, init),
312
+ /** {@inheritDoc getStellarAssetMarkets} */ assetMarkets: (asset, side, init)=>getStellarAssetMarkets(client, asset, side, init),
313
+ /** {@inheritDoc getStellarReserveHolders} */ reserveHolders: (spokeId, hubId, asset, side, init)=>getStellarReserveHolders(client, spokeId, hubId, asset, side, init),
314
+ /** {@inheritDoc getStellarHubHolders} */ hubHolders: (hubId, side, init)=>getStellarHubHolders(client, hubId, side, init),
315
+ /** {@inheritDoc getStellarSpokeHolders} */ spokeHolders: (spokeId, side, init)=>getStellarSpokeHolders(client, spokeId, side, init),
316
+ /** {@inheritDoc getStellarAssetGraph} */ assetGraph: (asset, query, init)=>getStellarAssetGraph(client, asset, query, init),
317
+ /** {@inheritDoc getStellarHubGraph} */ hubGraph: (hubId, query, init)=>getStellarHubGraph(client, hubId, query, init),
318
+ /** {@inheritDoc getStellarSpokeGraph} */ spokeGraph: (spokeId, query, init)=>getStellarSpokeGraph(client, spokeId, query, init),
319
+ /** {@inheritDoc getStellarReserveGraph} */ reserveGraph: (spokeId, hubId, asset, query, init)=>getStellarReserveGraph(client, spokeId, hubId, asset, query, init),
320
+ /** {@inheritDoc getStellarUserActivity} */ userActivity: (owner, params = {}, init)=>getStellarUserActivity(client, owner, params, init),
321
+ /** {@inheritDoc getStellarUserActivityPage} */ userActivityPage: (owner, params = {}, init)=>getStellarUserActivityPage(client, owner, params, init),
322
+ /** {@inheritDoc getStellarGovernanceProposals} */ governanceProposals: (params = {}, init)=>getStellarGovernanceProposals(client, params, init),
323
+ /** {@inheritDoc getStellarPositionsLeaderboard} */ positionsLeaderboard: (params = {}, init)=>getStellarPositionsLeaderboard(client, params, init),
324
+ /** {@inheritDoc getStellarParticipantCounts} */ participants: (params = {}, init)=>getStellarParticipantCounts(client, params, init),
325
+ /** {@inheritDoc getStellarLiquidationsLeaderboard} */ liquidationsLeaderboard: (params = {}, init)=>getStellarLiquidationsLeaderboard(client, params, init),
326
+ /** {@inheritDoc getStellarHolderDistribution} */ distribution: (params = {}, init)=>getStellarHolderDistribution(client, params, init),
327
+ /** {@inheritDoc getStellarCampaignLeaderboard} */ campaignLeaderboard: (params = {}, init)=>getStellarCampaignLeaderboard(client, params, init),
328
+ /** {@inheritDoc getStellarStatsHistory} */ statsHistory: (query, init)=>getStellarStatsHistory(client, query, init),
329
+ /** {@inheritDoc getStellarRevenueSeries} */ revenue: (query, init)=>getStellarRevenueSeries(client, query, init),
330
+ /** {@inheritDoc getStellarFeeRevenueSeries} */ feeRevenue: (query, init)=>getStellarFeeRevenueSeries(client, query, init),
331
+ /** {@inheritDoc getStellarLiquidationsSeries} */ liquidations: (query, init)=>getStellarLiquidationsSeries(client, query, init),
332
+ /** {@inheritDoc getStellarVolumeSeries} */ volume: (query, init)=>getStellarVolumeSeries(client, query, init),
333
+ /** {@inheritDoc getStellarActiveUsersSeries} */ activeUsers: (query, init)=>getStellarActiveUsersSeries(client, query, init),
334
+ /** {@inheritDoc getStellarRateSpreadSeries} */ rateSpread: (query, init)=>getStellarRateSpreadSeries(client, query, init),
335
+ /** {@inheritDoc getStellarDefiLlamaDimensions} */ defillama: (query, init)=>getStellarDefiLlamaDimensions(client, query, init),
336
+ /** {@inheritDoc getStellarUserHistory} */ userHistory: (accountId, query, init)=>getStellarUserHistory(client, accountId, query, init),
337
+ /** {@inheritDoc getStellarPositionsPnl} */ positionsPnl: (accountId, init)=>getStellarPositionsPnl(client, accountId, init),
338
+ /** {@inheritDoc getStellarPnlByScope} */ pnlByScope: (scope, init)=>getStellarPnlByScope(client, scope, init),
339
+ /** {@inheritDoc getStellarCampaignMe} */ campaignMe: (owner, init)=>getStellarCampaignMe(client, owner, init)
340
+ });
341
+ export * from "./lending-read-types.js";