@trinaryex/sdk 1.0.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.
@@ -0,0 +1,1146 @@
1
+ import { z } from 'zod';
2
+ export declare const bigintString: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
3
+ export declare const DiscoveryOrderSchema: z.ZodPipe<z.ZodObject<{
4
+ pool_id: z.ZodString;
5
+ order_id: z.ZodString;
6
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
7
+ is_bid: z.ZodBoolean;
8
+ balance_manager_id: z.ZodString;
9
+ remaining_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
10
+ filled_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
11
+ expires_at: z.ZodNullable<z.ZodNumber>;
12
+ last_activity_at: z.ZodNumber;
13
+ asset_id: z.ZodString;
14
+ collection_id: z.ZodString;
15
+ hub_id: z.ZodNullable<z.ZodString>;
16
+ hub_name: z.ZodNullable<z.ZodString>;
17
+ hub_state: z.ZodNullable<z.ZodString>;
18
+ quote_asset_id: z.ZodNullable<z.ZodString>;
19
+ quote_asset_symbol: z.ZodNullable<z.ZodString>;
20
+ quote_asset_decimals: z.ZodNullable<z.ZodNumber>;
21
+ trader_address: z.ZodNullable<z.ZodString>;
22
+ trader_name: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strip>, z.ZodTransform<{
24
+ poolId: string;
25
+ orderId: string;
26
+ price: bigint;
27
+ isBid: boolean;
28
+ balanceManagerId: string;
29
+ remainingQuantity: bigint;
30
+ filledQuantity: bigint;
31
+ expiresAt: number | null;
32
+ lastActivityAt: number;
33
+ assetId: string;
34
+ collectionId: string;
35
+ hubId: string | null;
36
+ hubName: string | null;
37
+ hubState: string | null;
38
+ quoteAssetId: string | null;
39
+ quoteAssetSymbol: string | null;
40
+ quoteAssetDecimals: number | null;
41
+ traderAddress: string | null;
42
+ traderName: string | null;
43
+ }, {
44
+ pool_id: string;
45
+ order_id: string;
46
+ price: bigint;
47
+ is_bid: boolean;
48
+ balance_manager_id: string;
49
+ remaining_quantity: bigint;
50
+ filled_quantity: bigint;
51
+ expires_at: number | null;
52
+ last_activity_at: number;
53
+ asset_id: string;
54
+ collection_id: string;
55
+ hub_id: string | null;
56
+ hub_name: string | null;
57
+ hub_state: string | null;
58
+ quote_asset_id: string | null;
59
+ quote_asset_symbol: string | null;
60
+ quote_asset_decimals: number | null;
61
+ trader_address: string | null;
62
+ trader_name: string | null;
63
+ }>>;
64
+ export declare const DiscoveryResultSchema: z.ZodPipe<z.ZodObject<{
65
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
66
+ pool_id: z.ZodString;
67
+ order_id: z.ZodString;
68
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
69
+ is_bid: z.ZodBoolean;
70
+ balance_manager_id: z.ZodString;
71
+ remaining_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
72
+ filled_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
73
+ expires_at: z.ZodNullable<z.ZodNumber>;
74
+ last_activity_at: z.ZodNumber;
75
+ asset_id: z.ZodString;
76
+ collection_id: z.ZodString;
77
+ hub_id: z.ZodNullable<z.ZodString>;
78
+ hub_name: z.ZodNullable<z.ZodString>;
79
+ hub_state: z.ZodNullable<z.ZodString>;
80
+ quote_asset_id: z.ZodNullable<z.ZodString>;
81
+ quote_asset_symbol: z.ZodNullable<z.ZodString>;
82
+ quote_asset_decimals: z.ZodNullable<z.ZodNumber>;
83
+ trader_address: z.ZodNullable<z.ZodString>;
84
+ trader_name: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>, z.ZodTransform<{
86
+ poolId: string;
87
+ orderId: string;
88
+ price: bigint;
89
+ isBid: boolean;
90
+ balanceManagerId: string;
91
+ remainingQuantity: bigint;
92
+ filledQuantity: bigint;
93
+ expiresAt: number | null;
94
+ lastActivityAt: number;
95
+ assetId: string;
96
+ collectionId: string;
97
+ hubId: string | null;
98
+ hubName: string | null;
99
+ hubState: string | null;
100
+ quoteAssetId: string | null;
101
+ quoteAssetSymbol: string | null;
102
+ quoteAssetDecimals: number | null;
103
+ traderAddress: string | null;
104
+ traderName: string | null;
105
+ }, {
106
+ pool_id: string;
107
+ order_id: string;
108
+ price: bigint;
109
+ is_bid: boolean;
110
+ balance_manager_id: string;
111
+ remaining_quantity: bigint;
112
+ filled_quantity: bigint;
113
+ expires_at: number | null;
114
+ last_activity_at: number;
115
+ asset_id: string;
116
+ collection_id: string;
117
+ hub_id: string | null;
118
+ hub_name: string | null;
119
+ hub_state: string | null;
120
+ quote_asset_id: string | null;
121
+ quote_asset_symbol: string | null;
122
+ quote_asset_decimals: number | null;
123
+ trader_address: string | null;
124
+ trader_name: string | null;
125
+ }>>>;
126
+ next_cursor: z.ZodNullable<z.ZodString>;
127
+ prev_cursor: z.ZodNullable<z.ZodString>;
128
+ }, z.core.$strip>, z.ZodTransform<{
129
+ orders: {
130
+ poolId: string;
131
+ orderId: string;
132
+ price: bigint;
133
+ isBid: boolean;
134
+ balanceManagerId: string;
135
+ remainingQuantity: bigint;
136
+ filledQuantity: bigint;
137
+ expiresAt: number | null;
138
+ lastActivityAt: number;
139
+ assetId: string;
140
+ collectionId: string;
141
+ hubId: string | null;
142
+ hubName: string | null;
143
+ hubState: string | null;
144
+ quoteAssetId: string | null;
145
+ quoteAssetSymbol: string | null;
146
+ quoteAssetDecimals: number | null;
147
+ traderAddress: string | null;
148
+ traderName: string | null;
149
+ }[];
150
+ nextCursor: string | null;
151
+ prevCursor: string | null;
152
+ }, {
153
+ data: {
154
+ poolId: string;
155
+ orderId: string;
156
+ price: bigint;
157
+ isBid: boolean;
158
+ balanceManagerId: string;
159
+ remainingQuantity: bigint;
160
+ filledQuantity: bigint;
161
+ expiresAt: number | null;
162
+ lastActivityAt: number;
163
+ assetId: string;
164
+ collectionId: string;
165
+ hubId: string | null;
166
+ hubName: string | null;
167
+ hubState: string | null;
168
+ quoteAssetId: string | null;
169
+ quoteAssetSymbol: string | null;
170
+ quoteAssetDecimals: number | null;
171
+ traderAddress: string | null;
172
+ traderName: string | null;
173
+ }[];
174
+ next_cursor: string | null;
175
+ prev_cursor: string | null;
176
+ }>>;
177
+ export declare const PoolResolveSchema: z.ZodPipe<z.ZodObject<{
178
+ pool_id: z.ZodNullable<z.ZodString>;
179
+ }, z.core.$strip>, z.ZodTransform<{
180
+ poolId: string | null;
181
+ }, {
182
+ pool_id: string | null;
183
+ }>>;
184
+ export declare const OrderbookOrderSchema: z.ZodPipe<z.ZodObject<{
185
+ encodedOrderId: z.ZodString;
186
+ quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
187
+ filledQuantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
188
+ expireTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
189
+ lastUpdatedTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
190
+ status: z.ZodNumber;
191
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
192
+ }, z.core.$strip>, z.ZodTransform<{
193
+ orderId: string;
194
+ quantity: bigint;
195
+ filledQuantity: bigint;
196
+ remainingQuantity: bigint;
197
+ expireTimestamp: bigint;
198
+ lastUpdatedTimestamp: bigint;
199
+ status: number;
200
+ price: bigint;
201
+ }, {
202
+ encodedOrderId: string;
203
+ quantity: bigint;
204
+ filledQuantity: bigint;
205
+ expireTimestamp: bigint;
206
+ lastUpdatedTimestamp: bigint;
207
+ status: number;
208
+ price: bigint;
209
+ }>>;
210
+ export declare const OrderbookSchema: z.ZodObject<{
211
+ bids: z.ZodArray<z.ZodPipe<z.ZodObject<{
212
+ encodedOrderId: z.ZodString;
213
+ quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
214
+ filledQuantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
215
+ expireTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
216
+ lastUpdatedTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
217
+ status: z.ZodNumber;
218
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
219
+ }, z.core.$strip>, z.ZodTransform<{
220
+ orderId: string;
221
+ quantity: bigint;
222
+ filledQuantity: bigint;
223
+ remainingQuantity: bigint;
224
+ expireTimestamp: bigint;
225
+ lastUpdatedTimestamp: bigint;
226
+ status: number;
227
+ price: bigint;
228
+ }, {
229
+ encodedOrderId: string;
230
+ quantity: bigint;
231
+ filledQuantity: bigint;
232
+ expireTimestamp: bigint;
233
+ lastUpdatedTimestamp: bigint;
234
+ status: number;
235
+ price: bigint;
236
+ }>>>;
237
+ asks: z.ZodArray<z.ZodPipe<z.ZodObject<{
238
+ encodedOrderId: z.ZodString;
239
+ quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
240
+ filledQuantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
241
+ expireTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
242
+ lastUpdatedTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
243
+ status: z.ZodNumber;
244
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
245
+ }, z.core.$strip>, z.ZodTransform<{
246
+ orderId: string;
247
+ quantity: bigint;
248
+ filledQuantity: bigint;
249
+ remainingQuantity: bigint;
250
+ expireTimestamp: bigint;
251
+ lastUpdatedTimestamp: bigint;
252
+ status: number;
253
+ price: bigint;
254
+ }, {
255
+ encodedOrderId: string;
256
+ quantity: bigint;
257
+ filledQuantity: bigint;
258
+ expireTimestamp: bigint;
259
+ lastUpdatedTimestamp: bigint;
260
+ status: number;
261
+ price: bigint;
262
+ }>>>;
263
+ }, z.core.$strip>;
264
+ export declare const PoolMetadataSchema: z.ZodPipe<z.ZodObject<{
265
+ pool_id: z.ZodString;
266
+ pool_name: z.ZodString;
267
+ base_asset_symbol: z.ZodString;
268
+ base_asset_name: z.ZodNullable<z.ZodString>;
269
+ base_asset_decimals: z.ZodNumber;
270
+ quote_asset_symbol: z.ZodString;
271
+ quote_asset_name: z.ZodNullable<z.ZodString>;
272
+ quote_asset_decimals: z.ZodNumber;
273
+ storage_unit_id: z.ZodNullable<z.ZodString>;
274
+ asset_id: z.ZodNullable<z.ZodString>;
275
+ collection_id: z.ZodNullable<z.ZodString>;
276
+ fee: z.ZodNullable<z.ZodString>;
277
+ fee_rate: z.ZodNullable<z.ZodNumber>;
278
+ }, z.core.$strip>, z.ZodTransform<{
279
+ poolId: string;
280
+ poolName: string;
281
+ baseAssetSymbol: string;
282
+ baseAssetName: string | null;
283
+ baseAssetDecimals: number;
284
+ quoteAssetSymbol: string;
285
+ quoteAssetName: string | null;
286
+ quoteAssetDecimals: number;
287
+ storageUnitId: string | null;
288
+ assetId: string | null;
289
+ collectionId: string | null;
290
+ feeRateScaled: bigint;
291
+ feeRate: number | null;
292
+ }, {
293
+ pool_id: string;
294
+ pool_name: string;
295
+ base_asset_symbol: string;
296
+ base_asset_name: string | null;
297
+ base_asset_decimals: number;
298
+ quote_asset_symbol: string;
299
+ quote_asset_name: string | null;
300
+ quote_asset_decimals: number;
301
+ storage_unit_id: string | null;
302
+ asset_id: string | null;
303
+ collection_id: string | null;
304
+ fee: string | null;
305
+ fee_rate: number | null;
306
+ }>>;
307
+ export declare const HubVaultSchema: z.ZodPipe<z.ZodObject<{
308
+ hub_id: z.ZodString;
309
+ collection_id: z.ZodString;
310
+ vault_config_id: z.ZodString;
311
+ }, z.core.$strip>, z.ZodTransform<{
312
+ hubId: string;
313
+ collectionId: string;
314
+ vaultConfigId: string;
315
+ }, {
316
+ hub_id: string;
317
+ collection_id: string;
318
+ vault_config_id: string;
319
+ }>>;
320
+ export declare const HubLocationSchema: z.ZodPipe<z.ZodObject<{
321
+ hub_id: z.ZodString;
322
+ assembly_item_id: z.ZodString;
323
+ assembly_tenant: z.ZodString;
324
+ type_id: z.ZodString;
325
+ owner_cap_id: z.ZodString;
326
+ owner: z.ZodNullable<z.ZodString>;
327
+ solar_system: z.ZodString;
328
+ x: z.ZodString;
329
+ y: z.ZodString;
330
+ z: z.ZodString;
331
+ updated_at: z.ZodNumber;
332
+ tx_digest: z.ZodString;
333
+ is_public: z.ZodBoolean;
334
+ region_id: z.ZodNullable<z.ZodNumber>;
335
+ solar_system_name: z.ZodNullable<z.ZodString>;
336
+ }, z.core.$strip>, z.ZodTransform<{
337
+ hubId: string;
338
+ assemblyItemId: string;
339
+ assemblyTenant: string;
340
+ typeId: string;
341
+ ownerCapId: string;
342
+ owner: string | null;
343
+ solarSystemId: string;
344
+ x: string;
345
+ y: string;
346
+ z: string;
347
+ updatedAt: number;
348
+ txDigest: string;
349
+ isPublic: boolean;
350
+ regionId: number | null;
351
+ solarSystemName: string | null;
352
+ }, {
353
+ hub_id: string;
354
+ assembly_item_id: string;
355
+ assembly_tenant: string;
356
+ type_id: string;
357
+ owner_cap_id: string;
358
+ owner: string | null;
359
+ solar_system: string;
360
+ x: string;
361
+ y: string;
362
+ z: string;
363
+ updated_at: number;
364
+ tx_digest: string;
365
+ is_public: boolean;
366
+ region_id: number | null;
367
+ solar_system_name: string | null;
368
+ }>>;
369
+ export declare const HubItemSchema: z.ZodPipe<z.ZodObject<{
370
+ asset_id: z.ZodString;
371
+ has_bids: z.ZodBoolean;
372
+ has_asks: z.ZodBoolean;
373
+ }, z.core.$strip>, z.ZodTransform<{
374
+ assetId: string;
375
+ hasBids: boolean;
376
+ hasAsks: boolean;
377
+ }, {
378
+ asset_id: string;
379
+ has_bids: boolean;
380
+ has_asks: boolean;
381
+ }>>;
382
+ export declare const HubItemsPageSchema: z.ZodPipe<z.ZodObject<{
383
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
384
+ asset_id: z.ZodString;
385
+ has_bids: z.ZodBoolean;
386
+ has_asks: z.ZodBoolean;
387
+ }, z.core.$strip>, z.ZodTransform<{
388
+ assetId: string;
389
+ hasBids: boolean;
390
+ hasAsks: boolean;
391
+ }, {
392
+ asset_id: string;
393
+ has_bids: boolean;
394
+ has_asks: boolean;
395
+ }>>>;
396
+ next_cursor: z.ZodNullable<z.ZodString>;
397
+ }, z.core.$strip>, z.ZodTransform<{
398
+ items: {
399
+ assetId: string;
400
+ hasBids: boolean;
401
+ hasAsks: boolean;
402
+ }[];
403
+ nextCursor: string | null;
404
+ }, {
405
+ data: {
406
+ assetId: string;
407
+ hasBids: boolean;
408
+ hasAsks: boolean;
409
+ }[];
410
+ next_cursor: string | null;
411
+ }>>;
412
+ export declare const CollectionHubSchema: z.ZodPipe<z.ZodObject<{
413
+ hub_id: z.ZodString;
414
+ collection_id: z.ZodString;
415
+ }, z.core.$strip>, z.ZodTransform<{
416
+ hubId: string;
417
+ collectionId: string;
418
+ }, {
419
+ hub_id: string;
420
+ collection_id: string;
421
+ }>>;
422
+ export declare const AssetBalanceSchema: z.ZodPipe<z.ZodObject<{
423
+ asset_id: z.ZodString;
424
+ amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
425
+ }, z.core.$strip>, z.ZodTransform<{
426
+ assetId: string;
427
+ amount: bigint;
428
+ }, {
429
+ asset_id: string;
430
+ amount: bigint;
431
+ }>>;
432
+ export declare const InventoryBalancesSchema: z.ZodPipe<z.ZodObject<{
433
+ storage_unit_id: z.ZodString;
434
+ collection_id: z.ZodString;
435
+ warehouse: z.ZodArray<z.ZodPipe<z.ZodObject<{
436
+ asset_id: z.ZodString;
437
+ amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
438
+ }, z.core.$strip>, z.ZodTransform<{
439
+ assetId: string;
440
+ amount: bigint;
441
+ }, {
442
+ asset_id: string;
443
+ amount: bigint;
444
+ }>>>;
445
+ marketplace: z.ZodArray<z.ZodPipe<z.ZodObject<{
446
+ asset_id: z.ZodString;
447
+ amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
448
+ }, z.core.$strip>, z.ZodTransform<{
449
+ assetId: string;
450
+ amount: bigint;
451
+ }, {
452
+ asset_id: string;
453
+ amount: bigint;
454
+ }>>>;
455
+ hangar: z.ZodArray<z.ZodPipe<z.ZodObject<{
456
+ asset_id: z.ZodString;
457
+ amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
458
+ }, z.core.$strip>, z.ZodTransform<{
459
+ assetId: string;
460
+ amount: bigint;
461
+ }, {
462
+ asset_id: string;
463
+ amount: bigint;
464
+ }>>>;
465
+ org_vaults: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodPipe<z.ZodObject<{
466
+ asset_id: z.ZodString;
467
+ amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
468
+ }, z.core.$strip>, z.ZodTransform<{
469
+ assetId: string;
470
+ amount: bigint;
471
+ }, {
472
+ asset_id: string;
473
+ amount: bigint;
474
+ }>>>>;
475
+ }, z.core.$strip>, z.ZodTransform<{
476
+ storageUnitId: string;
477
+ collectionId: string;
478
+ warehouse: {
479
+ assetId: string;
480
+ amount: bigint;
481
+ }[];
482
+ marketplace: {
483
+ assetId: string;
484
+ amount: bigint;
485
+ }[];
486
+ hangar: {
487
+ assetId: string;
488
+ amount: bigint;
489
+ }[];
490
+ orgVaults: Record<string, {
491
+ assetId: string;
492
+ amount: bigint;
493
+ }[]>;
494
+ }, {
495
+ storage_unit_id: string;
496
+ collection_id: string;
497
+ warehouse: {
498
+ assetId: string;
499
+ amount: bigint;
500
+ }[];
501
+ marketplace: {
502
+ assetId: string;
503
+ amount: bigint;
504
+ }[];
505
+ hangar: {
506
+ assetId: string;
507
+ amount: bigint;
508
+ }[];
509
+ org_vaults: Record<string, {
510
+ assetId: string;
511
+ amount: bigint;
512
+ }[]>;
513
+ }>>;
514
+ export declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
515
+ pool_id: z.ZodString;
516
+ order_id: z.ZodString;
517
+ encoded_order_id: z.ZodOptional<z.ZodString>;
518
+ side: z.ZodEnum<{
519
+ buy: "buy";
520
+ sell: "sell";
521
+ }>;
522
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
523
+ remaining_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
524
+ filled_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
525
+ expires_at: z.ZodNumber;
526
+ updated_at: z.ZodNumber;
527
+ asset_id: z.ZodString;
528
+ storage_unit_id: z.ZodString;
529
+ quote_asset_symbol: z.ZodNullable<z.ZodString>;
530
+ quote_asset_decimals: z.ZodNullable<z.ZodNumber>;
531
+ }, z.core.$strip>, z.ZodTransform<{
532
+ poolId: string;
533
+ orderId: string;
534
+ encodedOrderId: string | undefined;
535
+ side: "buy" | "sell";
536
+ price: bigint;
537
+ remainingQuantity: bigint;
538
+ filledQuantity: bigint;
539
+ expiresAt: number;
540
+ updatedAt: number;
541
+ assetId: string;
542
+ storageUnitId: string;
543
+ quoteAssetSymbol: string | null;
544
+ quoteAssetDecimals: number | null;
545
+ }, {
546
+ pool_id: string;
547
+ order_id: string;
548
+ side: "buy" | "sell";
549
+ price: bigint;
550
+ remaining_quantity: bigint;
551
+ filled_quantity: bigint;
552
+ expires_at: number;
553
+ updated_at: number;
554
+ asset_id: string;
555
+ storage_unit_id: string;
556
+ quote_asset_symbol: string | null;
557
+ quote_asset_decimals: number | null;
558
+ encoded_order_id?: string | undefined;
559
+ }>>;
560
+ export declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
561
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
562
+ pool_id: z.ZodString;
563
+ order_id: z.ZodString;
564
+ encoded_order_id: z.ZodOptional<z.ZodString>;
565
+ side: z.ZodEnum<{
566
+ buy: "buy";
567
+ sell: "sell";
568
+ }>;
569
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
570
+ remaining_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
571
+ filled_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
572
+ expires_at: z.ZodNumber;
573
+ updated_at: z.ZodNumber;
574
+ asset_id: z.ZodString;
575
+ storage_unit_id: z.ZodString;
576
+ quote_asset_symbol: z.ZodNullable<z.ZodString>;
577
+ quote_asset_decimals: z.ZodNullable<z.ZodNumber>;
578
+ }, z.core.$strip>, z.ZodTransform<{
579
+ poolId: string;
580
+ orderId: string;
581
+ encodedOrderId: string | undefined;
582
+ side: "buy" | "sell";
583
+ price: bigint;
584
+ remainingQuantity: bigint;
585
+ filledQuantity: bigint;
586
+ expiresAt: number;
587
+ updatedAt: number;
588
+ assetId: string;
589
+ storageUnitId: string;
590
+ quoteAssetSymbol: string | null;
591
+ quoteAssetDecimals: number | null;
592
+ }, {
593
+ pool_id: string;
594
+ order_id: string;
595
+ side: "buy" | "sell";
596
+ price: bigint;
597
+ remaining_quantity: bigint;
598
+ filled_quantity: bigint;
599
+ expires_at: number;
600
+ updated_at: number;
601
+ asset_id: string;
602
+ storage_unit_id: string;
603
+ quote_asset_symbol: string | null;
604
+ quote_asset_decimals: number | null;
605
+ encoded_order_id?: string | undefined;
606
+ }>>>;
607
+ next_cursor: z.ZodNullable<z.ZodString>;
608
+ }, z.core.$strip>, z.ZodTransform<{
609
+ orders: {
610
+ poolId: string;
611
+ orderId: string;
612
+ encodedOrderId: string | undefined;
613
+ side: "buy" | "sell";
614
+ price: bigint;
615
+ remainingQuantity: bigint;
616
+ filledQuantity: bigint;
617
+ expiresAt: number;
618
+ updatedAt: number;
619
+ assetId: string;
620
+ storageUnitId: string;
621
+ quoteAssetSymbol: string | null;
622
+ quoteAssetDecimals: number | null;
623
+ }[];
624
+ nextCursor: string | null;
625
+ }, {
626
+ data: {
627
+ poolId: string;
628
+ orderId: string;
629
+ encodedOrderId: string | undefined;
630
+ side: "buy" | "sell";
631
+ price: bigint;
632
+ remainingQuantity: bigint;
633
+ filledQuantity: bigint;
634
+ expiresAt: number;
635
+ updatedAt: number;
636
+ assetId: string;
637
+ storageUnitId: string;
638
+ quoteAssetSymbol: string | null;
639
+ quoteAssetDecimals: number | null;
640
+ }[];
641
+ next_cursor: string | null;
642
+ }>>;
643
+ export declare const FillSchema: z.ZodPipe<z.ZodObject<{
644
+ event_digest: z.ZodString;
645
+ pool_id: z.ZodString;
646
+ order_id: z.ZodString;
647
+ counterparty_balance_manager_id: z.ZodString;
648
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
649
+ base_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
650
+ quote_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
651
+ fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
652
+ role: z.ZodEnum<{
653
+ maker: "maker";
654
+ taker: "taker";
655
+ }>;
656
+ taker_is_bid: z.ZodBoolean;
657
+ filled_at: z.ZodNumber;
658
+ }, z.core.$strip>, z.ZodTransform<{
659
+ eventDigest: string;
660
+ poolId: string;
661
+ orderId: string;
662
+ counterpartyBalanceManagerId: string;
663
+ price: bigint;
664
+ baseQuantity: bigint;
665
+ quoteQuantity: bigint;
666
+ fee: bigint;
667
+ role: "maker" | "taker";
668
+ takerIsBid: boolean;
669
+ filledAt: number;
670
+ }, {
671
+ event_digest: string;
672
+ pool_id: string;
673
+ order_id: string;
674
+ counterparty_balance_manager_id: string;
675
+ price: bigint;
676
+ base_quantity: bigint;
677
+ quote_quantity: bigint;
678
+ fee: bigint;
679
+ role: "maker" | "taker";
680
+ taker_is_bid: boolean;
681
+ filled_at: number;
682
+ }>>;
683
+ export declare const FillsPageSchema: z.ZodPipe<z.ZodObject<{
684
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
685
+ event_digest: z.ZodString;
686
+ pool_id: z.ZodString;
687
+ order_id: z.ZodString;
688
+ counterparty_balance_manager_id: z.ZodString;
689
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
690
+ base_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
691
+ quote_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
692
+ fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
693
+ role: z.ZodEnum<{
694
+ maker: "maker";
695
+ taker: "taker";
696
+ }>;
697
+ taker_is_bid: z.ZodBoolean;
698
+ filled_at: z.ZodNumber;
699
+ }, z.core.$strip>, z.ZodTransform<{
700
+ eventDigest: string;
701
+ poolId: string;
702
+ orderId: string;
703
+ counterpartyBalanceManagerId: string;
704
+ price: bigint;
705
+ baseQuantity: bigint;
706
+ quoteQuantity: bigint;
707
+ fee: bigint;
708
+ role: "maker" | "taker";
709
+ takerIsBid: boolean;
710
+ filledAt: number;
711
+ }, {
712
+ event_digest: string;
713
+ pool_id: string;
714
+ order_id: string;
715
+ counterparty_balance_manager_id: string;
716
+ price: bigint;
717
+ base_quantity: bigint;
718
+ quote_quantity: bigint;
719
+ fee: bigint;
720
+ role: "maker" | "taker";
721
+ taker_is_bid: boolean;
722
+ filled_at: number;
723
+ }>>>;
724
+ next_cursor: z.ZodNullable<z.ZodString>;
725
+ }, z.core.$strip>, z.ZodTransform<{
726
+ fills: {
727
+ eventDigest: string;
728
+ poolId: string;
729
+ orderId: string;
730
+ counterpartyBalanceManagerId: string;
731
+ price: bigint;
732
+ baseQuantity: bigint;
733
+ quoteQuantity: bigint;
734
+ fee: bigint;
735
+ role: "maker" | "taker";
736
+ takerIsBid: boolean;
737
+ filledAt: number;
738
+ }[];
739
+ nextCursor: string | null;
740
+ }, {
741
+ data: {
742
+ eventDigest: string;
743
+ poolId: string;
744
+ orderId: string;
745
+ counterpartyBalanceManagerId: string;
746
+ price: bigint;
747
+ baseQuantity: bigint;
748
+ quoteQuantity: bigint;
749
+ fee: bigint;
750
+ role: "maker" | "taker";
751
+ takerIsBid: boolean;
752
+ filledAt: number;
753
+ }[];
754
+ next_cursor: string | null;
755
+ }>>;
756
+ export declare const TradeSchema: z.ZodPipe<z.ZodObject<{
757
+ event_digest: z.ZodString;
758
+ pool_id: z.ZodString;
759
+ order_id: z.ZodString;
760
+ counterparty_balance_manager_id: z.ZodString;
761
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
762
+ base_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
763
+ quote_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
764
+ fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
765
+ role: z.ZodEnum<{
766
+ maker: "maker";
767
+ taker: "taker";
768
+ }>;
769
+ side: z.ZodEnum<{
770
+ buy: "buy";
771
+ sell: "sell";
772
+ }>;
773
+ traded_at: z.ZodNumber;
774
+ asset_id: z.ZodString;
775
+ storage_unit_id: z.ZodString;
776
+ }, z.core.$strip>, z.ZodTransform<{
777
+ eventDigest: string;
778
+ poolId: string;
779
+ orderId: string;
780
+ counterpartyBalanceManagerId: string;
781
+ price: bigint;
782
+ baseQuantity: bigint;
783
+ quoteQuantity: bigint;
784
+ fee: bigint;
785
+ role: "maker" | "taker";
786
+ side: "buy" | "sell";
787
+ tradedAt: number;
788
+ assetId: string;
789
+ storageUnitId: string;
790
+ }, {
791
+ event_digest: string;
792
+ pool_id: string;
793
+ order_id: string;
794
+ counterparty_balance_manager_id: string;
795
+ price: bigint;
796
+ base_quantity: bigint;
797
+ quote_quantity: bigint;
798
+ fee: bigint;
799
+ role: "maker" | "taker";
800
+ side: "buy" | "sell";
801
+ traded_at: number;
802
+ asset_id: string;
803
+ storage_unit_id: string;
804
+ }>>;
805
+ export declare const TradesPageSchema: z.ZodPipe<z.ZodObject<{
806
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
807
+ event_digest: z.ZodString;
808
+ pool_id: z.ZodString;
809
+ order_id: z.ZodString;
810
+ counterparty_balance_manager_id: z.ZodString;
811
+ price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
812
+ base_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
813
+ quote_quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
814
+ fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
815
+ role: z.ZodEnum<{
816
+ maker: "maker";
817
+ taker: "taker";
818
+ }>;
819
+ side: z.ZodEnum<{
820
+ buy: "buy";
821
+ sell: "sell";
822
+ }>;
823
+ traded_at: z.ZodNumber;
824
+ asset_id: z.ZodString;
825
+ storage_unit_id: z.ZodString;
826
+ }, z.core.$strip>, z.ZodTransform<{
827
+ eventDigest: string;
828
+ poolId: string;
829
+ orderId: string;
830
+ counterpartyBalanceManagerId: string;
831
+ price: bigint;
832
+ baseQuantity: bigint;
833
+ quoteQuantity: bigint;
834
+ fee: bigint;
835
+ role: "maker" | "taker";
836
+ side: "buy" | "sell";
837
+ tradedAt: number;
838
+ assetId: string;
839
+ storageUnitId: string;
840
+ }, {
841
+ event_digest: string;
842
+ pool_id: string;
843
+ order_id: string;
844
+ counterparty_balance_manager_id: string;
845
+ price: bigint;
846
+ base_quantity: bigint;
847
+ quote_quantity: bigint;
848
+ fee: bigint;
849
+ role: "maker" | "taker";
850
+ side: "buy" | "sell";
851
+ traded_at: number;
852
+ asset_id: string;
853
+ storage_unit_id: string;
854
+ }>>>;
855
+ next_cursor: z.ZodNullable<z.ZodString>;
856
+ }, z.core.$strip>, z.ZodTransform<{
857
+ trades: {
858
+ eventDigest: string;
859
+ poolId: string;
860
+ orderId: string;
861
+ counterpartyBalanceManagerId: string;
862
+ price: bigint;
863
+ baseQuantity: bigint;
864
+ quoteQuantity: bigint;
865
+ fee: bigint;
866
+ role: "maker" | "taker";
867
+ side: "buy" | "sell";
868
+ tradedAt: number;
869
+ assetId: string;
870
+ storageUnitId: string;
871
+ }[];
872
+ nextCursor: string | null;
873
+ }, {
874
+ data: {
875
+ eventDigest: string;
876
+ poolId: string;
877
+ orderId: string;
878
+ counterpartyBalanceManagerId: string;
879
+ price: bigint;
880
+ baseQuantity: bigint;
881
+ quoteQuantity: bigint;
882
+ fee: bigint;
883
+ role: "maker" | "taker";
884
+ side: "buy" | "sell";
885
+ tradedAt: number;
886
+ assetId: string;
887
+ storageUnitId: string;
888
+ }[];
889
+ next_cursor: string | null;
890
+ }>>;
891
+ export declare const SweepableBalancesSchema: z.ZodPipe<z.ZodObject<{
892
+ base: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
893
+ quote: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
894
+ cred: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
895
+ }, z.core.$strip>, z.ZodTransform<{
896
+ base: bigint;
897
+ quote: bigint;
898
+ cred: bigint;
899
+ }, {
900
+ base: bigint;
901
+ quote: bigint;
902
+ cred: bigint;
903
+ }>>;
904
+ export declare const SweepablePoolSchema: z.ZodPipe<z.ZodObject<{
905
+ pool_id: z.ZodString;
906
+ collection_id: z.ZodString;
907
+ asset_id: z.ZodString;
908
+ quote_asset_id: z.ZodNullable<z.ZodString>;
909
+ storage_unit_id: z.ZodString;
910
+ vault_config_id: z.ZodString;
911
+ settled: z.ZodPipe<z.ZodObject<{
912
+ base: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
913
+ quote: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
914
+ cred: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
915
+ }, z.core.$strip>, z.ZodTransform<{
916
+ base: bigint;
917
+ quote: bigint;
918
+ cred: bigint;
919
+ }, {
920
+ base: bigint;
921
+ quote: bigint;
922
+ cred: bigint;
923
+ }>>;
924
+ owed: z.ZodPipe<z.ZodObject<{
925
+ base: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
926
+ quote: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
927
+ cred: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
928
+ }, z.core.$strip>, z.ZodTransform<{
929
+ base: bigint;
930
+ quote: bigint;
931
+ cred: bigint;
932
+ }, {
933
+ base: bigint;
934
+ quote: bigint;
935
+ cred: bigint;
936
+ }>>;
937
+ open_order_count: z.ZodNumber;
938
+ }, z.core.$strip>, z.ZodTransform<{
939
+ poolId: string;
940
+ collectionId: string;
941
+ assetId: string;
942
+ quoteAssetId: string | null;
943
+ storageUnitId: string;
944
+ vaultConfigId: string;
945
+ settled: {
946
+ base: bigint;
947
+ quote: bigint;
948
+ cred: bigint;
949
+ };
950
+ owed: {
951
+ base: bigint;
952
+ quote: bigint;
953
+ cred: bigint;
954
+ };
955
+ openOrderCount: number;
956
+ }, {
957
+ pool_id: string;
958
+ collection_id: string;
959
+ asset_id: string;
960
+ quote_asset_id: string | null;
961
+ storage_unit_id: string;
962
+ vault_config_id: string;
963
+ settled: {
964
+ base: bigint;
965
+ quote: bigint;
966
+ cred: bigint;
967
+ };
968
+ owed: {
969
+ base: bigint;
970
+ quote: bigint;
971
+ cred: bigint;
972
+ };
973
+ open_order_count: number;
974
+ }>>;
975
+ export declare const SweepableItemSchema: z.ZodPipe<z.ZodObject<{
976
+ collection_id: z.ZodString;
977
+ asset_id: z.ZodString;
978
+ amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
979
+ storage_unit_id: z.ZodString;
980
+ vault_config_id: z.ZodString;
981
+ }, z.core.$strip>, z.ZodTransform<{
982
+ collectionId: string;
983
+ assetId: string;
984
+ amount: bigint;
985
+ storageUnitId: string;
986
+ vaultConfigId: string;
987
+ }, {
988
+ collection_id: string;
989
+ asset_id: string;
990
+ amount: bigint;
991
+ storage_unit_id: string;
992
+ vault_config_id: string;
993
+ }>>;
994
+ export declare const SweepableSchema: z.ZodPipe<z.ZodObject<{
995
+ balance_manager_id: z.ZodString;
996
+ as_of_checkpoint: z.ZodNullable<z.ZodString>;
997
+ pools: z.ZodArray<z.ZodPipe<z.ZodObject<{
998
+ pool_id: z.ZodString;
999
+ collection_id: z.ZodString;
1000
+ asset_id: z.ZodString;
1001
+ quote_asset_id: z.ZodNullable<z.ZodString>;
1002
+ storage_unit_id: z.ZodString;
1003
+ vault_config_id: z.ZodString;
1004
+ settled: z.ZodPipe<z.ZodObject<{
1005
+ base: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
1006
+ quote: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
1007
+ cred: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
1008
+ }, z.core.$strip>, z.ZodTransform<{
1009
+ base: bigint;
1010
+ quote: bigint;
1011
+ cred: bigint;
1012
+ }, {
1013
+ base: bigint;
1014
+ quote: bigint;
1015
+ cred: bigint;
1016
+ }>>;
1017
+ owed: z.ZodPipe<z.ZodObject<{
1018
+ base: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
1019
+ quote: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
1020
+ cred: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
1021
+ }, z.core.$strip>, z.ZodTransform<{
1022
+ base: bigint;
1023
+ quote: bigint;
1024
+ cred: bigint;
1025
+ }, {
1026
+ base: bigint;
1027
+ quote: bigint;
1028
+ cred: bigint;
1029
+ }>>;
1030
+ open_order_count: z.ZodNumber;
1031
+ }, z.core.$strip>, z.ZodTransform<{
1032
+ poolId: string;
1033
+ collectionId: string;
1034
+ assetId: string;
1035
+ quoteAssetId: string | null;
1036
+ storageUnitId: string;
1037
+ vaultConfigId: string;
1038
+ settled: {
1039
+ base: bigint;
1040
+ quote: bigint;
1041
+ cred: bigint;
1042
+ };
1043
+ owed: {
1044
+ base: bigint;
1045
+ quote: bigint;
1046
+ cred: bigint;
1047
+ };
1048
+ openOrderCount: number;
1049
+ }, {
1050
+ pool_id: string;
1051
+ collection_id: string;
1052
+ asset_id: string;
1053
+ quote_asset_id: string | null;
1054
+ storage_unit_id: string;
1055
+ vault_config_id: string;
1056
+ settled: {
1057
+ base: bigint;
1058
+ quote: bigint;
1059
+ cred: bigint;
1060
+ };
1061
+ owed: {
1062
+ base: bigint;
1063
+ quote: bigint;
1064
+ cred: bigint;
1065
+ };
1066
+ open_order_count: number;
1067
+ }>>>;
1068
+ items: z.ZodArray<z.ZodPipe<z.ZodObject<{
1069
+ collection_id: z.ZodString;
1070
+ asset_id: z.ZodString;
1071
+ amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
1072
+ storage_unit_id: z.ZodString;
1073
+ vault_config_id: z.ZodString;
1074
+ }, z.core.$strip>, z.ZodTransform<{
1075
+ collectionId: string;
1076
+ assetId: string;
1077
+ amount: bigint;
1078
+ storageUnitId: string;
1079
+ vaultConfigId: string;
1080
+ }, {
1081
+ collection_id: string;
1082
+ asset_id: string;
1083
+ amount: bigint;
1084
+ storage_unit_id: string;
1085
+ vault_config_id: string;
1086
+ }>>>;
1087
+ }, z.core.$strip>, z.ZodTransform<{
1088
+ balanceManagerId: string;
1089
+ asOfCheckpoint: string | null;
1090
+ pools: {
1091
+ poolId: string;
1092
+ collectionId: string;
1093
+ assetId: string;
1094
+ quoteAssetId: string | null;
1095
+ storageUnitId: string;
1096
+ vaultConfigId: string;
1097
+ settled: {
1098
+ base: bigint;
1099
+ quote: bigint;
1100
+ cred: bigint;
1101
+ };
1102
+ owed: {
1103
+ base: bigint;
1104
+ quote: bigint;
1105
+ cred: bigint;
1106
+ };
1107
+ openOrderCount: number;
1108
+ }[];
1109
+ items: {
1110
+ collectionId: string;
1111
+ assetId: string;
1112
+ amount: bigint;
1113
+ storageUnitId: string;
1114
+ vaultConfigId: string;
1115
+ }[];
1116
+ }, {
1117
+ balance_manager_id: string;
1118
+ as_of_checkpoint: string | null;
1119
+ pools: {
1120
+ poolId: string;
1121
+ collectionId: string;
1122
+ assetId: string;
1123
+ quoteAssetId: string | null;
1124
+ storageUnitId: string;
1125
+ vaultConfigId: string;
1126
+ settled: {
1127
+ base: bigint;
1128
+ quote: bigint;
1129
+ cred: bigint;
1130
+ };
1131
+ owed: {
1132
+ base: bigint;
1133
+ quote: bigint;
1134
+ cred: bigint;
1135
+ };
1136
+ openOrderCount: number;
1137
+ }[];
1138
+ items: {
1139
+ collectionId: string;
1140
+ assetId: string;
1141
+ amount: bigint;
1142
+ storageUnitId: string;
1143
+ vaultConfigId: string;
1144
+ }[];
1145
+ }>>;
1146
+ export declare function parseWith<Schema extends z.ZodType>(schema: Schema, data: unknown, what: string): z.output<Schema>;