ault-sdk-ts 0.8.0 → 0.9.0

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 (67) hide show
  1. package/README.md +104 -1
  2. package/dist/agent/sign-and-broadcast.d.ts +1 -1
  3. package/dist/agent/tx/perpetual.d.ts +10 -0
  4. package/dist/client.d.ts +2 -0
  5. package/dist/core/clob-msgs.d.ts +12 -3
  6. package/dist/core/manifest-types.d.ts +8 -0
  7. package/dist/core/network.d.ts +11 -7
  8. package/dist/core/perpetual-gas.d.ts +12 -0
  9. package/dist/core/perpetual-msgs.d.ts +60 -0
  10. package/dist/eip712/msg-encoders.generated.d.ts +8 -0
  11. package/dist/eip712/msg.generated.d.ts +76 -6
  12. package/dist/eip712/registry.d.ts +11 -0
  13. package/dist/eip712/types.d.ts +5 -0
  14. package/dist/high-level/tx/perpetual.d.ts +3 -0
  15. package/dist/high-level/types.d.ts +83 -4
  16. package/dist/index.cjs +25837 -10411
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.ts +3 -0
  19. package/dist/index.js +25760 -10598
  20. package/dist/index.js.map +1 -1
  21. package/dist/perp/decimal.d.ts +39 -0
  22. package/dist/perp/funding.d.ts +18 -0
  23. package/dist/perp/index.d.ts +5 -0
  24. package/dist/perp/margin.d.ts +33 -0
  25. package/dist/perp/orders.d.ts +27 -0
  26. package/dist/perp/position.d.ts +29 -0
  27. package/dist/proto/gen/ault/accountx/v1/query.d.ts +10 -1
  28. package/dist/proto/gen/ault/authority/v1/authority.d.ts +2 -0
  29. package/dist/proto/gen/ault/clob/v1/genesis.d.ts +7 -0
  30. package/dist/proto/gen/ault/clob/v1/twap.d.ts +11 -8
  31. package/dist/proto/gen/ault/clob/v1/tx.d.ts +11 -1
  32. package/dist/proto/gen/ault/common/v1/system.d.ts +31 -0
  33. package/dist/proto/gen/ault/lending/v1/genesis.d.ts +34 -0
  34. package/dist/proto/gen/ault/lending/v1/lending.d.ts +152 -0
  35. package/dist/proto/gen/ault/lending/v1/params.d.ts +42 -0
  36. package/dist/proto/gen/ault/lending/v1/query.d.ts +157 -0
  37. package/dist/proto/gen/ault/lending/v1/tx.d.ts +236 -0
  38. package/dist/proto/gen/ault/margin/v1/genesis.d.ts +102 -0
  39. package/dist/proto/gen/ault/margin/v1/margin.d.ts +130 -0
  40. package/dist/proto/gen/ault/margin/v1/params.d.ts +31 -0
  41. package/dist/proto/gen/ault/margin/v1/query.d.ts +127 -0
  42. package/dist/proto/gen/ault/margin/v1/tx.d.ts +181 -0
  43. package/dist/proto/gen/ault/market/v1/market.d.ts +9 -0
  44. package/dist/proto/gen/ault/market/v1/tx.d.ts +16 -0
  45. package/dist/proto/gen/ault/oracle/v1/genesis.d.ts +69 -0
  46. package/dist/proto/gen/ault/oracle/v1/oracle.d.ts +154 -0
  47. package/dist/proto/gen/ault/oracle/v1/query.d.ts +93 -0
  48. package/dist/proto/gen/ault/oracle/v1/tx.d.ts +151 -0
  49. package/dist/proto/gen/ault/perpetual/v1/genesis.d.ts +119 -0
  50. package/dist/proto/gen/ault/perpetual/v1/order.d.ts +46 -0
  51. package/dist/proto/gen/ault/perpetual/v1/params.d.ts +30 -0
  52. package/dist/proto/gen/ault/perpetual/v1/perpetual.d.ts +192 -0
  53. package/dist/proto/gen/ault/perpetual/v1/query.d.ts +150 -0
  54. package/dist/proto/gen/ault/perpetual/v1/tx.d.ts +97 -0
  55. package/dist/proto/gen/ault/systemtx/v1/genesis.d.ts +37 -0
  56. package/dist/proto/gen/ault/vault/v1/genesis.d.ts +90 -0
  57. package/dist/proto/gen/ault/vault/v1/params.d.ts +55 -0
  58. package/dist/proto/gen/ault/vault/v1/query.d.ts +152 -0
  59. package/dist/proto/gen/ault/vault/v1/tx.d.ts +194 -0
  60. package/dist/proto/gen/ault/vault/v1/vault.d.ts +227 -0
  61. package/dist/rest/dex-types.generated.d.ts +2045 -27
  62. package/dist/rest/dex.d.ts +18 -1
  63. package/dist/rest/dex.generated.d.ts +5097 -1276
  64. package/dist/rest/perpetual.d.ts +46 -0
  65. package/dist/rest/tokenregistry.d.ts +7 -0
  66. package/dist/utils/cosmos-dec.d.ts +1 -0
  67. package/package.json +1 -1
@@ -25,7 +25,7 @@ All timestamps are in milliseconds unless noted otherwise.
25
25
 
26
26
  * OpenAPI spec version: 2.5.0
27
27
  */
