@longdotxyz/shared 0.0.36 → 0.0.37

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.
@@ -22,7 +22,7 @@ export declare const rootContract: {
22
22
  path: "/assets/";
23
23
  responses: {
24
24
  200: import("zod").ZodObject<{
25
- result: import("zod").ZodArray<import("zod").ZodObject<{
25
+ result: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodObject<{
26
26
  asset_address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
27
27
  asset_numeraire_address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
28
28
  asset_creation_timestamp: import("zod").ZodDate;
@@ -550,9 +550,175 @@ export declare const rootContract: {
550
550
  integrator_address: string;
551
551
  };
552
552
  };
553
+ }>, {
554
+ asset_status: string;
555
+ asset_address: `0x${string}`;
556
+ asset_numeraire_address: `0x${string}`;
557
+ asset_creation_timestamp: Date;
558
+ asset_current_pool: string;
559
+ asset_migration_timestamp: Date | null;
560
+ auction_pool: {
561
+ pool_current_price: string;
562
+ pool_current_sqrt_price: string;
563
+ pool_current_fdv: string;
564
+ pool_current_liquidity: string;
565
+ pool_current_tick: number;
566
+ pool_last_epoch: number;
567
+ pool_current_market_cap: string;
568
+ pool_current_fees_accrued: string;
569
+ pool_current_total_proceeds: string;
570
+ pool_current_total_tokens_sold: string;
571
+ pool_last_epoch_total_tokens_sold: string;
572
+ pool_current_sale_progress_percentage: number;
573
+ pool_config_max_proceeds: string;
574
+ pool_config_min_proceeds: string;
575
+ pool_id: string;
576
+ pool_address: `0x${string}`;
577
+ pool_config_starting_time: string;
578
+ pool_config_ending_time: string;
579
+ pool_migration_timestamp: Date | null;
580
+ pool_type: string;
581
+ base_token: {
582
+ token_address: `0x${string}`;
583
+ token_name: string;
584
+ token_description: string | null;
585
+ token_symbol: string;
586
+ token_uri_data: {
587
+ name?: string | undefined;
588
+ description?: string | undefined;
589
+ image_hash?: string | undefined;
590
+ fee_receiver?: string | undefined;
591
+ social_links?: string[] | undefined;
592
+ vesting_recipients?: {
593
+ address: string;
594
+ percentage: number;
595
+ }[] | undefined;
596
+ } | null;
597
+ token_image_public_url: string | null;
598
+ token_creator_address: `0x${string}`;
599
+ token_fee_receiver_address: `0x${string}`;
600
+ token_vesting_recipient_addresses: `0x${string}`[];
601
+ };
602
+ };
603
+ graduation_pool: {
604
+ pool_current_price: string;
605
+ pool_current_sqrt_price: string;
606
+ pool_current_fdv: string;
607
+ pool_current_liquidity: string;
608
+ pool_current_tick: number;
609
+ pool_current_market_cap: string;
610
+ pool_address: `0x${string}`;
611
+ pool_migration_timestamp: Date | null;
612
+ pool_type: string;
613
+ base_token: {
614
+ token_address: `0x${string}`;
615
+ token_name: string;
616
+ token_description: string | null;
617
+ token_symbol: string;
618
+ token_uri_data: {
619
+ name?: string | undefined;
620
+ description?: string | undefined;
621
+ image_hash?: string | undefined;
622
+ fee_receiver?: string | undefined;
623
+ social_links?: string[] | undefined;
624
+ vesting_recipients?: {
625
+ address: string;
626
+ percentage: number;
627
+ }[] | undefined;
628
+ } | null;
629
+ token_image_public_url: string | null;
630
+ token_creator_address: `0x${string}`;
631
+ token_fee_receiver_address: `0x${string}`;
632
+ token_vesting_recipient_addresses: `0x${string}`[];
633
+ integrator_address: string;
634
+ };
635
+ };
636
+ }, {
637
+ asset_address: string;
638
+ asset_numeraire_address: string;
639
+ asset_creation_timestamp: Date;
640
+ asset_current_pool: string;
641
+ asset_migration_timestamp: Date | null;
642
+ auction_pool: {
643
+ pool_current_price: string;
644
+ pool_current_sqrt_price: string;
645
+ pool_current_fdv: string;
646
+ pool_current_liquidity: string;
647
+ pool_current_tick: number;
648
+ pool_last_epoch: number;
649
+ pool_current_market_cap: string;
650
+ pool_current_fees_accrued: string;
651
+ pool_current_total_proceeds: string;
652
+ pool_current_total_tokens_sold: string;
653
+ pool_last_epoch_total_tokens_sold: string;
654
+ pool_current_sale_progress_percentage: number;
655
+ pool_config_max_proceeds: string;
656
+ pool_config_min_proceeds: string;
657
+ pool_id: string;
658
+ pool_address: string;
659
+ pool_config_starting_time: string;
660
+ pool_config_ending_time: string;
661
+ pool_migration_timestamp: Date | null;
662
+ pool_type: string;
663
+ base_token: {
664
+ token_address: string;
665
+ token_name: string;
666
+ token_description: string | null;
667
+ token_symbol: string;
668
+ token_uri_data: {
669
+ name?: string | undefined;
670
+ description?: string | undefined;
671
+ image_hash?: string | undefined;
672
+ fee_receiver?: string | undefined;
673
+ social_links?: string[] | undefined;
674
+ vesting_recipients?: {
675
+ address: string;
676
+ percentage: number;
677
+ }[] | undefined;
678
+ } | null;
679
+ token_image_public_url: string | null;
680
+ token_creator_address: string;
681
+ token_fee_receiver_address: string;
682
+ token_vesting_recipient_addresses: string[];
683
+ };
684
+ };
685
+ graduation_pool: {
686
+ pool_current_price: string;
687
+ pool_current_sqrt_price: string;
688
+ pool_current_fdv: string;
689
+ pool_current_liquidity: string;
690
+ pool_current_tick: number;
691
+ pool_current_market_cap: string;
692
+ pool_address: string;
693
+ pool_migration_timestamp: Date | null;
694
+ pool_type: string;
695
+ base_token: {
696
+ token_address: string;
697
+ token_name: string;
698
+ token_description: string | null;
699
+ token_symbol: string;
700
+ token_uri_data: {
701
+ name?: string | undefined;
702
+ description?: string | undefined;
703
+ image_hash?: string | undefined;
704
+ fee_receiver?: string | undefined;
705
+ social_links?: string[] | undefined;
706
+ vesting_recipients?: {
707
+ address: string;
708
+ percentage: number;
709
+ }[] | undefined;
710
+ } | null;
711
+ token_image_public_url: string | null;
712
+ token_creator_address: string;
713
+ token_fee_receiver_address: string;
714
+ token_vesting_recipient_addresses: string[];
715
+ integrator_address: string;
716
+ };
717
+ };
553
718
  }>, "many">;
554
719
  }, "strip", import("zod").ZodTypeAny, {
555
720
  result: {
721
+ asset_status: string;
556
722
  asset_address: `0x${string}`;
557
723
  asset_numeraire_address: `0x${string}`;
558
724
  asset_creation_timestamp: Date;
@@ -741,7 +907,7 @@ export declare const rootContract: {
741
907
  path: "/assets/search";
742
908
  responses: {
743
909
  200: import("zod").ZodObject<{
744
- result: import("zod").ZodArray<import("zod").ZodObject<{
910
+ result: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodObject<{
745
911
  asset_address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
746
912
  asset_numeraire_address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
747
913
  asset_creation_timestamp: import("zod").ZodDate;
@@ -1269,9 +1435,175 @@ export declare const rootContract: {
1269
1435
  integrator_address: string;
1270
1436
  };
1271
1437
  };
1438
+ }>, {
1439
+ asset_status: string;
1440
+ asset_address: `0x${string}`;
1441
+ asset_numeraire_address: `0x${string}`;
1442
+ asset_creation_timestamp: Date;
1443
+ asset_current_pool: string;
1444
+ asset_migration_timestamp: Date | null;
1445
+ auction_pool: {
1446
+ pool_current_price: string;
1447
+ pool_current_sqrt_price: string;
1448
+ pool_current_fdv: string;
1449
+ pool_current_liquidity: string;
1450
+ pool_current_tick: number;
1451
+ pool_last_epoch: number;
1452
+ pool_current_market_cap: string;
1453
+ pool_current_fees_accrued: string;
1454
+ pool_current_total_proceeds: string;
1455
+ pool_current_total_tokens_sold: string;
1456
+ pool_last_epoch_total_tokens_sold: string;
1457
+ pool_current_sale_progress_percentage: number;
1458
+ pool_config_max_proceeds: string;
1459
+ pool_config_min_proceeds: string;
1460
+ pool_id: string;
1461
+ pool_address: `0x${string}`;
1462
+ pool_config_starting_time: string;
1463
+ pool_config_ending_time: string;
1464
+ pool_migration_timestamp: Date | null;
1465
+ pool_type: string;
1466
+ base_token: {
1467
+ token_address: `0x${string}`;
1468
+ token_name: string;
1469
+ token_description: string | null;
1470
+ token_symbol: string;
1471
+ token_uri_data: {
1472
+ name?: string | undefined;
1473
+ description?: string | undefined;
1474
+ image_hash?: string | undefined;
1475
+ fee_receiver?: string | undefined;
1476
+ social_links?: string[] | undefined;
1477
+ vesting_recipients?: {
1478
+ address: string;
1479
+ percentage: number;
1480
+ }[] | undefined;
1481
+ } | null;
1482
+ token_image_public_url: string | null;
1483
+ token_creator_address: `0x${string}`;
1484
+ token_fee_receiver_address: `0x${string}`;
1485
+ token_vesting_recipient_addresses: `0x${string}`[];
1486
+ };
1487
+ };
1488
+ graduation_pool: {
1489
+ pool_current_price: string;
1490
+ pool_current_sqrt_price: string;
1491
+ pool_current_fdv: string;
1492
+ pool_current_liquidity: string;
1493
+ pool_current_tick: number;
1494
+ pool_current_market_cap: string;
1495
+ pool_address: `0x${string}`;
1496
+ pool_migration_timestamp: Date | null;
1497
+ pool_type: string;
1498
+ base_token: {
1499
+ token_address: `0x${string}`;
1500
+ token_name: string;
1501
+ token_description: string | null;
1502
+ token_symbol: string;
1503
+ token_uri_data: {
1504
+ name?: string | undefined;
1505
+ description?: string | undefined;
1506
+ image_hash?: string | undefined;
1507
+ fee_receiver?: string | undefined;
1508
+ social_links?: string[] | undefined;
1509
+ vesting_recipients?: {
1510
+ address: string;
1511
+ percentage: number;
1512
+ }[] | undefined;
1513
+ } | null;
1514
+ token_image_public_url: string | null;
1515
+ token_creator_address: `0x${string}`;
1516
+ token_fee_receiver_address: `0x${string}`;
1517
+ token_vesting_recipient_addresses: `0x${string}`[];
1518
+ integrator_address: string;
1519
+ };
1520
+ };
1521
+ }, {
1522
+ asset_address: string;
1523
+ asset_numeraire_address: string;
1524
+ asset_creation_timestamp: Date;
1525
+ asset_current_pool: string;
1526
+ asset_migration_timestamp: Date | null;
1527
+ auction_pool: {
1528
+ pool_current_price: string;
1529
+ pool_current_sqrt_price: string;
1530
+ pool_current_fdv: string;
1531
+ pool_current_liquidity: string;
1532
+ pool_current_tick: number;
1533
+ pool_last_epoch: number;
1534
+ pool_current_market_cap: string;
1535
+ pool_current_fees_accrued: string;
1536
+ pool_current_total_proceeds: string;
1537
+ pool_current_total_tokens_sold: string;
1538
+ pool_last_epoch_total_tokens_sold: string;
1539
+ pool_current_sale_progress_percentage: number;
1540
+ pool_config_max_proceeds: string;
1541
+ pool_config_min_proceeds: string;
1542
+ pool_id: string;
1543
+ pool_address: string;
1544
+ pool_config_starting_time: string;
1545
+ pool_config_ending_time: string;
1546
+ pool_migration_timestamp: Date | null;
1547
+ pool_type: string;
1548
+ base_token: {
1549
+ token_address: string;
1550
+ token_name: string;
1551
+ token_description: string | null;
1552
+ token_symbol: string;
1553
+ token_uri_data: {
1554
+ name?: string | undefined;
1555
+ description?: string | undefined;
1556
+ image_hash?: string | undefined;
1557
+ fee_receiver?: string | undefined;
1558
+ social_links?: string[] | undefined;
1559
+ vesting_recipients?: {
1560
+ address: string;
1561
+ percentage: number;
1562
+ }[] | undefined;
1563
+ } | null;
1564
+ token_image_public_url: string | null;
1565
+ token_creator_address: string;
1566
+ token_fee_receiver_address: string;
1567
+ token_vesting_recipient_addresses: string[];
1568
+ };
1569
+ };
1570
+ graduation_pool: {
1571
+ pool_current_price: string;
1572
+ pool_current_sqrt_price: string;
1573
+ pool_current_fdv: string;
1574
+ pool_current_liquidity: string;
1575
+ pool_current_tick: number;
1576
+ pool_current_market_cap: string;
1577
+ pool_address: string;
1578
+ pool_migration_timestamp: Date | null;
1579
+ pool_type: string;
1580
+ base_token: {
1581
+ token_address: string;
1582
+ token_name: string;
1583
+ token_description: string | null;
1584
+ token_symbol: string;
1585
+ token_uri_data: {
1586
+ name?: string | undefined;
1587
+ description?: string | undefined;
1588
+ image_hash?: string | undefined;
1589
+ fee_receiver?: string | undefined;
1590
+ social_links?: string[] | undefined;
1591
+ vesting_recipients?: {
1592
+ address: string;
1593
+ percentage: number;
1594
+ }[] | undefined;
1595
+ } | null;
1596
+ token_image_public_url: string | null;
1597
+ token_creator_address: string;
1598
+ token_fee_receiver_address: string;
1599
+ token_vesting_recipient_addresses: string[];
1600
+ integrator_address: string;
1601
+ };
1602
+ };
1272
1603
  }>, "many">;
1273
1604
  }, "strip", import("zod").ZodTypeAny, {
1274
1605
  result: {
1606
+ asset_status: string;
1275
1607
  asset_address: `0x${string}`;
1276
1608
  asset_numeraire_address: `0x${string}`;
1277
1609
  asset_creation_timestamp: Date;
@@ -1461,7 +1793,7 @@ export declare const rootContract: {
1461
1793
  path: "/assets/:assetAddress";
1462
1794
  responses: {
1463
1795
  200: import("zod").ZodObject<{
1464
- result: import("zod").ZodObject<{
1796
+ result: import("zod").ZodEffects<import("zod").ZodObject<{
1465
1797
  asset_address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
1466
1798
  asset_numeraire_address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
1467
1799
  asset_creation_timestamp: import("zod").ZodDate;
@@ -1989,9 +2321,175 @@ export declare const rootContract: {
1989
2321
  integrator_address: string;
1990
2322
  };
1991
2323
  };
2324
+ }>, {
2325
+ asset_status: string;
2326
+ asset_address: `0x${string}`;
2327
+ asset_numeraire_address: `0x${string}`;
2328
+ asset_creation_timestamp: Date;
2329
+ asset_current_pool: string;
2330
+ asset_migration_timestamp: Date | null;
2331
+ auction_pool: {
2332
+ pool_current_price: string;
2333
+ pool_current_sqrt_price: string;
2334
+ pool_current_fdv: string;
2335
+ pool_current_liquidity: string;
2336
+ pool_current_tick: number;
2337
+ pool_last_epoch: number;
2338
+ pool_current_market_cap: string;
2339
+ pool_current_fees_accrued: string;
2340
+ pool_current_total_proceeds: string;
2341
+ pool_current_total_tokens_sold: string;
2342
+ pool_last_epoch_total_tokens_sold: string;
2343
+ pool_current_sale_progress_percentage: number;
2344
+ pool_config_max_proceeds: string;
2345
+ pool_config_min_proceeds: string;
2346
+ pool_id: string;
2347
+ pool_address: `0x${string}`;
2348
+ pool_config_starting_time: string;
2349
+ pool_config_ending_time: string;
2350
+ pool_migration_timestamp: Date | null;
2351
+ pool_type: string;
2352
+ base_token: {
2353
+ token_address: `0x${string}`;
2354
+ token_name: string;
2355
+ token_description: string | null;
2356
+ token_symbol: string;
2357
+ token_uri_data: {
2358
+ name?: string | undefined;
2359
+ description?: string | undefined;
2360
+ image_hash?: string | undefined;
2361
+ fee_receiver?: string | undefined;
2362
+ social_links?: string[] | undefined;
2363
+ vesting_recipients?: {
2364
+ address: string;
2365
+ percentage: number;
2366
+ }[] | undefined;
2367
+ } | null;
2368
+ token_image_public_url: string | null;
2369
+ token_creator_address: `0x${string}`;
2370
+ token_fee_receiver_address: `0x${string}`;
2371
+ token_vesting_recipient_addresses: `0x${string}`[];
2372
+ };
2373
+ };
2374
+ graduation_pool: {
2375
+ pool_current_price: string;
2376
+ pool_current_sqrt_price: string;
2377
+ pool_current_fdv: string;
2378
+ pool_current_liquidity: string;
2379
+ pool_current_tick: number;
2380
+ pool_current_market_cap: string;
2381
+ pool_address: `0x${string}`;
2382
+ pool_migration_timestamp: Date | null;
2383
+ pool_type: string;
2384
+ base_token: {
2385
+ token_address: `0x${string}`;
2386
+ token_name: string;
2387
+ token_description: string | null;
2388
+ token_symbol: string;
2389
+ token_uri_data: {
2390
+ name?: string | undefined;
2391
+ description?: string | undefined;
2392
+ image_hash?: string | undefined;
2393
+ fee_receiver?: string | undefined;
2394
+ social_links?: string[] | undefined;
2395
+ vesting_recipients?: {
2396
+ address: string;
2397
+ percentage: number;
2398
+ }[] | undefined;
2399
+ } | null;
2400
+ token_image_public_url: string | null;
2401
+ token_creator_address: `0x${string}`;
2402
+ token_fee_receiver_address: `0x${string}`;
2403
+ token_vesting_recipient_addresses: `0x${string}`[];
2404
+ integrator_address: string;
2405
+ };
2406
+ };
2407
+ }, {
2408
+ asset_address: string;
2409
+ asset_numeraire_address: string;
2410
+ asset_creation_timestamp: Date;
2411
+ asset_current_pool: string;
2412
+ asset_migration_timestamp: Date | null;
2413
+ auction_pool: {
2414
+ pool_current_price: string;
2415
+ pool_current_sqrt_price: string;
2416
+ pool_current_fdv: string;
2417
+ pool_current_liquidity: string;
2418
+ pool_current_tick: number;
2419
+ pool_last_epoch: number;
2420
+ pool_current_market_cap: string;
2421
+ pool_current_fees_accrued: string;
2422
+ pool_current_total_proceeds: string;
2423
+ pool_current_total_tokens_sold: string;
2424
+ pool_last_epoch_total_tokens_sold: string;
2425
+ pool_current_sale_progress_percentage: number;
2426
+ pool_config_max_proceeds: string;
2427
+ pool_config_min_proceeds: string;
2428
+ pool_id: string;
2429
+ pool_address: string;
2430
+ pool_config_starting_time: string;
2431
+ pool_config_ending_time: string;
2432
+ pool_migration_timestamp: Date | null;
2433
+ pool_type: string;
2434
+ base_token: {
2435
+ token_address: string;
2436
+ token_name: string;
2437
+ token_description: string | null;
2438
+ token_symbol: string;
2439
+ token_uri_data: {
2440
+ name?: string | undefined;
2441
+ description?: string | undefined;
2442
+ image_hash?: string | undefined;
2443
+ fee_receiver?: string | undefined;
2444
+ social_links?: string[] | undefined;
2445
+ vesting_recipients?: {
2446
+ address: string;
2447
+ percentage: number;
2448
+ }[] | undefined;
2449
+ } | null;
2450
+ token_image_public_url: string | null;
2451
+ token_creator_address: string;
2452
+ token_fee_receiver_address: string;
2453
+ token_vesting_recipient_addresses: string[];
2454
+ };
2455
+ };
2456
+ graduation_pool: {
2457
+ pool_current_price: string;
2458
+ pool_current_sqrt_price: string;
2459
+ pool_current_fdv: string;
2460
+ pool_current_liquidity: string;
2461
+ pool_current_tick: number;
2462
+ pool_current_market_cap: string;
2463
+ pool_address: string;
2464
+ pool_migration_timestamp: Date | null;
2465
+ pool_type: string;
2466
+ base_token: {
2467
+ token_address: string;
2468
+ token_name: string;
2469
+ token_description: string | null;
2470
+ token_symbol: string;
2471
+ token_uri_data: {
2472
+ name?: string | undefined;
2473
+ description?: string | undefined;
2474
+ image_hash?: string | undefined;
2475
+ fee_receiver?: string | undefined;
2476
+ social_links?: string[] | undefined;
2477
+ vesting_recipients?: {
2478
+ address: string;
2479
+ percentage: number;
2480
+ }[] | undefined;
2481
+ } | null;
2482
+ token_image_public_url: string | null;
2483
+ token_creator_address: string;
2484
+ token_fee_receiver_address: string;
2485
+ token_vesting_recipient_addresses: string[];
2486
+ integrator_address: string;
2487
+ };
2488
+ };
1992
2489
  }>;
1993
2490
  }, "strip", import("zod").ZodTypeAny, {
1994
2491
  result: {
2492
+ asset_status: string;
1995
2493
  asset_address: `0x${string}`;
1996
2494
  asset_numeraire_address: `0x${string}`;
1997
2495
  asset_creation_timestamp: Date;
@@ -10,9 +10,15 @@ const quoteContract = contract.router({
10
10
  method: "POST",
11
11
  path: "/v4/exact-output-single",
12
12
  query: zod_1.default.object({
13
- chainId: zod_1.default.coerce.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
14
- message: "Invalid chain ID"
15
- }).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
13
+ chainId: zod_1.default.coerce
14
+ .number()
15
+ .int()
16
+ .refine((val) => Object.values(types_1.ChainID).includes(val), {
17
+ message: "Invalid chain ID",
18
+ })
19
+ .optional()
20
+ .default(types_1.ChainID.BASE_MAINNET)
21
+ .describe("The chain ID of the quote to get"),
16
22
  }),
17
23
  body: zod_1.default.object({
18
24
  pool_key: types_1.poolKeySchema,
@@ -34,9 +40,15 @@ const quoteContract = contract.router({
34
40
  method: "POST",
35
41
  path: "/v4/exact-input-single",
36
42
  query: zod_1.default.object({
37
- chainId: zod_1.default.coerce.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
38
- message: "Invalid chain ID"
39
- }).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
43
+ chainId: zod_1.default.coerce
44
+ .number()
45
+ .int()
46
+ .refine((val) => Object.values(types_1.ChainID).includes(val), {
47
+ message: "Invalid chain ID",
48
+ })
49
+ .optional()
50
+ .default(types_1.ChainID.BASE_MAINNET)
51
+ .describe("The chain ID of the quote to get"),
40
52
  }),
41
53
  body: zod_1.default.object({
42
54
  pool_key: types_1.poolKeySchema,
@@ -58,9 +70,15 @@ const quoteContract = contract.router({
58
70
  method: "POST",
59
71
  path: "/v3/exact-output-single",
60
72
  query: zod_1.default.object({
61
- chainId: zod_1.default.coerce.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
62
- message: "Invalid chain ID"
63
- }).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
73
+ chainId: zod_1.default.coerce
74
+ .number()
75
+ .int()
76
+ .refine((val) => Object.values(types_1.ChainID).includes(val), {
77
+ message: "Invalid chain ID",
78
+ })
79
+ .optional()
80
+ .default(types_1.ChainID.BASE_MAINNET)
81
+ .describe("The chain ID of the quote to get"),
64
82
  }),
65
83
  body: zod_1.default.object({
66
84
  token_in: zod_1.default.string().pipe(types_1.hex),
@@ -84,9 +102,15 @@ const quoteContract = contract.router({
84
102
  method: "POST",
85
103
  path: "/v3/exact-input-single",
86
104
  query: zod_1.default.object({
87
- chainId: zod_1.default.coerce.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
88
- message: "Invalid chain ID"
89
- }).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
105
+ chainId: zod_1.default.coerce
106
+ .number()
107
+ .int()
108
+ .refine((val) => Object.values(types_1.ChainID).includes(val), {
109
+ message: "Invalid chain ID",
110
+ })
111
+ .optional()
112
+ .default(types_1.ChainID.BASE_MAINNET)
113
+ .describe("The chain ID of the quote to get"),
90
114
  }),
91
115
  body: zod_1.default.object({
92
116
  token_in: zod_1.default.string().pipe(types_1.hex),
@@ -1 +1 @@
1
- {"version":3,"file":"quote.contract.js","sourceRoot":"","sources":["../../src/contracts/quote.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAqE;AAErE,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CACjC;IACI,mBAAmB,EAAE;QACjB,MAAM,E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,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACnD,OAAO,EAAE,kBAAkB;aAC9B,CAAC;iBACD,QAAQ,EAAE;iBACV,OAAO,CAAC,eAAO,CAAC,YAAY,CAAC;iBAC7B,QAAQ,CAAC,kCAAkC,CAAC;SACpD,CAAC;QACF,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC;YAC9B,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC;YAC/B,SAAS,EAAE,oBAAY;YACvB,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE;YACf,oBAAoB,EAAE,aAAC,CAAC,QAAQ,CAAC,oBAAY,CAAC;SACjD,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;oBACb,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;oBACtB,oBAAoB,EAAE,aAAC,CAAC,MAAM,EAAE;oBAChC,yBAAyB,EAAE,aAAC,CAAC,MAAM,EAAE;oBACrC,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;iBAC3B,CAAC;aACL,CAAC;SACL;QACD,WAAW,EAAE,+CAA+C;KAC/D;CACJ,EACD;IACI,UAAU,EAAE,SAAS;CACxB,CACJ,CAAC;AAEO,sCAAa"}
@@ -2,6 +2,7 @@ export declare enum AssetStatus {
2
2
  LIVE = "live",
3
3
  GRADUATED = "graduated",
4
4
  INCOMING = "incoming",
5
+ STALL = "stall",
5
6
  ALL = "all"
6
7
  }
7
8
  export declare enum ChainID {