tapimo 0.10.0 → 0.10.2

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 (295) hide show
  1. package/dist/ApiKey.d.ts +2 -1
  2. package/dist/ApiKey.d.ts.map +1 -1
  3. package/dist/ApiKeys.d.ts +4 -2
  4. package/dist/ApiKeys.d.ts.map +1 -1
  5. package/dist/ApiKeys.js +26 -1
  6. package/dist/ApiKeys.js.map +1 -1
  7. package/dist/App.d.ts +6007 -5003
  8. package/dist/App.d.ts.map +1 -1
  9. package/dist/App.js +1 -0
  10. package/dist/App.js.map +1 -1
  11. package/dist/Webhooks.d.ts +1 -1
  12. package/dist/Webhooks.d.ts.map +1 -1
  13. package/dist/Webhooks.js +6 -6
  14. package/dist/Webhooks.js.map +1 -1
  15. package/dist/admin/App.d.ts +91 -84
  16. package/dist/admin/App.d.ts.map +1 -1
  17. package/dist/admin/apps/api-keys.d.ts +22 -13
  18. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  19. package/dist/admin/apps/api-keys.js +6 -0
  20. package/dist/admin/apps/api-keys.js.map +1 -1
  21. package/dist/admin/apps/organizations.d.ts +4 -2
  22. package/dist/admin/apps/organizations.d.ts.map +1 -1
  23. package/dist/admin/ui.generated.d.ts +1 -1
  24. package/dist/admin/ui.generated.js +69 -69
  25. package/dist/admin/ui.generated.js.map +1 -1
  26. package/dist/analytics/Analytics.d.ts.map +1 -1
  27. package/dist/analytics/Analytics.js +232 -0
  28. package/dist/analytics/Analytics.js.map +1 -1
  29. package/dist/analytics/tables/requestEvents.d.ts +4 -0
  30. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  31. package/dist/analytics/tables/requestEvents.js +2 -0
  32. package/dist/analytics/tables/requestEvents.js.map +1 -1
  33. package/dist/apps/Zones.d.ts +4266 -82
  34. package/dist/apps/Zones.d.ts.map +1 -1
  35. package/dist/apps/Zones.js +27 -8
  36. package/dist/apps/Zones.js.map +1 -1
  37. package/dist/apps/data/App.d.ts +3467 -2696
  38. package/dist/apps/data/App.d.ts.map +1 -1
  39. package/dist/apps/data/App.js +2 -0
  40. package/dist/apps/data/App.js.map +1 -1
  41. package/dist/apps/data/routes/activities.d.ts +2999 -100
  42. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  43. package/dist/apps/data/routes/activities.js +340 -2
  44. package/dist/apps/data/routes/activities.js.map +1 -1
  45. package/dist/apps/data/routes/addresses.d.ts +514 -0
  46. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  47. package/dist/apps/data/routes/balances.d.ts +26 -26
  48. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  49. package/dist/apps/data/routes/balances.js +7 -3
  50. package/dist/apps/data/routes/balances.js.map +1 -1
  51. package/dist/apps/data/routes/blocks.d.ts +4 -4
  52. package/dist/apps/data/routes/earn.d.ts +75 -75
  53. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  54. package/dist/apps/data/routes/earn.js +65 -36
  55. package/dist/apps/data/routes/earn.js.map +1 -1
  56. package/dist/apps/data/routes/exchanges.d.ts +124 -120
  57. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  58. package/dist/apps/data/routes/exchanges.js +115 -77
  59. package/dist/apps/data/routes/exchanges.js.map +1 -1
  60. package/dist/apps/data/routes/fee-amm.d.ts +24 -24
  61. package/dist/apps/data/routes/indexer.d.ts +2 -1
  62. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  63. package/dist/apps/data/routes/indexer.js +3 -2
  64. package/dist/apps/data/routes/indexer.js.map +1 -1
  65. package/dist/apps/data/routes/receipts.d.ts +4 -3
  66. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  67. package/dist/apps/data/routes/receipts.js +15 -14
  68. package/dist/apps/data/routes/receipts.js.map +1 -1
  69. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  70. package/dist/apps/data/routes/rpc.js +5 -1
  71. package/dist/apps/data/routes/rpc.js.map +1 -1
  72. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  73. package/dist/apps/data/routes/tokens.d.ts +1 -1
  74. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  75. package/dist/apps/data/routes/tokens.js +4 -3
  76. package/dist/apps/data/routes/tokens.js.map +1 -1
  77. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  78. package/dist/apps/data/routes/transfers.js +25 -7
  79. package/dist/apps/data/routes/transfers.js.map +1 -1
  80. package/dist/apps/data/routes/verified-tokens.d.ts +37 -37
  81. package/dist/apps/data/routes/webhooks.d.ts +71 -1
  82. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  83. package/dist/apps/data/routes/webhooks.js +177 -23
  84. package/dist/apps/data/routes/webhooks.js.map +1 -1
  85. package/dist/apps/data/routes/zones.js +1 -1
  86. package/dist/apps/data/routes/zones.js.map +1 -1
  87. package/dist/apps/funding/App.d.ts +322 -89
  88. package/dist/apps/funding/App.d.ts.map +1 -1
  89. package/dist/apps/funding/routes/deposit-addresses.d.ts +375 -45
  90. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  91. package/dist/apps/funding/routes/deposit-addresses.js +208 -12
  92. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  93. package/dist/apps/funding/routes/transfers.d.ts +32 -32
  94. package/dist/apps/funding/routes/transfers.js +1 -1
  95. package/dist/apps/funding/routes/transfers.js.map +1 -1
  96. package/dist/apps/management/App.d.ts +418 -418
  97. package/dist/apps/management/routes/api-keys.d.ts +50 -50
  98. package/dist/apps/management/routes/billing.d.ts +72 -72
  99. package/dist/apps/management/routes/billing.js +1 -1
  100. package/dist/apps/management/routes/billing.js.map +1 -1
  101. package/dist/apps/management/routes/faucet.d.ts +8 -8
  102. package/dist/apps/management/routes/faucet.js +2 -2
  103. package/dist/apps/management/routes/faucet.js.map +1 -1
  104. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  105. package/dist/apps/management/routes/me.d.ts +6 -6
  106. package/dist/apps/management/routes/members.d.ts +14 -14
  107. package/dist/apps/management/routes/projects.d.ts +40 -40
  108. package/dist/apps/management/routes/usage.d.ts +8 -8
  109. package/dist/apps/management/routes/webhooks.d.ts +49 -49
  110. package/dist/apps/mcp.d.ts.map +1 -1
  111. package/dist/apps/mcp.js +4 -1
  112. package/dist/apps/mcp.js.map +1 -1
  113. package/dist/db/Db.d.ts +2 -0
  114. package/dist/db/Db.d.ts.map +1 -1
  115. package/dist/db/Db.js +90 -0
  116. package/dist/db/Db.js.map +1 -1
  117. package/dist/db/Schema.d.ts +19 -0
  118. package/dist/db/Schema.d.ts.map +1 -1
  119. package/dist/db/Schema.js +24 -0
  120. package/dist/db/Schema.js.map +1 -1
  121. package/dist/db/tables/fundingDepositAddresses.d.ts +20 -0
  122. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  123. package/dist/db/tables/fundingDepositAddresses.js +17 -0
  124. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  125. package/dist/db/tables/fundingDeposits.d.ts +41 -0
  126. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  127. package/dist/db/tables/fundingDeposits.js +69 -0
  128. package/dist/db/tables/fundingDeposits.js.map +1 -1
  129. package/dist/db/tables/webhookQueueEvents.d.ts +122 -0
  130. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -0
  131. package/dist/db/tables/webhookQueueEvents.js +160 -0
  132. package/dist/db/tables/webhookQueueEvents.js.map +1 -0
  133. package/dist/db/tables/webhookSubscriptions.d.ts +2 -0
  134. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  135. package/dist/db/tables/webhookSubscriptions.js +10 -0
  136. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  137. package/dist/internal/Auth.d.ts +3 -26
  138. package/dist/internal/Auth.d.ts.map +1 -1
  139. package/dist/internal/Auth.js +6 -37
  140. package/dist/internal/Auth.js.map +1 -1
  141. package/dist/internal/Credential.d.ts +27 -0
  142. package/dist/internal/Credential.d.ts.map +1 -0
  143. package/dist/internal/Credential.js +34 -0
  144. package/dist/internal/Credential.js.map +1 -0
  145. package/dist/internal/EarnRates.js +11 -7
  146. package/dist/internal/EarnRates.js.map +1 -1
  147. package/dist/internal/Log.d.ts +8 -0
  148. package/dist/internal/Log.d.ts.map +1 -1
  149. package/dist/internal/Log.js +4 -0
  150. package/dist/internal/Log.js.map +1 -1
  151. package/dist/internal/MetricSink.d.ts +51 -0
  152. package/dist/internal/MetricSink.d.ts.map +1 -1
  153. package/dist/internal/MetricSink.js +54 -2
  154. package/dist/internal/MetricSink.js.map +1 -1
  155. package/dist/internal/RateLimit.d.ts +4 -6
  156. package/dist/internal/RateLimit.d.ts.map +1 -1
  157. package/dist/internal/RateLimit.js +15 -14
  158. package/dist/internal/RateLimit.js.map +1 -1
  159. package/dist/internal/Store.d.ts +2 -1
  160. package/dist/internal/Store.d.ts.map +1 -1
  161. package/dist/internal/Store.js +57 -18
  162. package/dist/internal/Store.js.map +1 -1
  163. package/dist/internal/Tidx.d.ts +4 -3
  164. package/dist/internal/Tidx.d.ts.map +1 -1
  165. package/dist/internal/Tidx.js +2 -2
  166. package/dist/internal/Tidx.js.map +1 -1
  167. package/dist/internal/Value.d.ts +2 -0
  168. package/dist/internal/Value.d.ts.map +1 -1
  169. package/dist/internal/Value.js +25 -0
  170. package/dist/internal/Value.js.map +1 -1
  171. package/dist/internal/Viem.d.ts +4 -3
  172. package/dist/internal/Viem.d.ts.map +1 -1
  173. package/dist/internal/Viem.js +3 -2
  174. package/dist/internal/Viem.js.map +1 -1
  175. package/dist/internal/WebhookTransfer.d.ts +20 -0
  176. package/dist/internal/WebhookTransfer.d.ts.map +1 -1
  177. package/dist/internal/WebhookTransfer.js +7 -4
  178. package/dist/internal/WebhookTransfer.js.map +1 -1
  179. package/dist/internal/Webhooks.d.ts +141 -0
  180. package/dist/internal/Webhooks.d.ts.map +1 -1
  181. package/dist/internal/Webhooks.js +139 -10
  182. package/dist/internal/Webhooks.js.map +1 -1
  183. package/dist/internal/funding/providers/relay.d.ts +3 -4
  184. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  185. package/dist/internal/funding/providers/relay.js +59 -8
  186. package/dist/internal/funding/providers/relay.js.map +1 -1
  187. package/dist/internal/index.d.ts +1 -0
  188. package/dist/internal/index.d.ts.map +1 -1
  189. package/dist/internal/index.js +1 -0
  190. package/dist/internal/index.js.map +1 -1
  191. package/package.json +3 -3
  192. package/src/ApiKeys.test.ts +20 -0
  193. package/src/ApiKeys.ts +28 -1
  194. package/src/App.test.ts +40 -8
  195. package/src/App.ts +1 -0
  196. package/src/Client.test-d.ts +34 -1
  197. package/src/Webhooks.ts +20 -18
  198. package/src/admin/apps/api-keys.test.ts +9 -0
  199. package/src/admin/apps/api-keys.ts +15 -0
  200. package/src/admin/ui/src/lib/query-client.ts +3 -2
  201. package/src/admin/ui/src/routes/api-keys.tsx +31 -9
  202. package/src/admin/ui.generated.ts +69 -69
  203. package/src/analytics/Analytics.test.ts +42 -0
  204. package/src/analytics/Analytics.ts +232 -0
  205. package/src/analytics/tables/requestEvents.ts +6 -0
  206. package/src/apps/Zones.test.ts +20 -3
  207. package/src/apps/Zones.ts +28 -8
  208. package/src/apps/composition.test.ts +2 -0
  209. package/src/apps/data/App.test.ts +2 -2
  210. package/src/apps/data/App.ts +2 -0
  211. package/src/apps/data/routes/activities.bench.ts +41 -0
  212. package/src/apps/data/routes/activities.test.ts +103 -2
  213. package/src/apps/data/routes/activities.ts +401 -2
  214. package/src/apps/data/routes/balances.bench.ts +21 -0
  215. package/src/apps/data/routes/balances.ts +7 -3
  216. package/src/apps/data/routes/blocks.bench.ts +34 -0
  217. package/src/apps/data/routes/coingecko.bench.ts +53 -0
  218. package/src/apps/data/routes/earn.bench.ts +71 -0
  219. package/src/apps/data/routes/earn.ts +66 -36
  220. package/src/apps/data/routes/exchanges.bench.ts +85 -0
  221. package/src/apps/data/routes/exchanges.test.ts +8 -3
  222. package/src/apps/data/routes/exchanges.ts +134 -82
  223. package/src/apps/data/routes/fee-amm.bench.ts +13 -0
  224. package/src/apps/data/routes/indexer.bench.ts +8 -0
  225. package/src/apps/data/routes/indexer.test.ts +2 -1
  226. package/src/apps/data/routes/indexer.ts +3 -2
  227. package/src/apps/data/routes/receipts.bench.ts +39 -0
  228. package/src/apps/data/routes/receipts.ts +16 -14
  229. package/src/apps/data/routes/rpc.bench.ts +14 -0
  230. package/src/apps/data/routes/rpc.test.ts +27 -0
  231. package/src/apps/data/routes/rpc.ts +5 -1
  232. package/src/apps/data/routes/tokenlist.bench.ts +3 -0
  233. package/src/apps/data/routes/tokens.bench.ts +76 -0
  234. package/src/apps/data/routes/tokens.ts +3 -2
  235. package/src/apps/data/routes/transactions.bench.ts +48 -0
  236. package/src/apps/data/routes/transfers.bench.ts +28 -0
  237. package/src/apps/data/routes/transfers.ts +36 -10
  238. package/src/apps/data/routes/valuation.bench.ts +14 -0
  239. package/src/apps/data/routes/verified-tokens.bench.ts +8 -0
  240. package/src/apps/data/routes/webhooks.bench.ts +26 -0
  241. package/src/apps/data/routes/webhooks.scan.test.ts +326 -0
  242. package/src/apps/data/routes/webhooks.test.ts +53 -6
  243. package/src/apps/data/routes/webhooks.ts +252 -24
  244. package/src/apps/data/routes/zones.bench.ts +32 -0
  245. package/src/apps/data/routes/zones.test.ts +1 -1
  246. package/src/apps/data/routes/zones.ts +1 -1
  247. package/src/apps/funding/routes/chains.test.ts +1 -1
  248. package/src/apps/funding/routes/deposit-addresses.test.ts +217 -3
  249. package/src/apps/funding/routes/deposit-addresses.ts +255 -19
  250. package/src/apps/funding/routes/providers.test.ts +1 -1
  251. package/src/apps/funding/routes/quotes.test.ts +1 -1
  252. package/src/apps/funding/routes/transfers.test.ts +20 -8
  253. package/src/apps/funding/routes/transfers.ts +1 -1
  254. package/src/apps/management/routes/billing.ts +1 -1
  255. package/src/apps/management/routes/faucet.ts +2 -2
  256. package/src/apps/management/routes/me.test.ts +31 -0
  257. package/src/apps/mcp.ts +4 -1
  258. package/src/db/Db.ts +117 -0
  259. package/src/db/Schema.ts +32 -0
  260. package/src/db/tables/fundingDepositAddresses.test.ts +28 -0
  261. package/src/db/tables/fundingDepositAddresses.ts +39 -0
  262. package/src/db/tables/fundingDeposits.test.ts +82 -0
  263. package/src/db/tables/fundingDeposits.ts +130 -0
  264. package/src/db/tables/webhookQueueEvents.ts +285 -0
  265. package/src/db/tables/webhookSubscriptions.ts +15 -0
  266. package/src/internal/Auth.test.ts +61 -98
  267. package/src/internal/Auth.ts +9 -63
  268. package/src/internal/Credential.test.ts +51 -0
  269. package/src/internal/Credential.ts +58 -0
  270. package/src/internal/EarnRates.ts +13 -7
  271. package/src/internal/EarnVaults.test.ts +2 -2
  272. package/src/internal/Log.test.ts +3 -1
  273. package/src/internal/Log.ts +14 -0
  274. package/src/internal/MetricSink.test.ts +108 -2
  275. package/src/internal/MetricSink.ts +112 -2
  276. package/src/internal/RateLimit.test.ts +23 -18
  277. package/src/internal/RateLimit.ts +23 -15
  278. package/src/internal/Store.test.ts +99 -13
  279. package/src/internal/Store.ts +52 -17
  280. package/src/internal/Tidx.test.ts +4 -4
  281. package/src/internal/Tidx.ts +5 -4
  282. package/src/internal/Value.test.ts +25 -0
  283. package/src/internal/Value.ts +29 -0
  284. package/src/internal/Viem.test.ts +4 -0
  285. package/src/internal/Viem.ts +6 -4
  286. package/src/internal/WebhookTransfer.test.ts +89 -0
  287. package/src/internal/WebhookTransfer.ts +11 -7
  288. package/src/internal/Webhooks.test.ts +488 -0
  289. package/src/internal/Webhooks.ts +291 -10
  290. package/src/internal/funding/Provider.test.ts +1 -1
  291. package/src/internal/funding/providers/index.test.ts +73 -3
  292. package/src/internal/funding/providers/relay.test.ts +1 -5
  293. package/src/internal/funding/providers/relay.ts +56 -12
  294. package/src/internal/index.test.ts +1 -0
  295. package/src/internal/index.ts +1 -0