28
- import * as zod from 'zod';
28
+ import * as zod from "zod";
29
29
  /**
30
30
  * Reports that the process is up. Performs no dependency checks — DB reachability is exposed separately via /db-ready.
31
31
 
@@ -76,6 +76,757 @@ export declare const GetStatusResponse: zod.ZodObject<{
76
76
  last_indexed_height: zod.ZodNumber;
77
77
  last_indexed_at: zod.z.ZodISODateTime;
78
78
  }, zod.z.core.$strip>;
79
+ /**
80
+ * Returns the current x/lending module parameters indexed from chain state.
81
+ * @summary Get lending module parameters
82
+ */
83
+ export declare const getLendingParamsResponseAssetRiskUpdateDelaySecondsMin = 0;
84
+ export declare const getLendingParamsResponseBorrowOracleChecksMin = 0;
85
+ export declare const getLendingParamsResponseBorrowOracleChecksMax = 65535;
86
+ export declare const getLendingParamsResponseWithdrawCollateralOracleChecksMin = 0;
87
+ export declare const getLendingParamsResponseWithdrawCollateralOracleChecksMax = 65535;
88
+ export declare const getLendingParamsResponseLiquidationOracleChecksMin = 0;
89
+ export declare const getLendingParamsResponseLiquidationOracleChecksMax = 65535;
90
+ export declare const GetLendingParamsResponse: zod.ZodObject<{
91
+ maxProtocolFeeRate: zod.ZodString;
92
+ assetRiskUpdateDelaySeconds: zod.ZodNumber;
93
+ minResidualDebtValue: zod.ZodString;
94
+ maxBorrowRate: zod.ZodNullable<zod.ZodString>;
95
+ maxLiquidationFeeRate: zod.ZodNullable<zod.ZodString>;
96
+ insuranceFundAllocationRate: zod.ZodString;
97
+ borrowOracleChecks: zod.ZodNumber;
98
+ withdrawCollateralOracleChecks: zod.ZodNumber;
99
+ liquidationOracleChecks: zod.ZodNumber;
100
+ }, zod.z.core.$strip>;
101
+ /**
102
+ * Returns every lending pool whose asset configuration matches the
103
+ optional borrowable and collateral denom filters. An empty result is
104
+ returned as an array, not 404.
105
+
106
+ * @summary List lending pools
107
+ */
108
+ export declare const ListLendingPoolsQueryParams: zod.ZodObject<{
109
+ borrowable_denom: zod.ZodOptional<zod.ZodString>;
110
+ collateral_denom: zod.ZodOptional<zod.ZodString>;
111
+ }, zod.z.core.$strip>;
112
+ export declare const listLendingPoolsResponseOwnerRegExp: RegExp;
113
+ export declare const ListLendingPoolsResponseItem: zod.ZodObject<{
114
+ poolId: zod.ZodString;
115
+ owner: zod.ZodString;
116
+ borrowableDenoms: zod.ZodArray<zod.ZodString>;
117
+ collateralDenoms: zod.ZodArray<zod.ZodString>;
118
+ }, zod.z.core.$strip>;
119
+ export declare const ListLendingPoolsResponse: zod.ZodArray<zod.ZodObject<{
120
+ poolId: zod.ZodString;
121
+ owner: zod.ZodString;
122
+ borrowableDenoms: zod.ZodArray<zod.ZodString>;
123
+ collateralDenoms: zod.ZodArray<zod.ZodString>;
124
+ }, zod.z.core.$strip>>;
125
+ /**
126
+ * @summary Get a lending pool
127
+ */
128
+ export declare const GetLendingPoolParams: zod.ZodObject<{
129
+ pool_id: zod.ZodNumber;
130
+ }, zod.z.core.$strip>;
131
+ export declare const getLendingPoolResponseOwnerRegExp: RegExp;
132
+ export declare const GetLendingPoolResponse: zod.ZodObject<{
133
+ owner: zod.ZodString;
134
+ allowSocialize: zod.ZodBoolean;
135
+ targetHealthFactor: zod.ZodString;
136
+ minBonus: zod.ZodString;
137
+ maxBonusHealthFactor: zod.ZodString;
138
+ protocolFeeRate: zod.ZodString;
139
+ liquidationFeeRate: zod.ZodNullable<zod.ZodString>;
140
+ maxOracleStalenessMicroseconds: zod.ZodNumber;
141
+ maxOracleDeviationRatio: zod.ZodString;
142
+ disabledActions: zod.ZodArray<zod.ZodEnum<{
143
+ supply: "supply";
144
+ withdraw: "withdraw";
145
+ supplyCollateral: "supplyCollateral";
146
+ withdrawCollateral: "withdrawCollateral";
147
+ borrow: "borrow";
148
+ repay: "repay";
149
+ liquidate: "liquidate";
150
+ }>>;
151
+ }, zod.z.core.$strip>;
152
+ /**
153
+ * @summary List assets in a lending pool
154
+ */
155
+ export declare const ListLendingAssetsParams: zod.ZodObject<{
156
+ pool_id: zod.ZodNumber;
157
+ }, zod.z.core.$strip>;
158
+ export declare const ListLendingAssetsQueryParams: zod.ZodObject<{
159
+ borrowable: zod.ZodOptional<zod.ZodBoolean>;
160
+ collateral: zod.ZodOptional<zod.ZodBoolean>;
161
+ }, zod.z.core.$strip>;
162
+ export declare const ListLendingAssetsResponseItem: zod.ZodObject<{
163
+ poolId: zod.ZodString;
164
+ denom: zod.ZodString;
165
+ isBorrowable: zod.ZodBoolean;
166
+ isCollateral: zod.ZodBoolean;
167
+ supplyCap: zod.ZodString;
168
+ borrowCap: zod.ZodString;
169
+ }, zod.z.core.$strip>;
170
+ export declare const ListLendingAssetsResponse: zod.ZodArray<zod.ZodObject<{
171
+ poolId: zod.ZodString;
172
+ denom: zod.ZodString;
173
+ isBorrowable: zod.ZodBoolean;
174
+ isCollateral: zod.ZodBoolean;
175
+ supplyCap: zod.ZodString;
176
+ borrowCap: zod.ZodString;
177
+ }, zod.z.core.$strip>>;
178
+ /**
179
+ * @summary Get lending asset configuration
180
+ */
181
+ export declare const GetLendingAssetParams: zod.ZodObject<{
182
+ pool_id: zod.ZodNumber;
183
+ denom: zod.ZodString;
184
+ }, zod.z.core.$strip>;
185
+ export declare const GetLendingAssetResponse: zod.ZodIntersection<zod.ZodObject<{
186
+ poolId: zod.ZodString;
187
+ denom: zod.ZodString;
188
+ isBorrowable: zod.ZodBoolean;
189
+ isCollateral: zod.ZodBoolean;
190
+ supplyCap: zod.ZodString;
191
+ borrowCap: zod.ZodString;
192
+ }, zod.z.core.$strip>, zod.ZodObject<{
193
+ ltv: zod.ZodString;
194
+ liquidationThreshold: zod.ZodString;
195
+ maxBonus: zod.ZodString;
196
+ kinks: zod.ZodArray<zod.ZodString>;
197
+ rates: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
198
+ oracleAsset: zod.ZodString;
199
+ spotMarketId: zod.ZodNullable<zod.ZodString>;
200
+ }, zod.z.core.$strip>>;
201
+ /**
202
+ * @summary Get current lending asset state
203
+ */
204
+ export declare const GetLendingAssetStateParams: zod.ZodObject<{
205
+ pool_id: zod.ZodNumber;
206
+ denom: zod.ZodString;
207
+ }, zod.z.core.$strip>;
208
+ export declare const GetLendingAssetStateResponse: zod.ZodObject<{
209
+ totalSupplyAssets: zod.ZodString;
210
+ totalSupplyShares: zod.ZodString;
211
+ totalBorrowAssets: zod.ZodString;
212
+ totalBorrowShares: zod.ZodString;
213
+ availableLiquidityAssets: zod.ZodString;
214
+ supplyCapRemainingAssets: zod.ZodNullable<zod.ZodString>;
215
+ borrowCapRemainingAssets: zod.ZodNullable<zod.ZodString>;
216
+ utilization: zod.ZodString;
217
+ borrowRatePerSecond: zod.ZodNullable<zod.ZodString>;
218
+ supplyRatePerSecond: zod.ZodNullable<zod.ZodString>;
219
+ borrowApy: zod.ZodNullable<zod.ZodString>;
220
+ supplyApy: zod.ZodNullable<zod.ZodString>;
221
+ protocolFee: zod.ZodString;
222
+ deficit: zod.ZodString;
223
+ lastAccruedAt: zod.ZodNullable<zod.ZodNumber>;
224
+ }, zod.z.core.$strip>;
225
+ /**
226
+ * @summary Get lending risk-oracle state
227
+ */
228
+ export declare const GetLendingAssetOracleParams: zod.ZodObject<{
229
+ pool_id: zod.ZodNumber;
230
+ denom: zod.ZodString;
231
+ }, zod.z.core.$strip>;
232
+ export declare const GetLendingAssetOracleResponse: zod.ZodObject<{
233
+ poolId: zod.ZodString;
234
+ denom: zod.ZodString;
235
+ oracleAsset: zod.ZodString;
236
+ price: zod.ZodString;
237
+ updatedAt: zod.ZodNumber;
238
+ stale: zod.ZodBoolean;
239
+ marketOpen: zod.ZodBoolean;
240
+ bridgeActive: zod.ZodNullable<zod.ZodBoolean>;
241
+ }, zod.z.core.$strip>;
242
+ /**
243
+ * @summary Get lending asset state history
244
+ */
245
+ export declare const GetLendingAssetStateHistoryParams: zod.ZodObject<{
246
+ pool_id: zod.ZodNumber;
247
+ denom: zod.ZodString;
248
+ }, zod.z.core.$strip>;
249
+ export declare const GetLendingAssetStateHistoryQueryParams: zod.ZodObject<{
250
+ from: zod.ZodNumber;
251
+ to: zod.ZodNumber;
252
+ interval: zod.ZodEnum<{
253
+ "1h": "1h";
254
+ "1d": "1d";
255
+ }>;
256
+ }, zod.z.core.$strip>;
257
+ export declare const GetLendingAssetStateHistoryResponseItem: zod.ZodObject<{
258
+ timestamp: zod.ZodNumber;
259
+ totalSupplyAssets: zod.ZodString;
260
+ totalBorrowAssets: zod.ZodString;
261
+ availableLiquidityAssets: zod.ZodString;
262
+ utilization: zod.ZodString;
263
+ borrowApy: zod.ZodString;
264
+ supplyApy: zod.ZodString;
265
+ }, zod.z.core.$strip>;
266
+ export declare const GetLendingAssetStateHistoryResponse: zod.ZodArray<zod.ZodObject<{
267
+ timestamp: zod.ZodNumber;
268
+ totalSupplyAssets: zod.ZodString;
269
+ totalBorrowAssets: zod.ZodString;
270
+ availableLiquidityAssets: zod.ZodString;
271
+ utilization: zod.ZodString;
272
+ borrowApy: zod.ZodString;
273
+ supplyApy: zod.ZodString;
274
+ }, zod.z.core.$strip>>;
275
+ /**
276
+ * @summary Get average lending APYs
277
+ */
278
+ export declare const GetLendingAPYAveragesParams: zod.ZodObject<{
279
+ pool_id: zod.ZodNumber;
280
+ denom: zod.ZodString;
281
+ }, zod.z.core.$strip>;
282
+ export declare const GetLendingAPYAveragesQueryParams: zod.ZodObject<{
283
+ windows: zod.ZodOptional<zod.ZodString>;
284
+ }, zod.z.core.$strip>;
285
+ export declare const GetLendingAPYAveragesResponse: zod.ZodObject<{
286
+ supplyApy: zod.ZodRecord<zod.ZodString, zod.ZodNullable<zod.ZodString>>;
287
+ borrowApy: zod.ZodRecord<zod.ZodString, zod.ZodNullable<zod.ZodString>>;
288
+ }, zod.z.core.$strip>;
289
+ /**
290
+ * @summary List an account's lending positions
291
+ */
292
+ export declare const ListLendingAccountPositionsParams: zod.ZodObject<{
293
+ address: zod.ZodString;
294
+ }, zod.z.core.$strip>;
295
+ export declare const ListLendingAccountPositionsQueryParams: zod.ZodObject<{
296
+ pool_id: zod.ZodOptional<zod.ZodNumber>;
297
+ }, zod.z.core.$strip>;
298
+ export declare const listLendingAccountPositionsResponseOwnerRegExp: RegExp;
299
+ export declare const ListLendingAccountPositionsResponseItem: zod.ZodObject<{
300
+ poolId: zod.ZodString;
301
+ owner: zod.ZodString;
302
+ supplies: zod.ZodArray<zod.ZodObject<{
303
+ denom: zod.ZodString;
304
+ shares: zod.ZodString;
305
+ assets: zod.ZodString;
306
+ }, zod.z.core.$strip>>;
307
+ borrows: zod.ZodArray<zod.ZodObject<{
308
+ denom: zod.ZodString;
309
+ shares: zod.ZodString;
310
+ assets: zod.ZodString;
311
+ }, zod.z.core.$strip>>;
312
+ collaterals: zod.ZodArray<zod.ZodObject<{
313
+ denom: zod.ZodString;
314
+ amount: zod.ZodString;
315
+ }, zod.z.core.$strip>>;
316
+ healthFactor: zod.ZodNullable<zod.ZodString>;
317
+ collateralValue: zod.ZodNullable<zod.ZodString>;
318
+ borrowedValue: zod.ZodNullable<zod.ZodString>;
319
+ borrowLimitValue: zod.ZodNullable<zod.ZodString>;
320
+ liquidationCollateralValue: zod.ZodNullable<zod.ZodString>;
321
+ liquidatable: zod.ZodNullable<zod.ZodBoolean>;
322
+ healthError: zod.ZodNullable<zod.ZodString>;
323
+ oracleUpdatedAt: zod.ZodNullable<zod.ZodNumber>;
324
+ asOf: zod.ZodNumber;
325
+ indexedHeight: zod.ZodNumber;
326
+ }, zod.z.core.$strip>;
327
+ export declare const ListLendingAccountPositionsResponse: zod.ZodArray<zod.ZodObject<{
328
+ poolId: zod.ZodString;
329
+ owner: zod.ZodString;
330
+ supplies: zod.ZodArray<zod.ZodObject<{
331
+ denom: zod.ZodString;
332
+ shares: zod.ZodString;
333
+ assets: zod.ZodString;
334
+ }, zod.z.core.$strip>>;
335
+ borrows: zod.ZodArray<zod.ZodObject<{
336
+ denom: zod.ZodString;
337
+ shares: zod.ZodString;
338
+ assets: zod.ZodString;
339
+ }, zod.z.core.$strip>>;
340
+ collaterals: zod.ZodArray<zod.ZodObject<{
341
+ denom: zod.ZodString;
342
+ amount: zod.ZodString;
343
+ }, zod.z.core.$strip>>;
344
+ healthFactor: zod.ZodNullable<zod.ZodString>;
345
+ collateralValue: zod.ZodNullable<zod.ZodString>;
346
+ borrowedValue: zod.ZodNullable<zod.ZodString>;
347
+ borrowLimitValue: zod.ZodNullable<zod.ZodString>;
348
+ liquidationCollateralValue: zod.ZodNullable<zod.ZodString>;
349
+ liquidatable: zod.ZodNullable<zod.ZodBoolean>;
350
+ healthError: zod.ZodNullable<zod.ZodString>;
351
+ oracleUpdatedAt: zod.ZodNullable<zod.ZodNumber>;
352
+ asOf: zod.ZodNumber;
353
+ indexedHeight: zod.ZodNumber;
354
+ }, zod.z.core.$strip>>;
355
+ /**
356
+ * @summary Get an account position in one pool
357
+ */
358
+ export declare const GetLendingPositionParams: zod.ZodObject<{
359
+ pool_id: zod.ZodNumber;
360
+ address: zod.ZodString;
361
+ }, zod.z.core.$strip>;
362
+ export declare const getLendingPositionResponseOwnerRegExp: RegExp;
363
+ export declare const GetLendingPositionResponse: zod.ZodObject<{
364
+ poolId: zod.ZodString;
365
+ owner: zod.ZodString;
366
+ supplies: zod.ZodArray<zod.ZodObject<{
367
+ denom: zod.ZodString;
368
+ shares: zod.ZodString;
369
+ assets: zod.ZodString;
370
+ }, zod.z.core.$strip>>;
371
+ borrows: zod.ZodArray<zod.ZodObject<{
372
+ denom: zod.ZodString;
373
+ shares: zod.ZodString;
374
+ assets: zod.ZodString;
375
+ }, zod.z.core.$strip>>;
376
+ collaterals: zod.ZodArray<zod.ZodObject<{
377
+ denom: zod.ZodString;
378
+ amount: zod.ZodString;
379
+ }, zod.z.core.$strip>>;
380
+ healthFactor: zod.ZodNullable<zod.ZodString>;
381
+ collateralValue: zod.ZodNullable<zod.ZodString>;
382
+ borrowedValue: zod.ZodNullable<zod.ZodString>;
383
+ borrowLimitValue: zod.ZodNullable<zod.ZodString>;
384
+ liquidationCollateralValue: zod.ZodNullable<zod.ZodString>;
385
+ liquidatable: zod.ZodNullable<zod.ZodBoolean>;
386
+ healthError: zod.ZodNullable<zod.ZodString>;
387
+ oracleUpdatedAt: zod.ZodNullable<zod.ZodNumber>;
388
+ asOf: zod.ZodNumber;
389
+ indexedHeight: zod.ZodNumber;
390
+ }, zod.z.core.$strip>;
391
+ /**
392
+ * @summary Get lending position history
393
+ */
394
+ export declare const GetLendingPositionHistoryParams: zod.ZodObject<{
395
+ pool_id: zod.ZodNumber;
396
+ address: zod.ZodString;
397
+ }, zod.z.core.$strip>;
398
+ export declare const GetLendingPositionHistoryQueryParams: zod.ZodObject<{
399
+ from: zod.ZodNumber;
400
+ to: zod.ZodNumber;
401
+ interval: zod.ZodEnum<{
402
+ "1h": "1h";
403
+ "1d": "1d";
404
+ }>;
405
+ }, zod.z.core.$strip>;
406
+ export declare const GetLendingPositionHistoryResponseItem: zod.ZodObject<{
407
+ timestamp: zod.ZodNumber;
408
+ suppliedValue: zod.ZodString;
409
+ borrowedValue: zod.ZodString;
410
+ collateralValue: zod.ZodString;
411
+ healthFactor: zod.ZodNullable<zod.ZodString>;
412
+ }, zod.z.core.$strip>;
413
+ export declare const GetLendingPositionHistoryResponse: zod.ZodArray<zod.ZodObject<{
414
+ timestamp: zod.ZodNumber;
415
+ suppliedValue: zod.ZodString;
416
+ borrowedValue: zod.ZodString;
417
+ collateralValue: zod.ZodString;
418
+ healthFactor: zod.ZodNullable<zod.ZodString>;
419
+ }, zod.z.core.$strip>>;
420
+ /**
421
+ * @summary List lending liquidations
422
+ */
423
+ export declare const listLendingLiquidationsQueryBeforeIndexMin = 0;
424
+ export declare const listLendingLiquidationsQueryBeforeIndexMax = 4294967295;
425
+ export declare const listLendingLiquidationsQueryLimitDefault = 100;
426
+ export declare const ListLendingLiquidationsQueryParams: zod.ZodObject<{
427
+ pool_id: zod.ZodOptional<zod.ZodNumber>;
428
+ borrower: zod.ZodOptional<zod.ZodString>;
429
+ since: zod.ZodOptional<zod.ZodNumber>;
430
+ cursor: zod.ZodOptional<zod.ZodString>;
431
+ before_height: zod.ZodOptional<zod.ZodNumber>;
432
+ before_index: zod.ZodOptional<zod.ZodNumber>;
433
+ limit: zod.ZodDefault<zod.ZodNumber>;
434
+ }, zod.z.core.$strip>;
435
+ export declare const listLendingLiquidationsResponseLiquidatorRegExp: RegExp;
436
+ export declare const listLendingLiquidationsResponseBorrowerRegExp: RegExp;
437
+ export declare const listLendingLiquidationsResponseInfoEventIndexMin = 0;
438
+ export declare const listLendingLiquidationsResponseInfoEventIndexMax = 4294967295;
439
+ export declare const ListLendingLiquidationsResponseItem: zod.ZodObject<{
440
+ liquidator: zod.ZodString;
441
+ borrower: zod.ZodString;
442
+ poolId: zod.ZodString;
443
+ repaid: zod.ZodObject<{
444
+ denom: zod.ZodString;
445
+ amount: zod.ZodString;
446
+ }, zod.z.core.$strip>;
447
+ seized: zod.ZodObject<{
448
+ denom: zod.ZodString;
449
+ amount: zod.ZodString;
450
+ }, zod.z.core.$strip>;
451
+ timestamp: zod.ZodNumber;
452
+ info: zod.ZodObject<{
453
+ block_height: zod.ZodString;
454
+ event_index: zod.ZodNumber;
455
+ }, zod.z.core.$strip>;
456
+ }, zod.z.core.$strip>;
457
+ export declare const ListLendingLiquidationsResponse: zod.ZodArray<zod.ZodObject<{
458
+ liquidator: zod.ZodString;
459
+ borrower: zod.ZodString;
460
+ poolId: zod.ZodString;
461
+ repaid: zod.ZodObject<{
462
+ denom: zod.ZodString;
463
+ amount: zod.ZodString;
464
+ }, zod.z.core.$strip>;
465
+ seized: zod.ZodObject<{
466
+ denom: zod.ZodString;
467
+ amount: zod.ZodString;
468
+ }, zod.z.core.$strip>;
469
+ timestamp: zod.ZodNumber;
470
+ info: zod.ZodObject<{
471
+ block_height: zod.ZodString;
472
+ event_index: zod.ZodNumber;
473
+ }, zod.z.core.$strip>;
474
+ }, zod.z.core.$strip>>;
475
+ /**
476
+ * @summary List current protocol deficits
477
+ */
478
+ export declare const ListLendingDeficitsQueryParams: zod.ZodObject<{
479
+ pool_id: zod.ZodOptional<zod.ZodNumber>;
480
+ denom: zod.ZodOptional<zod.ZodString>;
481
+ }, zod.z.core.$strip>;
482
+ export declare const ListLendingDeficitsResponseItem: zod.ZodObject<{
483
+ poolId: zod.ZodString;
484
+ denom: zod.ZodString;
485
+ amount: zod.ZodString;
486
+ }, zod.z.core.$strip>;
487
+ export declare const ListLendingDeficitsResponse: zod.ZodArray<zod.ZodObject<{
488
+ poolId: zod.ZodString;
489
+ denom: zod.ZodString;
490
+ amount: zod.ZodString;
491
+ }, zod.z.core.$strip>>;
492
+ /**
493
+ * @summary Get insurance fund balance
494
+ */
495
+ export declare const GetLendingInsuranceFundQueryParams: zod.ZodObject<{
496
+ denom: zod.ZodString;
497
+ }, zod.z.core.$strip>;
498
+ export declare const GetLendingInsuranceFundResponse: zod.ZodObject<{
499
+ denom: zod.ZodString;
500
+ balance: zod.ZodString;
501
+ asOf: zod.ZodNumber;
502
+ indexedHeight: zod.ZodNumber;
503
+ }, zod.z.core.$strip>;
504
+ /**
505
+ * @summary Get protocol revenue balance
506
+ */
507
+ export declare const GetLendingProtocolRevenueQueryParams: zod.ZodObject<{
508
+ denom: zod.ZodString;
509
+ }, zod.z.core.$strip>;
510
+ export declare const GetLendingProtocolRevenueResponse: zod.ZodObject<{
511
+ denom: zod.ZodString;
512
+ balance: zod.ZodString;
513
+ asOf: zod.ZodNumber;
514
+ indexedHeight: zod.ZodNumber;
515
+ }, zod.z.core.$strip>;
516
+ /**
517
+ * Returns the current margin risk configuration. `marginCallBar` and
518
+ `forceLiquidationBar` are API configuration layered over lending's
519
+ health factor, not chain state: x/margin `Params` holds only
520
+ `enabled`, and lending itself liquidates strictly below health
521
+ factor 1. A chain that has never written margin state still reports
522
+ 200 with `enabled: false` and a null `marginLendingPoolId`, not 404.
523
+
524
+ * @summary Get margin risk configuration
525
+ */
526
+ export declare const GetMarginParamsResponse: zod.ZodObject<{
527
+ enabled: zod.ZodBoolean;
528
+ marginLendingPoolId: zod.ZodNullable<zod.ZodString>;
529
+ marginCallBar: zod.ZodString;
530
+ forceLiquidationBar: zod.ZodString;
531
+ indexedHeight: zod.ZodNumber;
532
+ }, zod.z.core.$strip>;
533
+ /**
534
+ * Returns per-market margin configuration, including the maximum
535
+ leverage a buy or a sell side can reach. `maxLeverage` is
536
+ `1 / (1 - (1 - f) * ltv_receive)`, with `f` the taker fee rate and
537
+ `ltv_receive` the lending LTV of the asset a fill receives — a buy
538
+ receives the base, a sell the quote, so the two sides differ.
539
+ `maxLeverageBuy` and `maxLeverageSell` carry each side and are null
540
+ when that side's pay asset is not borrowable (a buy borrows the
541
+ quote, a sell the base) or its receive asset is not collateral in
542
+ the margin pool, or the formula has no finite value; `maxLeverage` is
543
+ the smaller of the two, the bound a side-agnostic slider must
544
+ respect, and is null when either side is.
545
+
546
+ * @summary List margin-enabled markets
547
+ */
548
+ export declare const ListMarginMarketsQueryParams: zod.ZodObject<{
549
+ market_id: zod.ZodOptional<zod.ZodString>;
550
+ symbol: zod.ZodOptional<zod.ZodString>;
551
+ }, zod.z.core.$strip>;
552
+ export declare const ListMarginMarketsResponseItem: zod.ZodObject<{
553
+ marketId: zod.ZodString;
554
+ symbol: zod.ZodNullable<zod.ZodString>;
555
+ baseDenom: zod.ZodString;
556
+ quoteDenom: zod.ZodString;
557
+ marginEnabled: zod.ZodBoolean;
558
+ maxLeverage: zod.ZodNullable<zod.ZodString>;
559
+ maxLeverageBuy: zod.ZodNullable<zod.ZodString>;
560
+ maxLeverageSell: zod.ZodNullable<zod.ZodString>;
561
+ collateralDenoms: zod.ZodArray<zod.ZodString>;
562
+ borrowableDenoms: zod.ZodArray<zod.ZodString>;
563
+ }, zod.z.core.$strip>;
564
+ export declare const ListMarginMarketsResponse: zod.ZodArray<zod.ZodObject<{
565
+ marketId: zod.ZodString;
566
+ symbol: zod.ZodNullable<zod.ZodString>;
567
+ baseDenom: zod.ZodString;
568
+ quoteDenom: zod.ZodString;
569
+ marginEnabled: zod.ZodBoolean;
570
+ maxLeverage: zod.ZodNullable<zod.ZodString>;
571
+ maxLeverageBuy: zod.ZodNullable<zod.ZodString>;
572
+ maxLeverageSell: zod.ZodNullable<zod.ZodString>;
573
+ collateralDenoms: zod.ZodArray<zod.ZodString>;
574
+ borrowableDenoms: zod.ZodArray<zod.ZodString>;
575
+ }, zod.z.core.$strip>>;
576
+ /**
577
+ * Returns the derived margin accounts registered to a wallet, one per
578
+ market for isolated mode or one shared account for cross mode.
579
+ `collateralsInOrder` is the collateral each account currently has
580
+ reserved by resting orders (the `used` amount on the position, not
581
+ the total).
582
+
583
+ * @summary List an owner's derived margin accounts
584
+ */
585
+ export declare const ListMarginAccountsParams: zod.ZodObject<{
586
+ owner: zod.ZodString;
587
+ }, zod.z.core.$strip>;
588
+ export declare const ListMarginAccountsQueryParams: zod.ZodObject<{
589
+ market_id: zod.ZodOptional<zod.ZodString>;
590
+ symbol: zod.ZodOptional<zod.ZodString>;
591
+ margin_mode: zod.ZodOptional<zod.ZodEnum<{
592
+ cross: "cross";
593
+ isolated: "isolated";
594
+ }>>;
595
+ }, zod.z.core.$strip>;
596
+ export declare const ListMarginAccountsResponse: zod.ZodObject<{
597
+ accounts: zod.ZodArray<zod.ZodObject<{
598
+ address: zod.ZodString;
599
+ owner: zod.ZodString;
600
+ marginMode: zod.ZodEnum<{
601
+ unknown: "unknown";
602
+ cross: "cross";
603
+ isolated: "isolated";
604
+ }>;
605
+ marketId: zod.ZodNullable<zod.ZodString>;
606
+ symbol: zod.ZodNullable<zod.ZodString>;
607
+ collateralsInOrder: zod.ZodArray<zod.ZodObject<{
608
+ denom: zod.ZodString;
609
+ amount: zod.ZodString;
610
+ }, zod.z.core.$strip>>;
611
+ }, zod.z.core.$strip>>;
612
+ asOf: zod.ZodNumber;
613
+ indexedHeight: zod.ZodNumber;
614
+ }, zod.z.core.$strip>;
615
+ /**
616
+ * One summary per registered margin account, all read in one indexer
617
+ snapshot. `healthFactor`, `healthStatus`, `collateralValue` and
618
+ `debtValue` are null, with `healthError` set, when any denom the
619
+ account holds cannot be priced (a stale or disabled oracle).
620
+ Clients must not render zero in place of a null health field.
621
+
622
+ * @summary List an owner's margin position summaries
623
+ */
624
+ export declare const ListMarginAccountPositionsParams: zod.ZodObject<{
625
+ owner: zod.ZodString;
626
+ }, zod.z.core.$strip>;
627
+ export declare const ListMarginAccountPositionsQueryParams: zod.ZodObject<{
628
+ market_id: zod.ZodOptional<zod.ZodString>;
629
+ symbol: zod.ZodOptional<zod.ZodString>;
630
+ margin_mode: zod.ZodOptional<zod.ZodEnum<{
631
+ cross: "cross";
632
+ isolated: "isolated";
633
+ }>>;
634
+ }, zod.z.core.$strip>;
635
+ export declare const ListMarginAccountPositionsResponse: zod.ZodObject<{
636
+ positions: zod.ZodArray<zod.ZodObject<{
637
+ address: zod.ZodString;
638
+ owner: zod.ZodString;
639
+ marginMode: zod.ZodEnum<{
640
+ unknown: "unknown";
641
+ cross: "cross";
642
+ isolated: "isolated";
643
+ }>;
644
+ marketId: zod.ZodNullable<zod.ZodString>;
645
+ symbol: zod.ZodNullable<zod.ZodString>;
646
+ collateralValue: zod.ZodNullable<zod.ZodString>;
647
+ debtValue: zod.ZodNullable<zod.ZodString>;
648
+ healthFactor: zod.ZodNullable<zod.ZodString>;
649
+ healthStatus: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"normal">, zod.ZodLiteral<"marginCall">, zod.ZodLiteral<"liquidatable">, zod.ZodLiteral<null>]>>;
650
+ healthError: zod.ZodNullable<zod.ZodString>;
651
+ }, zod.z.core.$strip>>;
652
+ asOf: zod.ZodNumber;
653
+ indexedHeight: zod.ZodNumber;
654
+ }, zod.z.core.$strip>;
655
+ /**
656
+ * Returns full asset-level detail and risk for one derived margin
657
+ account. `debt` includes accrued interest; principal and interest
658
+ are not separable. `free = total - used` is not the withdrawable
659
+ amount — `maxTransferable` is, and is the largest withdrawal the
660
+ chain's borrow-capacity check admits, capped by `free`. USD values,
661
+ `effectiveLeverage` and `liquidationPrice` are null whenever
662
+ `healthFactor` is null (an unpriced denom), and so is
663
+ `maxTransferable` on an account with debt; a debt-free account
664
+ skips the chain's health check, so its `maxTransferable` stays
665
+ `free`. Clients must not render zero in their place. `liquidationPrice` is only ever
666
+ populated for an isolated account that holds a lending position row
667
+ in both the base and the quote denom, and only when a base price
668
+ move can liquidate it.
669
+
670
+ * @summary Get one margin account's position
671
+ */
672
+ export declare const GetMarginPositionParams: zod.ZodObject<{
673
+ address: zod.ZodString;
674
+ }, zod.z.core.$strip>;
675
+ export declare const GetMarginPositionResponse: zod.ZodObject<{
676
+ address: zod.ZodString;
677
+ owner: zod.ZodString;
678
+ marginMode: zod.ZodEnum<{
679
+ unknown: "unknown";
680
+ cross: "cross";
681
+ isolated: "isolated";
682
+ }>;
683
+ marketId: zod.ZodNullable<zod.ZodString>;
684
+ symbol: zod.ZodNullable<zod.ZodString>;
685
+ assets: zod.ZodArray<zod.ZodObject<{
686
+ denom: zod.ZodString;
687
+ total: zod.ZodString;
688
+ used: zod.ZodString;
689
+ free: zod.ZodString;
690
+ maxTransferable: zod.ZodNullable<zod.ZodString>;
691
+ debt: zod.ZodString;
692
+ }, zod.z.core.$strip>>;
693
+ collateralValue: zod.ZodNullable<zod.ZodString>;
694
+ debtValue: zod.ZodNullable<zod.ZodString>;
695
+ borrowCapacity: zod.ZodNullable<zod.ZodString>;
696
+ liquidationCollateralValue: zod.ZodNullable<zod.ZodString>;
697
+ healthFactor: zod.ZodNullable<zod.ZodString>;
698
+ healthStatus: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"normal">, zod.ZodLiteral<"marginCall">, zod.ZodLiteral<"liquidatable">, zod.ZodLiteral<null>]>>;
699
+ healthError: zod.ZodNullable<zod.ZodString>;
700
+ effectiveLeverage: zod.ZodNullable<zod.ZodString>;
701
+ liquidationPrice: zod.ZodNullable<zod.ZodString>;
702
+ pendingSettlementCount: zod.ZodNumber;
703
+ oracleUpdatedAt: zod.ZodNullable<zod.ZodNumber>;
704
+ asOf: zod.ZodNumber;
705
+ indexedHeight: zod.ZodNumber;
706
+ }, zod.z.core.$strip>;
707
+ /**
708
+ * Newest-first feed of margin deposits, withdrawals, reservation
709
+ changes, borrows, repayments, settlements and force-cancels, paged
710
+ on `(block_height, event_index)`. One of `owner` or `account` is
711
+ required. `amount` is a signed base-unit integer for `reservation`
712
+ (negative on release) and an unsigned magnitude for every other
713
+ type; `after` is the post-write reservation total and is null except
714
+ on `reservation` rows; `orderId` is null where the chain omits
715
+ it. `reservation` is excluded from the default type set: it
716
+ fires on every placement, fill and cancel, and its current value is
717
+ already served as `used` on the position. `blockTime` on `deposit`
718
+ and `withdraw` rows is whole-second (wallet_flow stores second
719
+ precision); every other row carries millisecond block time.
720
+
721
+ * @summary List margin account activity
722
+ */
723
+ export declare const listMarginActivityQueryBeforeIndexMin = 0;
724
+ export declare const listMarginActivityQueryBeforeIndexMax = 4294967295;
725
+ export declare const listMarginActivityQueryLimitDefault = 100;
726
+ export declare const ListMarginActivityQueryParams: zod.ZodObject<{
727
+ owner: zod.ZodOptional<zod.ZodString>;
728
+ account: zod.ZodOptional<zod.ZodString>;
729
+ type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
730
+ deposit: "deposit";
731
+ withdraw: "withdraw";
732
+ reservation: "reservation";
733
+ "borrow.auto": "borrow.auto";
734
+ "borrow.manual": "borrow.manual";
735
+ "repay.settlement": "repay.settlement";
736
+ "repay.cancel": "repay.cancel";
737
+ "repay.manual": "repay.manual";
738
+ "repay.skipped": "repay.skipped";
739
+ settlement: "settlement";
740
+ settlementDeferred: "settlementDeferred";
741
+ forceCancel: "forceCancel";
742
+ }>>>;
743
+ denom: zod.ZodOptional<zod.ZodString>;
744
+ since: zod.ZodOptional<zod.ZodNumber>;
745
+ cursor: zod.ZodOptional<zod.ZodString>;
746
+ before_height: zod.ZodOptional<zod.ZodNumber>;
747
+ before_index: zod.ZodOptional<zod.ZodNumber>;
748
+ limit: zod.ZodDefault<zod.ZodNumber>;
749
+ }, zod.z.core.$strip>;
750
+ export declare const listMarginActivityResponseActivityItemEventIndexMin = 0;
751
+ export declare const listMarginActivityResponseActivityItemEventIndexMax = 4294967295;
752
+ export declare const ListMarginActivityResponse: zod.ZodObject<{
753
+ activity: zod.ZodArray<zod.ZodObject<{
754
+ type: zod.ZodEnum<{
755
+ deposit: "deposit";
756
+ withdraw: "withdraw";
757
+ reservation: "reservation";
758
+ "borrow.auto": "borrow.auto";
759
+ "borrow.manual": "borrow.manual";
760
+ "repay.settlement": "repay.settlement";
761
+ "repay.cancel": "repay.cancel";
762
+ "repay.manual": "repay.manual";
763
+ "repay.skipped": "repay.skipped";
764
+ settlement: "settlement";
765
+ settlementDeferred: "settlementDeferred";
766
+ forceCancel: "forceCancel";
767
+ }>;
768
+ account: zod.ZodString;
769
+ owner: zod.ZodString;
770
+ denom: zod.ZodNullable<zod.ZodString>;
771
+ amount: zod.ZodNullable<zod.ZodString>;
772
+ after: zod.ZodNullable<zod.ZodString>;
773
+ orderId: zod.ZodNullable<zod.ZodString>;
774
+ poolId: zod.ZodOptional<zod.ZodString>;
775
+ reason: zod.ZodOptional<zod.ZodString>;
776
+ blockHeight: zod.ZodNumber;
777
+ blockTime: zod.ZodNumber;
778
+ eventIndex: zod.ZodNumber;
779
+ }, zod.z.core.$strip>>;
780
+ }, zod.z.core.$strip>;
781
+ /**
782
+ * Newest-first feed of lending liquidations against margin borrowers,
783
+ paged on `(block_height, event_index)`. One of `owner` or `account`
784
+ is required. `forceCanceledOrderIds` are
785
+ the orders whose reservation the same block released after the
786
+ account's force-cancel event; `badDebt` lists the lending bad-debt
787
+ rows written for the account in that block. No `txHash` is
788
+ available for these rows.
789
+
790
+ * @summary List margin liquidations
791
+ */
792
+ export declare const listMarginLiquidationsQueryBeforeIndexMin = 0;
793
+ export declare const listMarginLiquidationsQueryBeforeIndexMax = 4294967295;
794
+ export declare const listMarginLiquidationsQueryLimitDefault = 100;
795
+ export declare const ListMarginLiquidationsQueryParams: zod.ZodObject<{
796
+ owner: zod.ZodOptional<zod.ZodString>;
797
+ account: zod.ZodOptional<zod.ZodString>;
798
+ since: zod.ZodOptional<zod.ZodNumber>;
799
+ cursor: zod.ZodOptional<zod.ZodString>;
800
+ before_height: zod.ZodOptional<zod.ZodNumber>;
801
+ before_index: zod.ZodOptional<zod.ZodNumber>;
802
+ limit: zod.ZodDefault<zod.ZodNumber>;
803
+ }, zod.z.core.$strip>;
804
+ export declare const listMarginLiquidationsResponseLiquidationsItemEventIndexMin = 0;
805
+ export declare const listMarginLiquidationsResponseLiquidationsItemEventIndexMax = 4294967295;
806
+ export declare const ListMarginLiquidationsResponse: zod.ZodObject<{
807
+ liquidations: zod.ZodArray<zod.ZodObject<{
808
+ liquidator: zod.ZodString;
809
+ account: zod.ZodString;
810
+ owner: zod.ZodString;
811
+ poolId: zod.ZodString;
812
+ repaid: zod.ZodObject<{
813
+ denom: zod.ZodString;
814
+ amount: zod.ZodString;
815
+ }, zod.z.core.$strip>;
816
+ seized: zod.ZodObject<{
817
+ denom: zod.ZodString;
818
+ amount: zod.ZodString;
819
+ }, zod.z.core.$strip>;
820
+ forceCanceledOrderIds: zod.ZodArray<zod.ZodString>;
821
+ badDebt: zod.ZodArray<zod.ZodObject<{
822
+ denom: zod.ZodString;
823
+ amount: zod.ZodString;
824
+ }, zod.z.core.$strip>>;
825
+ blockHeight: zod.ZodNumber;
826
+ blockTime: zod.ZodNumber;
827
+ eventIndex: zod.ZodNumber;
828
+ }, zod.z.core.$strip>>;
829
+ }, zod.z.core.$strip>;
79
830
  /**
80
831
  * Returns the per-environment manifest consumed by the ault SDK clients
81
832
  (TypeScript and Python). The body is supplied verbatim by the operator
@@ -380,6 +1131,12 @@ export declare const ListTradesResponseItem: zod.ZodObject<{
380
1131
  currency: zod.ZodOptional<zod.ZodString>;
381
1132
  rate: zod.ZodOptional<zod.ZodString>;
382
1133
  }, zod.z.core.$strip>>;
1134
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1135
+ unknown: "unknown";
1136
+ cross: "cross";
1137
+ isolated: "isolated";
1138
+ }>>;
1139
+ marginOwner: zod.ZodOptional<zod.ZodString>;
383
1140
  info: zod.ZodObject<{
384
1141
  address: zod.ZodString;
385
1142
  paid: zod.ZodString;
@@ -412,6 +1169,12 @@ export declare const ListTradesResponse: zod.ZodArray<zod.ZodObject<{
412
1169
  currency: zod.ZodOptional<zod.ZodString>;
413
1170
  rate: zod.ZodOptional<zod.ZodString>;
414
1171
  }, zod.z.core.$strip>>;
1172
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1173
+ unknown: "unknown";
1174
+ cross: "cross";
1175
+ isolated: "isolated";
1176
+ }>>;
1177
+ marginOwner: zod.ZodOptional<zod.ZodString>;
415
1178
  info: zod.ZodObject<{
416
1179
  address: zod.ZodString;
417
1180
  paid: zod.ZodString;
@@ -478,6 +1241,12 @@ export declare const GetTradeResponse: zod.ZodObject<{
478
1241
  currency: zod.ZodOptional<zod.ZodString>;
479
1242
  rate: zod.ZodOptional<zod.ZodString>;
480
1243
  }, zod.z.core.$strip>>;
1244
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1245
+ unknown: "unknown";
1246
+ cross: "cross";
1247
+ isolated: "isolated";
1248
+ }>>;
1249
+ marginOwner: zod.ZodOptional<zod.ZodString>;
481
1250
  info: zod.ZodObject<{
482
1251
  address: zod.ZodString;
483
1252
  paid: zod.ZodString;
@@ -487,9 +1256,27 @@ export declare const GetTradeResponse: zod.ZodObject<{
487
1256
  }, zod.z.core.$strip>;
488
1257
  }, zod.z.core.$strip>;
489
1258
  /**
490
- * Returns trading fee schedule for all markets, keyed by symbol.
1259
+ * Trading fee schedule for all markets, keyed by symbol.
1260
+
1261
+ Without `address` this is the venue's base schedule: each market's
1262
+ undiscounted maker and taker rates.
1263
+
1264
+ With `address` it is what THAT account is charged, with its fee tier and
1265
+ referral discounts already applied, and `info` carrying the base rates
1266
+ and every factor taken off. The composition is the chain's own:
1267
+
1268
+ rate = base * (1 - tierDiscount) * (1 - refereeDiscount)
1269
+
1270
+ Multiplicative, with a separate tier discount for each side of the fill,
1271
+ and the referee discount applied only to an account that has actually
1272
+ applied a referral code. It is computed server-side so a client renders
1273
+ `maker`/`taker` directly and never has to track changes to that formula.
1274
+
491
1275
  * @summary Get trading fees for all markets
492
1276
  */
