@trinaryex/sdk 3.0.0 → 3.2.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.
- package/dist/ReadOnlyClient.d.ts +5 -2
- package/dist/TriexClient.d.ts +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +245 -176
- package/dist/queries.d.ts +7 -1
- package/dist/schemas.d.ts +356 -0
- package/dist/types.d.ts +12 -1
- package/package.json +1 -1
package/dist/queries.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BalancesAtHubParams, CollectionHub, DiscoveryFilters, DiscoveryResult, FillsPage, FillsParams, HistoryPageParams, HubItemsPage, HubLocation, HubVaultInfo, InventoryBalances, OpenOrdersPage, Orderbook, PoolMetadata, Sweepable, TradesPage, TradesParams } from './types';
|
|
1
|
+
import { BalancesAtHubParams, CollectionHub, DiscoveryFilters, DiscoveryResult, FillsPage, FillsParams, HistoryPageParams, HubItemMarket, HubItemsPage, ItemSearchPage, HubLocation, HubVaultInfo, InventoryBalances, OpenOrdersPage, Orderbook, PoolMetadata, Sweepable, TradesPage, TradesParams } from './types';
|
|
2
2
|
export declare class IndexerClient {
|
|
3
3
|
private readonly baseUrl;
|
|
4
4
|
private readonly apiKey;
|
|
@@ -10,11 +10,17 @@ export declare class IndexerClient {
|
|
|
10
10
|
assetId: string;
|
|
11
11
|
quoteType?: string;
|
|
12
12
|
}): Promise<string | null>;
|
|
13
|
+
hubItemOrderbook(params: {
|
|
14
|
+
hubId: string;
|
|
15
|
+
assetId: string;
|
|
16
|
+
quoteType?: string;
|
|
17
|
+
}): Promise<HubItemMarket>;
|
|
13
18
|
orderbook(poolId: string): Promise<Orderbook>;
|
|
14
19
|
poolMetadata(poolId: string): Promise<PoolMetadata>;
|
|
15
20
|
hubVault(hubId: string): Promise<HubVaultInfo>;
|
|
16
21
|
hubLocation(hubId: string): Promise<HubLocation | null>;
|
|
17
22
|
hubItems(hubId: string): Promise<HubItemsPage>;
|
|
23
|
+
searchItems(query: string, limit?: number): Promise<ItemSearchPage>;
|
|
18
24
|
collectionHub(collectionId: string): Promise<CollectionHub>;
|
|
19
25
|
inventoryBalances(params: BalancesAtHubParams & {
|
|
20
26
|
balanceManagerId?: string;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -304,6 +304,187 @@ export declare const PoolMetadataSchema: z.ZodPipe<z.ZodObject<{
|
|
|
304
304
|
fee: string | null;
|
|
305
305
|
fee_rate: number | null;
|
|
306
306
|
}>>;
|
|
307
|
+
export declare const HubItemOrderbookSchema: z.ZodPipe<z.ZodObject<{
|
|
308
|
+
hub_id: z.ZodString;
|
|
309
|
+
collection_id: z.ZodString;
|
|
310
|
+
vault_config_id: z.ZodNullable<z.ZodString>;
|
|
311
|
+
pool_id: z.ZodNullable<z.ZodString>;
|
|
312
|
+
metadata: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
313
|
+
pool_id: z.ZodString;
|
|
314
|
+
pool_name: z.ZodString;
|
|
315
|
+
base_asset_symbol: z.ZodString;
|
|
316
|
+
base_asset_name: z.ZodNullable<z.ZodString>;
|
|
317
|
+
base_asset_decimals: z.ZodNumber;
|
|
318
|
+
quote_asset_symbol: z.ZodString;
|
|
319
|
+
quote_asset_name: z.ZodNullable<z.ZodString>;
|
|
320
|
+
quote_asset_decimals: z.ZodNumber;
|
|
321
|
+
storage_unit_id: z.ZodNullable<z.ZodString>;
|
|
322
|
+
asset_id: z.ZodNullable<z.ZodString>;
|
|
323
|
+
collection_id: z.ZodNullable<z.ZodString>;
|
|
324
|
+
fee: z.ZodNullable<z.ZodString>;
|
|
325
|
+
fee_rate: z.ZodNullable<z.ZodNumber>;
|
|
326
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
327
|
+
poolId: string;
|
|
328
|
+
poolName: string;
|
|
329
|
+
baseAssetSymbol: string;
|
|
330
|
+
baseAssetName: string | null;
|
|
331
|
+
baseAssetDecimals: number;
|
|
332
|
+
quoteAssetSymbol: string;
|
|
333
|
+
quoteAssetName: string | null;
|
|
334
|
+
quoteAssetDecimals: number;
|
|
335
|
+
storageUnitId: string | null;
|
|
336
|
+
assetId: string | null;
|
|
337
|
+
collectionId: string | null;
|
|
338
|
+
feeRateScaled: bigint;
|
|
339
|
+
feeRate: number | null;
|
|
340
|
+
}, {
|
|
341
|
+
pool_id: string;
|
|
342
|
+
pool_name: string;
|
|
343
|
+
base_asset_symbol: string;
|
|
344
|
+
base_asset_name: string | null;
|
|
345
|
+
base_asset_decimals: number;
|
|
346
|
+
quote_asset_symbol: string;
|
|
347
|
+
quote_asset_name: string | null;
|
|
348
|
+
quote_asset_decimals: number;
|
|
349
|
+
storage_unit_id: string | null;
|
|
350
|
+
asset_id: string | null;
|
|
351
|
+
collection_id: string | null;
|
|
352
|
+
fee: string | null;
|
|
353
|
+
fee_rate: number | null;
|
|
354
|
+
}>>>;
|
|
355
|
+
bids: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
356
|
+
encodedOrderId: z.ZodString;
|
|
357
|
+
quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
358
|
+
filledQuantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
359
|
+
expireTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
360
|
+
lastUpdatedTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
361
|
+
status: z.ZodNumber;
|
|
362
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
363
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
364
|
+
orderId: string;
|
|
365
|
+
quantity: bigint;
|
|
366
|
+
filledQuantity: bigint;
|
|
367
|
+
remainingQuantity: bigint;
|
|
368
|
+
expireTimestamp: bigint;
|
|
369
|
+
lastUpdatedTimestamp: bigint;
|
|
370
|
+
status: number;
|
|
371
|
+
price: bigint;
|
|
372
|
+
}, {
|
|
373
|
+
encodedOrderId: string;
|
|
374
|
+
quantity: bigint;
|
|
375
|
+
filledQuantity: bigint;
|
|
376
|
+
expireTimestamp: bigint;
|
|
377
|
+
lastUpdatedTimestamp: bigint;
|
|
378
|
+
status: number;
|
|
379
|
+
price: bigint;
|
|
380
|
+
}>>>;
|
|
381
|
+
asks: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
382
|
+
encodedOrderId: z.ZodString;
|
|
383
|
+
quantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
384
|
+
filledQuantity: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
385
|
+
expireTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
386
|
+
lastUpdatedTimestamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
387
|
+
status: z.ZodNumber;
|
|
388
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
|
389
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
390
|
+
orderId: string;
|
|
391
|
+
quantity: bigint;
|
|
392
|
+
filledQuantity: bigint;
|
|
393
|
+
remainingQuantity: bigint;
|
|
394
|
+
expireTimestamp: bigint;
|
|
395
|
+
lastUpdatedTimestamp: bigint;
|
|
396
|
+
status: number;
|
|
397
|
+
price: bigint;
|
|
398
|
+
}, {
|
|
399
|
+
encodedOrderId: string;
|
|
400
|
+
quantity: bigint;
|
|
401
|
+
filledQuantity: bigint;
|
|
402
|
+
expireTimestamp: bigint;
|
|
403
|
+
lastUpdatedTimestamp: bigint;
|
|
404
|
+
status: number;
|
|
405
|
+
price: bigint;
|
|
406
|
+
}>>>;
|
|
407
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
408
|
+
hubId: string;
|
|
409
|
+
collectionId: string;
|
|
410
|
+
vaultConfigId: string | null;
|
|
411
|
+
poolId: string | null;
|
|
412
|
+
metadata: {
|
|
413
|
+
poolId: string;
|
|
414
|
+
poolName: string;
|
|
415
|
+
baseAssetSymbol: string;
|
|
416
|
+
baseAssetName: string | null;
|
|
417
|
+
baseAssetDecimals: number;
|
|
418
|
+
quoteAssetSymbol: string;
|
|
419
|
+
quoteAssetName: string | null;
|
|
420
|
+
quoteAssetDecimals: number;
|
|
421
|
+
storageUnitId: string | null;
|
|
422
|
+
assetId: string | null;
|
|
423
|
+
collectionId: string | null;
|
|
424
|
+
feeRateScaled: bigint;
|
|
425
|
+
feeRate: number | null;
|
|
426
|
+
} | null;
|
|
427
|
+
bids: {
|
|
428
|
+
orderId: string;
|
|
429
|
+
quantity: bigint;
|
|
430
|
+
filledQuantity: bigint;
|
|
431
|
+
remainingQuantity: bigint;
|
|
432
|
+
expireTimestamp: bigint;
|
|
433
|
+
lastUpdatedTimestamp: bigint;
|
|
434
|
+
status: number;
|
|
435
|
+
price: bigint;
|
|
436
|
+
}[];
|
|
437
|
+
asks: {
|
|
438
|
+
orderId: string;
|
|
439
|
+
quantity: bigint;
|
|
440
|
+
filledQuantity: bigint;
|
|
441
|
+
remainingQuantity: bigint;
|
|
442
|
+
expireTimestamp: bigint;
|
|
443
|
+
lastUpdatedTimestamp: bigint;
|
|
444
|
+
status: number;
|
|
445
|
+
price: bigint;
|
|
446
|
+
}[];
|
|
447
|
+
}, {
|
|
448
|
+
hub_id: string;
|
|
449
|
+
collection_id: string;
|
|
450
|
+
vault_config_id: string | null;
|
|
451
|
+
pool_id: string | null;
|
|
452
|
+
metadata: {
|
|
453
|
+
poolId: string;
|
|
454
|
+
poolName: string;
|
|
455
|
+
baseAssetSymbol: string;
|
|
456
|
+
baseAssetName: string | null;
|
|
457
|
+
baseAssetDecimals: number;
|
|
458
|
+
quoteAssetSymbol: string;
|
|
459
|
+
quoteAssetName: string | null;
|
|
460
|
+
quoteAssetDecimals: number;
|
|
461
|
+
storageUnitId: string | null;
|
|
462
|
+
assetId: string | null;
|
|
463
|
+
collectionId: string | null;
|
|
464
|
+
feeRateScaled: bigint;
|
|
465
|
+
feeRate: number | null;
|
|
466
|
+
} | null;
|
|
467
|
+
bids: {
|
|
468
|
+
orderId: string;
|
|
469
|
+
quantity: bigint;
|
|
470
|
+
filledQuantity: bigint;
|
|
471
|
+
remainingQuantity: bigint;
|
|
472
|
+
expireTimestamp: bigint;
|
|
473
|
+
lastUpdatedTimestamp: bigint;
|
|
474
|
+
status: number;
|
|
475
|
+
price: bigint;
|
|
476
|
+
}[];
|
|
477
|
+
asks: {
|
|
478
|
+
orderId: string;
|
|
479
|
+
quantity: bigint;
|
|
480
|
+
filledQuantity: bigint;
|
|
481
|
+
remainingQuantity: bigint;
|
|
482
|
+
expireTimestamp: bigint;
|
|
483
|
+
lastUpdatedTimestamp: bigint;
|
|
484
|
+
status: number;
|
|
485
|
+
price: bigint;
|
|
486
|
+
}[];
|
|
487
|
+
}>>;
|
|
307
488
|
export declare const HubVaultSchema: z.ZodPipe<z.ZodObject<{
|
|
308
489
|
hub_id: z.ZodString;
|
|
309
490
|
collection_id: z.ZodString;
|
|
@@ -419,6 +600,181 @@ export declare const CollectionHubSchema: z.ZodPipe<z.ZodObject<{
|
|
|
419
600
|
hub_id: string;
|
|
420
601
|
collection_id: string;
|
|
421
602
|
}>>;
|
|
603
|
+
export declare const ItemRecipeComponentSchema: z.ZodPipe<z.ZodObject<{
|
|
604
|
+
asset_id: z.ZodString;
|
|
605
|
+
quantity: z.ZodNumber;
|
|
606
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
607
|
+
assetId: string;
|
|
608
|
+
quantity: number;
|
|
609
|
+
}, {
|
|
610
|
+
asset_id: string;
|
|
611
|
+
quantity: number;
|
|
612
|
+
}>>;
|
|
613
|
+
export declare const ItemRecipeSchema: z.ZodPipe<z.ZodObject<{
|
|
614
|
+
output_quantity: z.ZodNumber;
|
|
615
|
+
components: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
616
|
+
asset_id: z.ZodString;
|
|
617
|
+
quantity: z.ZodNumber;
|
|
618
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
619
|
+
assetId: string;
|
|
620
|
+
quantity: number;
|
|
621
|
+
}, {
|
|
622
|
+
asset_id: string;
|
|
623
|
+
quantity: number;
|
|
624
|
+
}>>>;
|
|
625
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
626
|
+
outputQuantity: number;
|
|
627
|
+
components: {
|
|
628
|
+
assetId: string;
|
|
629
|
+
quantity: number;
|
|
630
|
+
}[];
|
|
631
|
+
}, {
|
|
632
|
+
output_quantity: number;
|
|
633
|
+
components: {
|
|
634
|
+
assetId: string;
|
|
635
|
+
quantity: number;
|
|
636
|
+
}[];
|
|
637
|
+
}>>;
|
|
638
|
+
export declare const ItemSearchResultSchema: z.ZodPipe<z.ZodObject<{
|
|
639
|
+
asset_id: z.ZodString;
|
|
640
|
+
name: z.ZodNullable<z.ZodString>;
|
|
641
|
+
symbol: z.ZodNullable<z.ZodString>;
|
|
642
|
+
mass: z.ZodNumber;
|
|
643
|
+
recipes: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
644
|
+
output_quantity: z.ZodNumber;
|
|
645
|
+
components: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
646
|
+
asset_id: z.ZodString;
|
|
647
|
+
quantity: z.ZodNumber;
|
|
648
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
649
|
+
assetId: string;
|
|
650
|
+
quantity: number;
|
|
651
|
+
}, {
|
|
652
|
+
asset_id: string;
|
|
653
|
+
quantity: number;
|
|
654
|
+
}>>>;
|
|
655
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
656
|
+
outputQuantity: number;
|
|
657
|
+
components: {
|
|
658
|
+
assetId: string;
|
|
659
|
+
quantity: number;
|
|
660
|
+
}[];
|
|
661
|
+
}, {
|
|
662
|
+
output_quantity: number;
|
|
663
|
+
components: {
|
|
664
|
+
assetId: string;
|
|
665
|
+
quantity: number;
|
|
666
|
+
}[];
|
|
667
|
+
}>>>;
|
|
668
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
669
|
+
assetId: string;
|
|
670
|
+
name: string | null;
|
|
671
|
+
symbol: string | null;
|
|
672
|
+
mass: number;
|
|
673
|
+
recipes: {
|
|
674
|
+
outputQuantity: number;
|
|
675
|
+
components: {
|
|
676
|
+
assetId: string;
|
|
677
|
+
quantity: number;
|
|
678
|
+
}[];
|
|
679
|
+
}[];
|
|
680
|
+
}, {
|
|
681
|
+
asset_id: string;
|
|
682
|
+
name: string | null;
|
|
683
|
+
symbol: string | null;
|
|
684
|
+
mass: number;
|
|
685
|
+
recipes: {
|
|
686
|
+
outputQuantity: number;
|
|
687
|
+
components: {
|
|
688
|
+
assetId: string;
|
|
689
|
+
quantity: number;
|
|
690
|
+
}[];
|
|
691
|
+
}[];
|
|
692
|
+
}>>;
|
|
693
|
+
export declare const ItemSearchPageSchema: z.ZodPipe<z.ZodObject<{
|
|
694
|
+
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
695
|
+
asset_id: z.ZodString;
|
|
696
|
+
name: z.ZodNullable<z.ZodString>;
|
|
697
|
+
symbol: z.ZodNullable<z.ZodString>;
|
|
698
|
+
mass: z.ZodNumber;
|
|
699
|
+
recipes: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
700
|
+
output_quantity: z.ZodNumber;
|
|
701
|
+
components: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
702
|
+
asset_id: z.ZodString;
|
|
703
|
+
quantity: z.ZodNumber;
|
|
704
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
705
|
+
assetId: string;
|
|
706
|
+
quantity: number;
|
|
707
|
+
}, {
|
|
708
|
+
asset_id: string;
|
|
709
|
+
quantity: number;
|
|
710
|
+
}>>>;
|
|
711
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
712
|
+
outputQuantity: number;
|
|
713
|
+
components: {
|
|
714
|
+
assetId: string;
|
|
715
|
+
quantity: number;
|
|
716
|
+
}[];
|
|
717
|
+
}, {
|
|
718
|
+
output_quantity: number;
|
|
719
|
+
components: {
|
|
720
|
+
assetId: string;
|
|
721
|
+
quantity: number;
|
|
722
|
+
}[];
|
|
723
|
+
}>>>;
|
|
724
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
725
|
+
assetId: string;
|
|
726
|
+
name: string | null;
|
|
727
|
+
symbol: string | null;
|
|
728
|
+
mass: number;
|
|
729
|
+
recipes: {
|
|
730
|
+
outputQuantity: number;
|
|
731
|
+
components: {
|
|
732
|
+
assetId: string;
|
|
733
|
+
quantity: number;
|
|
734
|
+
}[];
|
|
735
|
+
}[];
|
|
736
|
+
}, {
|
|
737
|
+
asset_id: string;
|
|
738
|
+
name: string | null;
|
|
739
|
+
symbol: string | null;
|
|
740
|
+
mass: number;
|
|
741
|
+
recipes: {
|
|
742
|
+
outputQuantity: number;
|
|
743
|
+
components: {
|
|
744
|
+
assetId: string;
|
|
745
|
+
quantity: number;
|
|
746
|
+
}[];
|
|
747
|
+
}[];
|
|
748
|
+
}>>>;
|
|
749
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
750
|
+
items: {
|
|
751
|
+
assetId: string;
|
|
752
|
+
name: string | null;
|
|
753
|
+
symbol: string | null;
|
|
754
|
+
mass: number;
|
|
755
|
+
recipes: {
|
|
756
|
+
outputQuantity: number;
|
|
757
|
+
components: {
|
|
758
|
+
assetId: string;
|
|
759
|
+
quantity: number;
|
|
760
|
+
}[];
|
|
761
|
+
}[];
|
|
762
|
+
}[];
|
|
763
|
+
}, {
|
|
764
|
+
data: {
|
|
765
|
+
assetId: string;
|
|
766
|
+
name: string | null;
|
|
767
|
+
symbol: string | null;
|
|
768
|
+
mass: number;
|
|
769
|
+
recipes: {
|
|
770
|
+
outputQuantity: number;
|
|
771
|
+
components: {
|
|
772
|
+
assetId: string;
|
|
773
|
+
quantity: number;
|
|
774
|
+
}[];
|
|
775
|
+
}[];
|
|
776
|
+
}[];
|
|
777
|
+
}>>;
|
|
422
778
|
export declare const AssetBalanceSchema: z.ZodPipe<z.ZodObject<{
|
|
423
779
|
asset_id: z.ZodString;
|
|
424
780
|
amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<bigint, string | number>>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transaction } from '@mysten/sui/transactions';
|
|
2
2
|
import { ClientWithCoreApi } from '@mysten/sui/client';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { AssetBalanceSchema, CollectionHubSchema, DiscoveryOrderSchema, DiscoveryResultSchema, FillSchema, FillsPageSchema, HubItemSchema, HubItemsPageSchema, HubLocationSchema, HubVaultSchema, InventoryBalancesSchema, OpenOrderSchema, OpenOrdersPageSchema, OrderbookOrderSchema, PoolMetadataSchema, SweepableItemSchema, SweepablePoolSchema, SweepableSchema, TradeSchema, TradesPageSchema } from './schemas';
|
|
4
|
+
import { AssetBalanceSchema, CollectionHubSchema, DiscoveryOrderSchema, DiscoveryResultSchema, FillSchema, FillsPageSchema, HubItemOrderbookSchema, HubItemSchema, HubItemsPageSchema, HubLocationSchema, ItemRecipeComponentSchema, ItemRecipeSchema, ItemSearchPageSchema, ItemSearchResultSchema, HubVaultSchema, InventoryBalancesSchema, OpenOrderSchema, OpenOrdersPageSchema, OrderbookOrderSchema, PoolMetadataSchema, SweepableItemSchema, SweepablePoolSchema, SweepableSchema, TradeSchema, TradesPageSchema } from './schemas';
|
|
5
5
|
export interface ObjectChange {
|
|
6
6
|
type: string;
|
|
7
7
|
objectId?: string;
|
|
@@ -53,6 +53,10 @@ export type HubLocation = z.output<typeof HubLocationSchema>;
|
|
|
53
53
|
export type HubItem = z.output<typeof HubItemSchema>;
|
|
54
54
|
export type HubItemsPage = z.output<typeof HubItemsPageSchema>;
|
|
55
55
|
export type CollectionHub = z.output<typeof CollectionHubSchema>;
|
|
56
|
+
export type ItemRecipeComponent = z.output<typeof ItemRecipeComponentSchema>;
|
|
57
|
+
export type ItemRecipe = z.output<typeof ItemRecipeSchema>;
|
|
58
|
+
export type ItemSearchResult = z.output<typeof ItemSearchResultSchema>;
|
|
59
|
+
export type ItemSearchPage = z.output<typeof ItemSearchPageSchema>;
|
|
56
60
|
export type AssetBalance = z.output<typeof AssetBalanceSchema>;
|
|
57
61
|
export type InventoryBalances = z.output<typeof InventoryBalancesSchema>;
|
|
58
62
|
export type OpenOrder = z.output<typeof OpenOrderSchema>;
|
|
@@ -69,6 +73,13 @@ export interface Orderbook {
|
|
|
69
73
|
bids: OrderbookOrder[];
|
|
70
74
|
asks: OrderbookOrder[];
|
|
71
75
|
}
|
|
76
|
+
export type HubItemMarket = z.output<typeof HubItemOrderbookSchema>;
|
|
77
|
+
export interface HubItemOrderbook extends Orderbook {
|
|
78
|
+
hubId: string;
|
|
79
|
+
collectionId: string;
|
|
80
|
+
vaultConfigId: string | null;
|
|
81
|
+
metadata: PoolMetadata | null;
|
|
82
|
+
}
|
|
72
83
|
export interface TradeHubDetail {
|
|
73
84
|
hubId: string;
|
|
74
85
|
collectionId: string;
|
package/package.json
CHANGED