tapimo 0.7.0 → 0.7.1

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 (69) hide show
  1. package/dist/App.d.ts +5 -5
  2. package/dist/admin/ui.generated.d.ts.map +1 -1
  3. package/dist/admin/ui.generated.js +95 -95
  4. package/dist/admin/ui.generated.js.map +1 -1
  5. package/dist/apps/data/App.d.ts +3283 -3283
  6. package/dist/apps/data/routes/exchanges.d.ts +664 -664
  7. package/dist/apps/data/routes/fee-amm.d.ts +108 -108
  8. package/dist/apps/data/routes/indexer.d.ts +34 -34
  9. package/dist/apps/data/routes/receipts.d.ts +2 -2
  10. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  11. package/dist/apps/data/routes/tokenlist.js +12 -3
  12. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  13. package/dist/apps/data/routes/tokens.d.ts +2 -2
  14. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  15. package/dist/apps/data/routes/tokens.js +4 -0
  16. package/dist/apps/data/routes/tokens.js.map +1 -1
  17. package/dist/apps/data/routes/transactions.d.ts +2 -2
  18. package/dist/apps/data/routes/transfers.d.ts +2 -2
  19. package/dist/apps/data/routes/valuation.d.ts +32 -32
  20. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  21. package/dist/apps/data/routes/verified-tokens.js +34 -9
  22. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  23. package/dist/apps/data/routes/webhooks.d.ts +363 -363
  24. package/dist/apps/data/routes/webhooks.js +14 -6
  25. package/dist/apps/data/routes/webhooks.js.map +1 -1
  26. package/dist/apps/management/routes/faucet.d.ts +36 -36
  27. package/dist/apps/management/routes/members.d.ts +78 -78
  28. package/dist/apps/management/routes/usage.d.ts +80 -80
  29. package/dist/apps/relay/App.js +1 -1
  30. package/dist/apps/relay/App.js.map +1 -1
  31. package/dist/apps/relay/Sponsorships.js +1 -1
  32. package/dist/apps/relay/Sponsorships.js.map +1 -1
  33. package/dist/db/tables/organizations.d.ts.map +1 -1
  34. package/dist/db/tables/organizations.js +19 -0
  35. package/dist/db/tables/organizations.js.map +1 -1
  36. package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
  37. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  38. package/dist/db/tables/sponsoredTransactions.js +13 -3
  39. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  40. package/dist/internal/EdgeCache.d.ts +1 -1
  41. package/dist/internal/EdgeCache.d.ts.map +1 -1
  42. package/dist/internal/EdgeCache.js +3 -2
  43. package/dist/internal/EdgeCache.js.map +1 -1
  44. package/dist/internal/Schema.d.ts +2 -2
  45. package/dist/internal/Schema.d.ts.map +1 -1
  46. package/dist/internal/Schema.js +4 -2
  47. package/dist/internal/Schema.js.map +1 -1
  48. package/package.json +1 -1
  49. package/src/admin/ui.generated.ts +119 -95
  50. package/src/apps/data/App.test.ts +13 -1
  51. package/src/apps/data/routes/tokenlist.test.ts +15 -0
  52. package/src/apps/data/routes/tokenlist.ts +18 -5
  53. package/src/apps/data/routes/tokens.ts +4 -0
  54. package/src/apps/data/routes/verified-tokens.test.ts +51 -0
  55. package/src/apps/data/routes/verified-tokens.ts +52 -15
  56. package/src/apps/data/routes/webhooks.test.ts +56 -0
  57. package/src/apps/data/routes/webhooks.ts +17 -8
  58. package/src/apps/relay/App.test.ts +2 -2
  59. package/src/apps/relay/App.ts +1 -1
  60. package/src/apps/relay/Sponsorships.test.ts +2 -0
  61. package/src/apps/relay/Sponsorships.ts +1 -1
  62. package/src/db/tables/organizations.test.ts +88 -0
  63. package/src/db/tables/organizations.ts +26 -1
  64. package/src/db/tables/sponsoredTransactions.test.ts +41 -2
  65. package/src/db/tables/sponsoredTransactions.ts +15 -3
  66. package/src/internal/EdgeCache.test.ts +18 -5
  67. package/src/internal/EdgeCache.ts +4 -2
  68. package/src/internal/Schema.test.ts +13 -0
  69. package/src/internal/Schema.ts +14 -7
@@ -408,8 +408,8 @@ export declare namespace schema {
408
408
  }>>;
409
409
  participant: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
410
410
  taker: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
411
- 'timestamp.from': z.ZodMiniOptional<z.ZodMiniISODateTime>;
412
- 'timestamp.to': z.ZodMiniOptional<z.ZodMiniISODateTime>;
411
+ 'timestamp.from': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniISODateTime, z.ZodMiniTransform<string, string>>>;
412
+ 'timestamp.to': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniISODateTime, z.ZodMiniTransform<string, string>>>;
413
413
  transactionHash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
414
414
  }, z.core.$strict>;
415
415
  /** One swap-side token with RPC metadata and optional curated fields. */