1277
+ export declare const GetTradingFeesQueryParams: zod.ZodObject<{
1278
+ address: zod.ZodOptional<zod.ZodString>;
1279
+ }, zod.z.core.$strip>;
493
1280
  export declare const getTradingFeesResponseMakerRegExp: RegExp;
494
1281
  export declare const getTradingFeesResponseTakerRegExp: RegExp;
495
1282
  export declare const GetTradingFeesResponse: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -498,7 +1285,14 @@ export declare const GetTradingFeesResponse: zod.ZodRecord<zod.ZodString, zod.Zo
498
1285
  taker: zod.ZodString;
499
1286
  percentage: zod.ZodBoolean;
500
1287
  tierBased: zod.ZodBoolean;
501
- info: zod.ZodObject<{}, zod.z.core.$loose>;
1288
+ info: zod.ZodUnion<readonly [zod.ZodObject<{}, zod.z.core.$strip>, zod.ZodObject<{
1289
+ baseMaker: zod.ZodString;
1290
+ baseTaker: zod.ZodString;
1291
+ feeTier: zod.ZodNumber;
1292
+ makerDiscountRate: zod.ZodString;
1293
+ takerDiscountRate: zod.ZodString;
1294
+ refereeDiscountRate: zod.ZodString;
1295
+ }, zod.z.core.$strip>]>;
502
1296
  }, zod.z.core.$strip>>;