@@ -1611,14 +1611,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1611
1611
  } | {
1612
1612
  output: {
1613
1613
  error: {
1614
- code: "upstream_error";
1614
+ code: "api_key_malformed";
1615
1615
  details?: readonly Response.error.Detail[] | undefined;
1616
1616
  message: string;
1617
1617
  };
1618
1618
  requestId: string;
1619
1619
  };
1620
1620
  outputFormat: "json";
1621
- status: 502;
1621
+ status: 400;
1622
1622
  input: {
1623
1623
  query?: {
1624
1624
  chainId?: string | string[];
@@ -1638,14 +1638,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1638
1638
  } | {
1639
1639
  output: {
1640
1640
  error: {
1641
- code: "api_key_malformed";
1641
+ code: "api_key_invalid" | "api_key_missing";
1642
1642
  details?: readonly Response.error.Detail[] | undefined;
1643
1643
  message: string;
1644
1644
  };
1645
1645
  requestId: string;
1646
1646
  };
1647
1647
  outputFormat: "json";
1648
- status: 400;
1648
+ status: 401;
1649
1649
  input: {
1650
1650
  query?: {
1651
1651
  chainId?: string | string[];
@@ -1665,14 +1665,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1665
1665
  } | {
1666
1666
  output: {
1667
1667
  error: {
1668
- code: "api_key_invalid" | "api_key_missing";
1668
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1669
1669
  details?: readonly Response.error.Detail[] | undefined;
1670
1670
  message: string;
1671
1671
  };
1672
1672
  requestId: string;
1673
1673
  };
1674
1674
  outputFormat: "json";
1675
- status: 401;
1675
+ status: 403;
1676
1676
  input: {
1677
1677
  query?: {
1678
1678
  chainId?: string | string[];
@@ -1692,14 +1692,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1692
1692
  } | {
1693
1693
  output: {
1694
1694
  error: {
1695
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1695
+ code: "payment_required" | "rate_limit_exceeded";
1696
1696
  details?: readonly Response.error.Detail[] | undefined;
1697
1697
  message: string;
1698
1698
  };
1699
1699
  requestId: string;
1700
1700
  };
1701
1701
  outputFormat: "json";
1702
- status: 403;
1702
+ status: 429;
1703
1703
  input: {
1704
1704
  query?: {
1705
1705
  chainId?: string | string[];
@@ -1719,14 +1719,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1719
1719
  } | {
1720
1720
  output: {
1721
1721
  error: {
1722
- code: "payment_required" | "rate_limit_exceeded";
1722
+ code: "query_invalid";
1723
1723
  details?: readonly Response.error.Detail[] | undefined;
1724
1724
  message: string;
1725
1725
  };
1726
1726
  requestId: string;
1727
1727
  };
1728
1728
  outputFormat: "json";
1729
- status: 429;
1729
+ status: 400;
1730
1730
  input: {
1731
1731
  query?: {
1732
1732
  chainId?: string | string[];
@@ -1746,14 +1746,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1746
1746
  } | {
1747
1747
  output: {
1748
1748
  error: {
1749
- code: "query_invalid";
1749
+ code: "upstream_error";
1750
1750
  details?: readonly Response.error.Detail[] | undefined;
1751
1751
  message: string;
1752
1752
  };
1753
1753
  requestId: string;
1754
1754
  };
1755
1755
  outputFormat: "json";
1756
- status: 400;
1756
+ status: 502;
1757
1757
  input: {
1758
1758
  query?: {
1759
1759
  chainId?: string | string[];
@@ -2318,14 +2318,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2318
2318
  } | {
2319
2319
  output: {
2320
2320
  error: {
2321
- code: "upstream_error";
2321
+ code: "api_key_malformed";
2322
2322
  details?: readonly Response.error.Detail[] | undefined;
2323
2323
  message: string;
2324
2324
  };
2325
2325
  requestId: string;
2326
2326
  };
2327
2327
  outputFormat: "json";
2328
- status: 502;
2328
+ status: 400;
2329
2329
  input: {
2330
2330
  query?: {
2331
2331
  chainId?: string | string[];
@@ -2343,14 +2343,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2343
2343
  } | {
2344
2344
  output: {
2345
2345
  error: {
2346
- code: "api_key_malformed";
2346
+ code: "api_key_invalid" | "api_key_missing";
2347
2347
  details?: readonly Response.error.Detail[] | undefined;
2348
2348
  message: string;
2349
2349
  };
2350
2350
  requestId: string;
2351
2351
  };
2352
2352
  outputFormat: "json";
2353
- status: 400;
2353
+ status: 401;
2354
2354
  input: {
2355
2355
  query?: {
2356
2356
  chainId?: string | string[];
@@ -2368,14 +2368,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2368
2368
  } | {
2369
2369
  output: {
2370
2370
  error: {
2371
- code: "api_key_invalid" | "api_key_missing";
2371
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2372
2372
  details?: readonly Response.error.Detail[] | undefined;
2373
2373
  message: string;
2374
2374
  };
2375
2375
  requestId: string;
2376
2376
  };
2377
2377
  outputFormat: "json";
2378
- status: 401;
2378
+ status: 403;
2379
2379
  input: {
2380
2380
  query?: {
2381
2381
  chainId?: string | string[];
@@ -2393,14 +2393,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2393
2393
  } | {
2394
2394
  output: {
2395
2395
  error: {
2396
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2396
+ code: "payment_required" | "rate_limit_exceeded";
2397
2397
  details?: readonly Response.error.Detail[] | undefined;
2398
2398
  message: string;
2399
2399
  };
2400
2400
  requestId: string;
2401
2401
  };
2402
2402
  outputFormat: "json";
2403
- status: 403;
2403
+ status: 429;
2404
2404
  input: {
2405
2405
  query?: {
2406
2406
  chainId?: string | string[];
@@ -2418,14 +2418,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2418
2418
  } | {
2419
2419
  output: {
2420
2420
  error: {
2421
- code: "payment_required" | "rate_limit_exceeded";
2421
+ code: "query_invalid";
2422
2422
  details?: readonly Response.error.Detail[] | undefined;
2423
2423
  message: string;
2424
2424
  };
2425
2425
  requestId: string;
2426
2426
  };
2427
2427
  outputFormat: "json";
2428
- status: 429;
2428
+ status: 400;
2429
2429
  input: {
2430
2430
  query?: {
2431
2431
  chainId?: string | string[];
@@ -2443,14 +2443,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2443
2443
  } | {
2444
2444
  output: {
2445
2445
  error: {
2446
- code: "query_invalid";
2446
+ code: "upstream_error";
2447
2447
  details?: readonly Response.error.Detail[] | undefined;
2448
2448
  message: string;
2449
2449
  };
2450
2450
  requestId: string;
2451
2451
  };
2452
2452
  outputFormat: "json";
2453
- status: 400;
2453
+ status: 502;
2454
2454
  input: {
2455
2455
  query?: {
2456
2456
  chainId?: string | string[];
@@ -2597,14 +2597,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2597
2597
  } | {
2598
2598
  output: {
2599
2599
  error: {
2600
- code: "upstream_error";
2600
+ code: "api_key_malformed";
2601
2601
  details?: readonly Response.error.Detail[] | undefined;
2602
2602
  message: string;
2603
2603
  };
2604
2604
  requestId: string;
2605
2605
  };
2606
2606
  outputFormat: "json";
2607
- status: 502;
2607
+ status: 400;
2608
2608
  input: {
2609
2609
  query?: {
2610
2610
  'blockNumber.from'?: string | string[];
@@ -2626,14 +2626,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2626
2626
  } | {
2627
2627
  output: {
2628
2628
  error: {
2629
- code: "api_key_malformed";
2629
+ code: "api_key_invalid" | "api_key_missing";
2630
2630
  details?: readonly Response.error.Detail[] | undefined;
2631
2631
  message: string;
2632
2632
  };
2633
2633
  requestId: string;
2634
2634
  };
2635
2635
  outputFormat: "json";
2636
- status: 400;
2636
+ status: 401;
2637
2637
  input: {
2638
2638
  query?: {
2639
2639
  'blockNumber.from'?: string | string[];
@@ -2655,14 +2655,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2655
2655
  } | {
2656
2656
  output: {
2657
2657
  error: {
2658
- code: "api_key_invalid" | "api_key_missing";
2658
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2659
2659
  details?: readonly Response.error.Detail[] | undefined;
2660
2660
  message: string;
2661
2661
  };
2662
2662
  requestId: string;
2663
2663
  };
2664
2664
  outputFormat: "json";
2665
- status: 401;
2665
+ status: 403;
2666
2666
  input: {
2667
2667
  query?: {
2668
2668
  'blockNumber.from'?: string | string[];
@@ -2684,14 +2684,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2684
2684
  } | {
2685
2685
  output: {
2686
2686
  error: {
2687
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2687
+ code: "payment_required" | "rate_limit_exceeded";
2688
2688
  details?: readonly Response.error.Detail[] | undefined;
2689
2689
  message: string;
2690
2690
  };
2691
2691
  requestId: string;
2692
2692
  };
2693
2693
  outputFormat: "json";
2694
- status: 403;
2694
+ status: 429;
2695
2695
  input: {
2696
2696
  query?: {
2697
2697
  'blockNumber.from'?: string | string[];
@@ -2713,14 +2713,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2713
2713
  } | {
2714
2714
  output: {
2715
2715
  error: {
2716
- code: "payment_required" | "rate_limit_exceeded";
2716
+ code: "query_invalid";
2717
2717
  details?: readonly Response.error.Detail[] | undefined;
2718
2718
  message: string;
2719
2719
  };
2720
2720
  requestId: string;
2721
2721
  };
2722
2722
  outputFormat: "json";
2723
- status: 429;
2723
+ status: 400;
2724
2724
  input: {
2725
2725
  query?: {
2726
2726
  'blockNumber.from'?: string | string[];
@@ -2742,14 +2742,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2742
2742
  } | {
2743
2743
  output: {
2744
2744
  error: {
2745
- code: "query_invalid";
2745
+ code: "upstream_error";
2746
2746
  details?: readonly Response.error.Detail[] | undefined;
2747
2747
  message: string;
2748
2748
  };
2749
2749
  requestId: string;
2750
2750
  };
2751
2751
  outputFormat: "json";
2752
- status: 400;
2752
+ status: 502;
2753
2753
  input: {
2754
2754
  query?: {
2755
2755
  'blockNumber.from'?: string | string[];
@@ -2915,14 +2915,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2915
2915
  } | {
2916
2916
  output: {
2917
2917
  error: {
2918
- code: "upstream_error";
2918
+ code: "api_key_malformed";
2919
2919
  details?: readonly Response.error.Detail[] | undefined;
2920
2920
  message: string;
2921
2921
  };
2922
2922
  requestId: string;
2923
2923
  };
2924
2924
  outputFormat: "json";
2925
- status: 502;
2925
+ status: 400;
2926
2926
  input: {
2927
2927
  query?: {
2928
2928
  chainId?: string | string[];
@@ -2937,14 +2937,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2937
2937
  } | {
2938
2938
  output: {
2939
2939
  error: {
2940
- code: "api_key_malformed";
2940
+ code: "api_key_invalid" | "api_key_missing";
2941
2941
  details?: readonly Response.error.Detail[] | undefined;
2942
2942
  message: string;
2943
2943
  };
2944
2944
  requestId: string;
2945
2945
  };
2946
2946
  outputFormat: "json";
2947
- status: 400;
2947
+ status: 401;
2948
2948
  input: {
2949
2949
  query?: {
2950
2950
  chainId?: string | string[];
@@ -2959,14 +2959,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2959
2959
  } | {
2960
2960
  output: {
2961
2961
  error: {
2962
- code: "api_key_invalid" | "api_key_missing";
2962
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2963
2963
  details?: readonly Response.error.Detail[] | undefined;
2964
2964
  message: string;
2965
2965
  };
2966
2966
  requestId: string;
2967
2967
  };
2968
2968
  outputFormat: "json";
2969
- status: 401;
2969
+ status: 403;
2970
2970
  input: {
2971
2971
  query?: {
2972
2972
  chainId?: string | string[];
@@ -2981,14 +2981,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2981
2981
  } | {
2982
2982
  output: {
2983
2983
  error: {
2984
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2984
+ code: "payment_required" | "rate_limit_exceeded";
2985
2985
  details?: readonly Response.error.Detail[] | undefined;
2986
2986
  message: string;
2987
2987
  };
2988
2988
  requestId: string;
2989
2989
  };
2990
2990
  outputFormat: "json";
2991
- status: 403;
2991
+ status: 429;
2992
2992
  input: {
2993
2993
  query?: {
2994
2994
  chainId?: string | string[];
@@ -3003,14 +3003,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3003
3003
  } | {
3004
3004
  output: {
3005
3005
  error: {
3006
- code: "payment_required" | "rate_limit_exceeded";
3006
+ code: "query_invalid";
3007
3007
  details?: readonly Response.error.Detail[] | undefined;
3008
3008
  message: string;
3009
3009
  };
3010
3010
  requestId: string;
3011
3011
  };
3012
3012
  outputFormat: "json";
3013
- status: 429;
3013
+ status: 400;
3014
3014
  input: {
3015
3015
  query?: {
3016
3016
  chainId?: string | string[];
@@ -3025,14 +3025,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3025
3025
  } | {
3026
3026
  output: {
3027
3027
  error: {
3028
- code: "query_invalid";
3028
+ code: "upstream_error";
3029
3029
  details?: readonly Response.error.Detail[] | undefined;
3030
3030
  message: string;
3031
3031
  };
3032
3032
  requestId: string;
3033
3033
  };
3034
3034
  outputFormat: "json";
3035
- status: 400;
3035
+ status: 502;
3036
3036
  input: {
3037
3037
  query?: {
3038
3038
  chainId?: string | string[];
@@ -3112,14 +3112,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3112
3112
  } | {
3113
3113
  output: {
3114
3114
  error: {
3115
- code: "upstream_error";
3115
+ code: "api_key_malformed";
3116
3116
  details?: readonly Response.error.Detail[] | undefined;
3117
3117
  message: string;
3118
3118
  };
3119
3119
  requestId: string;
3120
3120
  };
3121
3121
  outputFormat: "json";
3122
- status: 502;
3122
+ status: 400;
3123
3123
  input: {
3124
3124
  param: {
3125
3125
  base: `0x${string}`;
@@ -3133,14 +3133,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3133
3133
  } | {
3134
3134
  output: {
3135
3135
  error: {
3136
- code: "api_key_malformed";
3136
+ code: "api_key_invalid" | "api_key_missing";
3137
3137
  details?: readonly Response.error.Detail[] | undefined;
3138
3138
  message: string;
3139
3139
  };
3140
3140
  requestId: string;
3141
3141
  };
3142
3142
  outputFormat: "json";
3143
- status: 400;
3143
+ status: 401;
3144
3144
  input: {
3145
3145
  param: {
3146
3146
  base: `0x${string}`;
@@ -3154,14 +3154,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3154
3154
  } | {
3155
3155
  output: {
3156
3156
  error: {
3157
- code: "api_key_invalid" | "api_key_missing";
3157
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3158
3158
  details?: readonly Response.error.Detail[] | undefined;
3159
3159
  message: string;
3160
3160
  };
3161
3161
  requestId: string;
3162
3162
  };
3163
3163
  outputFormat: "json";
3164
- status: 401;
3164
+ status: 403;
3165
3165
  input: {
3166
3166
  param: {
3167
3167
  base: `0x${string}`;
@@ -3175,14 +3175,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3175
3175
  } | {
3176
3176
  output: {
3177
3177
  error: {
3178
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3178
+ code: "payment_required" | "rate_limit_exceeded";
3179
3179
  details?: readonly Response.error.Detail[] | undefined;
3180
3180
  message: string;
3181
3181
  };
3182
3182
  requestId: string;
3183
3183
  };
3184
3184
  outputFormat: "json";
3185
- status: 403;
3185
+ status: 429;
3186
3186
  input: {
3187
3187
  param: {
3188
3188
  base: `0x${string}`;
@@ -3196,14 +3196,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3196
3196
  } | {
3197
3197
  output: {
3198
3198
  error: {
3199
- code: "payment_required" | "rate_limit_exceeded";
3199
+ code: "query_invalid";
3200
3200
  details?: readonly Response.error.Detail[] | undefined;
3201
3201
  message: string;
3202
3202
  };
3203
3203
  requestId: string;
3204
3204
  };
3205
3205
  outputFormat: "json";
3206
- status: 429;
3206
+ status: 400;
3207
3207
  input: {
3208
3208
  param: {
3209
3209
  base: `0x${string}`;
@@ -3217,14 +3217,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3217
3217
  } | {
3218
3218
  output: {
3219
3219
  error: {
3220
- code: "query_invalid";
3220
+ code: "upstream_error";
3221
3221
  details?: readonly Response.error.Detail[] | undefined;
3222
3222
  message: string;
3223
3223
  };
3224
3224
  requestId: string;
3225
3225
  };
3226
3226
  outputFormat: "json";
3227
- status: 400;
3227
+ status: 502;
3228
3228
  input: {
3229
3229
  param: {
3230
3230
  base: `0x${string}`;
@@ -3341,14 +3341,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3341
3341
  } | {
3342
3342
  output: {
3343
3343
  error: {
3344
- code: "upstream_error";
3344
+ code: "api_key_malformed";
3345
3345
  details?: readonly Response.error.Detail[] | undefined;
3346
3346
  message: string;
3347
3347
  };
3348
3348
  requestId: string;
3349
3349
  };
3350
3350
  outputFormat: "json";
3351
- status: 502;
3351
+ status: 400;
3352
3352
  input: {
3353
3353
  query?: {
3354
3354
  base?: string | string[];
@@ -3366,14 +3366,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3366
3366
  } | {
3367
3367
  output: {
3368
3368
  error: {
3369
- code: "api_key_malformed";
3369
+ code: "api_key_invalid" | "api_key_missing";
3370
3370
  details?: readonly Response.error.Detail[] | undefined;
3371
3371
  message: string;
3372
3372
  };
3373
3373
  requestId: string;
3374
3374
  };
3375
3375
  outputFormat: "json";
3376
- status: 400;
3376
+ status: 401;
3377
3377
  input: {
3378
3378
  query?: {
3379
3379
  base?: string | string[];
@@ -3391,14 +3391,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3391
3391
  } | {
3392
3392
  output: {
3393
3393
  error: {
3394
- code: "api_key_invalid" | "api_key_missing";
3394
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3395
3395
  details?: readonly Response.error.Detail[] | undefined;
3396
3396
  message: string;
3397
3397
  };
3398
3398
  requestId: string;
3399
3399
  };
3400
3400
  outputFormat: "json";
3401
- status: 401;
3401
+ status: 403;
3402
3402
  input: {
3403
3403
  query?: {
3404
3404
  base?: string | string[];
@@ -3416,14 +3416,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3416
3416
  } | {
3417
3417
  output: {
3418
3418
  error: {
3419
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3419
+ code: "payment_required" | "rate_limit_exceeded";
3420
3420
  details?: readonly Response.error.Detail[] | undefined;
3421
3421
  message: string;
3422
3422
  };
3423
3423
  requestId: string;
3424
3424
  };
3425
3425
  outputFormat: "json";
3426
- status: 403;
3426
+ status: 429;
3427
3427
  input: {
3428
3428
  query?: {
3429
3429
  base?: string | string[];
@@ -3441,14 +3441,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3441
3441
  } | {
3442
3442
  output: {
3443
3443
  error: {
3444
- code: "payment_required" | "rate_limit_exceeded";
3444
+ code: "query_invalid";
3445
3445
  details?: readonly Response.error.Detail[] | undefined;
3446
3446
  message: string;
3447
3447
  };
3448
3448
  requestId: string;
3449
3449
  };
3450
3450
  outputFormat: "json";
3451
- status: 429;
3451
+ status: 400;
3452
3452
  input: {
3453
3453
  query?: {
3454
3454
  base?: string | string[];
@@ -3466,14 +3466,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3466
3466
  } | {
3467
3467
  output: {
3468
3468
  error: {
3469
- code: "query_invalid";
3469
+ code: "upstream_error";
3470
3470
  details?: readonly Response.error.Detail[] | undefined;
3471
3471
  message: string;
3472
3472
  };
3473
3473
  requestId: string;
3474
3474
  };
3475
3475
  outputFormat: "json";
3476
- status: 400;
3476
+ status: 502;
3477
3477
  input: {
3478
3478
  query?: {
3479
3479
  base?: string | string[];
@@ -3595,14 +3595,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3595
3595
  } | {
3596
3596
  output: {
3597
3597
  error: {
3598
- code: "upstream_error";
3598
+ code: "api_key_malformed";
3599
3599
  details?: readonly Response.error.Detail[] | undefined;
3600
3600
  message: string;
3601
3601
  };
3602
3602
  requestId: string;
3603
3603
  };
3604
3604
  outputFormat: "json";
3605
- status: 502;
3605
+ status: 400;
3606
3606
  input: {
3607
3607
  param: {
3608
3608
  orderId: string;
@@ -3616,14 +3616,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3616
3616
  } | {
3617
3617
  output: {
3618
3618
  error: {
3619
- code: "api_key_malformed";
3619
+ code: "api_key_invalid" | "api_key_missing";
3620
3620
  details?: readonly Response.error.Detail[] | undefined;
3621
3621
  message: string;
3622
3622
  };
3623
3623
  requestId: string;
3624
3624
  };
3625
3625
  outputFormat: "json";
3626
- status: 400;
3626
+ status: 401;
3627
3627
  input: {
3628
3628
  param: {
3629
3629
  orderId: string;
@@ -3637,14 +3637,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3637
3637
  } | {
3638
3638
  output: {
3639
3639
  error: {
3640
- code: "api_key_invalid" | "api_key_missing";
3640
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3641
3641
  details?: readonly Response.error.Detail[] | undefined;
3642
3642
  message: string;
3643
3643
  };
3644
3644
  requestId: string;
3645
3645
  };
3646
3646
  outputFormat: "json";
3647
- status: 401;
3647
+ status: 403;
3648
3648
  input: {
3649
3649
  param: {
3650
3650
  orderId: string;
@@ -3658,14 +3658,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3658
3658
  } | {
3659
3659
  output: {
3660
3660
  error: {
3661
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3661
+ code: "payment_required" | "rate_limit_exceeded";
3662
3662
  details?: readonly Response.error.Detail[] | undefined;
3663
3663
  message: string;
3664
3664
  };
3665
3665
  requestId: string;
3666
3666
  };
3667
3667
  outputFormat: "json";
3668
- status: 403;
3668
+ status: 429;
3669
3669
  input: {
3670
3670
  param: {
3671
3671
  orderId: string;
@@ -3679,14 +3679,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3679
3679
  } | {
3680
3680
  output: {
3681
3681
  error: {
3682
- code: "payment_required" | "rate_limit_exceeded";
3682
+ code: "query_invalid";
3683
3683
  details?: readonly Response.error.Detail[] | undefined;
3684
3684
  message: string;
3685
3685
  };
3686
3686
  requestId: string;
3687
3687
  };
3688
3688
  outputFormat: "json";
3689
- status: 429;
3689
+ status: 400;
3690
3690
  input: {
3691
3691
  param: {
3692
3692
  orderId: string;
@@ -3700,14 +3700,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3700
3700
  } | {
3701
3701
  output: {
3702
3702
  error: {
3703
- code: "query_invalid";
3703
+ code: "upstream_error";
3704
3704
  details?: readonly Response.error.Detail[] | undefined;
3705
3705
  message: string;
3706
3706
  };
3707
3707
  requestId: string;
3708
3708
  };
3709
3709
  outputFormat: "json";
3710
- status: 400;
3710
+ status: 502;
3711
3711
  input: {
3712
3712
  param: {
3713
3713
  orderId: string;
@@ -3833,14 +3833,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3833
3833
  } | {
3834
3834
  output: {
3835
3835
  error: {
3836
- code: "upstream_error";
3836
+ code: "api_key_malformed";
3837
3837
  details?: readonly Response.error.Detail[] | undefined;
3838
3838
  message: string;
3839
3839
  };
3840
3840
  requestId: string;
3841
3841
  };
3842
3842
  outputFormat: "json";
3843
- status: 502;
3843
+ status: 400;
3844
3844
  input: {
3845
3845
  param: {
3846
3846
  orderId: string;
@@ -3858,14 +3858,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3858
3858
  } | {
3859
3859
  output: {
3860
3860
  error: {
3861
- code: "api_key_malformed";
3861
+ code: "api_key_invalid" | "api_key_missing";
3862
3862
  details?: readonly Response.error.Detail[] | undefined;
3863
3863
  message: string;
3864
3864
  };
3865
3865
  requestId: string;
3866
3866
  };
3867
3867
  outputFormat: "json";
3868
- status: 400;
3868
+ status: 401;
3869
3869
  input: {
3870
3870
  param: {
3871
3871
  orderId: string;
@@ -3883,14 +3883,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3883
3883
  } | {
3884
3884
  output: {
3885
3885
  error: {
3886
- code: "api_key_invalid" | "api_key_missing";
3886
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3887
3887
  details?: readonly Response.error.Detail[] | undefined;
3888
3888
  message: string;
3889
3889
  };
3890
3890
  requestId: string;
3891
3891
  };
3892
3892
  outputFormat: "json";
3893
- status: 401;
3893
+ status: 403;
3894
3894
  input: {
3895
3895
  param: {
3896
3896
  orderId: string;
@@ -3908,14 +3908,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3908
3908
  } | {
3909
3909
  output: {
3910
3910
  error: {
3911
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3911
+ code: "payment_required" | "rate_limit_exceeded";
3912
3912
  details?: readonly Response.error.Detail[] | undefined;
3913
3913
  message: string;
3914
3914
  };
3915
3915
  requestId: string;
3916
3916
  };
3917
3917
  outputFormat: "json";
3918
- status: 403;
3918
+ status: 429;
3919
3919
  input: {
3920
3920
  param: {
3921
3921
  orderId: string;
@@ -3933,14 +3933,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3933
3933
  } | {
3934
3934
  output: {
3935
3935
  error: {
3936
- code: "payment_required" | "rate_limit_exceeded";
3936
+ code: "query_invalid";
3937
3937
  details?: readonly Response.error.Detail[] | undefined;
3938
3938
  message: string;
3939
3939
  };
3940
3940
  requestId: string;
3941
3941
  };
3942
3942
  outputFormat: "json";
3943
- status: 429;
3943
+ status: 400;
3944
3944
  input: {
3945
3945
  param: {
3946
3946
  orderId: string;
@@ -3958,14 +3958,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3958
3958
  } | {
3959
3959
  output: {
3960
3960
  error: {
3961
- code: "query_invalid";
3961
+ code: "upstream_error";
3962
3962
  details?: readonly Response.error.Detail[] | undefined;
3963
3963
  message: string;
3964
3964
  };
3965
3965
  requestId: string;
3966
3966
  };
3967
3967
  outputFormat: "json";
3968
- status: 400;
3968
+ status: 502;
3969
3969
  input: {
3970
3970
  param: {
3971
3971
  orderId: string;
@@ -4063,14 +4063,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4063
4063
  } | {
4064
4064
  output: {
4065
4065
  error: {
4066
- code: "upstream_error";
4066
+ code: "api_key_malformed";
4067
4067
  details?: readonly Response.error.Detail[] | undefined;
4068
4068
  message: string;
4069
4069
  };
4070
4070
  requestId: string;
4071
4071
  };
4072
4072
  outputFormat: "json";
4073
- status: 502;
4073
+ status: 400;
4074
4074
  input: {
4075
4075
  param: {
4076
4076
  base: `0x${string}`;
@@ -4086,14 +4086,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4086
4086
  } | {
4087
4087
  output: {
4088
4088
  error: {
4089
- code: "api_key_malformed";
4089
+ code: "api_key_invalid" | "api_key_missing";
4090
4090
  details?: readonly Response.error.Detail[] | undefined;
4091
4091
  message: string;
4092
4092
  };
4093
4093
  requestId: string;
4094
4094
  };
4095
4095
  outputFormat: "json";
4096
- status: 400;
4096
+ status: 401;
4097
4097
  input: {
4098
4098
  param: {
4099
4099
  base: `0x${string}`;
@@ -4109,14 +4109,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4109
4109
  } | {
4110
4110
  output: {
4111
4111
  error: {
4112
- code: "api_key_invalid" | "api_key_missing";
4112
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4113
4113
  details?: readonly Response.error.Detail[] | undefined;
4114
4114
  message: string;
4115
4115
  };
4116
4116
  requestId: string;
4117
4117
  };
4118
4118
  outputFormat: "json";
4119
- status: 401;
4119
+ status: 403;
4120
4120
  input: {
4121
4121
  param: {
4122
4122
  base: `0x${string}`;
@@ -4132,14 +4132,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4132
4132
  } | {
4133
4133
  output: {
4134
4134
  error: {
4135
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4135
+ code: "payment_required" | "rate_limit_exceeded";
4136
4136
  details?: readonly Response.error.Detail[] | undefined;
4137
4137
  message: string;
4138
4138
  };
4139
4139
  requestId: string;
4140
4140
  };
4141
4141
  outputFormat: "json";
4142
- status: 403;
4142
+ status: 429;
4143
4143
  input: {
4144
4144
  param: {
4145
4145
  base: `0x${string}`;
@@ -4155,14 +4155,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4155
4155
  } | {
4156
4156
  output: {
4157
4157
  error: {
4158
- code: "payment_required" | "rate_limit_exceeded";
4158
+ code: "query_invalid";
4159
4159
  details?: readonly Response.error.Detail[] | undefined;
4160
4160
  message: string;
4161
4161
  };
4162
4162
  requestId: string;
4163
4163
  };
4164
4164
  outputFormat: "json";
4165
- status: 429;
4165
+ status: 400;
4166
4166
  input: {
4167
4167
  param: {
4168
4168
  base: `0x${string}`;
@@ -4178,14 +4178,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4178
4178
  } | {
4179
4179
  output: {
4180
4180
  error: {
4181
- code: "query_invalid";
4181
+ code: "upstream_error";
4182
4182
  details?: readonly Response.error.Detail[] | undefined;
4183
4183
  message: string;
4184
4184
  };
4185
4185
  requestId: string;
4186
4186
  };
4187
4187
  outputFormat: "json";
4188
- status: 400;
4188
+ status: 502;
4189
4189
  input: {
4190
4190
  param: {
4191
4191
  base: `0x${string}`;
@@ -4317,14 +4317,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4317
4317
  } | {
4318
4318
  output: {
4319
4319
  error: {
4320
- code: "upstream_error";
4320
+ code: "api_key_malformed";
4321
4321
  details?: readonly Response.error.Detail[] | undefined;
4322
4322
  message: string;
4323
4323
  };
4324
4324
  requestId: string;
4325
4325
  };
4326
4326
  outputFormat: "json";
4327
- status: 502;
4327
+ status: 400;
4328
4328
  input: {
4329
4329
  param: {
4330
4330
  base: `0x${string}`;
@@ -4339,14 +4339,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4339
4339
  } | {
4340
4340
  output: {
4341
4341
  error: {
4342
- code: "api_key_malformed";
4342
+ code: "api_key_invalid" | "api_key_missing";
4343
4343
  details?: readonly Response.error.Detail[] | undefined;
4344
4344
  message: string;
4345
4345
  };
4346
4346
  requestId: string;
4347
4347
  };
4348
4348
  outputFormat: "json";
4349
- status: 400;
4349
+ status: 401;
4350
4350
  input: {
4351
4351
  param: {
4352
4352
  base: `0x${string}`;
@@ -4361,14 +4361,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4361
4361
  } | {
4362
4362
  output: {
4363
4363
  error: {
4364
- code: "api_key_invalid" | "api_key_missing";
4364
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4365
4365
  details?: readonly Response.error.Detail[] | undefined;
4366
4366
  message: string;
4367
4367
  };
4368
4368
  requestId: string;
4369
4369
  };
4370
4370
  outputFormat: "json";
4371
- status: 401;
4371
+ status: 403;
4372
4372
  input: {
4373
4373
  param: {
4374
4374
  base: `0x${string}`;
@@ -4383,14 +4383,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4383
4383
  } | {
4384
4384
  output: {
4385
4385
  error: {
4386
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4386
+ code: "payment_required" | "rate_limit_exceeded";
4387
4387
  details?: readonly Response.error.Detail[] | undefined;
4388
4388
  message: string;
4389
4389
  };
4390
4390
  requestId: string;
4391
4391
  };
4392
4392
  outputFormat: "json";
4393
- status: 403;
4393
+ status: 429;
4394
4394
  input: {
4395
4395
  param: {
4396
4396
  base: `0x${string}`;
@@ -4405,14 +4405,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4405
4405
  } | {
4406
4406
  output: {
4407
4407
  error: {
4408
- code: "payment_required" | "rate_limit_exceeded";
4408
+ code: "query_invalid";
4409
4409
  details?: readonly Response.error.Detail[] | undefined;
4410
4410
  message: string;
4411
4411
  };
4412
4412
  requestId: string;
4413
4413
  };
4414
4414
  outputFormat: "json";
4415
- status: 429;
4415
+ status: 400;
4416
4416
  input: {
4417
4417
  param: {
4418
4418
  base: `0x${string}`;
@@ -4427,14 +4427,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4427
4427
  } | {
4428
4428
  output: {
4429
4429
  error: {
4430
- code: "query_invalid";
4430
+ code: "upstream_error";
4431
4431
  details?: readonly Response.error.Detail[] | undefined;
4432
4432
  message: string;
4433
4433
  };
4434
4434
  requestId: string;
4435
4435
  };
4436
4436
  outputFormat: "json";
4437
- status: 400;
4437
+ status: 502;
4438
4438
  input: {
4439
4439
  param: {
4440
4440
  base: `0x${string}`;
@@ -4560,6 +4560,8 @@ export declare namespace exchanges {
4560
4560
  * history compressed to the latest event (`argMax`, sentinel position
4561
4561
  * `(-1, -1)` so it sorts first) plus every raw in-page event, so an order
4562
4562
  * that flips between two of its page fills resolves each fill correctly.
4563
+ * The same query attaches each book's indexed quote token, avoiding a second
4564
+ * TIDX request; callers retain an RPC fallback for books absent from the index.
4563
4565
  * `logs` is sorted by `(address, selector, block_num, log_idx)` with a
4564
4566
  * `topic1` bloom index, so both halves are pruned range reads. Returned
4565
4567
  * per-order event lists are position-sorted.
@@ -4584,6 +4586,8 @@ declare namespace resolveOrderStates {
4584
4586
  isBid: boolean;
4585
4587
  /** Event log index, or `-1` for the baseline. */
4586
4588
  logIndex: number;
4589
+ /** Indexed quote token for the state's book, when available. */
4590
+ quoteToken?: z.output<typeof Schema.TokenAddress> | undefined;
4587
4591
  /** Signed price tick at this state. */
4588
4592
  tick: number;
4589
4593
  /** Book base token (lowercase address). */