tapimo 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/README.md +31 -3
  2. package/dist/ApiKey.d.ts +1 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +5 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +28 -1
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +34 -1
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +7167 -4507
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +8 -0
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +11 -2
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +14 -3
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +128 -118
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/apps/api-keys.d.ts +7 -0
  21. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  22. package/dist/admin/apps/scopes.d.ts +8 -0
  23. package/dist/admin/apps/scopes.d.ts.map +1 -1
  24. package/dist/admin/apps/scopes.js +3 -0
  25. package/dist/admin/apps/scopes.js.map +1 -1
  26. package/dist/admin/apps/verified-tokens.d.ts +57 -57
  27. package/dist/admin/ui.generated.d.ts +1 -1
  28. package/dist/admin/ui.generated.js +13 -13
  29. package/dist/admin/ui.generated.js.map +1 -1
  30. package/dist/analytics/Analytics.d.ts +151 -0
  31. package/dist/analytics/Analytics.d.ts.map +1 -0
  32. package/dist/analytics/Analytics.js +212 -0
  33. package/dist/analytics/Analytics.js.map +1 -0
  34. package/dist/analytics/tables/requestEvents.d.ts +215 -0
  35. package/dist/analytics/tables/requestEvents.d.ts.map +1 -0
  36. package/dist/analytics/tables/requestEvents.js +264 -0
  37. package/dist/analytics/tables/requestEvents.js.map +1 -0
  38. package/dist/apps/data/App.d.ts +1024 -624
  39. package/dist/apps/data/App.d.ts.map +1 -1
  40. package/dist/apps/data/App.js +36 -0
  41. package/dist/apps/data/App.js.map +1 -1
  42. package/dist/apps/data/routes/balances.d.ts +45 -45
  43. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  44. package/dist/apps/data/routes/exchanges.d.ts +455 -455
  45. package/dist/apps/data/routes/fee-amm.d.ts +101 -101
  46. package/dist/apps/data/routes/funding.d.ts +765 -0
  47. package/dist/apps/data/routes/funding.d.ts.map +1 -0
  48. package/dist/apps/data/routes/funding.js +383 -0
  49. package/dist/apps/data/routes/funding.js.map +1 -0
  50. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  51. package/dist/apps/data/routes/receipts.js +2 -8
  52. package/dist/apps/data/routes/receipts.js.map +1 -1
  53. package/dist/apps/data/routes/rpc.d.ts +29 -36
  54. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  55. package/dist/apps/data/routes/rpc.js +29 -1
  56. package/dist/apps/data/routes/rpc.js.map +1 -1
  57. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  58. package/dist/apps/data/routes/transfers.d.ts +56 -56
  59. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  60. package/dist/apps/data/routes/webhooks.d.ts +45 -45
  61. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  62. package/dist/apps/data/routes/webhooks.js +8 -8
  63. package/dist/apps/data/routes/webhooks.js.map +1 -1
  64. package/dist/apps/docs/App.d.ts +4 -2
  65. package/dist/apps/docs/App.d.ts.map +1 -1
  66. package/dist/apps/docs/App.js +27 -95
  67. package/dist/apps/docs/App.js.map +1 -1
  68. package/dist/apps/docs/reference.d.ts +21 -0
  69. package/dist/apps/docs/reference.d.ts.map +1 -0
  70. package/dist/apps/docs/reference.js +112 -0
  71. package/dist/apps/docs/reference.js.map +1 -0
  72. package/dist/apps/index.d.ts +1 -0
  73. package/dist/apps/index.d.ts.map +1 -1
  74. package/dist/apps/index.js +1 -0
  75. package/dist/apps/index.js.map +1 -1
  76. package/dist/apps/mcp.d.ts +76 -0
  77. package/dist/apps/mcp.d.ts.map +1 -0
  78. package/dist/apps/mcp.js +188 -0
  79. package/dist/apps/mcp.js.map +1 -0
  80. package/dist/apps/platform/App.d.ts +3005 -728
  81. package/dist/apps/platform/App.d.ts.map +1 -1
  82. package/dist/apps/platform/App.js +13 -3
  83. package/dist/apps/platform/App.js.map +1 -1
  84. package/dist/apps/platform/Billing.d.ts +279 -0
  85. package/dist/apps/platform/Billing.d.ts.map +1 -0
  86. package/dist/apps/platform/Billing.js +477 -0
  87. package/dist/apps/platform/Billing.js.map +1 -0
  88. package/dist/apps/platform/index.d.ts +1 -0
  89. package/dist/apps/platform/index.d.ts.map +1 -1
  90. package/dist/apps/platform/index.js +1 -0
  91. package/dist/apps/platform/index.js.map +1 -1
  92. package/dist/apps/platform/routes/api-keys.d.ts +341 -49
  93. package/dist/apps/platform/routes/api-keys.d.ts.map +1 -1
  94. package/dist/apps/platform/routes/api-keys.js +115 -13
  95. package/dist/apps/platform/routes/api-keys.js.map +1 -1
  96. package/dist/apps/platform/routes/billing.d.ts +1520 -0
  97. package/dist/apps/platform/routes/billing.d.ts.map +1 -0
  98. package/dist/apps/platform/routes/billing.js +795 -0
  99. package/dist/apps/platform/routes/billing.js.map +1 -0
  100. package/dist/apps/platform/routes/invitations.d.ts +201 -83
  101. package/dist/apps/platform/routes/invitations.d.ts.map +1 -1
  102. package/dist/apps/platform/routes/invitations.js +58 -0
  103. package/dist/apps/platform/routes/invitations.js.map +1 -1
  104. package/dist/apps/platform/routes/me.d.ts +17 -17
  105. package/dist/apps/platform/routes/orgs.d.ts +50 -36
  106. package/dist/apps/platform/routes/orgs.d.ts.map +1 -1
  107. package/dist/apps/platform/routes/orgs.js +14 -3
  108. package/dist/apps/platform/routes/orgs.js.map +1 -1
  109. package/dist/apps/platform/routes/projects.d.ts +97 -97
  110. package/dist/apps/platform/routes/scopes.d.ts +107 -0
  111. package/dist/apps/platform/routes/scopes.d.ts.map +1 -0
  112. package/dist/apps/platform/routes/scopes.js +66 -0
  113. package/dist/apps/platform/routes/scopes.js.map +1 -0
  114. package/dist/apps/platform/routes/usage.d.ts +588 -0
  115. package/dist/apps/platform/routes/usage.d.ts.map +1 -0
  116. package/dist/apps/platform/routes/usage.js +391 -0
  117. package/dist/apps/platform/routes/usage.js.map +1 -0
  118. package/dist/apps/relay/App.d.ts +4 -1
  119. package/dist/apps/relay/App.d.ts.map +1 -1
  120. package/dist/apps/relay/App.js +118 -10
  121. package/dist/apps/relay/App.js.map +1 -1
  122. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  123. package/dist/apps/relay/Sponsorships.js +2 -1
  124. package/dist/apps/relay/Sponsorships.js.map +1 -1
  125. package/dist/cli/Cli.d.ts +8 -1
  126. package/dist/cli/Cli.d.ts.map +1 -1
  127. package/dist/cli/Cli.js +11 -3
  128. package/dist/cli/Cli.js.map +1 -1
  129. package/dist/cli/commands/admin.d.ts +4 -0
  130. package/dist/cli/commands/admin.d.ts.map +1 -1
  131. package/dist/cli/commands/admin.js +80 -1
  132. package/dist/cli/commands/admin.js.map +1 -1
  133. package/dist/db/Db.d.ts +7 -0
  134. package/dist/db/Db.d.ts.map +1 -1
  135. package/dist/db/Db.js +126 -0
  136. package/dist/db/Db.js.map +1 -1
  137. package/dist/db/Schema.d.ts +79 -0
  138. package/dist/db/Schema.d.ts.map +1 -1
  139. package/dist/db/Schema.js +88 -2
  140. package/dist/db/Schema.js.map +1 -1
  141. package/dist/db/tables/billingSettings.d.ts +55 -0
  142. package/dist/db/tables/billingSettings.d.ts.map +1 -0
  143. package/dist/db/tables/billingSettings.js +70 -0
  144. package/dist/db/tables/billingSettings.js.map +1 -0
  145. package/dist/db/tables/invitations.js +2 -2
  146. package/dist/db/tables/invitations.js.map +1 -1
  147. package/dist/db/tables/organizations.d.ts +6 -2
  148. package/dist/db/tables/organizations.d.ts.map +1 -1
  149. package/dist/db/tables/organizations.js +10 -4
  150. package/dist/db/tables/organizations.js.map +1 -1
  151. package/dist/db/tables/projects.js +2 -2
  152. package/dist/db/tables/projects.js.map +1 -1
  153. package/dist/db/tables/requestUsage.d.ts +121 -0
  154. package/dist/db/tables/requestUsage.d.ts.map +1 -0
  155. package/dist/db/tables/requestUsage.js +150 -0
  156. package/dist/db/tables/requestUsage.js.map +1 -0
  157. package/dist/db/tables/sponsoredTransactions.d.ts +119 -0
  158. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  159. package/dist/db/tables/sponsoredTransactions.js +155 -2
  160. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  161. package/dist/db/tables/stripeCustomers.d.ts +81 -0
  162. package/dist/db/tables/stripeCustomers.d.ts.map +1 -0
  163. package/dist/db/tables/stripeCustomers.js +120 -0
  164. package/dist/db/tables/stripeCustomers.js.map +1 -0
  165. package/dist/db/tables/users.js +2 -2
  166. package/dist/db/tables/users.js.map +1 -1
  167. package/dist/handlers/internal/sponsorship.d.ts +5 -2
  168. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  169. package/dist/handlers/internal/sponsorship.js +19 -5
  170. package/dist/handlers/internal/sponsorship.js.map +1 -1
  171. package/dist/handlers/internal/utils.d.ts +10 -3
  172. package/dist/handlers/internal/utils.d.ts.map +1 -1
  173. package/dist/handlers/internal/utils.js +14 -6
  174. package/dist/handlers/internal/utils.js.map +1 -1
  175. package/dist/index.d.ts +1 -0
  176. package/dist/index.d.ts.map +1 -1
  177. package/dist/index.js +1 -0
  178. package/dist/index.js.map +1 -1
  179. package/dist/internal/Auth.d.ts +18 -4
  180. package/dist/internal/Auth.d.ts.map +1 -1
  181. package/dist/internal/Auth.js +148 -76
  182. package/dist/internal/Auth.js.map +1 -1
  183. package/dist/internal/Cache.d.ts.map +1 -1
  184. package/dist/internal/Cache.js +4 -1
  185. package/dist/internal/Cache.js.map +1 -1
  186. package/dist/internal/EdgeCache.d.ts +10 -0
  187. package/dist/internal/EdgeCache.d.ts.map +1 -1
  188. package/dist/internal/EdgeCache.js +39 -8
  189. package/dist/internal/EdgeCache.js.map +1 -1
  190. package/dist/internal/Fees.d.ts +27 -0
  191. package/dist/internal/Fees.d.ts.map +1 -0
  192. package/dist/internal/Fees.js +48 -0
  193. package/dist/internal/Fees.js.map +1 -0
  194. package/dist/internal/FundingRoutes.d.ts +183 -0
  195. package/dist/internal/FundingRoutes.d.ts.map +1 -0
  196. package/dist/internal/FundingRoutes.js +490 -0
  197. package/dist/internal/FundingRoutes.js.map +1 -0
  198. package/dist/internal/Id.d.ts +15 -0
  199. package/dist/internal/Id.d.ts.map +1 -0
  200. package/dist/internal/Id.js +22 -0
  201. package/dist/internal/Id.js.map +1 -0
  202. package/dist/internal/Log.d.ts +2 -0
  203. package/dist/internal/Log.d.ts.map +1 -1
  204. package/dist/internal/Log.js +3 -0
  205. package/dist/internal/Log.js.map +1 -1
  206. package/dist/internal/OpenApi.d.ts +10 -1
  207. package/dist/internal/OpenApi.d.ts.map +1 -1
  208. package/dist/internal/OpenApi.js +8 -1
  209. package/dist/internal/OpenApi.js.map +1 -1
  210. package/dist/internal/RateLimit.d.ts +25 -0
  211. package/dist/internal/RateLimit.d.ts.map +1 -1
  212. package/dist/internal/RateLimit.js +51 -0
  213. package/dist/internal/RateLimit.js.map +1 -1
  214. package/dist/internal/Response.d.ts +1 -1
  215. package/dist/internal/Response.d.ts.map +1 -1
  216. package/dist/internal/Schema.d.ts +8 -0
  217. package/dist/internal/Schema.d.ts.map +1 -1
  218. package/dist/internal/Schema.js +7 -0
  219. package/dist/internal/Schema.js.map +1 -1
  220. package/dist/internal/Webhooks.d.ts.map +1 -1
  221. package/dist/internal/Webhooks.js +3 -3
  222. package/dist/internal/Webhooks.js.map +1 -1
  223. package/package.json +4 -3
  224. package/src/ApiKey.ts +9 -2
  225. package/src/ApiKeys.test.ts +51 -0
  226. package/src/ApiKeys.ts +50 -1
  227. package/src/App.test.ts +33 -86718
  228. package/src/App.ts +18 -0
  229. package/src/Client.test-d.ts +351 -0
  230. package/src/Scope.ts +16 -3
  231. package/src/admin/apps/scopes.test.ts +6 -0
  232. package/src/admin/apps/scopes.ts +3 -0
  233. package/src/admin/ui/src/components/Page.tsx +2 -3
  234. package/src/admin/ui/src/routes/__root.tsx +2 -2
  235. package/src/admin/ui/src/routes/api-keys.tsx +2 -2
  236. package/src/admin/ui.generated.ts +13 -13
  237. package/src/analytics/Analytics.test.ts +527 -0
  238. package/src/analytics/Analytics.ts +318 -0
  239. package/src/analytics/tables/requestEvents.ts +523 -0
  240. package/src/apps/data/App.test.ts +72 -0
  241. package/src/apps/data/App.ts +35 -0
  242. package/src/apps/data/routes/funding.test.ts +214 -0
  243. package/src/apps/data/routes/funding.ts +584 -0
  244. package/src/apps/data/routes/receipts.ts +2 -9
  245. package/src/apps/data/routes/rpc.test.ts +78 -2
  246. package/src/apps/data/routes/rpc.ts +31 -1
  247. package/src/apps/data/routes/webhooks.test.ts +1 -1
  248. package/src/apps/data/routes/webhooks.ts +11 -8
  249. package/src/apps/docs/App.ts +29 -100
  250. package/src/apps/docs/reference.ts +132 -0
  251. package/src/apps/index.ts +1 -0
  252. package/src/apps/mcp.test.ts +206 -0
  253. package/src/apps/mcp.ts +250 -0
  254. package/src/apps/platform/App.ts +43 -4
  255. package/src/apps/platform/Billing.test.ts +530 -0
  256. package/src/apps/platform/Billing.ts +682 -0
  257. package/src/apps/platform/index.ts +1 -0
  258. package/src/apps/platform/routes/api-keys.test.ts +172 -9
  259. package/src/apps/platform/routes/api-keys.ts +136 -20
  260. package/src/apps/platform/routes/billing.test.ts +1100 -0
  261. package/src/apps/platform/routes/billing.ts +966 -0
  262. package/src/apps/platform/routes/invitations.test.ts +55 -7
  263. package/src/apps/platform/routes/invitations.ts +68 -0
  264. package/src/apps/platform/routes/me.test.ts +230 -0
  265. package/src/apps/platform/routes/orgs.ts +26 -4
  266. package/src/apps/platform/routes/scopes.test.ts +29 -0
  267. package/src/apps/platform/routes/scopes.ts +85 -0
  268. package/src/apps/platform/routes/usage.test.ts +422 -0
  269. package/src/apps/platform/routes/usage.ts +527 -0
  270. package/src/apps/relay/App.test.ts +457 -8
  271. package/src/apps/relay/App.ts +120 -12
  272. package/src/apps/relay/Sponsorships.test.ts +1 -1
  273. package/src/apps/relay/Sponsorships.ts +2 -1
  274. package/src/cli/Cli.test.ts +25 -2
  275. package/src/cli/Cli.ts +17 -2
  276. package/src/cli/commands/admin.test.ts +83 -0
  277. package/src/cli/commands/admin.ts +89 -1
  278. package/src/db/Db.ts +137 -0
  279. package/src/db/Schema.ts +104 -2
  280. package/src/db/tables/billingSettings.test.ts +87 -0
  281. package/src/db/tables/billingSettings.ts +108 -0
  282. package/src/db/tables/invitations.ts +2 -2
  283. package/src/db/tables/organizations.test.ts +1 -1
  284. package/src/db/tables/organizations.ts +15 -5
  285. package/src/db/tables/projects.ts +2 -2
  286. package/src/db/tables/requestUsage.ts +231 -0
  287. package/src/db/tables/sponsoredTransactions.test.ts +108 -1
  288. package/src/db/tables/sponsoredTransactions.ts +230 -2
  289. package/src/db/tables/stripeCustomers.test.ts +109 -0
  290. package/src/db/tables/stripeCustomers.ts +162 -0
  291. package/src/db/tables/users.ts +2 -2
  292. package/src/handlers/internal/sponsorship.ts +34 -7
  293. package/src/handlers/internal/utils.ts +19 -7
  294. package/src/index.ts +1 -0
  295. package/src/internal/Auth.test.ts +175 -25
  296. package/src/internal/Auth.ts +175 -86
  297. package/src/internal/Cache.ts +5 -1
  298. package/src/internal/EdgeCache.test.ts +27 -4
  299. package/src/internal/EdgeCache.ts +47 -9
  300. package/src/internal/Fees.test.ts +32 -0
  301. package/src/internal/Fees.ts +51 -0
  302. package/src/internal/FundingRoutes.ts +583 -0
  303. package/src/internal/Id.test.ts +17 -0
  304. package/src/internal/Id.ts +24 -0
  305. package/src/internal/Log.test.ts +1 -0
  306. package/src/internal/Log.ts +5 -0
  307. package/src/internal/OpenApi.ts +12 -1
  308. package/src/internal/RateLimit.test.ts +84 -0
  309. package/src/internal/RateLimit.ts +70 -0
  310. package/src/internal/Response.ts +1 -1
  311. package/src/internal/Schema.ts +8 -0
  312. package/src/internal/Webhooks.test.ts +3 -3
  313. package/src/internal/Webhooks.ts +3 -3