503
1297
  /**
504
1298
  * Protocol-wide stats overview for a selected reporting window: quote
@@ -596,8 +1390,8 @@ export declare const listOrdersQueryLimitMax = 500;
596
1390
  export declare const ListOrdersQueryParams: zod.ZodObject<{
597
1391
  address: zod.ZodUnion<readonly [zod.ZodString, zod.ZodString]>;
598
1392
  status: zod.ZodOptional<zod.ZodEnum<{
599
- open: "open";
600
1393
  closed: "closed";
1394
+ open: "open";
601
1395
  canceled: "canceled";
602
1396
  }>>;
603
1397
  symbol: zod.ZodOptional<zod.ZodString>;
@@ -628,8 +1422,8 @@ export declare const ListOrdersResponseItem: zod.ZodObject<{
628
1422
  lastTradeTimestamp: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
629
1423
  status: zod.ZodEnum<{
630
1424
  unknown: "unknown";
631
- open: "open";
632
1425
  closed: "closed";
1426
+ open: "open";
633
1427
  canceled: "canceled";
634
1428
  }>;
635
1429
  symbol: zod.ZodString;
@@ -660,6 +1454,14 @@ export declare const ListOrdersResponseItem: zod.ZodObject<{
660
1454
  postOnly: zod.ZodOptional<zod.ZodBoolean>;
661
1455
  stopPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
662
1456
  triggerPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1457
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1458
+ unknown: "unknown";
1459
+ cross: "cross";
1460
+ isolated: "isolated";
1461
+ }>>;
1462
+ marginOwner: zod.ZodOptional<zod.ZodString>;
1463
+ autoRepay: zod.ZodOptional<zod.ZodBoolean>;
1464
+ autoRepayAtCancel: zod.ZodOptional<zod.ZodBoolean>;
663
1465
  info: zod.ZodObject<{
664
1466
  block_height: zod.ZodString;
665
1467
  tx_index: zod.ZodNumber;
@@ -704,8 +1506,8 @@ export declare const ListOrdersResponse: zod.ZodArray<zod.ZodObject<{
704
1506
  lastTradeTimestamp: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
705
1507
  status: zod.ZodEnum<{
706
1508
  unknown: "unknown";
707
- open: "open";
708
1509
  closed: "closed";
1510
+ open: "open";
709
1511
  canceled: "canceled";
710
1512
  }>;
711
1513
  symbol: zod.ZodString;
@@ -736,6 +1538,14 @@ export declare const ListOrdersResponse: zod.ZodArray<zod.ZodObject<{
736
1538
  postOnly: zod.ZodOptional<zod.ZodBoolean>;
737
1539
  stopPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
738
1540
  triggerPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1541
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1542
+ unknown: "unknown";
1543
+ cross: "cross";
1544
+ isolated: "isolated";
1545
+ }>>;
1546
+ marginOwner: zod.ZodOptional<zod.ZodString>;
1547
+ autoRepay: zod.ZodOptional<zod.ZodBoolean>;
1548
+ autoRepayAtCancel: zod.ZodOptional<zod.ZodBoolean>;
739
1549
  info: zod.ZodObject<{
740
1550
  block_height: zod.ZodString;
741
1551
  tx_index: zod.ZodNumber;
@@ -800,8 +1610,8 @@ export declare const GetOrderResponse: zod.ZodObject<{
800
1610
  lastTradeTimestamp: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
801
1611
  status: zod.ZodEnum<{
802
1612
  unknown: "unknown";
803
- open: "open";
804
1613
  closed: "closed";
1614
+ open: "open";
805
1615
  canceled: "canceled";
806
1616
  }>;
807
1617
  symbol: zod.ZodString;
@@ -832,6 +1642,14 @@ export declare const GetOrderResponse: zod.ZodObject<{
832
1642
  postOnly: zod.ZodOptional<zod.ZodBoolean>;
833
1643
  stopPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
834
1644
  triggerPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1645
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1646
+ unknown: "unknown";
1647
+ cross: "cross";
1648
+ isolated: "isolated";
1649
+ }>>;
1650
+ marginOwner: zod.ZodOptional<zod.ZodString>;
1651
+ autoRepay: zod.ZodOptional<zod.ZodBoolean>;
1652
+ autoRepayAtCancel: zod.ZodOptional<zod.ZodBoolean>;
835
1653
  info: zod.ZodObject<{
836
1654
  block_height: zod.ZodString;
837
1655
  tx_index: zod.ZodNumber;
@@ -921,6 +1739,12 @@ export declare const ListMyTradesResponseItem: zod.ZodObject<{
921
1739
  currency: zod.ZodOptional<zod.ZodString>;
922
1740
  rate: zod.ZodOptional<zod.ZodString>;
923
1741
  }, zod.z.core.$strip>>;
1742
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1743
+ unknown: "unknown";
1744
+ cross: "cross";
1745
+ isolated: "isolated";
1746
+ }>>;
1747
+ marginOwner: zod.ZodOptional<zod.ZodString>;
924
1748
  info: zod.ZodObject<{
925
1749
  address: zod.ZodString;
926
1750
  paid: zod.ZodString;
@@ -953,6 +1777,12 @@ export declare const ListMyTradesResponse: zod.ZodArray<zod.ZodObject<{
953
1777
  currency: zod.ZodOptional<zod.ZodString>;
954
1778
  rate: zod.ZodOptional<zod.ZodString>;
955
1779
  }, zod.z.core.$strip>>;
1780
+ marginMode: zod.ZodOptional<zod.ZodEnum<{
1781
+ unknown: "unknown";
1782
+ cross: "cross";
1783
+ isolated: "isolated";
1784
+ }>>;
1785
+ marginOwner: zod.ZodOptional<zod.ZodString>;
956
1786
  info: zod.ZodObject<{
957
1787
  address: zod.ZodString;
958
1788
  paid: zod.ZodString;
@@ -999,32 +1829,898 @@ export declare const GetOHLCVQueryParams: zod.ZodObject<{
999
1829
  export declare const GetOHLCVResponseItem: zod.ZodTuple<[zod.ZodNumber, zod.ZodString, zod.ZodString, zod.ZodString, zod.ZodString, zod.ZodString, zod.ZodString], null>;
1000
1830
  export declare const GetOHLCVResponse: zod.ZodArray<zod.ZodTuple<[zod.ZodNumber, zod.ZodString, zod.ZodString, zod.ZodString, zod.ZodString, zod.ZodString, zod.ZodString], null>>;
1001
1831
  /**
1002
- * @summary UDF configuration
1832
+ * The tier manager's read. With `pending=true` it returns only the rows
1833
+ whose computed tier the chain has not confirmed yet — the daily work
1834
+ list, usually a handful. The reward worker's verification pass is what
1835
+ confirms rows (only when the chain agrees), so a failed push stays on
1836
+ the pending list until it actually lands. Without the flag it returns
1837
+ every row, including tier zero: a demotion has to be applied on chain
1838
+ like any other change.
1839
+
1840
+ Paged on the address, not the volume. A caller walking the whole set has to
1841
+ see every row exactly once, and ordering by a value that changes between
1842
+ pages would let a row be seen twice or missed — a missed address is one
1843
+ whose tier never reaches the chain. Pass the previous page's `nextAfter` as
1844
+ `after`; an absent `nextAfter` means the last page.
1845
+
1846
+ Written by an out-of-band worker once a day, so `asOf` can lag the current
1847
+ date. Comparing it to today is how a worker that has fallen behind becomes
1848
+ visible.
1849
+
1850
+ * @summary Addresses and their computed tiers
1003
1851
  */