@@ -1262,9 +1262,139 @@ export declare namespace schema {
1262
1262
  export declare function exchanges(options?: exchanges.Options): import("hono/hono-base").HonoBase<App.Environment, {
1263
1263
  "/v1/exchange/quotes": {
1264
1264
  $post: {
1265
- output: null;
1266
- outputFormat: "body";
1267
- status: 402;
1265
+ output: {
1266
+ destinationAmount: {
1267
+ baseUnits: string;
1268
+ currency: string;
1269
+ decimals: number;
1270
+ formatted: string;
1271
+ valuation?: {
1272
+ amount: string;
1273
+ currency: string;
1274
+ } | null | undefined;
1275
+ };
1276
+ destinationAmountMin: {
1277
+ baseUnits: string;
1278
+ currency: string;
1279
+ decimals: number;
1280
+ formatted: string;
1281
+ valuation?: {
1282
+ amount: string;
1283
+ currency: string;
1284
+ } | null | undefined;
1285
+ };
1286
+ destinationToken: {
1287
+ currency: string;
1288
+ decimals: number;
1289
+ logoUri?: string | undefined;
1290
+ name: string;
1291
+ symbol: string;
1292
+ verified?: boolean | undefined;
1293
+ address: `0x${string}`;
1294
+ };
1295
+ meta?: {
1296
+ pricing?: {
1297
+ asOf: string;
1298
+ basis: "nominal";
1299
+ source: string;
1300
+ } | undefined;
1301
+ } | undefined;
1302
+ mode: "exactSource";
1303
+ sourceAmount: {
1304
+ baseUnits: string;
1305
+ currency: string;
1306
+ decimals: number;
1307
+ formatted: string;
1308
+ valuation?: {
1309
+ amount: string;
1310
+ currency: string;
1311
+ } | null | undefined;
1312
+ };
1313
+ sourceToken: {
1314
+ currency: string;
1315
+ decimals: number;
1316
+ logoUri?: string | undefined;
1317
+ name: string;
1318
+ symbol: string;
1319
+ verified?: boolean | undefined;
1320
+ address: `0x${string}`;
1321
+ };
1322
+ transaction: {
1323
+ calls: {
1324
+ data: `0x${string}`;
1325
+ to: `0x${string}`;
1326
+ value: `0x${string}`;
1327
+ }[];
1328
+ chainId: number;
1329
+ };
1330
+ } | {
1331
+ destinationAmount: {
1332
+ baseUnits: string;
1333
+ currency: string;
1334
+ decimals: number;
1335
+ formatted: string;
1336
+ valuation?: {
1337
+ amount: string;
1338
+ currency: string;
1339
+ } | null | undefined;
1340
+ };
1341
+ destinationToken: {
1342
+ currency: string;
1343
+ decimals: number;
1344
+ logoUri?: string | undefined;
1345
+ name: string;
1346
+ symbol: string;
1347
+ verified?: boolean | undefined;
1348
+ address: `0x${string}`;
1349
+ };
1350
+ meta?: {
1351
+ pricing?: {
1352
+ asOf: string;
1353
+ basis: "nominal";
1354
+ source: string;
1355
+ } | undefined;
1356
+ } | undefined;
1357
+ mode: "exactDestination";
1358
+ sourceAmount: {
1359
+ baseUnits: string;
1360
+ currency: string;
1361
+ decimals: number;
1362
+ formatted: string;
1363
+ valuation?: {
1364
+ amount: string;
1365
+ currency: string;
1366
+ } | null | undefined;
1367
+ };
1368
+ sourceAmountMax: {
1369
+ baseUnits: string;
1370
+ currency: string;
1371
+ decimals: number;
1372
+ formatted: string;
1373
+ valuation?: {
1374
+ amount: string;
1375
+ currency: string;
1376
+ } | null | undefined;
1377
+ };
1378
+ sourceToken: {
1379
+ currency: string;
1380
+ decimals: number;
1381
+ logoUri?: string | undefined;
1382
+ name: string;
1383
+ symbol: string;
1384
+ verified?: boolean | undefined;
1385
+ address: `0x${string}`;
1386
+ };
1387
+ transaction: {
1388
+ calls: {
1389
+ data: `0x${string}`;
1390
+ to: `0x${string}`;
1391
+ value: `0x${string}`;
1392
+ }[];
1393
+ chainId: number;
1394
+ };
1395
+ };
1396
+ outputFormat: "json";
1397
+ status: 200;
1268
1398
  input: {
1269
1399
  query?: {
1270
1400
  chainId?: string | string[];
@@ -1309,14 +1439,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1309
1439
  } | {
1310
1440
  output: {
1311
1441
  error: {
1312
- code: "api_key_invalid" | "api_key_missing";
1442
+ code: "query_invalid";
1313
1443
  details?: readonly Response.error.Detail[] | undefined;
1314
1444
  message: string;
1315
1445
  };
1316
1446
  requestId: string;
1317
1447
  };
1318
1448
  outputFormat: "json";
1319
- status: 401;
1449
+ status: 400;
1320
1450
  input: {
1321
1451
  query?: {
1322
1452
  chainId?: string | string[];
@@ -1335,14 +1465,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1335
1465
  } | {
1336
1466
  output: {
1337
1467
  error: {
1338
- code: "api_key_forbidden";
1468
+ code: "body_invalid";
1339
1469
  details?: readonly Response.error.Detail[] | undefined;
1340
1470
  message: string;
1341
1471
  };
1342
1472
  requestId: string;
1343
1473
  };
1344
1474
  outputFormat: "json";
1345
- status: 403;
1475
+ status: 400;
1346
1476
  input: {
1347
1477
  query?: {
1348
1478
  chainId?: string | string[];
@@ -1361,14 +1491,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1361
1491
  } | {
1362
1492
  output: {
1363
1493
  error: {
1364
- code: "payment_required" | "rate_limit_exceeded";
1494
+ code: "quote_amount_out_of_range";
1365
1495
  details?: readonly Response.error.Detail[] | undefined;
1366
1496
  message: string;
1367
1497
  };
1368
1498
  requestId: string;
1369
1499
  };
1370
1500
  outputFormat: "json";
1371
- status: 429;
1501
+ status: 400;
1372
1502
  input: {
1373
1503
  query?: {
1374
1504
  chainId?: string | string[];
@@ -1387,14 +1517,33 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1387
1517
  } | {
1388
1518
  output: {
1389
1519
  error: {
1390
- code: "query_invalid";
1520
+ code: "api_key_invalid" | "api_key_missing";
1391
1521
  details?: readonly Response.error.Detail[] | undefined;
1392
1522
  message: string;
1393
1523
  };
1394
1524
  requestId: string;
1395
1525
  };
1396
1526
  outputFormat: "json";
1397
- status: 400;
1527
+ status: 401;
1528
+ input: {
1529
+ query?: {
1530
+ chainId?: string | string[];
1531
+ denomination?: string | string[];
1532
+ include?: string | string[];
1533
+ } | undefined;
1534
+ } & {
1535
+ json: {
1536
+ amount: string;
1537
+ destinationToken: `0x${string}`;
1538
+ mode: "exactDestination" | "exactSource";
1539
+ slippageBps: number;
1540
+ sourceToken: `0x${string}`;
1541
+ };
1542
+ };
1543
+ } | {
1544
+ output: null;
1545
+ outputFormat: "body";
1546
+ status: 402;
1398
1547
  input: {
1399
1548
  query?: {
1400
1549
  chainId?: string | string[];
@@ -1413,14 +1562,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1413
1562
  } | {
1414
1563
  output: {
1415
1564
  error: {
1416
- code: "upstream_error";
1565
+ code: "api_key_forbidden";
1417
1566
  details?: readonly Response.error.Detail[] | undefined;
1418
1567
  message: string;
1419
1568
  };
1420
1569
  requestId: string;
1421
1570
  };
1422
1571
  outputFormat: "json";
1423
- status: 502;
1572
+ status: 403;
1424
1573
  input: {
1425
1574
  query?: {
1426
1575
  chainId?: string | string[];
@@ -1439,14 +1588,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1439
1588
  } | {
1440
1589
  output: {
1441
1590
  error: {
1442
- code: "body_invalid";
1591
+ code: "quote_not_available";
1443
1592
  details?: readonly Response.error.Detail[] | undefined;
1444
1593
  message: string;
1445
1594
  };
1446
1595
  requestId: string;
1447
1596
  };
1448
1597
  outputFormat: "json";
1449
- status: 400;
1598
+ status: 404;
1450
1599
  input: {
1451
1600
  query?: {
1452
1601
  chainId?: string | string[];
@@ -1465,14 +1614,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1465
1614
  } | {
1466
1615
  output: {
1467
1616
  error: {
1468
- code: "quote_not_available";
1617
+ code: "payment_required" | "rate_limit_exceeded";
1469
1618
  details?: readonly Response.error.Detail[] | undefined;
1470
1619
  message: string;
1471
1620
  };
1472
1621
  requestId: string;
1473
1622
  };
1474
1623
  outputFormat: "json";
1475
- status: 404;
1624
+ status: 429;
1476
1625
  input: {
1477
1626
  query?: {
1478
1627
  chainId?: string | string[];
@@ -1491,14 +1640,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1491
1640
  } | {
1492
1641
  output: {
1493
1642
  error: {
1494
- code: "quote_amount_out_of_range";
1643
+ code: "upstream_error";
1495
1644
  details?: readonly Response.error.Detail[] | undefined;
1496
1645
  message: string;
1497
1646
  };
1498
1647
  requestId: string;
1499
1648
  };
1500
1649
  outputFormat: "json";
1501
- status: 400;
1650
+ status: 502;
1502
1651
  input: {
1503
1652
  query?: {
1504
1653
  chainId?: string | string[];
@@ -1514,92 +1663,106 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1514
1663
  sourceToken: `0x${string}`;
1515
1664
  };
1516
1665
  };
1517
- } | {
1666
+ };
1667
+ };
1668
+ } & {
1669
+ "/v1/exchange/swaps": {
1670
+ $get: {
1518
1671
  output: {
1519
- destinationAmount: {
1520
- baseUnits: string;
1521
- currency: string;
1522
- decimals: number;
1523
- formatted: string;
1524
- valuation?: {
1525
- amount: string;
1526
- currency: string;
1527
- } | null | undefined;
1528
- };
1529
- destinationAmountMin: {
1530
- baseUnits: string;
1531
- currency: string;
1532
- decimals: number;
1533
- formatted: string;
1534
- valuation?: {
1535
- amount: string;
1672
+ data: {
1673
+ blockNumber: number;
1674
+ destinationAmount: {
1675
+ baseUnits: string;
1536
1676
  currency: string;
1537
- } | null | undefined;
1538
- };
1539
- destinationToken: {
1540
- currency: string;
1541
- decimals: number;
1542
- logoUri?: string | undefined;
1543
- name: string;
1544
- symbol: string;
1545
- verified?: boolean | undefined;
1546
- address: `0x${string}`;
1547
- };
1548
- meta?: {
1549
- pricing?: {
1550
- asOf: string;
1551
- basis: "nominal";
1552
- source: string;
1553
- } | undefined;
1554
- } | undefined;
1555
- mode: "exactSource";
1556
- sourceAmount: {
1557
- baseUnits: string;
1558
- currency: string;
1559
- decimals: number;
1560
- formatted: string;
1561
- valuation?: {
1562
- amount: string;
1677
+ decimals: number;
1678
+ formatted: string;
1679
+ valuation?: {
1680
+ amount: string;
1681
+ currency: string;
1682
+ } | null | undefined;
1683
+ };
1684
+ destinationToken: {
1685
+ address: `0x${string}`;
1563
1686
  currency: string;
1564
- } | null | undefined;
1565
- };
1566
- sourceToken: {
1567
- currency: string;
1568
- decimals: number;
1569
- logoUri?: string | undefined;
1570
- name: string;
1571
- symbol: string;
1572
- verified?: boolean | undefined;
1573
- address: `0x${string}`;
1574
- };
1575
- transaction: {
1576
- calls: {
1577
- data: `0x${string}`;
1578
- to: `0x${string}`;
1579
- value: `0x${string}`;
1687
+ decimals: number;
1688
+ logoUri?: string | undefined;
1689
+ name: string;
1690
+ symbol: string;
1691
+ verified?: boolean | undefined;
1692
+ };
1693
+ filledAt: string;
1694
+ fills: {
1695
+ destinationAmount: {
1696
+ baseUnits: string;
1697
+ currency: string;
1698
+ decimals: number;
1699
+ formatted: string;
1700
+ valuation?: {
1701
+ amount: string;
1702
+ currency: string;
1703
+ } | null | undefined;
1704
+ };
1705
+ destinationToken: {
1706
+ address: `0x${string}`;
1707
+ currency: string;
1708
+ decimals: number;
1709
+ logoUri?: string | undefined;
1710
+ name: string;
1711
+ symbol: string;
1712
+ verified?: boolean | undefined;
1713
+ };
1714
+ logIndex: number;
1715
+ maker: `0x${string}`;
1716
+ orderId: string;
1717
+ partialFill: boolean;
1718
+ price: string;
1719
+ sourceAmount: {
1720
+ baseUnits: string;
1721
+ currency: string;
1722
+ decimals: number;
1723
+ formatted: string;
1724
+ valuation?: {
1725
+ amount: string;
1726
+ currency: string;
1727
+ } | null | undefined;
1728
+ };
1729
+ sourceToken: {
1730
+ address: `0x${string}`;
1731
+ currency: string;
1732
+ decimals: number;
1733
+ logoUri?: string | undefined;
1734
+ name: string;
1735
+ symbol: string;
1736
+ verified?: boolean | undefined;
1737
+ };
1580
1738
  }[];
1581
- chainId: number;
1582
- };
1583
- } | {
1584
- destinationAmount: {
1585
- baseUnits: string;
1586
- currency: string;
1587
- decimals: number;
1588
- formatted: string;
1589
- valuation?: {
1590
- amount: string;
1739
+ id: string;
1740
+ logIndex: number;
1741
+ mode: "exactDestination" | "exactSource" | null;
1742
+ rate: string;
1743
+ route: `0x${string}`[];
1744
+ sourceAmount: {
1745
+ baseUnits: string;
1591
1746
  currency: string;
1592
- } | null | undefined;
1593
- };
1594
- destinationToken: {
1595
- currency: string;
1596
- decimals: number;
1597
- logoUri?: string | undefined;
1598
- name: string;
1599
- symbol: string;
1600
- verified?: boolean | undefined;
1601
- address: `0x${string}`;
1602
- };
1747
+ decimals: number;
1748
+ formatted: string;
1749
+ valuation?: {
1750
+ amount: string;
1751
+ currency: string;
1752
+ } | null | undefined;
1753
+ };
1754
+ sourceToken: {
1755
+ address: `0x${string}`;
1756
+ currency: string;
1757
+ decimals: number;
1758
+ logoUri?: string | undefined;
1759
+ name: string;
1760
+ symbol: string;
1761
+ verified?: boolean | undefined;
1762
+ };
1763
+ taker: `0x${string}`;
1764
+ transactionHash: `0x${string}`;
1765
+ }[];
1603
1766
  meta?: {
1604
1767
  pricing?: {
1605
1768
  asOf: string;
@@ -1607,70 +1770,10 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1607
1770
  source: string;
1608
1771
  } | undefined;
1609
1772
  } | undefined;
1610
- mode: "exactDestination";
1611
- sourceAmount: {
1612
- baseUnits: string;
1613
- currency: string;
1614
- decimals: number;
1615
- formatted: string;
1616
- valuation?: {
1617
- amount: string;
1618
- currency: string;
1619
- } | null | undefined;
1620
- };
1621
- sourceAmountMax: {
1622
- baseUnits: string;
1623
- currency: string;
1624
- decimals: number;
1625
- formatted: string;
1626
- valuation?: {
1627
- amount: string;
1628
- currency: string;
1629
- } | null | undefined;
1630
- };
1631
- sourceToken: {
1632
- currency: string;
1633
- decimals: number;
1634
- logoUri?: string | undefined;
1635
- name: string;
1636
- symbol: string;
1637
- verified?: boolean | undefined;
1638
- address: `0x${string}`;
1639
- };
1640
- transaction: {
1641
- calls: {
1642
- data: `0x${string}`;
1643
- to: `0x${string}`;
1644
- value: `0x${string}`;
1645
- }[];
1646
- chainId: number;
1647
- };
1773
+ nextCursor: string | null;
1648
1774
  };
1649
1775
  outputFormat: "json";
1650
1776
  status: 200;
1651
- input: {
1652
- query?: {
1653
- chainId?: string | string[];
1654
- denomination?: string | string[];
1655
- include?: string | string[];
1656
- } | undefined;
1657
- } & {
1658
- json: {
1659
- amount: string;
1660
- destinationToken: `0x${string}`;
1661
- mode: "exactDestination" | "exactSource";
1662
- slippageBps: number;
1663
- sourceToken: `0x${string}`;
1664
- };
1665
- };
1666
- };
1667
- };
1668
- } & {
1669
- "/v1/exchange/swaps": {
1670
- $get: {
1671
- output: null;
1672
- outputFormat: "body";
1673
- status: 402;
1674
1777
  input: {
1675
1778
  query?: {
1676
1779
  'blockNumber.from'?: string | string[];
@@ -1721,14 +1824,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1721
1824
  } | {
1722
1825
  output: {
1723
1826
  error: {
1724
- code: "api_key_invalid" | "api_key_missing";
1827
+ code: "query_invalid";
1725
1828
  details?: readonly Response.error.Detail[] | undefined;
1726
1829
  message: string;
1727
1830
  };
1728
1831
  requestId: string;
1729
1832
  };
1730
1833
  outputFormat: "json";
1731
- status: 401;
1834
+ status: 400;
1732
1835
  input: {
1733
1836
  query?: {
1734
1837
  'blockNumber.from'?: string | string[];
@@ -1750,14 +1853,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1750
1853
  } | {
1751
1854
  output: {
1752
1855
  error: {
1753
- code: "api_key_forbidden";
1856
+ code: "api_key_invalid" | "api_key_missing";
1754
1857
  details?: readonly Response.error.Detail[] | undefined;
1755
1858
  message: string;
1756
1859
  };
1757
1860
  requestId: string;
1758
1861
  };
1759
1862
  outputFormat: "json";
1760
- status: 403;
1863
+ status: 401;
1761
1864
  input: {
1762
1865
  query?: {
1763
1866
  'blockNumber.from'?: string | string[];
@@ -1777,16 +1880,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1777
1880
  } | undefined;
1778
1881
  };
1779
1882
  } | {
1780
- output: {
1781
- error: {
1782
- code: "payment_required" | "rate_limit_exceeded";
1783
- details?: readonly Response.error.Detail[] | undefined;
1784
- message: string;
1785
- };
1786
- requestId: string;
1787
- };
1788
- outputFormat: "json";
1789
- status: 429;
1883
+ output: null;
1884
+ outputFormat: "body";
1885
+ status: 402;
1790
1886
  input: {
1791
1887
  query?: {
1792
1888
  'blockNumber.from'?: string | string[];
@@ -1808,14 +1904,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1808
1904
  } | {
1809
1905
  output: {
1810
1906
  error: {
1811
- code: "query_invalid";
1907
+ code: "api_key_forbidden";
1812
1908
  details?: readonly Response.error.Detail[] | undefined;
1813
1909
  message: string;
1814
1910
  };
1815
1911
  requestId: string;
1816
1912
  };
1817
1913
  outputFormat: "json";
1818
- status: 400;
1914
+ status: 403;
1819
1915
  input: {
1820
1916
  query?: {
1821
1917
  'blockNumber.from'?: string | string[];
@@ -1837,14 +1933,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1837
1933
  } | {
1838
1934
  output: {
1839
1935
  error: {
1840
- code: "upstream_error";
1936
+ code: "payment_required" | "rate_limit_exceeded";
1841
1937
  details?: readonly Response.error.Detail[] | undefined;
1842
1938
  message: string;
1843
1939
  };
1844
1940
  requestId: string;
1845
1941
  };
1846
1942
  outputFormat: "json";
1847
- status: 502;
1943
+ status: 429;
1848
1944
  input: {
1849
1945
  query?: {
1850
1946
  'blockNumber.from'?: string | string[];
@@ -1865,111 +1961,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1865
1961
  };
1866
1962
  } | {
1867
1963
  output: {
1868
- data: {
1869
- blockNumber: number;
1870
- destinationAmount: {
1871
- baseUnits: string;
1872
- currency: string;
1873
- decimals: number;
1874
- formatted: string;
1875
- valuation?: {
1876
- amount: string;
1877
- currency: string;
1878
- } | null | undefined;
1879
- };
1880
- destinationToken: {
1881
- address: `0x${string}`;
1882
- currency: string;
1883
- decimals: number;
1884
- logoUri?: string | undefined;
1885
- name: string;
1886
- symbol: string;
1887
- verified?: boolean | undefined;
1888
- };
1889
- filledAt: string;
1890
- fills: {
1891
- destinationAmount: {
1892
- baseUnits: string;
1893
- currency: string;
1894
- decimals: number;
1895
- formatted: string;
1896
- valuation?: {
1897
- amount: string;
1898
- currency: string;
1899
- } | null | undefined;
1900
- };
1901
- destinationToken: {
1902
- address: `0x${string}`;
1903
- currency: string;
1904
- decimals: number;
1905
- logoUri?: string | undefined;
1906
- name: string;
1907
- symbol: string;
1908
- verified?: boolean | undefined;
1909
- };
1910
- logIndex: number;
1911
- maker: `0x${string}`;
1912
- orderId: string;
1913
- partialFill: boolean;
1914
- price: string;
1915
- sourceAmount: {
1916
- baseUnits: string;
1917
- currency: string;
1918
- decimals: number;
1919
- formatted: string;
1920
- valuation?: {
1921
- amount: string;
1922
- currency: string;
1923
- } | null | undefined;
1924
- };
1925
- sourceToken: {
1926
- address: `0x${string}`;
1927
- currency: string;
1928
- decimals: number;
1929
- logoUri?: string | undefined;
1930
- name: string;
1931
- symbol: string;
1932
- verified?: boolean | undefined;
1933
- };
1934
- }[];
1935
- id: string;
1936
- logIndex: number;
1937
- mode: "exactDestination" | "exactSource" | null;
1938
- rate: string;
1939
- route: `0x${string}`[];
1940
- sourceAmount: {
1941
- baseUnits: string;
1942
- currency: string;
1943
- decimals: number;
1944
- formatted: string;
1945
- valuation?: {
1946
- amount: string;
1947
- currency: string;
1948
- } | null | undefined;
1949
- };
1950
- sourceToken: {
1951
- address: `0x${string}`;
1952
- currency: string;
1953
- decimals: number;
1954
- logoUri?: string | undefined;
1955
- name: string;
1956
- symbol: string;
1957
- verified?: boolean | undefined;
1958
- };
1959
- taker: `0x${string}`;
1960
- transactionHash: `0x${string}`;
1961
- }[];
1962
- meta?: {
1963
- pricing?: {
1964
- asOf: string;
1965
- basis: "nominal";
1966
- source: string;
1967
- } | undefined;
1968
- } | undefined;
1969
- nextCursor: string | null;
1964
+ error: {
1965
+ code: "upstream_error";
1966
+ details?: readonly Response.error.Detail[] | undefined;
1967
+ message: string;
1968
+ };
1969
+ requestId: string;
1970
1970
  };
1971
1971
  outputFormat: "json";
1972
- status: 200;
1972
+ status: 502;
1973
1973
  input: {
1974
1974
  query?: {
1975
1975
  'blockNumber.from'?: string | string[];
@@ -1993,9 +1993,41 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1993
1993
  } & {
1994
1994
  "/v1/exchange/pairs": {
1995
1995
  $get: {
1996
- output: null;
1997
- outputFormat: "body";
1998
- status: 402;
1996
+ output: {
1997
+ data: {
1998
+ base: {
1999
+ address: `0x${string}`;
2000
+ currency?: string | undefined;
2001
+ decimals?: number | undefined;
2002
+ logoUri?: string | undefined;
2003
+ name?: string | undefined;
2004
+ symbol?: string | undefined;
2005
+ verified?: boolean | undefined;
2006
+ };
2007
+ blockNumber: number;
2008
+ id: `0x${string}`;
2009
+ key: `0x${string}`;
2010
+ liquidity?: string | undefined;
2011
+ quote: {
2012
+ address: `0x${string}`;
2013
+ currency?: string | undefined;
2014
+ decimals?: number | undefined;
2015
+ logoUri?: string | undefined;
2016
+ name?: string | undefined;
2017
+ symbol?: string | undefined;
2018
+ verified?: boolean | undefined;
2019
+ };
2020
+ timestamp: string;
2021
+ transactionHash: `0x${string}`;
2022
+ }[];
2023
+ meta?: {
2024
+ totalCountCapped: boolean;
2025
+ totalCount: number;
2026
+ } | undefined;
2027
+ nextCursor: string | null;
2028
+ };
2029
+ outputFormat: "json";
2030
+ status: 200;
1999
2031
  input: {
2000
2032
  query?: {
2001
2033
  chainId?: string | string[];
@@ -2032,14 +2064,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2032
2064
  } | {
2033
2065
  output: {
2034
2066
  error: {
2035
- code: "api_key_invalid" | "api_key_missing";
2067
+ code: "query_invalid";
2036
2068
  details?: readonly Response.error.Detail[] | undefined;
2037
2069
  message: string;
2038
2070
  };
2039
2071
  requestId: string;
2040
2072
  };
2041
2073
  outputFormat: "json";
2042
- status: 401;
2074
+ status: 400;
2043
2075
  input: {
2044
2076
  query?: {
2045
2077
  chainId?: string | string[];
@@ -2054,14 +2086,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2054
2086
  } | {
2055
2087
  output: {
2056
2088
  error: {
2057
- code: "api_key_forbidden";
2089
+ code: "api_key_invalid" | "api_key_missing";
2058
2090
  details?: readonly Response.error.Detail[] | undefined;
2059
2091
  message: string;
2060
2092
  };
2061
2093
  requestId: string;
2062
2094
  };
2063
2095
  outputFormat: "json";
2064
- status: 403;
2096
+ status: 401;
2065
2097
  input: {
2066
2098
  query?: {
2067
2099
  chainId?: string | string[];
@@ -2074,16 +2106,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2074
2106
  } | undefined;
2075
2107
  };
2076
2108
  } | {
2077
- output: {
2078
- error: {
2079
- code: "payment_required" | "rate_limit_exceeded";
2080
- details?: readonly Response.error.Detail[] | undefined;
2081
- message: string;
2082
- };
2083
- requestId: string;
2084
- };
2085
- outputFormat: "json";
2086
- status: 429;
2109
+ output: null;
2110
+ outputFormat: "body";
2111
+ status: 402;
2087
2112
  input: {
2088
2113
  query?: {
2089
2114
  chainId?: string | string[];
@@ -2098,14 +2123,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2098
2123
  } | {
2099
2124
  output: {
2100
2125
  error: {
2101
- code: "query_invalid";
2126
+ code: "api_key_forbidden";
2102
2127
  details?: readonly Response.error.Detail[] | undefined;
2103
2128
  message: string;
2104
2129
  };
2105
2130
  requestId: string;
2106
2131
  };
2107
2132
  outputFormat: "json";
2108
- status: 400;
2133
+ status: 403;
2109
2134
  input: {
2110
2135
  query?: {
2111
2136
  chainId?: string | string[];
@@ -2120,14 +2145,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2120
2145
  } | {
2121
2146
  output: {
2122
2147
  error: {
2123
- code: "upstream_error";
2148
+ code: "payment_required" | "rate_limit_exceeded";
2124
2149
  details?: readonly Response.error.Detail[] | undefined;
2125
2150
  message: string;
2126
2151
  };
2127
2152
  requestId: string;
2128
2153
  };
2129
2154
  outputFormat: "json";
2130
- status: 502;
2155
+ status: 429;
2131
2156
  input: {
2132
2157
  query?: {
2133
2158
  chainId?: string | string[];
@@ -2141,40 +2166,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2141
2166
  };
2142
2167
  } | {
2143
2168
  output: {
2144
- data: {
2145
- base: {
2146
- address: `0x${string}`;
2147
- currency?: string | undefined;
2148
- decimals?: number | undefined;
2149
- logoUri?: string | undefined;
2150
- name?: string | undefined;
2151
- symbol?: string | undefined;
2152
- verified?: boolean | undefined;
2153
- };
2154
- blockNumber: number;
2155
- id: `0x${string}`;
2156
- key: `0x${string}`;
2157
- liquidity?: string | undefined;
2158
- quote: {
2159
- address: `0x${string}`;
2160
- currency?: string | undefined;
2161
- decimals?: number | undefined;
2162
- logoUri?: string | undefined;
2163
- name?: string | undefined;
2164
- symbol?: string | undefined;
2165
- verified?: boolean | undefined;
2166
- };
2167
- timestamp: string;
2168
- transactionHash: `0x${string}`;
2169
- }[];
2170
- meta?: {
2171
- totalCountCapped: boolean;
2172
- totalCount: number;
2173
- } | undefined;
2174
- nextCursor: string | null;
2169
+ error: {
2170
+ code: "upstream_error";
2171
+ details?: readonly Response.error.Detail[] | undefined;
2172
+ message: string;
2173
+ };
2174
+ requestId: string;
2175
2175
  };
2176
2176
  outputFormat: "json";
2177
- status: 200;
2177
+ status: 502;
2178
2178
  input: {
2179
2179
  query?: {
2180
2180
  chainId?: string | string[];
@@ -2191,9 +2191,34 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2191
2191
  } & {
2192
2192
  "/v1/exchange/pairs/:base": {
2193
2193
  $get: {
2194
- output: null;
2195
- outputFormat: "body";
2196
- status: 402;
2194
+ output: {
2195
+ base: {
2196
+ address: `0x${string}`;
2197
+ currency?: string | undefined;
2198
+ decimals?: number | undefined;
2199
+ logoUri?: string | undefined;
2200
+ name?: string | undefined;
2201
+ symbol?: string | undefined;
2202
+ verified?: boolean | undefined;
2203
+ };
2204
+ blockNumber: number;
2205
+ id: `0x${string}`;
2206
+ key: `0x${string}`;
2207
+ liquidity?: string | undefined;
2208
+ quote: {
2209
+ address: `0x${string}`;
2210
+ currency?: string | undefined;
2211
+ decimals?: number | undefined;
2212
+ logoUri?: string | undefined;
2213
+ name?: string | undefined;
2214
+ symbol?: string | undefined;
2215
+ verified?: boolean | undefined;
2216
+ };
2217
+ timestamp: string;
2218
+ transactionHash: `0x${string}`;
2219
+ };
2220
+ outputFormat: "json";
2221
+ status: 200;
2197
2222
  input: {
2198
2223
  param: {
2199
2224
  base: `0x${string}`;
@@ -2228,14 +2253,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2228
2253
  } | {
2229
2254
  output: {
2230
2255
  error: {
2231
- code: "api_key_invalid" | "api_key_missing";
2256
+ code: "query_invalid";
2232
2257
  details?: readonly Response.error.Detail[] | undefined;
2233
2258
  message: string;
2234
2259
  };
2235
2260
  requestId: string;
2236
2261
  };
2237
2262
  outputFormat: "json";
2238
- status: 401;
2263
+ status: 400;
2239
2264
  input: {
2240
2265
  param: {
2241
2266
  base: `0x${string}`;
@@ -2249,14 +2274,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2249
2274
  } | {
2250
2275
  output: {
2251
2276
  error: {
2252
- code: "api_key_forbidden";
2277
+ code: "pair_invalid";
2253
2278
  details?: readonly Response.error.Detail[] | undefined;
2254
2279
  message: string;
2255
2280
  };
2256
2281
  requestId: string;
2257
2282
  };
2258
2283
  outputFormat: "json";
2259
- status: 403;
2284
+ status: 400;
2260
2285
  input: {
2261
2286
  param: {
2262
2287
  base: `0x${string}`;
@@ -2270,14 +2295,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2270
2295
  } | {
2271
2296
  output: {
2272
2297
  error: {
2273
- code: "payment_required" | "rate_limit_exceeded";
2298
+ code: "api_key_invalid" | "api_key_missing";
2274
2299
  details?: readonly Response.error.Detail[] | undefined;
2275
2300
  message: string;
2276
2301
  };
2277
2302
  requestId: string;
2278
2303
  };
2279
2304
  outputFormat: "json";
2280
- status: 429;
2305
+ status: 401;
2281
2306
  input: {
2282
2307
  param: {
2283
2308
  base: `0x${string}`;
@@ -2289,16 +2314,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2289
2314
  } | undefined;
2290
2315
  };
2291
2316
  } | {
2292
- output: {
2293
- error: {
2294
- code: "query_invalid";
2295
- details?: readonly Response.error.Detail[] | undefined;
2296
- message: string;
2297
- };
2298
- requestId: string;
2299
- };
2300
- outputFormat: "json";
2301
- status: 400;
2317
+ output: null;
2318
+ outputFormat: "body";
2319
+ status: 402;
2302
2320
  input: {
2303
2321
  param: {
2304
2322
  base: `0x${string}`;
@@ -2312,14 +2330,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2312
2330
  } | {
2313
2331
  output: {
2314
2332
  error: {
2315
- code: "upstream_error";
2333
+ code: "api_key_forbidden";
2316
2334
  details?: readonly Response.error.Detail[] | undefined;
2317
2335
  message: string;
2318
2336
  };
2319
2337
  requestId: string;
2320
2338
  };
2321
2339
  outputFormat: "json";
2322
- status: 502;
2340
+ status: 403;
2323
2341
  input: {
2324
2342
  param: {
2325
2343
  base: `0x${string}`;
@@ -2333,14 +2351,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2333
2351
  } | {
2334
2352
  output: {
2335
2353
  error: {
2336
- code: "pair_invalid";
2354
+ code: "pair_not_found";
2337
2355
  details?: readonly Response.error.Detail[] | undefined;
2338
2356
  message: string;
2339
2357
  };
2340
2358
  requestId: string;
2341
2359
  };
2342
2360
  outputFormat: "json";
2343
- status: 400;
2361
+ status: 404;
2344
2362
  input: {
2345
2363
  param: {
2346
2364
  base: `0x${string}`;
@@ -2354,14 +2372,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2354
2372
  } | {
2355
2373
  output: {
2356
2374
  error: {
2357
- code: "pair_not_found";
2375
+ code: "payment_required" | "rate_limit_exceeded";
2358
2376
  details?: readonly Response.error.Detail[] | undefined;
2359
2377
  message: string;
2360
2378
  };
2361
2379
  requestId: string;
2362
2380
  };
2363
2381
  outputFormat: "json";
2364
- status: 404;
2382
+ status: 429;
2365
2383
  input: {
2366
2384
  param: {
2367
2385
  base: `0x${string}`;
@@ -2374,33 +2392,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2374
2392
  };
2375
2393
  } | {
2376
2394
  output: {
2377
- base: {
2378
- address: `0x${string}`;
2379
- currency?: string | undefined;
2380
- decimals?: number | undefined;
2381
- logoUri?: string | undefined;
2382
- name?: string | undefined;
2383
- symbol?: string | undefined;
2384
- verified?: boolean | undefined;
2385
- };
2386
- blockNumber: number;
2387
- id: `0x${string}`;
2388
- key: `0x${string}`;
2389
- liquidity?: string | undefined;
2390
- quote: {
2391
- address: `0x${string}`;
2392
- currency?: string | undefined;
2393
- decimals?: number | undefined;
2394
- logoUri?: string | undefined;
2395
- name?: string | undefined;
2396
- symbol?: string | undefined;
2397
- verified?: boolean | undefined;
2395
+ error: {
2396
+ code: "upstream_error";
2397
+ details?: readonly Response.error.Detail[] | undefined;
2398
+ message: string;
2398
2399
  };
2399
- timestamp: string;
2400
- transactionHash: `0x${string}`;
2400
+ requestId: string;
2401
2401
  };
2402
2402
  outputFormat: "json";
2403
- status: 200;
2403
+ status: 502;
2404
2404
  input: {
2405
2405
  param: {
2406
2406
  base: `0x${string}`;
@@ -2416,9 +2416,52 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2416
2416
  } & {
2417
2417
  "/v1/exchange/orders": {
2418
2418
  $get: {
2419
- output: null;
2420
- outputFormat: "body";
2421
- status: 402;
2419
+ output: {
2420
+ data: {
2421
+ amount: string;
2422
+ blockNumber: number;
2423
+ id: string;
2424
+ logIndex: number;
2425
+ maker: `0x${string}`;
2426
+ orderId: string;
2427
+ placedAt: string;
2428
+ price: string;
2429
+ rate: string;
2430
+ remaining: string;
2431
+ side: "ask" | "bid";
2432
+ tick: number;
2433
+ transactionHash: `0x${string}`;
2434
+ pair: {
2435
+ base: {
2436
+ address: `0x${string}`;
2437
+ currency?: string | undefined;
2438
+ decimals?: number | undefined;
2439
+ logoUri?: string | undefined;
2440
+ name?: string | undefined;
2441
+ symbol?: string | undefined;
2442
+ verified?: boolean | undefined;
2443
+ };
2444
+ key: `0x${string}`;
2445
+ quote: {
2446
+ address: `0x${string}`;
2447
+ currency?: string | undefined;
2448
+ decimals?: number | undefined;
2449
+ logoUri?: string | undefined;
2450
+ name?: string | undefined;
2451
+ symbol?: string | undefined;
2452
+ verified?: boolean | undefined;
2453
+ };
2454
+ };
2455
+ }[];
2456
+ meta?: {
2457
+ totalCountCapped: boolean;
2458
+ totalCount: number;
2459
+ } | undefined;
2460
+ nextCursor: string | null;
2461
+ truncated: boolean;
2462
+ };
2463
+ outputFormat: "json";
2464
+ status: 200;
2422
2465
  input: {
2423
2466
  query?: {
2424
2467
  base?: string | string[];
@@ -2461,14 +2504,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2461
2504
  } | {
2462
2505
  output: {
2463
2506
  error: {
2464
- code: "api_key_invalid" | "api_key_missing";
2507
+ code: "query_invalid";
2465
2508
  details?: readonly Response.error.Detail[] | undefined;
2466
2509
  message: string;
2467
2510
  };
2468
2511
  requestId: string;
2469
2512
  };
2470
2513
  outputFormat: "json";
2471
- status: 401;
2514
+ status: 400;
2472
2515
  input: {
2473
2516
  query?: {
2474
2517
  base?: string | string[];
@@ -2486,14 +2529,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2486
2529
  } | {
2487
2530
  output: {
2488
2531
  error: {
2489
- code: "api_key_forbidden";
2532
+ code: "api_key_invalid" | "api_key_missing";
2490
2533
  details?: readonly Response.error.Detail[] | undefined;
2491
2534
  message: string;
2492
2535
  };
2493
2536
  requestId: string;
2494
2537
  };
2495
2538
  outputFormat: "json";
2496
- status: 403;
2539
+ status: 401;
2497
2540
  input: {
2498
2541
  query?: {
2499
2542
  base?: string | string[];
@@ -2509,16 +2552,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2509
2552
  } | undefined;
2510
2553
  };
2511
2554
  } | {
2512
- output: {
2513
- error: {
2514
- code: "payment_required" | "rate_limit_exceeded";
2515
- details?: readonly Response.error.Detail[] | undefined;
2516
- message: string;
2517
- };
2518
- requestId: string;
2519
- };
2520
- outputFormat: "json";
2521
- status: 429;
2555
+ output: null;
2556
+ outputFormat: "body";
2557
+ status: 402;
2522
2558
  input: {
2523
2559
  query?: {
2524
2560
  base?: string | string[];
@@ -2536,14 +2572,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2536
2572
  } | {
2537
2573
  output: {
2538
2574
  error: {
2539
- code: "query_invalid";
2575
+ code: "api_key_forbidden";
2540
2576
  details?: readonly Response.error.Detail[] | undefined;
2541
2577
  message: string;
2542
2578
  };
2543
2579
  requestId: string;
2544
2580
  };
2545
2581
  outputFormat: "json";
2546
- status: 400;
2582
+ status: 403;
2547
2583
  input: {
2548
2584
  query?: {
2549
2585
  base?: string | string[];
@@ -2561,14 +2597,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2561
2597
  } | {
2562
2598
  output: {
2563
2599
  error: {
2564
- code: "upstream_error";
2600
+ code: "pair_not_found";
2565
2601
  details?: readonly Response.error.Detail[] | undefined;
2566
2602
  message: string;
2567
2603
  };
2568
2604
  requestId: string;
2569
2605
  };
2570
2606
  outputFormat: "json";
2571
- status: 502;
2607
+ status: 404;
2572
2608
  input: {
2573
2609
  query?: {
2574
2610
  base?: string | string[];
@@ -2586,14 +2622,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2586
2622
  } | {
2587
2623
  output: {
2588
2624
  error: {
2589
- code: "pair_not_found";
2625
+ code: "payment_required" | "rate_limit_exceeded";
2590
2626
  details?: readonly Response.error.Detail[] | undefined;
2591
2627
  message: string;
2592
2628
  };
2593
2629
  requestId: string;
2594
2630
  };
2595
2631
  outputFormat: "json";
2596
- status: 404;
2632
+ status: 429;
2597
2633
  input: {
2598
2634
  query?: {
2599
2635
  base?: string | string[];
@@ -2610,51 +2646,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2610
2646
  };
2611
2647
  } | {
2612
2648
  output: {
2613
- data: {
2614
- amount: string;
2615
- blockNumber: number;
2616
- id: string;
2617
- logIndex: number;
2618
- maker: `0x${string}`;
2619
- orderId: string;
2620
- placedAt: string;
2621
- price: string;
2622
- rate: string;
2623
- remaining: string;
2624
- side: "ask" | "bid";
2625
- tick: number;
2626
- transactionHash: `0x${string}`;
2627
- pair: {
2628
- base: {
2629
- address: `0x${string}`;
2630
- currency?: string | undefined;
2631
- decimals?: number | undefined;
2632
- logoUri?: string | undefined;
2633
- name?: string | undefined;
2634
- symbol?: string | undefined;
2635
- verified?: boolean | undefined;
2636
- };
2637
- key: `0x${string}`;
2638
- quote: {
2639
- address: `0x${string}`;
2640
- currency?: string | undefined;
2641
- decimals?: number | undefined;
2642
- logoUri?: string | undefined;
2643
- name?: string | undefined;
2644
- symbol?: string | undefined;
2645
- verified?: boolean | undefined;
2646
- };
2647
- };
2648
- }[];
2649
- meta?: {
2650
- totalCountCapped: boolean;
2651
- totalCount: number;
2652
- } | undefined;
2653
- nextCursor: string | null;
2654
- truncated: boolean;
2649
+ error: {
2650
+ code: "upstream_error";
2651
+ details?: readonly Response.error.Detail[] | undefined;
2652
+ message: string;
2653
+ };
2654
+ requestId: string;
2655
2655
  };
2656
2656
  outputFormat: "json";
2657
- status: 200;
2657
+ status: 502;
2658
2658
  input: {
2659
2659
  query?: {
2660
2660
  base?: string | string[];
@@ -2674,9 +2674,43 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2674
2674
  } & {
2675
2675
  "/v1/exchange/orders/:orderId": {
2676
2676
  $get: {
2677
- output: null;
2678
- outputFormat: "body";
2679
- status: 402;
2677
+ output: {
2678
+ amount: string;
2679
+ flipTick: number;
2680
+ id: string;
2681
+ isBid: boolean;
2682
+ isFlipOrder: boolean;
2683
+ maker: `0x${string}`;
2684
+ mode: "exactDestination" | "exactSource";
2685
+ orderId: string;
2686
+ pair: {
2687
+ base: {
2688
+ address: `0x${string}`;
2689
+ currency?: string | undefined;
2690
+ decimals?: number | undefined;
2691
+ logoUri?: string | undefined;
2692
+ name?: string | undefined;
2693
+ symbol?: string | undefined;
2694
+ verified?: boolean | undefined;
2695
+ };
2696
+ key: `0x${string}`;
2697
+ quote: {
2698
+ address: `0x${string}`;
2699
+ currency?: string | undefined;
2700
+ decimals?: number | undefined;
2701
+ logoUri?: string | undefined;
2702
+ name?: string | undefined;
2703
+ symbol?: string | undefined;
2704
+ verified?: boolean | undefined;
2705
+ };
2706
+ };
2707
+ price: string;
2708
+ rate: string;
2709
+ remaining: string;
2710
+ tick: number;
2711
+ };
2712
+ outputFormat: "json";
2713
+ status: 200;
2680
2714
  input: {
2681
2715
  param: {
2682
2716
  orderId: string;
@@ -2711,14 +2745,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2711
2745
  } | {
2712
2746
  output: {
2713
2747
  error: {
2714
- code: "api_key_invalid" | "api_key_missing";
2748
+ code: "query_invalid";
2715
2749
  details?: readonly Response.error.Detail[] | undefined;
2716
2750
  message: string;
2717
2751
  };
2718
2752
  requestId: string;
2719
2753
  };
2720
2754
  outputFormat: "json";
2721
- status: 401;
2755
+ status: 400;
2722
2756
  input: {
2723
2757
  param: {
2724
2758
  orderId: string;
@@ -2732,14 +2766,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2732
2766
  } | {
2733
2767
  output: {
2734
2768
  error: {
2735
- code: "api_key_forbidden";
2769
+ code: "order_invalid";
2736
2770
  details?: readonly Response.error.Detail[] | undefined;
2737
2771
  message: string;
2738
2772
  };
2739
2773
  requestId: string;
2740
2774
  };
2741
2775
  outputFormat: "json";
2742
- status: 403;
2776
+ status: 400;
2743
2777
  input: {
2744
2778
  param: {
2745
2779
  orderId: string;
@@ -2753,14 +2787,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2753
2787
  } | {
2754
2788
  output: {
2755
2789
  error: {
2756
- code: "payment_required" | "rate_limit_exceeded";
2790
+ code: "api_key_invalid" | "api_key_missing";
2757
2791
  details?: readonly Response.error.Detail[] | undefined;
2758
2792
  message: string;
2759
2793
  };
2760
2794
  requestId: string;
2761
2795
  };
2762
2796
  outputFormat: "json";
2763
- status: 429;
2797
+ status: 401;
2764
2798
  input: {
2765
2799
  param: {
2766
2800
  orderId: string;
@@ -2772,16 +2806,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2772
2806
  } | undefined;
2773
2807
  };
2774
2808
  } | {
2775
- output: {
2776
- error: {
2777
- code: "query_invalid";
2778
- details?: readonly Response.error.Detail[] | undefined;
2779
- message: string;
2780
- };
2781
- requestId: string;
2782
- };
2783
- outputFormat: "json";
2784
- status: 400;
2809
+ output: null;
2810
+ outputFormat: "body";
2811
+ status: 402;
2785
2812
  input: {
2786
2813
  param: {
2787
2814
  orderId: string;
@@ -2795,14 +2822,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2795
2822
  } | {
2796
2823
  output: {
2797
2824
  error: {
2798
- code: "upstream_error";
2825
+ code: "api_key_forbidden";
2799
2826
  details?: readonly Response.error.Detail[] | undefined;
2800
2827
  message: string;
2801
2828
  };
2802
2829
  requestId: string;
2803
2830
  };
2804
2831
  outputFormat: "json";
2805
- status: 502;
2832
+ status: 403;
2806
2833
  input: {
2807
2834
  param: {
2808
2835
  orderId: string;
@@ -2816,14 +2843,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2816
2843
  } | {
2817
2844
  output: {
2818
2845
  error: {
2819
- code: "order_invalid";
2846
+ code: "order_not_found";
2820
2847
  details?: readonly Response.error.Detail[] | undefined;
2821
2848
  message: string;
2822
2849
  };
2823
2850
  requestId: string;
2824
2851
  };
2825
2852
  outputFormat: "json";
2826
- status: 400;
2853
+ status: 404;
2827
2854
  input: {
2828
2855
  param: {
2829
2856
  orderId: string;
@@ -2837,14 +2864,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2837
2864
  } | {
2838
2865
  output: {
2839
2866
  error: {
2840
- code: "order_not_found";
2867
+ code: "payment_required" | "rate_limit_exceeded";
2841
2868
  details?: readonly Response.error.Detail[] | undefined;
2842
2869
  message: string;
2843
2870
  };
2844
2871
  requestId: string;
2845
2872
  };
2846
2873
  outputFormat: "json";
2847
- status: 404;
2874
+ status: 429;
2848
2875
  input: {
2849
2876
  param: {
2850
2877
  orderId: string;
@@ -2857,42 +2884,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2857
2884
  };
2858
2885
  } | {
2859
2886
  output: {
2860
- amount: string;
2861
- flipTick: number;
2862
- id: string;
2863
- isBid: boolean;
2864
- isFlipOrder: boolean;
2865
- maker: `0x${string}`;
2866
- mode: "exactDestination" | "exactSource";
2867
- orderId: string;
2868
- pair: {
2869
- base: {
2870
- address: `0x${string}`;
2871
- currency?: string | undefined;
2872
- decimals?: number | undefined;
2873
- logoUri?: string | undefined;
2874
- name?: string | undefined;
2875
- symbol?: string | undefined;
2876
- verified?: boolean | undefined;
2877
- };
2878
- key: `0x${string}`;
2879
- quote: {
2880
- address: `0x${string}`;
2881
- currency?: string | undefined;
2882
- decimals?: number | undefined;
2883
- logoUri?: string | undefined;
2884
- name?: string | undefined;
2885
- symbol?: string | undefined;
2886
- verified?: boolean | undefined;
2887
- };
2887
+ error: {
2888
+ code: "upstream_error";
2889
+ details?: readonly Response.error.Detail[] | undefined;
2890
+ message: string;
2888
2891
  };
2889
- price: string;
2890
- rate: string;
2891
- remaining: string;
2892
- tick: number;
2892
+ requestId: string;
2893
2893
  };
2894
2894
  outputFormat: "json";
2895
- status: 200;
2895
+ status: 502;
2896
2896
  input: {
2897
2897
  param: {
2898
2898
  orderId: string;
@@ -2908,9 +2908,26 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2908
2908
  } & {
2909
2909
  "/v1/exchange/orders/:orderId/fills": {
2910
2910
  $get: {
2911
- output: null;
2912
- outputFormat: "body";
2913
- status: 402;
2911
+ output: {
2912
+ data: {
2913
+ amountFilled: string;
2914
+ blockNumber: number;
2915
+ filledAt: string;
2916
+ id: string;
2917
+ logIndex: number;
2918
+ orderId: string;
2919
+ partialFill: boolean;
2920
+ taker: `0x${string}`;
2921
+ transactionHash: `0x${string}`;
2922
+ }[];
2923
+ meta?: {
2924
+ totalCountCapped: boolean;
2925
+ totalCount: number;
2926
+ } | undefined;
2927
+ nextCursor: string | null;
2928
+ };
2929
+ outputFormat: "json";
2930
+ status: 200;
2914
2931
  input: {
2915
2932
  param: {
2916
2933
  orderId: string;
@@ -2953,14 +2970,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2953
2970
  } | {
2954
2971
  output: {
2955
2972
  error: {
2956
- code: "api_key_invalid" | "api_key_missing";
2973
+ code: "query_invalid";
2957
2974
  details?: readonly Response.error.Detail[] | undefined;
2958
2975
  message: string;
2959
2976
  };
2960
2977
  requestId: string;
2961
2978
  };
2962
2979
  outputFormat: "json";
2963
- status: 401;
2980
+ status: 400;
2964
2981
  input: {
2965
2982
  param: {
2966
2983
  orderId: string;
@@ -2978,14 +2995,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2978
2995
  } | {
2979
2996
  output: {
2980
2997
  error: {
2981
- code: "api_key_forbidden";
2998
+ code: "order_invalid";
2982
2999
  details?: readonly Response.error.Detail[] | undefined;
2983
3000
  message: string;
2984
3001
  };
2985
3002
  requestId: string;
2986
3003
  };
2987
3004
  outputFormat: "json";
2988
- status: 403;
3005
+ status: 400;
2989
3006
  input: {
2990
3007
  param: {
2991
3008
  orderId: string;
@@ -3003,14 +3020,32 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3003
3020
  } | {
3004
3021
  output: {
3005
3022
  error: {
3006
- code: "payment_required" | "rate_limit_exceeded";
3023
+ code: "api_key_invalid" | "api_key_missing";
3007
3024
  details?: readonly Response.error.Detail[] | undefined;
3008
3025
  message: string;
3009
3026
  };
3010
3027
  requestId: string;
3011
3028
  };
3012
3029
  outputFormat: "json";
3013
- status: 429;
3030
+ status: 401;
3031
+ input: {
3032
+ param: {
3033
+ orderId: string;
3034
+ };
3035
+ } & {
3036
+ query?: {
3037
+ chainId?: string | string[];
3038
+ cursor?: string | string[];
3039
+ include?: string | string[];
3040
+ limit?: string | string[];
3041
+ order?: string | string[];
3042
+ page?: string | string[];
3043
+ } | undefined;
3044
+ };
3045
+ } | {
3046
+ output: null;
3047
+ outputFormat: "body";
3048
+ status: 402;
3014
3049
  input: {
3015
3050
  param: {
3016
3051
  orderId: string;
@@ -3028,14 +3063,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3028
3063
  } | {
3029
3064
  output: {
3030
3065
  error: {
3031
- code: "query_invalid";
3066
+ code: "api_key_forbidden";
3032
3067
  details?: readonly Response.error.Detail[] | undefined;
3033
3068
  message: string;
3034
3069
  };
3035
3070
  requestId: string;
3036
3071
  };
3037
3072
  outputFormat: "json";
3038
- status: 400;
3073
+ status: 403;
3039
3074
  input: {
3040
3075
  param: {
3041
3076
  orderId: string;
@@ -3053,14 +3088,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3053
3088
  } | {
3054
3089
  output: {
3055
3090
  error: {
3056
- code: "upstream_error";
3091
+ code: "payment_required" | "rate_limit_exceeded";
3057
3092
  details?: readonly Response.error.Detail[] | undefined;
3058
3093
  message: string;
3059
3094
  };
3060
3095
  requestId: string;
3061
3096
  };
3062
3097
  outputFormat: "json";
3063
- status: 502;
3098
+ status: 429;
3064
3099
  input: {
3065
3100
  param: {
3066
3101
  orderId: string;
@@ -3078,14 +3113,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3078
3113
  } | {
3079
3114
  output: {
3080
3115
  error: {
3081
- code: "order_invalid";
3116
+ code: "upstream_error";
3082
3117
  details?: readonly Response.error.Detail[] | undefined;
3083
3118
  message: string;
3084
3119
  };
3085
3120
  requestId: string;
3086
3121
  };
3087
3122
  outputFormat: "json";
3088
- status: 400;
3123
+ status: 502;
3089
3124
  input: {
3090
3125
  param: {
3091
3126
  orderId: string;
@@ -3100,49 +3135,49 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3100
3135
  page?: string | string[];
3101
3136
  } | undefined;
3102
3137
  };
3103
- } | {
3138
+ };
3139
+ };
3140
+ } & {
3141
+ "/v1/exchange/pairs/:base/ohlc": {
3142
+ $get: {
3104
3143
  output: {
3144
+ base: {
3145
+ address: `0x${string}`;
3146
+ currency?: string | undefined;
3147
+ decimals?: number | undefined;
3148
+ logoUri?: string | undefined;
3149
+ name?: string | undefined;
3150
+ symbol?: string | undefined;
3151
+ verified?: boolean | undefined;
3152
+ };
3105
3153
  data: {
3106
- amountFilled: string;
3107
- blockNumber: number;
3108
- filledAt: string;
3154
+ close: string;
3155
+ fillCount: number;
3156
+ high: string;
3109
3157
  id: string;
3110
- logIndex: number;
3111
- orderId: string;
3112
- partialFill: boolean;
3113
- taker: `0x${string}`;
3114
- transactionHash: `0x${string}`;
3158
+ low: string;
3159
+ open: string;
3160
+ timestamp: string;
3161
+ volume: {
3162
+ base: string;
3163
+ quote: string;
3164
+ };
3115
3165
  }[];
3116
- meta?: {
3117
- totalCountCapped: boolean;
3118
- totalCount: number;
3119
- } | undefined;
3120
- nextCursor: string | null;
3166
+ interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
3167
+ quote: {
3168
+ address: `0x${string}`;
3169
+ currency?: string | undefined;
3170
+ decimals?: number | undefined;
3171
+ logoUri?: string | undefined;
3172
+ name?: string | undefined;
3173
+ symbol?: string | undefined;
3174
+ verified?: boolean | undefined;
3175
+ };
3176
+ truncated: boolean;
3177
+ window: "1h" | "24h" | "30d" | "7d";
3121
3178
  };
3122
3179
  outputFormat: "json";
3123
3180
  status: 200;
3124
- input: {
3125
- param: {
3126
- orderId: string;
3127
- };
3128
- } & {
3129
- query?: {
3130
- chainId?: string | string[];
3131
- cursor?: string | string[];
3132
- include?: string | string[];
3133
- limit?: string | string[];
3134
- order?: string | string[];
3135
- page?: string | string[];
3136
- } | undefined;
3137
- };
3138
- };
3139
- };
3140
- } & {
3141
- "/v1/exchange/pairs/:base/ohlc": {
3142
- $get: {
3143
- output: null;
3144
- outputFormat: "body";
3145
- status: 402;
3146
3181
  input: {
3147
3182
  param: {
3148
3183
  base: `0x${string}`;
@@ -3181,14 +3216,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3181
3216
  } | {
3182
3217
  output: {
3183
3218
  error: {
3184
- code: "api_key_invalid" | "api_key_missing";
3219
+ code: "query_invalid";
3185
3220
  details?: readonly Response.error.Detail[] | undefined;
3186
3221
  message: string;
3187
3222
  };
3188
3223
  requestId: string;
3189
3224
  };
3190
3225
  outputFormat: "json";
3191
- status: 401;
3226
+ status: 400;
3192
3227
  input: {
3193
3228
  param: {
3194
3229
  base: `0x${string}`;
@@ -3204,14 +3239,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3204
3239
  } | {
3205
3240
  output: {
3206
3241
  error: {
3207
- code: "api_key_forbidden";
3242
+ code: "pair_invalid";
3208
3243
  details?: readonly Response.error.Detail[] | undefined;
3209
3244
  message: string;
3210
3245
  };
3211
3246
  requestId: string;
3212
3247
  };
3213
3248
  outputFormat: "json";
3214
- status: 403;
3249
+ status: 400;
3215
3250
  input: {
3216
3251
  param: {
3217
3252
  base: `0x${string}`;
@@ -3227,14 +3262,30 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3227
3262
  } | {
3228
3263
  output: {
3229
3264
  error: {
3230
- code: "payment_required" | "rate_limit_exceeded";
3265
+ code: "api_key_invalid" | "api_key_missing";
3231
3266
  details?: readonly Response.error.Detail[] | undefined;
3232
3267
  message: string;
3233
3268
  };
3234
3269
  requestId: string;
3235
3270
  };
3236
3271
  outputFormat: "json";
3237
- status: 429;
3272
+ status: 401;
3273
+ input: {
3274
+ param: {
3275
+ base: `0x${string}`;
3276
+ };
3277
+ } & {
3278
+ query?: {
3279
+ chainId?: string | string[];
3280
+ include?: string | string[];
3281
+ interval?: string | string[];
3282
+ window?: string | string[];
3283
+ } | undefined;
3284
+ };
3285
+ } | {
3286
+ output: null;
3287
+ outputFormat: "body";
3288
+ status: 402;
3238
3289
  input: {
3239
3290
  param: {
3240
3291
  base: `0x${string}`;
@@ -3250,14 +3301,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3250
3301
  } | {
3251
3302
  output: {
3252
3303
  error: {
3253
- code: "query_invalid";
3304
+ code: "api_key_forbidden";
3254
3305
  details?: readonly Response.error.Detail[] | undefined;
3255
3306
  message: string;
3256
3307
  };
3257
3308
  requestId: string;
3258
3309
  };
3259
3310
  outputFormat: "json";
3260
- status: 400;
3311
+ status: 403;
3261
3312
  input: {
3262
3313
  param: {
3263
3314
  base: `0x${string}`;
@@ -3273,14 +3324,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3273
3324
  } | {
3274
3325
  output: {
3275
3326
  error: {
3276
- code: "upstream_error";
3327
+ code: "pair_not_found";
3277
3328
  details?: readonly Response.error.Detail[] | undefined;
3278
3329
  message: string;
3279
3330
  };
3280
3331
  requestId: string;
3281
3332
  };
3282
3333
  outputFormat: "json";
3283
- status: 502;
3334
+ status: 404;
3284
3335
  input: {
3285
3336
  param: {
3286
3337
  base: `0x${string}`;
@@ -3296,14 +3347,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3296
3347
  } | {
3297
3348
  output: {
3298
3349
  error: {
3299
- code: "pair_invalid";
3350
+ code: "payment_required" | "rate_limit_exceeded";
3300
3351
  details?: readonly Response.error.Detail[] | undefined;
3301
3352
  message: string;
3302
3353
  };
3303
3354
  requestId: string;
3304
3355
  };
3305
3356
  outputFormat: "json";
3306
- status: 400;
3357
+ status: 429;
3307
3358
  input: {
3308
3359
  param: {
3309
3360
  base: `0x${string}`;
@@ -3319,14 +3370,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3319
3370
  } | {
3320
3371
  output: {
3321
3372
  error: {
3322
- code: "pair_not_found";
3373
+ code: "upstream_error";
3323
3374
  details?: readonly Response.error.Detail[] | undefined;
3324
3375
  message: string;
3325
3376
  };
3326
3377
  requestId: string;
3327
3378
  };
3328
3379
  outputFormat: "json";
3329
- status: 404;
3380
+ status: 502;
3330
3381
  input: {
3331
3382
  param: {
3332
3383
  base: `0x${string}`;
@@ -3339,8 +3390,19 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3339
3390
  window?: string | string[];
3340
3391
  } | undefined;
3341
3392
  };
3342
- } | {
3393
+ };
3394
+ };
3395
+ } & {
3396
+ "/v1/exchange/pairs/:base/depth": {
3397
+ $get: {
3343
3398
  output: {
3399
+ asks: {
3400
+ cumulativeSize: string;
3401
+ id: string;
3402
+ price: string;
3403
+ size: string;
3404
+ tick: number;
3405
+ }[];
3344
3406
  base: {
3345
3407
  address: `0x${string}`;
3346
3408
  currency?: string | undefined;
@@ -3350,20 +3412,13 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3350
3412
  symbol?: string | undefined;
3351
3413
  verified?: boolean | undefined;
3352
3414
  };
3353
- data: {
3354
- close: string;
3355
- fillCount: number;
3356
- high: string;
3415
+ bids: {
3416
+ cumulativeSize: string;
3357
3417
  id: string;
3358
- low: string;
3359
- open: string;
3360
- timestamp: string;
3361
- volume: {
3362
- base: string;
3363
- quote: string;
3364
- };
3418
+ price: string;
3419
+ size: string;
3420
+ tick: number;
3365
3421
  }[];
3366
- interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
3367
3422
  quote: {
3368
3423
  address: `0x${string}`;
3369
3424
  currency?: string | undefined;
@@ -3373,31 +3428,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3373
3428
  symbol?: string | undefined;
3374
3429
  verified?: boolean | undefined;
3375
3430
  };
3376
- truncated: boolean;
3377
- window: "1h" | "24h" | "30d" | "7d";
3378
3431
  };
3379
3432
  outputFormat: "json";
3380
3433
  status: 200;
3381
- input: {
3382
- param: {
3383
- base: `0x${string}`;
3384
- };
3385
- } & {
3386
- query?: {
3387
- chainId?: string | string[];
3388
- include?: string | string[];
3389
- interval?: string | string[];
3390
- window?: string | string[];
3391
- } | undefined;
3392
- };
3393
- };
3394
- };
3395
- } & {
3396
- "/v1/exchange/pairs/:base/depth": {
3397
- $get: {
3398
- output: null;
3399
- outputFormat: "body";
3400
- status: 402;
3401
3434
  input: {
3402
3435
  param: {
3403
3436
  base: `0x${string}`;
@@ -3434,14 +3467,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3434
3467
  } | {
3435
3468
  output: {
3436
3469
  error: {
3437
- code: "api_key_invalid" | "api_key_missing";
3470
+ code: "query_invalid";
3438
3471
  details?: readonly Response.error.Detail[] | undefined;
3439
3472
  message: string;
3440
3473
  };
3441
3474
  requestId: string;
3442
3475
  };
3443
3476
  outputFormat: "json";
3444
- status: 401;
3477
+ status: 400;
3445
3478
  input: {
3446
3479
  param: {
3447
3480
  base: `0x${string}`;
@@ -3456,14 +3489,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3456
3489
  } | {
3457
3490
  output: {
3458
3491
  error: {
3459
- code: "api_key_forbidden";
3492
+ code: "pair_invalid";
3460
3493
  details?: readonly Response.error.Detail[] | undefined;
3461
3494
  message: string;
3462
3495
  };
3463
3496
  requestId: string;
3464
3497
  };
3465
3498
  outputFormat: "json";
3466
- status: 403;
3499
+ status: 400;
3467
3500
  input: {
3468
3501
  param: {
3469
3502
  base: `0x${string}`;
@@ -3478,14 +3511,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3478
3511
  } | {
3479
3512
  output: {
3480
3513
  error: {
3481
- code: "payment_required" | "rate_limit_exceeded";
3514
+ code: "api_key_invalid" | "api_key_missing";
3482
3515
  details?: readonly Response.error.Detail[] | undefined;
3483
3516
  message: string;
3484
3517
  };
3485
3518
  requestId: string;
3486
3519
  };
3487
3520
  outputFormat: "json";
3488
- status: 429;
3521
+ status: 401;
3489
3522
  input: {
3490
3523
  param: {
3491
3524
  base: `0x${string}`;
@@ -3498,16 +3531,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3498
3531
  } | undefined;
3499
3532
  };
3500
3533
  } | {
3501
- output: {
3502
- error: {
3503
- code: "query_invalid";
3504
- details?: readonly Response.error.Detail[] | undefined;
3505
- message: string;
3506
- };
3507
- requestId: string;
3508
- };
3509
- outputFormat: "json";
3510
- status: 400;
3534
+ output: null;
3535
+ outputFormat: "body";
3536
+ status: 402;
3511
3537
  input: {
3512
3538
  param: {
3513
3539
  base: `0x${string}`;
@@ -3522,14 +3548,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3522
3548
  } | {
3523
3549
  output: {
3524
3550
  error: {
3525
- code: "upstream_error";
3551
+ code: "api_key_forbidden";
3526
3552
  details?: readonly Response.error.Detail[] | undefined;
3527
3553
  message: string;
3528
3554
  };
3529
3555
  requestId: string;
3530
3556
  };
3531
3557
  outputFormat: "json";
3532
- status: 502;
3558
+ status: 403;
3533
3559
  input: {
3534
3560
  param: {
3535
3561
  base: `0x${string}`;
@@ -3544,14 +3570,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3544
3570
  } | {
3545
3571
  output: {
3546
3572
  error: {
3547
- code: "pair_invalid";
3573
+ code: "pair_not_found";
3548
3574
  details?: readonly Response.error.Detail[] | undefined;
3549
3575
  message: string;
3550
3576
  };
3551
3577
  requestId: string;
3552
3578
  };
3553
3579
  outputFormat: "json";
3554
- status: 400;
3580
+ status: 404;
3555
3581
  input: {
3556
3582
  param: {
3557
3583
  base: `0x${string}`;
@@ -3566,14 +3592,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3566
3592
  } | {
3567
3593
  output: {
3568
3594
  error: {
3569
- code: "pair_not_found";
3595
+ code: "payment_required" | "rate_limit_exceeded";
3570
3596
  details?: readonly Response.error.Detail[] | undefined;
3571
3597
  message: string;
3572
3598
  };
3573
3599
  requestId: string;
3574
3600
  };
3575
3601
  outputFormat: "json";
3576
- status: 404;
3602
+ status: 429;
3577
3603
  input: {
3578
3604
  param: {
3579
3605
  base: `0x${string}`;
@@ -3587,41 +3613,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3587
3613
  };
3588
3614
  } | {
3589
3615
  output: {
3590
- asks: {
3591
- cumulativeSize: string;
3592
- id: string;
3593
- price: string;
3594
- size: string;
3595
- tick: number;
3596
- }[];
3597
- base: {
3598
- address: `0x${string}`;
3599
- currency?: string | undefined;
3600
- decimals?: number | undefined;
3601
- logoUri?: string | undefined;
3602
- name?: string | undefined;
3603
- symbol?: string | undefined;
3604
- verified?: boolean | undefined;
3605
- };
3606
- bids: {
3607
- cumulativeSize: string;
3608
- id: string;
3609
- price: string;
3610
- size: string;
3611
- tick: number;
3612
- }[];
3613
- quote: {
3614
- address: `0x${string}`;
3615
- currency?: string | undefined;
3616
- decimals?: number | undefined;
3617
- logoUri?: string | undefined;
3618
- name?: string | undefined;
3619
- symbol?: string | undefined;
3620
- verified?: boolean | undefined;
3616
+ error: {
3617
+ code: "upstream_error";
3618
+ details?: readonly Response.error.Detail[] | undefined;
3619
+ message: string;
3621
3620
  };
3621
+ requestId: string;
3622
3622
  };
3623
3623
  outputFormat: "json";
3624
- status: 200;
3624
+ status: 502;
3625
3625
  input: {
3626
3626
  param: {
3627
3627
  base: `0x${string}`;