@@ -975,69 +975,9 @@ export declare namespace schema {
975
975
  export declare function exchanges(): import("hono/hono-base").HonoBase<App.Environment, {
976
976
  "/v1/exchange/swaps": {
977
977
  $get: {
978
- output: {
979
- data: {
980
- blockNumber: number;
981
- destinationToken: {
982
- address: `0x${string}`;
983
- currency?: string | undefined;
984
- decimals?: number | undefined;
985
- logoUri?: string | undefined;
986
- name?: string | undefined;
987
- symbol?: string | undefined;
988
- verified?: boolean | undefined;
989
- amount: string;
990
- };
991
- filledAt: string;
992
- fills: {
993
- destinationToken: {
994
- address: `0x${string}`;
995
- currency?: string | undefined;
996
- decimals?: number | undefined;
997
- logoUri?: string | undefined;
998
- name?: string | undefined;
999
- symbol?: string | undefined;
1000
- verified?: boolean | undefined;
1001
- amount: string;
1002
- };
1003
- logIndex: number;
1004
- maker: `0x${string}`;
1005
- orderId: string;
1006
- partialFill: boolean;
1007
- price: string;
1008
- sourceToken: {
1009
- address: `0x${string}`;
1010
- currency?: string | undefined;
1011
- decimals?: number | undefined;
1012
- logoUri?: string | undefined;
1013
- name?: string | undefined;
1014
- symbol?: string | undefined;
1015
- verified?: boolean | undefined;
1016
- amount: string;
1017
- };
1018
- }[];
1019
- id: string;
1020
- logIndex: number;
1021
- mode: "exactDestination" | "exactSource" | null;
1022
- rate: string;
1023
- route: `0x${string}`[];
1024
- sourceToken: {
1025
- address: `0x${string}`;
1026
- currency?: string | undefined;
1027
- decimals?: number | undefined;
1028
- logoUri?: string | undefined;
1029
- name?: string | undefined;
1030
- symbol?: string | undefined;
1031
- verified?: boolean | undefined;
1032
- amount: string;
1033
- };
1034
- taker: `0x${string}`;
1035
- transactionHash: `0x${string}`;
1036
- }[];
1037
- nextCursor: string | null;
1038
- };
1039
- outputFormat: "json";
1040
- status: 200;
978
+ output: null;
979
+ outputFormat: "body";
980
+ status: 402;
1041
981
  input: {
1042
982
  query?: {
1043
983
  'blockNumber.from'?: string | string[];
@@ -1086,14 +1026,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1086
1026
  } | {
1087
1027
  output: {
1088
1028
  error: {
1089
- code: "query_invalid";
1029
+ code: "api_key_invalid" | "api_key_missing";
1090
1030
  details?: readonly Response.error.Detail[] | undefined;
1091
1031
  message: string;
1092
1032
  };
1093
1033
  requestId: string;
1094
1034
  };
1095
1035
  outputFormat: "json";
1096
- status: 400;
1036
+ status: 401;
1097
1037
  input: {
1098
1038
  query?: {
1099
1039
  'blockNumber.from'?: string | string[];
@@ -1114,35 +1054,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1114
1054
  } | {
1115
1055
  output: {
1116
1056
  error: {
1117
- code: "api_key_invalid" | "api_key_missing";
1057
+ code: "api_key_forbidden";
1118
1058
  details?: readonly Response.error.Detail[] | undefined;
1119
1059
  message: string;
1120
1060
  };
1121
1061
  requestId: string;
1122
1062
  };
1123
1063
  outputFormat: "json";
1124
- status: 401;
1125
- input: {
1126
- query?: {
1127
- 'blockNumber.from'?: string | string[];
1128
- 'blockNumber.to'?: string | string[];
1129
- chainId?: string | string[];
1130
- cursor?: string | string[];
1131
- include?: string | string[];
1132
- limit?: string | string[];
1133
- maker?: string | string[];
1134
- order?: string | string[];
1135
- participant?: string | string[];
1136
- taker?: string | string[];
1137
- 'timestamp.from'?: string | string[];
1138
- 'timestamp.to'?: string | string[];
1139
- transactionHash?: string | string[];
1140
- } | undefined;
1141
- };
1142
- } | {
1143
- output: null;
1144
- outputFormat: "body";
1145
- status: 402;
1064
+ status: 403;
1146
1065
  input: {
1147
1066
  query?: {
1148
1067
  'blockNumber.from'?: string | string[];
@@ -1163,14 +1082,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1163
1082
  } | {
1164
1083
  output: {
1165
1084
  error: {
1166
- code: "api_key_forbidden";
1085
+ code: "payment_required" | "rate_limit_exceeded";
1167
1086
  details?: readonly Response.error.Detail[] | undefined;
1168
1087
  message: string;
1169
1088
  };
1170
1089
  requestId: string;
1171
1090
  };
1172
1091
  outputFormat: "json";
1173
- status: 403;
1092
+ status: 429;
1174
1093
  input: {
1175
1094
  query?: {
1176
1095
  'blockNumber.from'?: string | string[];
@@ -1191,14 +1110,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1191
1110
  } | {
1192
1111
  output: {
1193
1112
  error: {
1194
- code: "payment_required" | "rate_limit_exceeded";
1113
+ code: "query_invalid";
1195
1114
  details?: readonly Response.error.Detail[] | undefined;
1196
1115
  message: string;
1197
1116
  };
1198
1117
  requestId: string;
1199
1118
  };
1200
1119
  outputFormat: "json";
1201
- status: 429;
1120
+ status: 400;
1202
1121
  input: {
1203
1122
  query?: {
1204
1123
  'blockNumber.from'?: string | string[];
@@ -1244,14 +1163,11 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1244
1163
  transactionHash?: string | string[];
1245
1164
  } | undefined;
1246
1165
  };
1247
- };
1248
- };
1249
- } & {
1250
- "/v1/exchange/pairs": {
1251
- $get: {
1166
+ } | {
1252
1167
  output: {
1253
1168
  data: {
1254
- base: {
1169
+ blockNumber: number;
1170
+ destinationToken: {
1255
1171
  address: `0x${string}`;
1256
1172
  currency?: string | undefined;
1257
1173
  decimals?: number | undefined;
@@ -1259,12 +1175,42 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1259
1175
  name?: string | undefined;
1260
1176
  symbol?: string | undefined;
1261
1177
  verified?: boolean | undefined;
1178
+ amount: string;
1262
1179
  };
1263
- blockNumber: number;
1264
- id: `0x${string}`;
1265
- key: `0x${string}`;
1266
- liquidity?: string | undefined;
1267
- quote: {
1180
+ filledAt: string;
1181
+ fills: {
1182
+ destinationToken: {
1183
+ address: `0x${string}`;
1184
+ currency?: string | undefined;
1185
+ decimals?: number | undefined;
1186
+ logoUri?: string | undefined;
1187
+ name?: string | undefined;
1188
+ symbol?: string | undefined;
1189
+ verified?: boolean | undefined;
1190
+ amount: string;
1191
+ };
1192
+ logIndex: number;
1193
+ maker: `0x${string}`;
1194
+ orderId: string;
1195
+ partialFill: boolean;
1196
+ price: string;
1197
+ sourceToken: {
1198
+ address: `0x${string}`;
1199
+ currency?: string | undefined;
1200
+ decimals?: number | undefined;
1201
+ logoUri?: string | undefined;
1202
+ name?: string | undefined;
1203
+ symbol?: string | undefined;
1204
+ verified?: boolean | undefined;
1205
+ amount: string;
1206
+ };
1207
+ }[];
1208
+ id: string;
1209
+ logIndex: number;
1210
+ mode: "exactDestination" | "exactSource" | null;
1211
+ rate: string;
1212
+ route: `0x${string}`[];
1213
+ sourceToken: {
1268
1214
  address: `0x${string}`;
1269
1215
  currency?: string | undefined;
1270
1216
  decimals?: number | undefined;
@@ -1272,18 +1218,40 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1272
1218
  name?: string | undefined;
1273
1219
  symbol?: string | undefined;
1274
1220
  verified?: boolean | undefined;
1221
+ amount: string;
1275
1222
  };
1276
- timestamp: string;
1223
+ taker: `0x${string}`;
1277
1224
  transactionHash: `0x${string}`;
1278
1225
  }[];
1279
- meta?: {
1280
- totalCountCapped: boolean;
1281
- totalCount: number;
1282
- } | undefined;
1283
1226
  nextCursor: string | null;
1284
1227
  };
1285
1228
  outputFormat: "json";
1286
1229
  status: 200;
1230
+ input: {
1231
+ query?: {
1232
+ 'blockNumber.from'?: string | string[];
1233
+ 'blockNumber.to'?: string | string[];
1234
+ chainId?: string | string[];
1235
+ cursor?: string | string[];
1236
+ include?: string | string[];
1237
+ limit?: string | string[];
1238
+ maker?: string | string[];
1239
+ order?: string | string[];
1240
+ participant?: string | string[];
1241
+ taker?: string | string[];
1242
+ 'timestamp.from'?: string | string[];
1243
+ 'timestamp.to'?: string | string[];
1244
+ transactionHash?: string | string[];
1245
+ } | undefined;
1246
+ };
1247
+ };
1248
+ };
1249
+ } & {
1250
+ "/v1/exchange/pairs": {
1251
+ $get: {
1252
+ output: null;
1253
+ outputFormat: "body";
1254
+ status: 402;
1287
1255
  input: {
1288
1256
  query?: {
1289
1257
  chainId?: string | string[];
@@ -1320,14 +1288,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1320
1288
  } | {
1321
1289
  output: {
1322
1290
  error: {
1323
- code: "query_invalid";
1291
+ code: "api_key_invalid" | "api_key_missing";
1324
1292
  details?: readonly Response.error.Detail[] | undefined;
1325
1293
  message: string;
1326
1294
  };
1327
1295
  requestId: string;
1328
1296
  };
1329
1297
  outputFormat: "json";
1330
- status: 400;
1298
+ status: 401;
1331
1299
  input: {
1332
1300
  query?: {
1333
1301
  chainId?: string | string[];
@@ -1342,14 +1310,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1342
1310
  } | {
1343
1311
  output: {
1344
1312
  error: {
1345
- code: "api_key_invalid" | "api_key_missing";
1313
+ code: "api_key_forbidden";
1346
1314
  details?: readonly Response.error.Detail[] | undefined;
1347
1315
  message: string;
1348
1316
  };
1349
1317
  requestId: string;
1350
1318
  };
1351
1319
  outputFormat: "json";
1352
- status: 401;
1320
+ status: 403;
1353
1321
  input: {
1354
1322
  query?: {
1355
1323
  chainId?: string | string[];
@@ -1362,9 +1330,16 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1362
1330
  } | undefined;
1363
1331
  };
1364
1332
  } | {
1365
- output: null;
1366
- outputFormat: "body";
1367
- status: 402;
1333
+ output: {
1334
+ error: {
1335
+ code: "payment_required" | "rate_limit_exceeded";
1336
+ details?: readonly Response.error.Detail[] | undefined;
1337
+ message: string;
1338
+ };
1339
+ requestId: string;
1340
+ };
1341
+ outputFormat: "json";
1342
+ status: 429;
1368
1343
  input: {
1369
1344
  query?: {
1370
1345
  chainId?: string | string[];
@@ -1379,14 +1354,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1379
1354
  } | {
1380
1355
  output: {
1381
1356
  error: {
1382
- code: "api_key_forbidden";
1357
+ code: "query_invalid";
1383
1358
  details?: readonly Response.error.Detail[] | undefined;
1384
1359
  message: string;
1385
1360
  };
1386
1361
  requestId: string;
1387
1362
  };
1388
1363
  outputFormat: "json";
1389
- status: 403;
1364
+ status: 400;
1390
1365
  input: {
1391
1366
  query?: {
1392
1367
  chainId?: string | string[];
@@ -1401,14 +1376,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1401
1376
  } | {
1402
1377
  output: {
1403
1378
  error: {
1404
- code: "payment_required" | "rate_limit_exceeded";
1379
+ code: "upstream_error";
1405
1380
  details?: readonly Response.error.Detail[] | undefined;
1406
1381
  message: string;
1407
1382
  };
1408
1383
  requestId: string;
1409
1384
  };
1410
1385
  outputFormat: "json";
1411
- status: 429;
1386
+ status: 502;
1412
1387
  input: {
1413
1388
  query?: {
1414
1389
  chainId?: string | string[];
@@ -1422,15 +1397,40 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1422
1397
  };
1423
1398
  } | {
1424
1399
  output: {
1425
- error: {
1426
- code: "upstream_error";
1427
- details?: readonly Response.error.Detail[] | undefined;
1428
- message: string;
1429
- };
1430
- requestId: string;
1400
+ data: {
1401
+ base: {
1402
+ address: `0x${string}`;
1403
+ currency?: string | undefined;
1404
+ decimals?: number | undefined;
1405
+ logoUri?: string | undefined;
1406
+ name?: string | undefined;
1407
+ symbol?: string | undefined;
1408
+ verified?: boolean | undefined;
1409
+ };
1410
+ blockNumber: number;
1411
+ id: `0x${string}`;
1412
+ key: `0x${string}`;
1413
+ liquidity?: string | undefined;
1414
+ quote: {
1415
+ address: `0x${string}`;
1416
+ currency?: string | undefined;
1417
+ decimals?: number | undefined;
1418
+ logoUri?: string | undefined;
1419
+ name?: string | undefined;
1420
+ symbol?: string | undefined;
1421
+ verified?: boolean | undefined;
1422
+ };
1423
+ timestamp: string;
1424
+ transactionHash: `0x${string}`;
1425
+ }[];
1426
+ meta?: {
1427
+ totalCountCapped: boolean;
1428
+ totalCount: number;
1429
+ } | undefined;
1430
+ nextCursor: string | null;
1431
1431
  };
1432
1432
  outputFormat: "json";
1433
- status: 502;
1433
+ status: 200;
1434
1434
  input: {
1435
1435
  query?: {
1436
1436
  chainId?: string | string[];
@@ -1447,34 +1447,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1447
1447
  } & {
1448
1448
  "/v1/exchange/pairs/:base": {
1449
1449
  $get: {
1450
- output: {
1451
- base: {
1452
- address: `0x${string}`;
1453
- currency?: string | undefined;
1454
- decimals?: number | undefined;
1455
- logoUri?: string | undefined;
1456
- name?: string | undefined;
1457
- symbol?: string | undefined;
1458
- verified?: boolean | undefined;
1459
- };
1460
- blockNumber: number;
1461
- id: `0x${string}`;
1462
- key: `0x${string}`;
1463
- liquidity?: string | undefined;
1464
- quote: {
1465
- address: `0x${string}`;
1466
- currency?: string | undefined;
1467
- decimals?: number | undefined;
1468
- logoUri?: string | undefined;
1469
- name?: string | undefined;
1470
- symbol?: string | undefined;
1471
- verified?: boolean | undefined;
1472
- };
1473
- timestamp: string;
1474
- transactionHash: `0x${string}`;
1475
- };
1476
- outputFormat: "json";
1477
- status: 200;
1450
+ output: null;
1451
+ outputFormat: "body";
1452
+ status: 402;
1478
1453
  input: {
1479
1454
  param: {
1480
1455
  base: `0x${string}`;
@@ -1509,14 +1484,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1509
1484
  } | {
1510
1485
  output: {
1511
1486
  error: {
1512
- code: "query_invalid";
1487
+ code: "api_key_invalid" | "api_key_missing";
1513
1488
  details?: readonly Response.error.Detail[] | undefined;
1514
1489
  message: string;
1515
1490
  };
1516
1491
  requestId: string;
1517
1492
  };
1518
1493
  outputFormat: "json";
1519
- status: 400;
1494
+ status: 401;
1520
1495
  input: {
1521
1496
  param: {
1522
1497
  base: `0x${string}`;
@@ -1530,14 +1505,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1530
1505
  } | {
1531
1506
  output: {
1532
1507
  error: {
1533
- code: "pair_invalid";
1508
+ code: "api_key_forbidden";
1534
1509
  details?: readonly Response.error.Detail[] | undefined;
1535
1510
  message: string;
1536
1511
  };
1537
1512
  requestId: string;
1538
1513
  };
1539
1514
  outputFormat: "json";
1540
- status: 400;
1515
+ status: 403;
1541
1516
  input: {
1542
1517
  param: {
1543
1518
  base: `0x${string}`;
@@ -1551,14 +1526,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1551
1526
  } | {
1552
1527
  output: {
1553
1528
  error: {
1554
- code: "api_key_invalid" | "api_key_missing";
1529
+ code: "payment_required" | "rate_limit_exceeded";
1555
1530
  details?: readonly Response.error.Detail[] | undefined;
1556
1531
  message: string;
1557
1532
  };
1558
1533
  requestId: string;
1559
1534
  };
1560
1535
  outputFormat: "json";
1561
- status: 401;
1536
+ status: 429;
1562
1537
  input: {
1563
1538
  param: {
1564
1539
  base: `0x${string}`;
@@ -1570,9 +1545,16 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1570
1545
  } | undefined;
1571
1546
  };
1572
1547
  } | {
1573
- output: null;
1574
- outputFormat: "body";
1575
- status: 402;
1548
+ output: {
1549
+ error: {
1550
+ code: "query_invalid";
1551
+ details?: readonly Response.error.Detail[] | undefined;
1552
+ message: string;
1553
+ };
1554
+ requestId: string;
1555
+ };
1556
+ outputFormat: "json";
1557
+ status: 400;
1576
1558
  input: {
1577
1559
  param: {
1578
1560
  base: `0x${string}`;
@@ -1586,14 +1568,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1586
1568
  } | {
1587
1569
  output: {
1588
1570
  error: {
1589
- code: "api_key_forbidden";
1571
+ code: "upstream_error";
1590
1572
  details?: readonly Response.error.Detail[] | undefined;
1591
1573
  message: string;
1592
1574
  };
1593
1575
  requestId: string;
1594
1576
  };
1595
1577
  outputFormat: "json";
1596
- status: 403;
1578
+ status: 502;
1597
1579
  input: {
1598
1580
  param: {
1599
1581
  base: `0x${string}`;
@@ -1607,14 +1589,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1607
1589
  } | {
1608
1590
  output: {
1609
1591
  error: {
1610
- code: "pair_not_found";
1592
+ code: "pair_invalid";
1611
1593
  details?: readonly Response.error.Detail[] | undefined;
1612
1594
  message: string;
1613
1595
  };
1614
1596
  requestId: string;
1615
1597
  };
1616
1598
  outputFormat: "json";
1617
- status: 404;
1599
+ status: 400;
1618
1600
  input: {
1619
1601
  param: {
1620
1602
  base: `0x${string}`;
@@ -1628,14 +1610,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1628
1610
  } | {
1629
1611
  output: {
1630
1612
  error: {
1631
- code: "payment_required" | "rate_limit_exceeded";
1613
+ code: "pair_not_found";
1632
1614
  details?: readonly Response.error.Detail[] | undefined;
1633
1615
  message: string;
1634
1616
  };
1635
1617
  requestId: string;
1636
1618
  };
1637
1619
  outputFormat: "json";
1638
- status: 429;
1620
+ status: 404;
1639
1621
  input: {
1640
1622
  param: {
1641
1623
  base: `0x${string}`;
@@ -1648,15 +1630,33 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1648
1630
  };
1649
1631
  } | {
1650
1632
  output: {
1651
- error: {
1652
- code: "upstream_error";
1653
- details?: readonly Response.error.Detail[] | undefined;
1654
- message: string;
1633
+ base: {
1634
+ address: `0x${string}`;
1635
+ currency?: string | undefined;
1636
+ decimals?: number | undefined;
1637
+ logoUri?: string | undefined;
1638
+ name?: string | undefined;
1639
+ symbol?: string | undefined;
1640
+ verified?: boolean | undefined;
1655
1641
  };
1656
- requestId: string;
1642
+ blockNumber: number;
1643
+ id: `0x${string}`;
1644
+ key: `0x${string}`;
1645
+ liquidity?: string | undefined;
1646
+ quote: {
1647
+ address: `0x${string}`;
1648
+ currency?: string | undefined;
1649
+ decimals?: number | undefined;
1650
+ logoUri?: string | undefined;
1651
+ name?: string | undefined;
1652
+ symbol?: string | undefined;
1653
+ verified?: boolean | undefined;
1654
+ };
1655
+ timestamp: string;
1656
+ transactionHash: `0x${string}`;
1657
1657
  };
1658
1658
  outputFormat: "json";
1659
- status: 502;
1659
+ status: 200;
1660
1660
  input: {
1661
1661
  param: {
1662
1662
  base: `0x${string}`;
@@ -1670,54 +1670,11 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1670
1670
  };
1671
1671
  };
1672
1672
  } & {
1673
- "/v1/exchange/orders": {
1674
- $get: {
1675
- output: {
1676
- data: {
1677
- amount: string;
1678
- blockNumber: number;
1679
- id: string;
1680
- logIndex: number;
1681
- maker: `0x${string}`;
1682
- orderId: string;
1683
- placedAt: string;
1684
- price: string;
1685
- rate: string;
1686
- remaining: string;
1687
- side: "ask" | "bid";
1688
- tick: number;
1689
- transactionHash: `0x${string}`;
1690
- pair: {
1691
- base: {
1692
- address: `0x${string}`;
1693
- currency?: string | undefined;
1694
- decimals?: number | undefined;
1695
- logoUri?: string | undefined;
1696
- name?: string | undefined;
1697
- symbol?: string | undefined;
1698
- verified?: boolean | undefined;
1699
- };
1700
- key: `0x${string}`;
1701
- quote: {
1702
- address: `0x${string}`;
1703
- currency?: string | undefined;
1704
- decimals?: number | undefined;
1705
- logoUri?: string | undefined;
1706
- name?: string | undefined;
1707
- symbol?: string | undefined;
1708
- verified?: boolean | undefined;
1709
- };
1710
- };
1711
- }[];
1712
- meta?: {
1713
- totalCountCapped: boolean;
1714
- totalCount: number;
1715
- } | undefined;
1716
- nextCursor: string | null;
1717
- truncated: boolean;
1718
- };
1719
- outputFormat: "json";
1720
- status: 200;
1673
+ "/v1/exchange/orders": {
1674
+ $get: {
1675
+ output: null;
1676
+ outputFormat: "body";
1677
+ status: 402;
1721
1678
  input: {
1722
1679
  query?: {
1723
1680
  base?: string | string[];
@@ -1760,14 +1717,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1760
1717
  } | {
1761
1718
  output: {
1762
1719
  error: {
1763
- code: "query_invalid";
1720
+ code: "api_key_invalid" | "api_key_missing";
1764
1721
  details?: readonly Response.error.Detail[] | undefined;
1765
1722
  message: string;
1766
1723
  };
1767
1724
  requestId: string;
1768
1725
  };
1769
1726
  outputFormat: "json";
1770
- status: 400;
1727
+ status: 401;
1771
1728
  input: {
1772
1729
  query?: {
1773
1730
  base?: string | string[];
@@ -1785,14 +1742,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1785
1742
  } | {
1786
1743
  output: {
1787
1744
  error: {
1788
- code: "api_key_invalid" | "api_key_missing";
1745
+ code: "api_key_forbidden";
1789
1746
  details?: readonly Response.error.Detail[] | undefined;
1790
1747
  message: string;
1791
1748
  };
1792
1749
  requestId: string;
1793
1750
  };
1794
1751
  outputFormat: "json";
1795
- status: 401;
1752
+ status: 403;
1796
1753
  input: {
1797
1754
  query?: {
1798
1755
  base?: string | string[];
@@ -1808,9 +1765,16 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1808
1765
  } | undefined;
1809
1766
  };
1810
1767
  } | {
1811
- output: null;
1812
- outputFormat: "body";
1813
- status: 402;
1768
+ output: {
1769
+ error: {
1770
+ code: "payment_required" | "rate_limit_exceeded";
1771
+ details?: readonly Response.error.Detail[] | undefined;
1772
+ message: string;
1773
+ };
1774
+ requestId: string;
1775
+ };
1776
+ outputFormat: "json";
1777
+ status: 429;
1814
1778
  input: {
1815
1779
  query?: {
1816
1780
  base?: string | string[];
@@ -1828,14 +1792,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1828
1792
  } | {
1829
1793
  output: {
1830
1794
  error: {
1831
- code: "api_key_forbidden";
1795
+ code: "query_invalid";
1832
1796
  details?: readonly Response.error.Detail[] | undefined;
1833
1797
  message: string;
1834
1798
  };
1835
1799
  requestId: string;
1836
1800
  };
1837
1801
  outputFormat: "json";
1838
- status: 403;
1802
+ status: 400;
1839
1803
  input: {
1840
1804
  query?: {
1841
1805
  base?: string | string[];
@@ -1853,14 +1817,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1853
1817
  } | {
1854
1818
  output: {
1855
1819
  error: {
1856
- code: "pair_not_found";
1820
+ code: "upstream_error";
1857
1821
  details?: readonly Response.error.Detail[] | undefined;
1858
1822
  message: string;
1859
1823
  };
1860
1824
  requestId: string;
1861
1825
  };
1862
1826
  outputFormat: "json";
1863
- status: 404;
1827
+ status: 502;
1864
1828
  input: {
1865
1829
  query?: {
1866
1830
  base?: string | string[];
@@ -1878,14 +1842,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1878
1842
  } | {
1879
1843
  output: {
1880
1844
  error: {
1881
- code: "payment_required" | "rate_limit_exceeded";
1845
+ code: "pair_not_found";
1882
1846
  details?: readonly Response.error.Detail[] | undefined;
1883
1847
  message: string;
1884
1848
  };
1885
1849
  requestId: string;
1886
1850
  };
1887
1851
  outputFormat: "json";
1888
- status: 429;
1852
+ status: 404;
1889
1853
  input: {
1890
1854
  query?: {
1891
1855
  base?: string | string[];
@@ -1902,15 +1866,51 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1902
1866
  };
1903
1867
  } | {
1904
1868
  output: {
1905
- error: {
1906
- code: "upstream_error";
1907
- details?: readonly Response.error.Detail[] | undefined;
1908
- message: string;
1909
- };
1910
- requestId: string;
1869
+ data: {
1870
+ amount: string;
1871
+ blockNumber: number;
1872
+ id: string;
1873
+ logIndex: number;
1874
+ maker: `0x${string}`;
1875
+ orderId: string;
1876
+ placedAt: string;
1877
+ price: string;
1878
+ rate: string;
1879
+ remaining: string;
1880
+ side: "ask" | "bid";
1881
+ tick: number;
1882
+ transactionHash: `0x${string}`;
1883
+ pair: {
1884
+ base: {
1885
+ address: `0x${string}`;
1886
+ currency?: string | undefined;
1887
+ decimals?: number | undefined;
1888
+ logoUri?: string | undefined;
1889
+ name?: string | undefined;
1890
+ symbol?: string | undefined;
1891
+ verified?: boolean | undefined;
1892
+ };
1893
+ key: `0x${string}`;
1894
+ quote: {
1895
+ address: `0x${string}`;
1896
+ currency?: string | undefined;
1897
+ decimals?: number | undefined;
1898
+ logoUri?: string | undefined;
1899
+ name?: string | undefined;
1900
+ symbol?: string | undefined;
1901
+ verified?: boolean | undefined;
1902
+ };
1903
+ };
1904
+ }[];
1905
+ meta?: {
1906
+ totalCountCapped: boolean;
1907
+ totalCount: number;
1908
+ } | undefined;
1909
+ nextCursor: string | null;
1910
+ truncated: boolean;
1911
1911
  };
1912
1912
  outputFormat: "json";
1913
- status: 502;
1913
+ status: 200;
1914
1914
  input: {
1915
1915
  query?: {
1916
1916
  base?: string | string[];
@@ -1930,43 +1930,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1930
1930
  } & {
1931
1931
  "/v1/exchange/orders/:orderId": {
1932
1932
  $get: {
1933
- output: {
1934
- amount: string;
1935
- flipTick: number;
1936
- id: string;
1937
- isBid: boolean;
1938
- isFlipOrder: boolean;
1939
- maker: `0x${string}`;
1940
- mode: "exactDestination" | "exactSource";
1941
- orderId: string;
1942
- pair: {
1943
- base: {
1944
- address: `0x${string}`;
1945
- currency?: string | undefined;
1946
- decimals?: number | undefined;
1947
- logoUri?: string | undefined;
1948
- name?: string | undefined;
1949
- symbol?: string | undefined;
1950
- verified?: boolean | undefined;
1951
- };
1952
- key: `0x${string}`;
1953
- quote: {
1954
- address: `0x${string}`;
1955
- currency?: string | undefined;
1956
- decimals?: number | undefined;
1957
- logoUri?: string | undefined;
1958
- name?: string | undefined;
1959
- symbol?: string | undefined;
1960
- verified?: boolean | undefined;
1961
- };
1962
- };
1963
- price: string;
1964
- rate: string;
1965
- remaining: string;
1966
- tick: number;
1967
- };
1968
- outputFormat: "json";
1969
- status: 200;
1933
+ output: null;
1934
+ outputFormat: "body";
1935
+ status: 402;
1970
1936
  input: {
1971
1937
  param: {
1972
1938
  orderId: string;
@@ -2001,14 +1967,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2001
1967
  } | {
2002
1968
  output: {
2003
1969
  error: {
2004
- code: "query_invalid";
1970
+ code: "api_key_invalid" | "api_key_missing";
2005
1971
  details?: readonly Response.error.Detail[] | undefined;
2006
1972
  message: string;
2007
1973
  };
2008
1974
  requestId: string;
2009
1975
  };
2010
1976
  outputFormat: "json";
2011
- status: 400;
1977
+ status: 401;
2012
1978
  input: {
2013
1979
  param: {
2014
1980
  orderId: string;
@@ -2022,14 +1988,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2022
1988
  } | {
2023
1989
  output: {
2024
1990
  error: {
2025
- code: "order_invalid";
1991
+ code: "api_key_forbidden";
2026
1992
  details?: readonly Response.error.Detail[] | undefined;
2027
1993
  message: string;
2028
1994
  };
2029
1995
  requestId: string;
2030
1996
  };
2031
1997
  outputFormat: "json";
2032
- status: 400;
1998
+ status: 403;
2033
1999
  input: {
2034
2000
  param: {
2035
2001
  orderId: string;
@@ -2043,14 +2009,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2043
2009
  } | {
2044
2010
  output: {
2045
2011
  error: {
2046
- code: "api_key_invalid" | "api_key_missing";
2012
+ code: "payment_required" | "rate_limit_exceeded";
2047
2013
  details?: readonly Response.error.Detail[] | undefined;
2048
2014
  message: string;
2049
2015
  };
2050
2016
  requestId: string;
2051
2017
  };
2052
2018
  outputFormat: "json";
2053
- status: 401;
2019
+ status: 429;
2054
2020
  input: {
2055
2021
  param: {
2056
2022
  orderId: string;
@@ -2062,9 +2028,16 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2062
2028
  } | undefined;
2063
2029
  };
2064
2030
  } | {
2065
- output: null;
2066
- outputFormat: "body";
2067
- status: 402;
2031
+ output: {
2032
+ error: {
2033
+ code: "query_invalid";
2034
+ details?: readonly Response.error.Detail[] | undefined;
2035
+ message: string;
2036
+ };
2037
+ requestId: string;
2038
+ };
2039
+ outputFormat: "json";
2040
+ status: 400;
2068
2041
  input: {
2069
2042
  param: {
2070
2043
  orderId: string;
@@ -2078,14 +2051,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2078
2051
  } | {
2079
2052
  output: {
2080
2053
  error: {
2081
- code: "api_key_forbidden";
2054
+ code: "upstream_error";
2082
2055
  details?: readonly Response.error.Detail[] | undefined;
2083
2056
  message: string;
2084
2057
  };
2085
2058
  requestId: string;
2086
2059
  };
2087
2060
  outputFormat: "json";
2088
- status: 403;
2061
+ status: 502;
2089
2062
  input: {
2090
2063
  param: {
2091
2064
  orderId: string;
@@ -2099,14 +2072,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2099
2072
  } | {
2100
2073
  output: {
2101
2074
  error: {
2102
- code: "order_not_found";
2075
+ code: "order_invalid";
2103
2076
  details?: readonly Response.error.Detail[] | undefined;
2104
2077
  message: string;
2105
2078
  };
2106
2079
  requestId: string;
2107
2080
  };
2108
2081
  outputFormat: "json";
2109
- status: 404;
2082
+ status: 400;
2110
2083
  input: {
2111
2084
  param: {
2112
2085
  orderId: string;
@@ -2120,14 +2093,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2120
2093
  } | {
2121
2094
  output: {
2122
2095
  error: {
2123
- code: "payment_required" | "rate_limit_exceeded";
2096
+ code: "order_not_found";
2124
2097
  details?: readonly Response.error.Detail[] | undefined;
2125
2098
  message: string;
2126
2099
  };
2127
2100
  requestId: string;
2128
2101
  };
2129
2102
  outputFormat: "json";
2130
- status: 429;
2103
+ status: 404;
2131
2104
  input: {
2132
2105
  param: {
2133
2106
  orderId: string;
@@ -2140,15 +2113,42 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2140
2113
  };
2141
2114
  } | {
2142
2115
  output: {
2143
- error: {
2144
- code: "upstream_error";
2145
- details?: readonly Response.error.Detail[] | undefined;
2146
- message: string;
2116
+ amount: string;
2117
+ flipTick: number;
2118
+ id: string;
2119
+ isBid: boolean;
2120
+ isFlipOrder: boolean;
2121
+ maker: `0x${string}`;
2122
+ mode: "exactDestination" | "exactSource";
2123
+ orderId: string;
2124
+ pair: {
2125
+ base: {
2126
+ address: `0x${string}`;
2127
+ currency?: string | undefined;
2128
+ decimals?: number | undefined;
2129
+ logoUri?: string | undefined;
2130
+ name?: string | undefined;
2131
+ symbol?: string | undefined;
2132
+ verified?: boolean | undefined;
2133
+ };
2134
+ key: `0x${string}`;
2135
+ quote: {
2136
+ address: `0x${string}`;
2137
+ currency?: string | undefined;
2138
+ decimals?: number | undefined;
2139
+ logoUri?: string | undefined;
2140
+ name?: string | undefined;
2141
+ symbol?: string | undefined;
2142
+ verified?: boolean | undefined;
2143
+ };
2147
2144
  };
2148
- requestId: string;
2145
+ price: string;
2146
+ rate: string;
2147
+ remaining: string;
2148
+ tick: number;
2149
2149
  };
2150
2150
  outputFormat: "json";
2151
- status: 502;
2151
+ status: 200;
2152
2152
  input: {
2153
2153
  param: {
2154
2154
  orderId: string;
@@ -2164,26 +2164,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2164
2164
  } & {
2165
2165
  "/v1/exchange/orders/:orderId/fills": {
2166
2166
  $get: {
2167
- output: {
2168
- data: {
2169
- amountFilled: string;
2170
- blockNumber: number;
2171
- filledAt: string;
2172
- id: string;
2173
- logIndex: number;
2174
- orderId: string;
2175
- partialFill: boolean;
2176
- taker: `0x${string}`;
2177
- transactionHash: `0x${string}`;
2178
- }[];
2179
- meta?: {
2180
- totalCountCapped: boolean;
2181
- totalCount: number;
2182
- } | undefined;
2183
- nextCursor: string | null;
2184
- };
2185
- outputFormat: "json";
2186
- status: 200;
2167
+ output: null;
2168
+ outputFormat: "body";
2169
+ status: 402;
2187
2170
  input: {
2188
2171
  param: {
2189
2172
  orderId: string;
@@ -2226,14 +2209,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2226
2209
  } | {
2227
2210
  output: {
2228
2211
  error: {
2229
- code: "query_invalid";
2212
+ code: "api_key_invalid" | "api_key_missing";
2230
2213
  details?: readonly Response.error.Detail[] | undefined;
2231
2214
  message: string;
2232
2215
  };
2233
2216
  requestId: string;
2234
2217
  };
2235
2218
  outputFormat: "json";
2236
- status: 400;
2219
+ status: 401;
2237
2220
  input: {
2238
2221
  param: {
2239
2222
  orderId: string;
@@ -2251,14 +2234,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2251
2234
  } | {
2252
2235
  output: {
2253
2236
  error: {
2254
- code: "order_invalid";
2237
+ code: "api_key_forbidden";
2255
2238
  details?: readonly Response.error.Detail[] | undefined;
2256
2239
  message: string;
2257
2240
  };
2258
2241
  requestId: string;
2259
2242
  };
2260
2243
  outputFormat: "json";
2261
- status: 400;
2244
+ status: 403;
2262
2245
  input: {
2263
2246
  param: {
2264
2247
  orderId: string;
@@ -2276,32 +2259,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2276
2259
  } | {
2277
2260
  output: {
2278
2261
  error: {
2279
- code: "api_key_invalid" | "api_key_missing";
2262
+ code: "payment_required" | "rate_limit_exceeded";
2280
2263
  details?: readonly Response.error.Detail[] | undefined;
2281
2264
  message: string;
2282
2265
  };
2283
2266
  requestId: string;
2284
2267
  };
2285
2268
  outputFormat: "json";
2286
- status: 401;
2287
- input: {
2288
- param: {
2289
- orderId: string;
2290
- };
2291
- } & {
2292
- query?: {
2293
- chainId?: string | string[];
2294
- cursor?: string | string[];
2295
- include?: string | string[];
2296
- limit?: string | string[];
2297
- order?: string | string[];
2298
- page?: string | string[];
2299
- } | undefined;
2300
- };
2301
- } | {
2302
- output: null;
2303
- outputFormat: "body";
2304
- status: 402;
2269
+ status: 429;
2305
2270
  input: {
2306
2271
  param: {
2307
2272
  orderId: string;
@@ -2319,14 +2284,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2319
2284
  } | {
2320
2285
  output: {
2321
2286
  error: {
2322
- code: "api_key_forbidden";
2287
+ code: "query_invalid";
2323
2288
  details?: readonly Response.error.Detail[] | undefined;
2324
2289
  message: string;
2325
2290
  };
2326
2291
  requestId: string;
2327
2292
  };
2328
2293
  outputFormat: "json";
2329
- status: 403;
2294
+ status: 400;
2330
2295
  input: {
2331
2296
  param: {
2332
2297
  orderId: string;
@@ -2344,14 +2309,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2344
2309
  } | {
2345
2310
  output: {
2346
2311
  error: {
2347
- code: "payment_required" | "rate_limit_exceeded";
2312
+ code: "upstream_error";
2348
2313
  details?: readonly Response.error.Detail[] | undefined;
2349
2314
  message: string;
2350
2315
  };
2351
2316
  requestId: string;
2352
2317
  };
2353
2318
  outputFormat: "json";
2354
- status: 429;
2319
+ status: 502;
2355
2320
  input: {
2356
2321
  param: {
2357
2322
  orderId: string;
@@ -2369,14 +2334,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2369
2334
  } | {
2370
2335
  output: {
2371
2336
  error: {
2372
- code: "upstream_error";
2337
+ code: "order_invalid";
2373
2338
  details?: readonly Response.error.Detail[] | undefined;
2374
2339
  message: string;
2375
2340
  };
2376
2341
  requestId: string;
2377
2342
  };
2378
2343
  outputFormat: "json";
2379
- status: 502;
2344
+ status: 400;
2380
2345
  input: {
2381
2346
  param: {
2382
2347
  orderId: string;
@@ -2391,72 +2356,49 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2391
2356
  page?: string | string[];
2392
2357
  } | undefined;
2393
2358
  };
2394
- };
2395
- };
2396
- } & {
2397
- "/v1/exchange/pairs/:base/ohlc": {
2398
- $get: {
2359
+ } | {
2399
2360
  output: {
2400
- base: {
2401
- address: `0x${string}`;
2402
- currency?: string | undefined;
2403
- decimals?: number | undefined;
2404
- logoUri?: string | undefined;
2405
- name?: string | undefined;
2406
- symbol?: string | undefined;
2407
- verified?: boolean | undefined;
2408
- };
2409
2361
  data: {
2410
- close: string;
2411
- fillCount: number;
2412
- high: string;
2362
+ amountFilled: string;
2363
+ blockNumber: number;
2364
+ filledAt: string;
2413
2365
  id: string;
2414
- low: string;
2415
- open: string;
2416
- timestamp: string;
2417
- volume: {
2418
- base: string;
2419
- quote: string;
2420
- };
2366
+ logIndex: number;
2367
+ orderId: string;
2368
+ partialFill: boolean;
2369
+ taker: `0x${string}`;
2370
+ transactionHash: `0x${string}`;
2421
2371
  }[];
2422
- interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
2423
- quote: {
2424
- address: `0x${string}`;
2425
- currency?: string | undefined;
2426
- decimals?: number | undefined;
2427
- logoUri?: string | undefined;
2428
- name?: string | undefined;
2429
- symbol?: string | undefined;
2430
- verified?: boolean | undefined;
2431
- };
2432
- truncated: boolean;
2433
- window: "1h" | "24h" | "30d" | "7d";
2372
+ meta?: {
2373
+ totalCountCapped: boolean;
2374
+ totalCount: number;
2375
+ } | undefined;
2376
+ nextCursor: string | null;
2434
2377
  };
2435
2378
  outputFormat: "json";
2436
2379
  status: 200;
2437
2380
  input: {
2438
2381
  param: {
2439
- base: `0x${string}`;
2382
+ orderId: string;
2440
2383
  };
2441
2384
  } & {
2442
2385
  query?: {
2443
2386
  chainId?: string | string[];
2387
+ cursor?: string | string[];
2444
2388
  include?: string | string[];
2445
- interval?: string | string[];
2446
- window?: string | string[];
2389
+ limit?: string | string[];
2390
+ order?: string | string[];
2391
+ page?: string | string[];
2447
2392
  } | undefined;
2448
2393
  };
2449
- } | {
2450
- output: {
2451
- error: {
2452
- code: "api_key_malformed";
2453
- details?: readonly Response.error.Detail[] | undefined;
2454
- message: string;
2455
- };
2456
- requestId: string;
2457
- };
2458
- outputFormat: "json";
2459
- status: 400;
2394
+ };
2395
+ };
2396
+ } & {
2397
+ "/v1/exchange/pairs/:base/ohlc": {
2398
+ $get: {
2399
+ output: null;
2400
+ outputFormat: "body";
2401
+ status: 402;
2460
2402
  input: {
2461
2403
  param: {
2462
2404
  base: `0x${string}`;
@@ -2472,7 +2414,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2472
2414
  } | {
2473
2415
  output: {
2474
2416
  error: {
2475
- code: "query_invalid";
2417
+ code: "api_key_malformed";
2476
2418
  details?: readonly Response.error.Detail[] | undefined;
2477
2419
  message: string;
2478
2420
  };
@@ -2495,14 +2437,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2495
2437
  } | {
2496
2438
  output: {
2497
2439
  error: {
2498
- code: "pair_invalid";
2440
+ code: "api_key_invalid" | "api_key_missing";
2499
2441
  details?: readonly Response.error.Detail[] | undefined;
2500
2442
  message: string;
2501
2443
  };
2502
2444
  requestId: string;
2503
2445
  };
2504
2446
  outputFormat: "json";
2505
- status: 400;
2447
+ status: 401;
2506
2448
  input: {
2507
2449
  param: {
2508
2450
  base: `0x${string}`;
@@ -2518,14 +2460,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2518
2460
  } | {
2519
2461
  output: {
2520
2462
  error: {
2521
- code: "api_key_invalid" | "api_key_missing";
2463
+ code: "api_key_forbidden";
2522
2464
  details?: readonly Response.error.Detail[] | undefined;
2523
2465
  message: string;
2524
2466
  };
2525
2467
  requestId: string;
2526
2468
  };
2527
2469
  outputFormat: "json";
2528
- status: 401;
2470
+ status: 403;
2529
2471
  input: {
2530
2472
  param: {
2531
2473
  base: `0x${string}`;
@@ -2539,9 +2481,16 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2539
2481
  } | undefined;
2540
2482
  };
2541
2483
  } | {
2542
- output: null;
2543
- outputFormat: "body";
2544
- status: 402;
2484
+ output: {
2485
+ error: {
2486
+ code: "payment_required" | "rate_limit_exceeded";
2487
+ details?: readonly Response.error.Detail[] | undefined;
2488
+ message: string;
2489
+ };
2490
+ requestId: string;
2491
+ };
2492
+ outputFormat: "json";
2493
+ status: 429;
2545
2494
  input: {
2546
2495
  param: {
2547
2496
  base: `0x${string}`;
@@ -2557,14 +2506,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2557
2506
  } | {
2558
2507
  output: {
2559
2508
  error: {
2560
- code: "api_key_forbidden";
2509
+ code: "query_invalid";
2561
2510
  details?: readonly Response.error.Detail[] | undefined;
2562
2511
  message: string;
2563
2512
  };
2564
2513
  requestId: string;
2565
2514
  };
2566
2515
  outputFormat: "json";
2567
- status: 403;
2516
+ status: 400;
2568
2517
  input: {
2569
2518
  param: {
2570
2519
  base: `0x${string}`;
@@ -2580,14 +2529,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2580
2529
  } | {
2581
2530
  output: {
2582
2531
  error: {
2583
- code: "pair_not_found";
2532
+ code: "upstream_error";
2584
2533
  details?: readonly Response.error.Detail[] | undefined;
2585
2534
  message: string;
2586
2535
  };
2587
2536
  requestId: string;
2588
2537
  };
2589
2538
  outputFormat: "json";
2590
- status: 404;
2539
+ status: 502;
2591
2540
  input: {
2592
2541
  param: {
2593
2542
  base: `0x${string}`;
@@ -2603,14 +2552,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2603
2552
  } | {
2604
2553
  output: {
2605
2554
  error: {
2606
- code: "payment_required" | "rate_limit_exceeded";
2555
+ code: "pair_invalid";
2607
2556
  details?: readonly Response.error.Detail[] | undefined;
2608
2557
  message: string;
2609
2558
  };
2610
2559
  requestId: string;
2611
2560
  };
2612
2561
  outputFormat: "json";
2613
- status: 429;
2562
+ status: 400;
2614
2563
  input: {
2615
2564
  param: {
2616
2565
  base: `0x${string}`;
@@ -2626,14 +2575,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2626
2575
  } | {
2627
2576
  output: {
2628
2577
  error: {
2629
- code: "upstream_error";
2578
+ code: "pair_not_found";
2630
2579
  details?: readonly Response.error.Detail[] | undefined;
2631
2580
  message: string;
2632
2581
  };
2633
2582
  requestId: string;
2634
2583
  };
2635
2584
  outputFormat: "json";
2636
- status: 502;
2585
+ status: 404;
2637
2586
  input: {
2638
2587
  param: {
2639
2588
  base: `0x${string}`;
@@ -2646,19 +2595,8 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2646
2595
  window?: string | string[];
2647
2596
  } | undefined;
2648
2597
  };
2649
- };
2650
- };
2651
- } & {
2652
- "/v1/exchange/pairs/:base/depth": {
2653
- $get: {
2598
+ } | {
2654
2599
  output: {
2655
- asks: {
2656
- cumulativeSize: string;
2657
- id: string;
2658
- price: string;
2659
- size: string;
2660
- tick: number;
2661
- }[];
2662
2600
  base: {
2663
2601
  address: `0x${string}`;
2664
2602
  currency?: string | undefined;
@@ -2668,13 +2606,20 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2668
2606
  symbol?: string | undefined;
2669
2607
  verified?: boolean | undefined;
2670
2608
  };
2671
- bids: {
2672
- cumulativeSize: string;
2609
+ data: {
2610
+ close: string;
2611
+ fillCount: number;
2612
+ high: string;
2673
2613
  id: string;
2674
- price: string;
2675
- size: string;
2676
- tick: number;
2614
+ low: string;
2615
+ open: string;
2616
+ timestamp: string;
2617
+ volume: {
2618
+ base: string;
2619
+ quote: string;
2620
+ };
2677
2621
  }[];
2622
+ interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
2678
2623
  quote: {
2679
2624
  address: `0x${string}`;
2680
2625
  currency?: string | undefined;
@@ -2684,9 +2629,31 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2684
2629
  symbol?: string | undefined;
2685
2630
  verified?: boolean | undefined;
2686
2631
  };
2632
+ truncated: boolean;
2633
+ window: "1h" | "24h" | "30d" | "7d";
2687
2634
  };
2688
2635
  outputFormat: "json";
2689
2636
  status: 200;
2637
+ input: {
2638
+ param: {
2639
+ base: `0x${string}`;
2640
+ };
2641
+ } & {
2642
+ query?: {
2643
+ chainId?: string | string[];
2644
+ include?: string | string[];
2645
+ interval?: string | string[];
2646
+ window?: string | string[];
2647
+ } | undefined;
2648
+ };
2649
+ };
2650
+ };
2651
+ } & {
2652
+ "/v1/exchange/pairs/:base/depth": {
2653
+ $get: {
2654
+ output: null;
2655
+ outputFormat: "body";
2656
+ status: 402;
2690
2657
  input: {
2691
2658
  param: {
2692
2659
  base: `0x${string}`;
@@ -2723,14 +2690,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2723
2690
  } | {
2724
2691
  output: {
2725
2692
  error: {
2726
- code: "query_invalid";
2693
+ code: "api_key_invalid" | "api_key_missing";
2727
2694
  details?: readonly Response.error.Detail[] | undefined;
2728
2695
  message: string;
2729
2696
  };
2730
2697
  requestId: string;
2731
2698
  };
2732
2699
  outputFormat: "json";
2733
- status: 400;
2700
+ status: 401;
2734
2701
  input: {
2735
2702
  param: {
2736
2703
  base: `0x${string}`;
@@ -2745,14 +2712,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2745
2712
  } | {
2746
2713
  output: {
2747
2714
  error: {
2748
- code: "pair_invalid";
2715
+ code: "api_key_forbidden";
2749
2716
  details?: readonly Response.error.Detail[] | undefined;
2750
2717
  message: string;
2751
2718
  };
2752
2719
  requestId: string;
2753
2720
  };
2754
2721
  outputFormat: "json";
2755
- status: 400;
2722
+ status: 403;
2756
2723
  input: {
2757
2724
  param: {
2758
2725
  base: `0x${string}`;
@@ -2767,14 +2734,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2767
2734
  } | {
2768
2735
  output: {
2769
2736
  error: {
2770
- code: "api_key_invalid" | "api_key_missing";
2737
+ code: "payment_required" | "rate_limit_exceeded";
2771
2738
  details?: readonly Response.error.Detail[] | undefined;
2772
2739
  message: string;
2773
2740
  };
2774
2741
  requestId: string;
2775
2742
  };
2776
2743
  outputFormat: "json";
2777
- status: 401;
2744
+ status: 429;
2778
2745
  input: {
2779
2746
  param: {
2780
2747
  base: `0x${string}`;
@@ -2787,9 +2754,16 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2787
2754
  } | undefined;
2788
2755
  };
2789
2756
  } | {
2790
- output: null;
2791
- outputFormat: "body";
2792
- status: 402;
2757
+ output: {
2758
+ error: {
2759
+ code: "query_invalid";
2760
+ details?: readonly Response.error.Detail[] | undefined;
2761
+ message: string;
2762
+ };
2763
+ requestId: string;
2764
+ };
2765
+ outputFormat: "json";
2766
+ status: 400;
2793
2767
  input: {
2794
2768
  param: {
2795
2769
  base: `0x${string}`;
@@ -2804,14 +2778,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2804
2778
  } | {
2805
2779
  output: {
2806
2780
  error: {
2807
- code: "api_key_forbidden";
2781
+ code: "upstream_error";
2808
2782
  details?: readonly Response.error.Detail[] | undefined;
2809
2783
  message: string;
2810
2784
  };
2811
2785
  requestId: string;
2812
2786
  };
2813
2787
  outputFormat: "json";
2814
- status: 403;
2788
+ status: 502;
2815
2789
  input: {
2816
2790
  param: {
2817
2791
  base: `0x${string}`;
@@ -2826,14 +2800,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2826
2800
  } | {
2827
2801
  output: {
2828
2802
  error: {
2829
- code: "pair_not_found";
2803
+ code: "pair_invalid";
2830
2804
  details?: readonly Response.error.Detail[] | undefined;
2831
2805
  message: string;
2832
2806
  };
2833
2807
  requestId: string;
2834
2808
  };
2835
2809
  outputFormat: "json";
2836
- status: 404;
2810
+ status: 400;
2837
2811
  input: {
2838
2812
  param: {
2839
2813
  base: `0x${string}`;
@@ -2848,14 +2822,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2848
2822
  } | {
2849
2823
  output: {
2850
2824
  error: {
2851
- code: "payment_required" | "rate_limit_exceeded";
2825
+ code: "pair_not_found";
2852
2826
  details?: readonly Response.error.Detail[] | undefined;
2853
2827
  message: string;
2854
2828
  };
2855
2829
  requestId: string;
2856
2830
  };
2857
2831
  outputFormat: "json";
2858
- status: 429;
2832
+ status: 404;
2859
2833
  input: {
2860
2834
  param: {
2861
2835
  base: `0x${string}`;
@@ -2869,15 +2843,41 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2869
2843
  };
2870
2844
  } | {
2871
2845
  output: {
2872
- error: {
2873
- code: "upstream_error";
2874
- details?: readonly Response.error.Detail[] | undefined;
2875
- message: string;
2846
+ asks: {
2847
+ cumulativeSize: string;
2848
+ id: string;
2849
+ price: string;
2850
+ size: string;
2851
+ tick: number;
2852
+ }[];
2853
+ base: {
2854
+ address: `0x${string}`;
2855
+ currency?: string | undefined;
2856
+ decimals?: number | undefined;
2857
+ logoUri?: string | undefined;
2858
+ name?: string | undefined;
2859
+ symbol?: string | undefined;
2860
+ verified?: boolean | undefined;
2861
+ };
2862
+ bids: {
2863
+ cumulativeSize: string;
2864
+ id: string;
2865
+ price: string;
2866
+ size: string;
2867
+ tick: number;
2868
+ }[];
2869
+ quote: {
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;
2876
2877
  };
2877
- requestId: string;
2878
2878
  };
2879
2879
  outputFormat: "json";
2880
- status: 502;
2880
+ status: 200;
2881
2881
  input: {
2882
2882
  param: {
2883
2883
  base: `0x${string}`;