1004
- export declare const GetUDFConfigResponse: zod.ZodObject<{
1005
- supports_search: zod.ZodBoolean;
1006
- supports_group_request: zod.ZodBoolean;
1007
- supports_marks: zod.ZodBoolean;
1008
- supports_timescale_marks: zod.ZodBoolean;
1009
- supports_time: zod.ZodBoolean;
1010
- supported_resolutions: zod.ZodArray<zod.ZodString>;
1011
- exchanges: zod.ZodArray<zod.ZodObject<{
1012
- value: zod.ZodString;
1013
- name: zod.ZodString;
1014
- desc: zod.ZodString;
1015
- }, zod.z.core.$strip>>;
1016
- symbols_types: zod.ZodArray<zod.ZodObject<{
1017
- name: zod.ZodString;
1018
- value: zod.ZodString;
1852
+ export declare const listRewardTiersQueryLimitMax = 2000;
1853
+ export declare const ListRewardTiersQueryParams: zod.ZodObject<{
1854
+ after: zod.ZodOptional<zod.ZodString>;
1855
+ limit: zod.ZodOptional<zod.ZodNumber>;
1856
+ pending: zod.ZodOptional<zod.ZodBoolean>;
1857
+ }, zod.z.core.$strip>;
1858
+ export declare const listRewardTiersResponseTiersItemAddressRegExp: RegExp;
1859
+ export declare const ListRewardTiersResponse: zod.ZodObject<{
1860
+ tiers: zod.ZodArray<zod.ZodObject<{
1861
+ address: zod.ZodString;
1862
+ asOf: zod.ZodString;
1863
+ totalVolume: zod.ZodString;
1864
+ stakedAult: zod.ZodString;
1865
+ feeTier: zod.ZodNumber;
1866
+ tradingTier: zod.ZodNumber;
1867
+ pendingOnchain: zod.ZodOptional<zod.ZodBoolean>;
1868
+ onchainFeeTier: zod.ZodOptional<zod.ZodNumber>;
1869
+ onchainTradingTier: zod.ZodOptional<zod.ZodNumber>;
1870
+ onchainCheckedAt: zod.ZodOptional<zod.ZodNumber>;
1019
1871
  }, zod.z.core.$strip>>;
1872
+ nextAfter: zod.ZodOptional<zod.ZodString>;
1020
1873
  }, zod.z.core.$strip>;
1021
1874
  /**
1022
- * @summary Symbol info
1875
+ * Never 404s. Every address has a standing, and one that has never traded
1876
+ holds the default — tier 0 with zero volume — so an absent row is answered
1877
+ rather than treated as missing.
1878
+
1879
+ A tier requires BOTH its volume and its staking threshold, so `feeTier` is
1880
+ the lower of the two the address earns. Volume alone never grants one.
1881
+
1882
+ * @summary One address's reward standing
1023
1883
  */
1024
- export declare const GetUDFSymbolQueryParams: zod.ZodObject<{
1025
- symbol: zod.ZodString;
1884
+ export declare const GetRewardTierParams: zod.ZodObject<{
1885
+ address: zod.ZodString;
1026
1886
  }, zod.z.core.$strip>;
1027
- export declare const GetUDFSymbolResponse: zod.ZodObject<{
1887
+ export declare const getRewardTierResponseAddressRegExp: RegExp;
1888
+ export declare const GetRewardTierResponse: zod.ZodObject<{
1889
+ address: zod.ZodString;
1890
+ asOf: zod.ZodString;
1891
+ totalVolume: zod.ZodString;
1892
+ stakedAult: zod.ZodString;
1893
+ feeTier: zod.ZodNumber;
1894
+ tradingTier: zod.ZodNumber;
1895
+ pendingOnchain: zod.ZodOptional<zod.ZodBoolean>;
1896
+ onchainFeeTier: zod.ZodOptional<zod.ZodNumber>;
1897
+ onchainTradingTier: zod.ZodOptional<zod.ZodNumber>;
1898
+ onchainCheckedAt: zod.ZodOptional<zod.ZodNumber>;
1899
+ }, zod.z.core.$strip>;
1900
+ /**
1901
+ * What an address earns by referring others, and what it saves by having
1902
+ been referred. The two roles are independent — an address can hold both
1903
+ at once — so they are returned as separate objects rather than a single
1904
+ role the caller has to infer.
1905
+
1906
+ Never 404s. Every address has a standing, and one that has neither
1907
+ referred nor been referred holds the empty one.
1908
+
1909
+ **`isEligible` is not the same as being a referrer.** Eligibility is
1910
+ granted by an admin and means the address MAY create a code; creating it
1911
+ is a separate action the address takes itself. `isEligible: true` with
1912
+ `code: null` is the ordinary state of someone approved who has not acted
1913
+ yet.
1914
+
1915
+ **`referees` reflects current chain state, not history.** The chain
1916
+ deletes an address's relationships when its eligibility is revoked, so an
1917
+ address that referred people in the past can come back empty. Commission
1918
+ it already earned is unaffected.
1919
+
1920
+ **`commissionRate` is what the address would earn, not what it is
1921
+ earning.** It is chain-wide and reads the same whether the code has a
1922
+ thousand referees or none; `refereeCount` is what says whether any of it
1923
+ is being collected.
1924
+
1925
+ **`discountRate` is what the address actually pays under.** It is `"0"`
1926
+ for an address with no referrer, because the chain applies the discount
1927
+ only to addresses that applied someone's code. Being a referrer earns
1928
+ commission and grants no discount — the two roles are unrelated.
1929
+
1930
+ Served from the indexed database like every other endpoint here. It read
1931
+ chain state through a node until the indexer began recording the reward
1932
+ store as it changes; an unreachable database answers `503`.
1933
+
1934
+ * @summary One address's referral standing
1935
+ */
1936
+ export declare const GetReferralStatusParams: zod.ZodObject<{
1937
+ address: zod.ZodString;
1938
+ }, zod.z.core.$strip>;
1939
+ export declare const GetReferralStatusResponse: zod.ZodObject<{
1940
+ address: zod.ZodString;
1941
+ asReferrer: zod.ZodObject<{
1942
+ isEligible: zod.ZodBoolean;
1943
+ code: zod.ZodNullable<zod.ZodString>;
1944
+ refereeCount: zod.ZodNumber;
1945
+ referees: zod.ZodArray<zod.ZodObject<{
1946
+ address: zod.ZodString;
1947
+ rewards: zod.ZodString;
1948
+ since: zod.ZodNullable<zod.ZodNumber>;
1949
+ totalVolume: zod.ZodString;
1950
+ feesPaid: zod.ZodString;
1951
+ }, zod.z.core.$strip>>;
1952
+ totalRewards: zod.ZodString;
1953
+ commissionRate: zod.ZodString;
1954
+ }, zod.z.core.$strip>;
1955
+ asReferee: zod.ZodObject<{
1956
+ referrer: zod.ZodNullable<zod.ZodString>;
1957
+ discountRate: zod.ZodString;
1958
+ }, zod.z.core.$strip>;
1959
+ }, zod.z.core.$strip>;
1960
+ /**
1961
+ * Every perpetual market with its trading terms: the market row joined
1962
+ with its on-chain `PerpetualMarketConfig`. A market whose config the
1963
+ indexer has not written yet is omitted rather than returned with
1964
+ empty margin tiers. Bounded reference collection — no pagination.
1965
+
1966
+ * @summary List perpetual markets
1967
+ */
1968
+ export declare const ListPerpMarketsResponseItem: zod.ZodObject<{
1969
+ marketId: zod.ZodString;
1970
+ symbol: zod.ZodString;
1971
+ baseDenom: zod.ZodString;
1972
+ quoteDenom: zod.ZodString;
1973
+ tickPrecision: zod.ZodNumber;
1974
+ halted: zod.ZodBoolean;
1975
+ isolatedOnly: zod.ZodBoolean;
1976
+ maxLeverage: zod.ZodNumber;
1977
+ makerFeeRate: zod.ZodString;
1978
+ takerFeeRate: zod.ZodString;
1979
+ marginTiers: zod.ZodArray<zod.ZodObject<{
1980
+ notionalCap: zod.ZodString;
1981
+ maxLeverage: zod.ZodNumber;
1982
+ }, zod.z.core.$strip>>;
1983
+ maxPositionNotional: zod.ZodString;
1984
+ maxOpenInterestNotional: zod.ZodString;
1985
+ }, zod.z.core.$strip>;
1986
+ export declare const ListPerpMarketsResponse: zod.ZodArray<zod.ZodObject<{
1987
+ marketId: zod.ZodString;
1988
+ symbol: zod.ZodString;
1989
+ baseDenom: zod.ZodString;
1990
+ quoteDenom: zod.ZodString;
1991
+ tickPrecision: zod.ZodNumber;
1992
+ halted: zod.ZodBoolean;
1993
+ isolatedOnly: zod.ZodBoolean;
1994
+ maxLeverage: zod.ZodNumber;
1995
+ makerFeeRate: zod.ZodString;
1996
+ takerFeeRate: zod.ZodString;
1997
+ marginTiers: zod.ZodArray<zod.ZodObject<{
1998
+ notionalCap: zod.ZodString;
1999
+ maxLeverage: zod.ZodNumber;
2000
+ }, zod.z.core.$strip>>;
2001
+ maxPositionNotional: zod.ZodString;
2002
+ maxOpenInterestNotional: zod.ZodString;
2003
+ }, zod.z.core.$strip>>;
2004
+ /**
2005
+ * @summary Get one perpetual market
2006
+ */
2007
+ export declare const getPerpMarketPathMarketIdRegExp: RegExp;
2008
+ export declare const GetPerpMarketParams: zod.ZodObject<{
2009
+ market_id: zod.ZodString;
2010
+ }, zod.z.core.$strip>;
2011
+ export declare const GetPerpMarketResponse: zod.ZodObject<{
2012
+ marketId: zod.ZodString;
2013
+ symbol: zod.ZodString;
2014
+ baseDenom: zod.ZodString;
2015
+ quoteDenom: zod.ZodString;
2016
+ tickPrecision: zod.ZodNumber;
2017
+ halted: zod.ZodBoolean;
2018
+ isolatedOnly: zod.ZodBoolean;
2019
+ maxLeverage: zod.ZodNumber;
2020
+ makerFeeRate: zod.ZodString;
2021
+ takerFeeRate: zod.ZodString;
2022
+ marginTiers: zod.ZodArray<zod.ZodObject<{
2023
+ notionalCap: zod.ZodString;
2024
+ maxLeverage: zod.ZodNumber;
2025
+ }, zod.z.core.$strip>>;
2026
+ maxPositionNotional: zod.ZodString;
2027
+ maxOpenInterestNotional: zod.ZodString;
2028
+ }, zod.z.core.$strip>;
2029
+ /**
2030
+ * Price and 24h statistics for every perpetual market, plus mark and
2031
+ index price, open interest and the current funding window. Served
2032
+ from an in-memory snapshot rebuilt every second, the same way the
2033
+ Spot tickers are. Bounded collection — no pagination.
2034
+
2035
+ * @summary All perpetual tickers
2036
+ */
2037
+ export declare const ListPerpTickersResponseItem: zod.ZodObject<{
2038
+ marketId: zod.ZodString;
2039
+ lastPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2040
+ markPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2041
+ indexPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2042
+ bestBid: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2043
+ bestAsk: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2044
+ open24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2045
+ high24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2046
+ low24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2047
+ priceChangePercent24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2048
+ volumeBase24h: zod.ZodString;
2049
+ openInterestNotional: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2050
+ windowComplete: zod.ZodBoolean;
2051
+ estimatedHourlyRate: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2052
+ scheduledWindowEnd: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2053
+ fundingStatus: zod.ZodString;
2054
+ timestamp: zod.ZodNumber;
2055
+ }, zod.z.core.$strip>;
2056
+ export declare const ListPerpTickersResponse: zod.ZodArray<zod.ZodObject<{
2057
+ marketId: zod.ZodString;
2058
+ lastPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2059
+ markPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2060
+ indexPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2061
+ bestBid: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2062
+ bestAsk: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2063
+ open24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2064
+ high24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2065
+ low24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2066
+ priceChangePercent24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2067
+ volumeBase24h: zod.ZodString;
2068
+ openInterestNotional: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2069
+ windowComplete: zod.ZodBoolean;
2070
+ estimatedHourlyRate: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2071
+ scheduledWindowEnd: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2072
+ fundingStatus: zod.ZodString;
2073
+ timestamp: zod.ZodNumber;
2074
+ }, zod.z.core.$strip>>;
2075
+ /**
2076
+ * @summary One perpetual ticker
2077
+ */
2078
+ export declare const getPerpTickerPathMarketIdRegExp: RegExp;
2079
+ export declare const GetPerpTickerParams: zod.ZodObject<{
2080
+ market_id: zod.ZodString;
2081
+ }, zod.z.core.$strip>;
2082
+ export declare const GetPerpTickerResponse: zod.ZodObject<{
2083
+ marketId: zod.ZodString;
2084
+ lastPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2085
+ markPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2086
+ indexPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2087
+ bestBid: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2088
+ bestAsk: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2089
+ open24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2090
+ high24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2091
+ low24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2092
+ priceChangePercent24h: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2093
+ volumeBase24h: zod.ZodString;
2094
+ openInterestNotional: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2095
+ windowComplete: zod.ZodBoolean;
2096
+ estimatedHourlyRate: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2097
+ scheduledWindowEnd: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2098
+ fundingStatus: zod.ZodString;
2099
+ timestamp: zod.ZodNumber;
2100
+ }, zod.z.core.$strip>;
2101
+ /**
2102
+ * The latest book snapshot. The indexer persists exactly the top-5 and
2103
+ top-20 views, so `depth` is capped at 20; a market with no snapshot
2104
+ yet returns empty sides.
2105
+
2106
+ * @summary Perpetual order book
2107
+ */
2108
+ export declare const getPerpOrderbookPathMarketIdRegExp: RegExp;
2109
+ export declare const GetPerpOrderbookParams: zod.ZodObject<{
2110
+ market_id: zod.ZodString;
2111
+ }, zod.z.core.$strip>;
2112
+ export declare const getPerpOrderbookQueryDepthDefault = 20;
2113
+ export declare const getPerpOrderbookQueryDepthMax = 20;
2114
+ export declare const GetPerpOrderbookQueryParams: zod.ZodObject<{
2115
+ depth: zod.ZodDefault<zod.ZodNumber>;
2116
+ }, zod.z.core.$strip>;
2117
+ export declare const GetPerpOrderbookResponse: zod.ZodObject<{
2118
+ marketId: zod.ZodString;
2119
+ bids: zod.ZodArray<zod.ZodObject<{
2120
+ price: zod.ZodString;
2121
+ quantity: zod.ZodString;
2122
+ }, zod.z.core.$strip>>;
2123
+ asks: zod.ZodArray<zod.ZodObject<{
2124
+ price: zod.ZodString;
2125
+ quantity: zod.ZodString;
2126
+ }, zod.z.core.$strip>>;
2127
+ }, zod.z.core.$strip>;
2128
+ /**
2129
+ * Recent matches, newest first — one row per match (the maker leg).
2130
+ Pages on `(block_height, event_index)` like the Spot trade feed; see
2131
+ docs/pagination.md.
2132
+
2133
+ * @summary Public perpetual trades
2134
+ */
2135
+ export declare const listPerpMarketTradesPathMarketIdRegExp: RegExp;
2136
+ export declare const ListPerpMarketTradesParams: zod.ZodObject<{
2137
+ market_id: zod.ZodString;
2138
+ }, zod.z.core.$strip>;
2139
+ export declare const listPerpMarketTradesQueryFromMin = 0;
2140
+ export declare const listPerpMarketTradesQueryToMin = 0;
2141
+ export declare const listPerpMarketTradesQueryLimitDefault = 100;
2142
+ export declare const listPerpMarketTradesQueryLimitMax = 500;
2143
+ export declare const ListPerpMarketTradesQueryParams: zod.ZodObject<{
2144
+ from: zod.ZodOptional<zod.ZodNumber>;
2145
+ to: zod.ZodOptional<zod.ZodNumber>;
2146
+ limit: zod.ZodDefault<zod.ZodNumber>;
2147
+ cursor: zod.ZodOptional<zod.ZodString>;
2148
+ }, zod.z.core.$strip>;
2149
+ export declare const ListPerpMarketTradesResponseItem: zod.ZodObject<{
2150
+ id: zod.ZodString;
2151
+ timestamp: zod.ZodNumber;
2152
+ marketId: zod.ZodString;
2153
+ price: zod.ZodString;
2154
+ quantity: zod.ZodString;
2155
+ takerSide: zod.ZodEnum<{
2156
+ buy: "buy";
2157
+ sell: "sell";
2158
+ }>;
2159
+ }, zod.z.core.$strip>;
2160
+ export declare const ListPerpMarketTradesResponse: zod.ZodArray<zod.ZodObject<{
2161
+ id: zod.ZodString;
2162
+ timestamp: zod.ZodNumber;
2163
+ marketId: zod.ZodString;
2164
+ price: zod.ZodString;
2165
+ quantity: zod.ZodString;
2166
+ takerSide: zod.ZodEnum<{
2167
+ buy: "buy";
2168
+ sell: "sell";
2169
+ }>;
2170
+ }, zod.z.core.$strip>>;
2171
+ /**
2172
+ * Candles ascending. Without `from` the newest `limit` bars and the
2173
+ cursor walks back; with `from` the first `limit` bars from it and the
2174
+ cursor walks forward — the same rules as `/ohlcv/{symbol}`.
2175
+
2176
+ * @summary Perpetual OHLCV candles
2177
+ */
2178
+ export declare const listPerpCandlesPathMarketIdRegExp: RegExp;
2179
+ export declare const ListPerpCandlesParams: zod.ZodObject<{
2180
+ market_id: zod.ZodString;
2181
+ }, zod.z.core.$strip>;
2182
+ export declare const listPerpCandlesQueryFromMin = 0;
2183
+ export declare const listPerpCandlesQueryToMin = 0;
2184
+ export declare const listPerpCandlesQueryLimitDefault = 500;
2185
+ export declare const listPerpCandlesQueryLimitMax = 1000;
2186
+ export declare const ListPerpCandlesQueryParams: zod.ZodObject<{
2187
+ interval: zod.ZodEnum<{
2188
+ "1h": "1h";
2189
+ "1d": "1d";
2190
+ "1m": "1m";
2191
+ "5m": "5m";
2192
+ "15m": "15m";
2193
+ "30m": "30m";
2194
+ "4h": "4h";
2195
+ }>;
2196
+ from: zod.ZodOptional<zod.ZodNumber>;
2197
+ to: zod.ZodOptional<zod.ZodNumber>;
2198
+ limit: zod.ZodDefault<zod.ZodNumber>;
2199
+ cursor: zod.ZodOptional<zod.ZodString>;
2200
+ }, zod.z.core.$strip>;
2201
+ export declare const ListPerpCandlesResponseItem: zod.ZodObject<{
2202
+ marketId: zod.ZodString;
2203
+ interval: zod.ZodString;
2204
+ openTime: zod.ZodNumber;
2205
+ open: zod.ZodString;
2206
+ high: zod.ZodString;
2207
+ low: zod.ZodString;
2208
+ close: zod.ZodString;
2209
+ volumeBase: zod.ZodString;
2210
+ isClosed: zod.ZodBoolean;
2211
+ }, zod.z.core.$strip>;
2212
+ export declare const ListPerpCandlesResponse: zod.ZodArray<zod.ZodObject<{
2213
+ marketId: zod.ZodString;
2214
+ interval: zod.ZodString;
2215
+ openTime: zod.ZodNumber;
2216
+ open: zod.ZodString;
2217
+ high: zod.ZodString;
2218
+ low: zod.ZodString;
2219
+ close: zod.ZodString;
2220
+ volumeBase: zod.ZodString;
2221
+ isClosed: zod.ZodBoolean;
2222
+ }, zod.z.core.$strip>>;
2223
+ /**
2224
+ * Settled and discarded funding windows, newest first. Pages on `window_start`.
2225
+ * @summary Perpetual funding history
2226
+ */
2227
+ export declare const listPerpFundingHistoryPathMarketIdRegExp: RegExp;
2228
+ export declare const ListPerpFundingHistoryParams: zod.ZodObject<{
2229
+ market_id: zod.ZodString;
2230
+ }, zod.z.core.$strip>;
2231
+ export declare const listPerpFundingHistoryQueryFromMin = 0;
2232
+ export declare const listPerpFundingHistoryQueryToMin = 0;
2233
+ export declare const listPerpFundingHistoryQueryLimitDefault = 100;
2234
+ export declare const listPerpFundingHistoryQueryLimitMax = 500;
2235
+ export declare const ListPerpFundingHistoryQueryParams: zod.ZodObject<{
2236
+ from: zod.ZodOptional<zod.ZodNumber>;
2237
+ to: zod.ZodOptional<zod.ZodNumber>;
2238
+ limit: zod.ZodDefault<zod.ZodNumber>;
2239
+ cursor: zod.ZodOptional<zod.ZodString>;
2240
+ }, zod.z.core.$strip>;
2241
+ export declare const ListPerpFundingHistoryResponseItem: zod.ZodObject<{
2242
+ marketId: zod.ZodString;
2243
+ windowStart: zod.ZodNumber;
2244
+ windowEnd: zod.ZodNumber;
2245
+ settledAt: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2246
+ hourlyRate: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2247
+ status: zod.ZodString;
2248
+ reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2249
+ }, zod.z.core.$strip>;
2250
+ export declare const ListPerpFundingHistoryResponse: zod.ZodArray<zod.ZodObject<{
2251
+ marketId: zod.ZodString;
2252
+ windowStart: zod.ZodNumber;
2253
+ windowEnd: zod.ZodNumber;
2254
+ settledAt: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2255
+ hourlyRate: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2256
+ status: zod.ZodString;
2257
+ reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2258
+ }, zod.z.core.$strip>>;
2259
+ /**
2260
+ * The owner's derived trading accounts (one cross, one per isolated
2261
+ market) with collateral and equity. Never 404s: an owner with no
2262
+ accounts gets an empty array.
2263
+
2264
+ * @summary Perpetual accounts of an owner
2265
+ */
2266
+ export declare const ListPerpAccountsParams: zod.ZodObject<{
2267
+ owner: zod.ZodString;
2268
+ }, zod.z.core.$strip>;
2269
+ export declare const ListPerpAccountsResponseItem: zod.ZodObject<{
2270
+ accountId: zod.ZodString;
2271
+ marginMode: zod.ZodEnum<{
2272
+ cross: "cross";
2273
+ isolated: "isolated";
2274
+ }>;
2275
+ isolatedMarketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2276
+ collateral: zod.ZodString;
2277
+ equity: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2278
+ }, zod.z.core.$strip>;
2279
+ export declare const ListPerpAccountsResponse: zod.ZodArray<zod.ZodObject<{
2280
+ accountId: zod.ZodString;
2281
+ marginMode: zod.ZodEnum<{
2282
+ cross: "cross";
2283
+ isolated: "isolated";
2284
+ }>;
2285
+ isolatedMarketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2286
+ collateral: zod.ZodString;
2287
+ equity: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2288
+ }, zod.z.core.$strip>>;
2289
+ /**
2290
+ * Open positions valued at each market's current mark price.
2291
+ * @summary Open perpetual positions of an owner
2292
+ */
2293
+ export declare const ListPerpPositionsParams: zod.ZodObject<{
2294
+ owner: zod.ZodString;
2295
+ }, zod.z.core.$strip>;
2296
+ export declare const listPerpPositionsQueryMarketIdRegExp: RegExp;
2297
+ export declare const ListPerpPositionsQueryParams: zod.ZodObject<{
2298
+ account_id: zod.ZodOptional<zod.ZodString>;
2299
+ market_id: zod.ZodOptional<zod.ZodString>;
2300
+ }, zod.z.core.$strip>;
2301
+ export declare const ListPerpPositionsResponseItem: zod.ZodObject<{
2302
+ accountId: zod.ZodString;
2303
+ marketId: zod.ZodString;
2304
+ marginMode: zod.ZodEnum<{
2305
+ cross: "cross";
2306
+ isolated: "isolated";
2307
+ }>;
2308
+ side: zod.ZodEnum<{
2309
+ long: "long";
2310
+ short: "short";
2311
+ }>;
2312
+ quantity: zod.ZodString;
2313
+ entryPrice: zod.ZodString;
2314
+ markPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2315
+ notional: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2316
+ leverage: zod.ZodNumber;
2317
+ unrealizedPnl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2318
+ pendingFundingPayment: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2319
+ initialMargin: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2320
+ maintenanceMargin: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2321
+ }, zod.z.core.$strip>;
2322
+ export declare const ListPerpPositionsResponse: zod.ZodArray<zod.ZodObject<{
2323
+ accountId: zod.ZodString;
2324
+ marketId: zod.ZodString;
2325
+ marginMode: zod.ZodEnum<{
2326
+ cross: "cross";
2327
+ isolated: "isolated";
2328
+ }>;
2329
+ side: zod.ZodEnum<{
2330
+ long: "long";
2331
+ short: "short";
2332
+ }>;
2333
+ quantity: zod.ZodString;
2334
+ entryPrice: zod.ZodString;
2335
+ markPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2336
+ notional: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2337
+ leverage: zod.ZodNumber;
2338
+ unrealizedPnl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2339
+ pendingFundingPayment: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2340
+ initialMargin: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2341
+ maintenanceMargin: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2342
+ }, zod.z.core.$strip>>;
2343
+ /**
2344
+ * The owner's stored margin mode and leverage per market. Markets the
2345
+ owner never configured have no row; the chain default for them is
2346
+ cross at 1x.
2347
+
2348
+ * @summary Margin settings of an owner
2349
+ */
2350
+ export declare const ListPerpMarginConfigsParams: zod.ZodObject<{
2351
+ owner: zod.ZodString;
2352
+ }, zod.z.core.$strip>;
2353
+ export declare const listPerpMarginConfigsQueryMarketIdRegExp: RegExp;
2354
+ export declare const ListPerpMarginConfigsQueryParams: zod.ZodObject<{
2355
+ market_id: zod.ZodOptional<zod.ZodString>;
2356
+ }, zod.z.core.$strip>;
2357
+ export declare const ListPerpMarginConfigsResponseItem: zod.ZodObject<{
2358
+ marketId: zod.ZodString;
2359
+ marginMode: zod.ZodEnum<{
2360
+ cross: "cross";
2361
+ isolated: "isolated";
2362
+ }>;
2363
+ leverage: zod.ZodNumber;
2364
+ }, zod.z.core.$strip>;
2365
+ export declare const ListPerpMarginConfigsResponse: zod.ZodArray<zod.ZodObject<{
2366
+ marketId: zod.ZodString;
2367
+ marginMode: zod.ZodEnum<{
2368
+ cross: "cross";
2369
+ isolated: "isolated";
2370
+ }>;
2371
+ leverage: zod.ZodNumber;
2372
+ }, zod.z.core.$strip>>;
2373
+ /**
2374
+ * Open and closed orders, newest first. Pages on
2375
+ `(block_height, tx_index, id)` like `/orders`.
2376
+
2377
+ * @summary Perpetual orders of an owner
2378
+ */
2379
+ export declare const ListPerpOrdersParams: zod.ZodObject<{
2380
+ owner: zod.ZodString;
2381
+ }, zod.z.core.$strip>;
2382
+ export declare const listPerpOrdersQueryMarketIdRegExp: RegExp;
2383
+ export declare const listPerpOrdersQueryFromMin = 0;
2384
+ export declare const listPerpOrdersQueryToMin = 0;
2385
+ export declare const listPerpOrdersQueryLimitDefault = 100;
2386
+ export declare const listPerpOrdersQueryLimitMax = 500;
2387
+ export declare const ListPerpOrdersQueryParams: zod.ZodObject<{
2388
+ account_id: zod.ZodOptional<zod.ZodString>;
2389
+ market_id: zod.ZodOptional<zod.ZodString>;
2390
+ status: zod.ZodOptional<zod.ZodEnum<{
2391
+ closed: "closed";
2392
+ open: "open";
2393
+ canceled: "canceled";
2394
+ }>>;
2395
+ from: zod.ZodOptional<zod.ZodNumber>;
2396
+ to: zod.ZodOptional<zod.ZodNumber>;
2397
+ limit: zod.ZodDefault<zod.ZodNumber>;
2398
+ cursor: zod.ZodOptional<zod.ZodString>;
2399
+ }, zod.z.core.$strip>;
2400
+ export declare const ListPerpOrdersResponseItem: zod.ZodObject<{
2401
+ orderId: zod.ZodString;
2402
+ cloid: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2403
+ accountId: zod.ZodString;
2404
+ marketId: zod.ZodString;
2405
+ side: zod.ZodEnum<{
2406
+ buy: "buy";
2407
+ sell: "sell";
2408
+ }>;
2409
+ timeInForce: zod.ZodEnum<{
2410
+ unknown: "unknown";
2411
+ ioc: "ioc";
2412
+ gtc: "gtc";
2413
+ }>;
2414
+ price: zod.ZodString;
2415
+ quantity: zod.ZodString;
2416
+ openQuantity: zod.ZodString;
2417
+ reduceOnly: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
2418
+ filledQuantity: zod.ZodString;
2419
+ averageFillPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2420
+ status: zod.ZodEnum<{
2421
+ unknown: "unknown";
2422
+ closed: "closed";
2423
+ open: "open";
2424
+ canceled: "canceled";
2425
+ }>;
2426
+ closeReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2427
+ createdAt: zod.ZodNumber;
2428
+ deadline: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2429
+ fillHistoryComplete: zod.ZodBoolean;
2430
+ }, zod.z.core.$strip>;
2431
+ export declare const ListPerpOrdersResponse: zod.ZodArray<zod.ZodObject<{
2432
+ orderId: zod.ZodString;
2433
+ cloid: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2434
+ accountId: zod.ZodString;
2435
+ marketId: zod.ZodString;
2436
+ side: zod.ZodEnum<{
2437
+ buy: "buy";
2438
+ sell: "sell";
2439
+ }>;
2440
+ timeInForce: zod.ZodEnum<{
2441
+ unknown: "unknown";
2442
+ ioc: "ioc";
2443
+ gtc: "gtc";
2444
+ }>;
2445
+ price: zod.ZodString;
2446
+ quantity: zod.ZodString;
2447
+ openQuantity: zod.ZodString;
2448
+ reduceOnly: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
2449
+ filledQuantity: zod.ZodString;
2450
+ averageFillPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2451
+ status: zod.ZodEnum<{
2452
+ unknown: "unknown";
2453
+ closed: "closed";
2454
+ open: "open";
2455
+ canceled: "canceled";
2456
+ }>;
2457
+ closeReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2458
+ createdAt: zod.ZodNumber;
2459
+ deadline: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2460
+ fillHistoryComplete: zod.ZodBoolean;
2461
+ }, zod.z.core.$strip>>;
2462
+ /**
2463
+ * An order that exists but belongs to another owner is reported as not found.
2464
+ * @summary One perpetual order
2465
+ */
2466
+ export declare const getPerpOrderPathOrderIdRegExp: RegExp;
2467
+ export declare const GetPerpOrderParams: zod.ZodObject<{
2468
+ owner: zod.ZodString;
2469
+ order_id: zod.ZodString;
2470
+ }, zod.z.core.$strip>;
2471
+ export declare const GetPerpOrderResponse: zod.ZodObject<{
2472
+ orderId: zod.ZodString;
2473
+ cloid: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2474
+ accountId: zod.ZodString;
2475
+ marketId: zod.ZodString;
2476
+ side: zod.ZodEnum<{
2477
+ buy: "buy";
2478
+ sell: "sell";
2479
+ }>;
2480
+ timeInForce: zod.ZodEnum<{
2481
+ unknown: "unknown";
2482
+ ioc: "ioc";
2483
+ gtc: "gtc";
2484
+ }>;
2485
+ price: zod.ZodString;
2486
+ quantity: zod.ZodString;
2487
+ openQuantity: zod.ZodString;
2488
+ reduceOnly: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
2489
+ filledQuantity: zod.ZodString;
2490
+ averageFillPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2491
+ status: zod.ZodEnum<{
2492
+ unknown: "unknown";
2493
+ closed: "closed";
2494
+ open: "open";
2495
+ canceled: "canceled";
2496
+ }>;
2497
+ closeReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2498
+ createdAt: zod.ZodNumber;
2499
+ deadline: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2500
+ fillHistoryComplete: zod.ZodBoolean;
2501
+ }, zod.z.core.$strip>;
2502
+ /**
2503
+ * Every fill of the owner's orders, both maker and taker legs, newest
2504
+ first. Pages on `(block_height, event_index)` like `/mytrades`.
2505
+
2506
+ * @summary Perpetual fills of an owner
2507
+ */
2508
+ export declare const ListPerpFillsParams: zod.ZodObject<{
2509
+ owner: zod.ZodString;
2510
+ }, zod.z.core.$strip>;
2511
+ export declare const listPerpFillsQueryMarketIdRegExp: RegExp;
2512
+ export declare const listPerpFillsQueryFromMin = 0;
2513
+ export declare const listPerpFillsQueryToMin = 0;
2514
+ export declare const listPerpFillsQueryLimitDefault = 100;
2515
+ export declare const listPerpFillsQueryLimitMax = 500;
2516
+ export declare const ListPerpFillsQueryParams: zod.ZodObject<{
2517
+ account_id: zod.ZodOptional<zod.ZodString>;
2518
+ market_id: zod.ZodOptional<zod.ZodString>;
2519
+ from: zod.ZodOptional<zod.ZodNumber>;
2520
+ to: zod.ZodOptional<zod.ZodNumber>;
2521
+ limit: zod.ZodDefault<zod.ZodNumber>;
2522
+ cursor: zod.ZodOptional<zod.ZodString>;
2523
+ }, zod.z.core.$strip>;
2524
+ export declare const ListPerpFillsResponseItem: zod.ZodObject<{
2525
+ id: zod.ZodString;
2526
+ timestamp: zod.ZodNumber;
2527
+ accountId: zod.ZodString;
2528
+ marketId: zod.ZodString;
2529
+ orderId: zod.ZodString;
2530
+ side: zod.ZodEnum<{
2531
+ buy: "buy";
2532
+ sell: "sell";
2533
+ }>;
2534
+ liquidity: zod.ZodEnum<{
2535
+ taker: "taker";
2536
+ maker: "maker";
2537
+ }>;
2538
+ price: zod.ZodString;
2539
+ quantity: zod.ZodString;
2540
+ quoteNotional: zod.ZodString;
2541
+ fee: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2542
+ feeDenom: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2543
+ }, zod.z.core.$strip>;
2544
+ export declare const ListPerpFillsResponse: zod.ZodArray<zod.ZodObject<{
2545
+ id: zod.ZodString;
2546
+ timestamp: zod.ZodNumber;
2547
+ accountId: zod.ZodString;
2548
+ marketId: zod.ZodString;
2549
+ orderId: zod.ZodString;
2550
+ side: zod.ZodEnum<{
2551
+ buy: "buy";
2552
+ sell: "sell";
2553
+ }>;
2554
+ liquidity: zod.ZodEnum<{
2555
+ taker: "taker";
2556
+ maker: "maker";
2557
+ }>;
2558
+ price: zod.ZodString;
2559
+ quantity: zod.ZodString;
2560
+ quoteNotional: zod.ZodString;
2561
+ fee: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2562
+ feeDenom: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2563
+ }, zod.z.core.$strip>>;
2564
+ /**
2565
+ * Every collateral change of the owner's accounts — deposits,
2566
+ withdrawals, margin moves, fees, realized PnL, funding — newest
2567
+ first. Pages on `(block_height, event_index, item_index)`.
2568
+
2569
+ * @summary Collateral ledger of an owner
2570
+ */
2571
+ export declare const ListPerpLedgerParams: zod.ZodObject<{
2572
+ owner: zod.ZodString;
2573
+ }, zod.z.core.$strip>;
2574
+ export declare const listPerpLedgerQueryMarketIdRegExp: RegExp;
2575
+ export declare const listPerpLedgerQueryFromMin = 0;
2576
+ export declare const listPerpLedgerQueryToMin = 0;
2577
+ export declare const listPerpLedgerQueryLimitDefault = 100;
2578
+ export declare const listPerpLedgerQueryLimitMax = 500;
2579
+ export declare const ListPerpLedgerQueryParams: zod.ZodObject<{
2580
+ account_id: zod.ZodOptional<zod.ZodString>;
2581
+ market_id: zod.ZodOptional<zod.ZodString>;
2582
+ kind: zod.ZodOptional<zod.ZodString>;
2583
+ from: zod.ZodOptional<zod.ZodNumber>;
2584
+ to: zod.ZodOptional<zod.ZodNumber>;
2585
+ limit: zod.ZodDefault<zod.ZodNumber>;
2586
+ cursor: zod.ZodOptional<zod.ZodString>;
2587
+ }, zod.z.core.$strip>;
2588
+ export declare const ListPerpLedgerResponseItem: zod.ZodObject<{
2589
+ id: zod.ZodString;
2590
+ timestamp: zod.ZodNumber;
2591
+ accountId: zod.ZodString;
2592
+ marketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2593
+ collateralDenom: zod.ZodString;
2594
+ kind: zod.ZodString;
2595
+ amount: zod.ZodString;
2596
+ collateralAfter: zod.ZodNullable<zod.ZodString>;
2597
+ transferId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2598
+ counterpartyAccountId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2599
+ reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2600
+ }, zod.z.core.$strip>;
2601
+ export declare const ListPerpLedgerResponse: zod.ZodArray<zod.ZodObject<{
2602
+ id: zod.ZodString;
2603
+ timestamp: zod.ZodNumber;
2604
+ accountId: zod.ZodString;
2605
+ marketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2606
+ collateralDenom: zod.ZodString;
2607
+ kind: zod.ZodString;
2608
+ amount: zod.ZodString;
2609
+ collateralAfter: zod.ZodNullable<zod.ZodString>;
2610
+ transferId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2611
+ counterpartyAccountId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2612
+ reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2613
+ }, zod.z.core.$strip>>;
2614
+ /**
2615
+ * The ledger restricted to funding entries, newest first.
2616
+ * @summary Funding payments of an owner
2617
+ */
2618
+ export declare const ListPerpFundingPaymentsParams: zod.ZodObject<{
2619
+ owner: zod.ZodString;
2620
+ }, zod.z.core.$strip>;
2621
+ export declare const listPerpFundingPaymentsQueryMarketIdRegExp: RegExp;
2622
+ export declare const listPerpFundingPaymentsQueryFromMin = 0;
2623
+ export declare const listPerpFundingPaymentsQueryToMin = 0;
2624
+ export declare const listPerpFundingPaymentsQueryLimitDefault = 100;
2625
+ export declare const listPerpFundingPaymentsQueryLimitMax = 500;
2626
+ export declare const ListPerpFundingPaymentsQueryParams: zod.ZodObject<{
2627
+ account_id: zod.ZodOptional<zod.ZodString>;
2628
+ market_id: zod.ZodOptional<zod.ZodString>;
2629
+ from: zod.ZodOptional<zod.ZodNumber>;
2630
+ to: zod.ZodOptional<zod.ZodNumber>;
2631
+ limit: zod.ZodDefault<zod.ZodNumber>;
2632
+ cursor: zod.ZodOptional<zod.ZodString>;
2633
+ }, zod.z.core.$strip>;
2634
+ export declare const ListPerpFundingPaymentsResponseItem: zod.ZodObject<{
2635
+ id: zod.ZodString;
2636
+ timestamp: zod.ZodNumber;
2637
+ accountId: zod.ZodString;
2638
+ marketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2639
+ collateralDenom: zod.ZodString;
2640
+ amount: zod.ZodString;
2641
+ collateralAfter: zod.ZodNullable<zod.ZodString>;
2642
+ }, zod.z.core.$strip>;
2643
+ export declare const ListPerpFundingPaymentsResponse: zod.ZodArray<zod.ZodObject<{
2644
+ id: zod.ZodString;
2645
+ timestamp: zod.ZodNumber;
2646
+ accountId: zod.ZodString;
2647
+ marketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2648
+ collateralDenom: zod.ZodString;
2649
+ amount: zod.ZodString;
2650
+ collateralAfter: zod.ZodNullable<zod.ZodString>;
2651
+ }, zod.z.core.$strip>>;
2652
+ /**
2653
+ * Forced closeout steps — liquidation orders and auto-deleveraging —
2654
+ newest first. Pages on `(block_height, event_index, item_index)`.
2655
+
2656
+ * @summary Liquidation and ADL history of an owner
2657
+ */
2658
+ export declare const ListPerpCloseoutsParams: zod.ZodObject<{
2659
+ owner: zod.ZodString;
2660
+ }, zod.z.core.$strip>;
2661
+ export declare const listPerpCloseoutsQueryMarketIdRegExp: RegExp;
2662
+ export declare const listPerpCloseoutsQueryFromMin = 0;
2663
+ export declare const listPerpCloseoutsQueryToMin = 0;
2664
+ export declare const listPerpCloseoutsQueryLimitDefault = 100;
2665
+ export declare const listPerpCloseoutsQueryLimitMax = 500;
2666
+ export declare const ListPerpCloseoutsQueryParams: zod.ZodObject<{
2667
+ account_id: zod.ZodOptional<zod.ZodString>;
2668
+ market_id: zod.ZodOptional<zod.ZodString>;
2669
+ kind: zod.ZodOptional<zod.ZodString>;
2670
+ from: zod.ZodOptional<zod.ZodNumber>;
2671
+ to: zod.ZodOptional<zod.ZodNumber>;
2672
+ limit: zod.ZodDefault<zod.ZodNumber>;
2673
+ cursor: zod.ZodOptional<zod.ZodString>;
2674
+ }, zod.z.core.$strip>;
2675
+ export declare const ListPerpCloseoutsResponseItem: zod.ZodObject<{
2676
+ id: zod.ZodString;
2677
+ timestamp: zod.ZodNumber;
2678
+ accountId: zod.ZodString;
2679
+ marketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2680
+ kind: zod.ZodString;
2681
+ orderId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2682
+ quantity: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2683
+ executionPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2684
+ reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2685
+ }, zod.z.core.$strip>;
2686
+ export declare const ListPerpCloseoutsResponse: zod.ZodArray<zod.ZodObject<{
2687
+ id: zod.ZodString;
2688
+ timestamp: zod.ZodNumber;
2689
+ accountId: zod.ZodString;
2690
+ marketId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2691
+ kind: zod.ZodString;
2692
+ orderId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2693
+ quantity: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2694
+ executionPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2695
+ reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2696
+ }, zod.z.core.$strip>>;
2697
+ /**
2698
+ * @summary UDF configuration
2699
+ */
2700
+ export declare const GetUDFConfigResponse: zod.ZodObject<{
2701
+ supports_search: zod.ZodBoolean;
2702
+ supports_group_request: zod.ZodBoolean;
2703
+ supports_marks: zod.ZodBoolean;
2704
+ supports_timescale_marks: zod.ZodBoolean;
2705
+ supports_time: zod.ZodBoolean;
2706
+ supported_resolutions: zod.ZodArray<zod.ZodString>;
2707
+ exchanges: zod.ZodArray<zod.ZodObject<{
2708
+ value: zod.ZodString;
2709
+ name: zod.ZodString;
2710
+ desc: zod.ZodString;
2711
+ }, zod.z.core.$strip>>;
2712
+ symbols_types: zod.ZodArray<zod.ZodObject<{
2713
+ name: zod.ZodString;
2714
+ value: zod.ZodString;
2715
+ }, zod.z.core.$strip>>;
2716
+ }, zod.z.core.$strip>;
2717
+ /**
2718
+ * @summary Symbol info
2719
+ */
2720
+ export declare const GetUDFSymbolQueryParams: zod.ZodObject<{
2721
+ symbol: zod.ZodString;
2722
+ }, zod.z.core.$strip>;
2723
+ export declare const GetUDFSymbolResponse: zod.ZodObject<{
1028
2724
  name: zod.ZodString;
1029
2725
  ticker: zod.ZodString;
1030
2726
  description: zod.ZodString;
@@ -1195,3 +2891,325 @@ export declare const GetUDFTimescaleMarksResponse: zod.ZodArray<zod.ZodObject<{
1195
2891
  label: zod.ZodString;
1196
2892
  tooltip: zod.ZodString;
1197
2893
  }, zod.z.core.$strip>>;
2894
+ /**
2895
+ * Every registered x/oracle feed with its current price, as the indexer
2896
+ records it. The price is the chain's canonical bridge-adjusted value —
2897
+ the same number x/lending reads — so it is reported verbatim.
2898
+
2899
+ There is no `stale` flag. Staleness is a consumer policy rather than a
2900
+ property of the feed: each lending pool configures its own
2901
+ `maxOracleStalenessUs`, so a venue-wide answer would have to invent a
2902
+ threshold none of them use. Age a feed with `updatedAt` instead.
2903
+
2904
+ Not paginated. The feed registry is venue configuration, a handful of
2905
+ rows changed by governance.
2906
+
2907
+ * @summary List current oracle prices
2908
+ */
2909
+ export declare const ListOraclePricesResponse: zod.ZodObject<{
2910
+ prices: zod.ZodArray<zod.ZodObject<{
2911
+ feedId: zod.ZodString;
2912
+ owner: zod.ZodString;
2913
+ enabled: zod.ZodBoolean;
2914
+ marketId: zod.ZodString;
2915
+ price: zod.ZodNullable<zod.ZodString>;
2916
+ updatedAt: zod.ZodNullable<zod.ZodNumber>;
2917
+ indexedAt: zod.ZodNullable<zod.ZodNumber>;
2918
+ marketOpen: zod.ZodNullable<zod.ZodBoolean>;
2919
+ bridgeActive: zod.ZodNullable<zod.ZodBoolean>;
2920
+ }, zod.z.core.$strip>>;
2921
+ }, zod.z.core.$strip>;
2922
+ /**
2923
+ * Current state of every vault, ascending by `vaultAddress` and paged
2924
+ with the opaque header cursor (see `cursor`). `tvl`, `sharePrice`,
2925
+ `apr` and `apy` are written by the vault worker and are `null` until
2926
+ it has run. Shares are decimal strings in human units (raw chain
2927
+ integers divided by 10^18).
2928
+
2929
+ * @summary Public vault directory
2930
+ */
2931
+ export declare const listVaultsQueryLimitDefault = 100;
2932
+ export declare const listVaultsQueryLimitMax = 500;
2933
+ export declare const ListVaultsQueryParams: zod.ZodObject<{
2934
+ vault_type: zod.ZodOptional<zod.ZodEnum<{
2935
+ lending: "lending";
2936
+ trading: "trading";
2937
+ }>>;
2938
+ relationship: zod.ZodOptional<zod.ZodEnum<{
2939
+ normal: "normal";
2940
+ parent: "parent";
2941
+ child: "child";
2942
+ }>>;
2943
+ status: zod.ZodOptional<zod.ZodEnum<{
2944
+ active: "active";
2945
+ paused: "paused";
2946
+ closed: "closed";
2947
+ }>>;
2948
+ owner: zod.ZodOptional<zod.ZodString>;
2949
+ manager: zod.ZodOptional<zod.ZodString>;
2950
+ limit: zod.ZodDefault<zod.ZodNumber>;
2951
+ cursor: zod.ZodOptional<zod.ZodString>;
2952
+ }, zod.z.core.$strip>;
2953
+ export declare const listVaultsResponseVaultsItemVaultAddressRegExp: RegExp;
2954
+ export declare const listVaultsResponseVaultsItemOwnerRegExp: RegExp;
2955
+ export declare const listVaultsResponseVaultsItemManagerRegExp: RegExp;
2956
+ export declare const ListVaultsResponse: zod.ZodObject<{
2957
+ vaults: zod.ZodArray<zod.ZodObject<{
2958
+ vaultAddress: zod.ZodString;
2959
+ vaultType: zod.ZodEnum<{
2960
+ lending: "lending";
2961
+ trading: "trading";
2962
+ }>;
2963
+ relationship: zod.ZodEnum<{
2964
+ normal: "normal";
2965
+ parent: "parent";
2966
+ child: "child";
2967
+ }>;
2968
+ parentVaultAddress: zod.ZodNullable<zod.ZodString>;
2969
+ owner: zod.ZodString;
2970
+ manager: zod.ZodString;
2971
+ vaultDenom: zod.ZodString;
2972
+ status: zod.ZodEnum<{
2973
+ active: "active";
2974
+ paused: "paused";
2975
+ closed: "closed";
2976
+ }>;
2977
+ tvl: zod.ZodNullable<zod.ZodString>;
2978
+ totalShares: zod.ZodString;
2979
+ sharePrice: zod.ZodNullable<zod.ZodString>;
2980
+ apr: zod.ZodNullable<zod.ZodString>;
2981
+ apy: zod.ZodNullable<zod.ZodString>;
2982
+ lockup: zod.ZodObject<{
2983
+ type: zod.ZodEnum<{
2984
+ unrestricted: "unrestricted";
2985
+ fundWindow: "fundWindow";
2986
+ }>;
2987
+ depositOpenTime: zod.ZodOptional<zod.ZodNumber>;
2988
+ depositCloseTime: zod.ZodOptional<zod.ZodNumber>;
2989
+ redemptionOpenTime: zod.ZodOptional<zod.ZodNumber>;
2990
+ }, zod.z.core.$strip>;
2991
+ fee: zod.ZodObject<{
2992
+ type: zod.ZodEnum<{
2993
+ none: "none";
2994
+ managementDilution: "managementDilution";
2995
+ performanceExit: "performanceExit";
2996
+ }>;
2997
+ rateBps: zod.ZodNumber;
2998
+ }, zod.z.core.$strip>;
2999
+ }, zod.z.core.$strip>>;
3000
+ asOf: zod.ZodNumber;
3001
+ }, zod.z.core.$strip>;
3002
+ /**
3003
+ * Directory fields plus the exit fee, the scheduled configuration
3004
+ update, the type-specific `trading` or `lending` state (a parent
3005
+ Trading vault lists its children; a Lending vault lists its supply per
3006
+ configured pool) and, when `user` is given, that depositor's
3007
+ `followerState`.
3008
+
3009
+ * @summary Current vault details
3010
+ */
3011
+ export declare const GetVaultParams: zod.ZodObject<{
3012
+ vault_address: zod.ZodString;
3013
+ }, zod.z.core.$strip>;
3014
+ export declare const GetVaultQueryParams: zod.ZodObject<{
3015
+ user: zod.ZodOptional<zod.ZodString>;
3016
+ }, zod.z.core.$strip>;
3017
+ export declare const getVaultResponseOneVaultAddressRegExp: RegExp;
3018
+ export declare const getVaultResponseOneOwnerRegExp: RegExp;
3019
+ export declare const getVaultResponseOneManagerRegExp: RegExp;
3020
+ export declare const getVaultResponseTwoTradingChildrenItemVaultAddressRegExp: RegExp;
3021
+ export declare const getVaultResponseTwoFollowerStateUserRegExp: RegExp;
3022
+ export declare const GetVaultResponse: zod.ZodIntersection<zod.ZodObject<{
3023
+ vaultAddress: zod.ZodString;
3024
+ vaultType: zod.ZodEnum<{
3025
+ lending: "lending";
3026
+ trading: "trading";
3027
+ }>;
3028
+ relationship: zod.ZodEnum<{
3029
+ normal: "normal";
3030
+ parent: "parent";
3031
+ child: "child";
3032
+ }>;
3033
+ parentVaultAddress: zod.ZodNullable<zod.ZodString>;
3034
+ owner: zod.ZodString;
3035
+ manager: zod.ZodString;
3036
+ vaultDenom: zod.ZodString;
3037
+ status: zod.ZodEnum<{
3038
+ active: "active";
3039
+ paused: "paused";
3040
+ closed: "closed";
3041
+ }>;
3042
+ tvl: zod.ZodNullable<zod.ZodString>;
3043
+ totalShares: zod.ZodString;
3044
+ sharePrice: zod.ZodNullable<zod.ZodString>;
3045
+ apr: zod.ZodNullable<zod.ZodString>;
3046
+ apy: zod.ZodNullable<zod.ZodString>;
3047
+ lockup: zod.ZodObject<{
3048
+ type: zod.ZodEnum<{
3049
+ unrestricted: "unrestricted";
3050
+ fundWindow: "fundWindow";
3051
+ }>;
3052
+ depositOpenTime: zod.ZodOptional<zod.ZodNumber>;
3053
+ depositCloseTime: zod.ZodOptional<zod.ZodNumber>;
3054
+ redemptionOpenTime: zod.ZodOptional<zod.ZodNumber>;
3055
+ }, zod.z.core.$strip>;
3056
+ fee: zod.ZodObject<{
3057
+ type: zod.ZodEnum<{
3058
+ none: "none";
3059
+ managementDilution: "managementDilution";
3060
+ performanceExit: "performanceExit";
3061
+ }>;
3062
+ rateBps: zod.ZodNumber;
3063
+ }, zod.z.core.$strip>;
3064
+ }, zod.z.core.$strip>, zod.ZodObject<{
3065
+ exitFeeBps: zod.ZodNumber;
3066
+ createdAt: zod.ZodNullable<zod.ZodNumber>;
3067
+ pendingConfigUpdate: zod.ZodUnion<readonly [zod.ZodObject<{
3068
+ executeAfter: zod.ZodNumber;
3069
+ config: zod.ZodObject<{}, zod.z.core.$loose>;
3070
+ }, zod.z.core.$strip>, zod.ZodNull]>;
3071
+ trading: zod.ZodOptional<zod.ZodObject<{
3072
+ allowedActions: zod.ZodArray<zod.ZodString>;
3073
+ spotMarketIds: zod.ZodArray<zod.ZodString>;
3074
+ lendingPoolIds: zod.ZodArray<zod.ZodNumber>;
3075
+ managerFractionBps: zod.ZodNumber;
3076
+ alwaysCloseOnRedemption: zod.ZodBoolean;
3077
+ children: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3078
+ vaultAddress: zod.ZodString;
3079
+ status: zod.ZodEnum<{
3080
+ active: "active";
3081
+ paused: "paused";
3082
+ closed: "closed";
3083
+ }>;
3084
+ totalShares: zod.ZodString;
3085
+ tvl: zod.ZodNullable<zod.ZodString>;
3086
+ }, zod.z.core.$strip>>>;
3087
+ }, zod.z.core.$strip>>;
3088
+ lending: zod.ZodOptional<zod.ZodObject<{
3089
+ supplyQueue: zod.ZodArray<zod.ZodNumber>;
3090
+ withdrawalQueue: zod.ZodArray<zod.ZodNumber>;
3091
+ allocations: zod.ZodArray<zod.ZodObject<{
3092
+ poolId: zod.ZodNumber;
3093
+ supplyShares: zod.ZodString;
3094
+ suppliedAmount: zod.ZodNullable<zod.ZodString>;
3095
+ supplyCap: zod.ZodString;
3096
+ supplyApy: zod.ZodNullable<zod.ZodString>;
3097
+ supplyQueueIndex: zod.ZodNullable<zod.ZodNumber>;
3098
+ withdrawalQueueIndex: zod.ZodNullable<zod.ZodNumber>;
3099
+ }, zod.z.core.$strip>>;
3100
+ }, zod.z.core.$strip>>;
3101
+ followerState: zod.ZodOptional<zod.ZodObject<{
3102
+ user: zod.ZodString;
3103
+ shares: zod.ZodString;
3104
+ queuedShares: zod.ZodString;
3105
+ entryValue: zod.ZodString;
3106
+ equity: zod.ZodNullable<zod.ZodString>;
3107
+ pnl: zod.ZodNullable<zod.ZodString>;
3108
+ allTimePnl: zod.ZodNullable<zod.ZodString>;
3109
+ pnlPartial: zod.ZodBoolean;
3110
+ canRedeem: zod.ZodBoolean;
3111
+ redemptionOpenTime: zod.ZodNullable<zod.ZodNumber>;
3112
+ }, zod.z.core.$strip>>;
3113
+ asOf: zod.ZodNumber;
3114
+ }, zod.z.core.$strip>>;
3115
+ /**
3116
+ * Deposits, redemptions, fee accruals, capital transfers, reallocations
3117
+ and configuration changes for one vault, newest first, paged with the
3118
+ opaque header cursor. `type` may be repeated. Each entry's `data` is
3119
+ the chain event's attributes exactly as emitted (string-valued;
3120
+ amounts are raw chain integers or coin strings).
3121
+
3122
+ * @summary Vault activity feed
3123
+ */
3124
+ export declare const ListVaultActivityParams: zod.ZodObject<{
3125
+ vault_address: zod.ZodString;
3126
+ }, zod.z.core.$strip>;
3127
+ export declare const listVaultActivityQueryFromMin = 0;
3128
+ export declare const listVaultActivityQueryToMin = 0;
3129
+ export declare const listVaultActivityQueryLimitDefault = 100;
3130
+ export declare const listVaultActivityQueryLimitMax = 500;
3131
+ export declare const ListVaultActivityQueryParams: zod.ZodObject<{
3132
+ type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
3133
+ vault_created: "vault_created";
3134
+ vault_manager_updated: "vault_manager_updated";
3135
+ vault_config_update_scheduled: "vault_config_update_scheduled";
3136
+ vault_config_update_applied: "vault_config_update_applied";
3137
+ vault_config_update_canceled: "vault_config_update_canceled";
3138
+ vault_config_update_dropped: "vault_config_update_dropped";
3139
+ vault_status_updated: "vault_status_updated";
3140
+ vault_deposited: "vault_deposited";
3141
+ vault_redemption_queued: "vault_redemption_queued";
3142
+ vault_redemption_updated: "vault_redemption_updated";
3143
+ vault_redemption_settled: "vault_redemption_settled";
3144
+ vault_capital_transferred: "vault_capital_transferred";
3145
+ vault_reallocated: "vault_reallocated";
3146
+ vault_management_fee_accrued: "vault_management_fee_accrued";
3147
+ }>>>;
3148
+ user: zod.ZodOptional<zod.ZodString>;
3149
+ from: zod.ZodOptional<zod.ZodNumber>;
3150
+ to: zod.ZodOptional<zod.ZodNumber>;
3151
+ limit: zod.ZodDefault<zod.ZodNumber>;
3152
+ cursor: zod.ZodOptional<zod.ZodString>;
3153
+ }, zod.z.core.$strip>;
3154
+ export declare const listVaultActivityResponseActivityItemVaultAddressRegExp: RegExp;
3155
+ export declare const ListVaultActivityResponse: zod.ZodObject<{
3156
+ activity: zod.ZodArray<zod.ZodObject<{
3157
+ type: zod.ZodString;
3158
+ vaultAddress: zod.ZodString;
3159
+ user: zod.ZodNullable<zod.ZodString>;
3160
+ data: zod.ZodRecord<zod.ZodString, zod.ZodString>;
3161
+ blockHeight: zod.ZodNumber;
3162
+ blockTime: zod.ZodNumber;
3163
+ eventIndex: zod.ZodNumber;
3164
+ }, zod.z.core.$strip>>;
3165
+ }, zod.z.core.$strip>;
3166
+ /**
3167
+ * Queued, processing and settled redemption claims for one vault,
3168
+ newest origin first, paged with the opaque header cursor. A queued
3169
+ request keeps one row through its lifecycle; an instant redemption
3170
+ has no `requestId`.
3171
+
3172
+ * @summary Redemption lifecycle
3173
+ */
3174
+ export declare const ListVaultRedemptionsParams: zod.ZodObject<{
3175
+ vault_address: zod.ZodString;
3176
+ }, zod.z.core.$strip>;
3177
+ export declare const listVaultRedemptionsQueryLimitDefault = 100;
3178
+ export declare const listVaultRedemptionsQueryLimitMax = 500;
3179
+ export declare const ListVaultRedemptionsQueryParams: zod.ZodObject<{
3180
+ user: zod.ZodOptional<zod.ZodString>;
3181
+ status: zod.ZodOptional<zod.ZodEnum<{
3182
+ queued: "queued";
3183
+ processing: "processing";
3184
+ settled: "settled";
3185
+ }>>;
3186
+ limit: zod.ZodDefault<zod.ZodNumber>;
3187
+ cursor: zod.ZodOptional<zod.ZodString>;
3188
+ }, zod.z.core.$strip>;
3189
+ export declare const listVaultRedemptionsResponseRedemptionsItemUserRegExp: RegExp;
3190
+ export declare const ListVaultRedemptionsResponse: zod.ZodObject<{
3191
+ redemptions: zod.ZodArray<zod.ZodObject<{
3192
+ requestId: zod.ZodNullable<zod.ZodNumber>;
3193
+ user: zod.ZodString;
3194
+ shares: zod.ZodString;
3195
+ entryValue: zod.ZodString;
3196
+ status: zod.ZodEnum<{
3197
+ queued: "queued";
3198
+ processing: "processing";
3199
+ settled: "settled";
3200
+ }>;
3201
+ closeOnRedemption: zod.ZodBoolean;
3202
+ unwindRounds: zod.ZodNumber;
3203
+ noProgressRounds: zod.ZodNumber;
3204
+ lastAvailableAmount: zod.ZodString;
3205
+ nextProcessHeight: zod.ZodNullable<zod.ZodNumber>;
3206
+ queuedAt: zod.ZodNullable<zod.ZodNumber>;
3207
+ settledAt: zod.ZodNullable<zod.ZodNumber>;
3208
+ grossAmount: zod.ZodNullable<zod.ZodString>;
3209
+ managerFee: zod.ZodNullable<zod.ZodString>;
3210
+ exitFee: zod.ZodNullable<zod.ZodString>;
3211
+ netAmount: zod.ZodNullable<zod.ZodString>;
3212
+ originBlockHeight: zod.ZodNumber;
3213
+ originEventIndex: zod.ZodNumber;
3214
+ }, zod.z.core.$strip>>;
3215
+ }, zod.z.core.$strip>;