tapimo 0.0.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (517) hide show
  1. package/README.md +38 -16
  2. package/dist/ApiKey.d.ts +14 -11
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +11 -12
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +207 -0
  7. package/dist/ApiKeys.d.ts.map +1 -0
  8. package/dist/ApiKeys.js +282 -0
  9. package/dist/ApiKeys.js.map +1 -0
  10. package/dist/App.d.ts +6771 -3819
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +145 -317
  13. package/dist/App.js.map +1 -1
  14. package/dist/Handler.d.ts +86 -0
  15. package/dist/Handler.d.ts.map +1 -0
  16. package/dist/Handler.js +83 -0
  17. package/dist/Handler.js.map +1 -0
  18. package/dist/Scope.d.ts +14 -4
  19. package/dist/Scope.d.ts.map +1 -1
  20. package/dist/Scope.js +16 -4
  21. package/dist/Scope.js.map +1 -1
  22. package/dist/Webhooks.d.ts +5 -7
  23. package/dist/Webhooks.d.ts.map +1 -1
  24. package/dist/Webhooks.js +11 -4
  25. package/dist/Webhooks.js.map +1 -1
  26. package/dist/admin/Access.d.ts +1 -3
  27. package/dist/admin/Access.d.ts.map +1 -1
  28. package/dist/admin/Access.js +1 -3
  29. package/dist/admin/Access.js.map +1 -1
  30. package/dist/admin/App.d.ts +167 -205
  31. package/dist/admin/App.d.ts.map +1 -1
  32. package/dist/admin/App.js +2 -4
  33. package/dist/admin/App.js.map +1 -1
  34. package/dist/admin/apps/api-keys.d.ts +105 -5
  35. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  36. package/dist/admin/apps/api-keys.js +75 -9
  37. package/dist/admin/apps/api-keys.js.map +1 -1
  38. package/dist/admin/apps/scopes.d.ts +6 -0
  39. package/dist/admin/apps/scopes.d.ts.map +1 -1
  40. package/dist/admin/apps/verified-tokens.d.ts +35 -149
  41. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  42. package/dist/admin/apps/verified-tokens.js +18 -39
  43. package/dist/admin/apps/verified-tokens.js.map +1 -1
  44. package/dist/admin/ui.generated.d.ts +1 -1
  45. package/dist/admin/ui.generated.js +1 -1
  46. package/dist/apps/data/App.d.ts +19176 -0
  47. package/dist/apps/data/App.d.ts.map +1 -0
  48. package/dist/apps/data/App.js +236 -0
  49. package/dist/apps/data/App.js.map +1 -0
  50. package/dist/apps/data/index.d.ts +3 -0
  51. package/dist/apps/data/index.d.ts.map +1 -0
  52. package/dist/apps/data/index.js +3 -0
  53. package/dist/apps/data/index.js.map +1 -0
  54. package/dist/apps/{activities.d.ts → data/routes/activities.d.ts} +32 -32
  55. package/dist/apps/{activities.d.ts.map → data/routes/activities.d.ts.map} +1 -1
  56. package/dist/apps/{activities.js → data/routes/activities.js} +13 -13
  57. package/dist/apps/data/routes/activities.js.map +1 -0
  58. package/dist/apps/{addresses.d.ts → data/routes/addresses.d.ts} +22 -22
  59. package/dist/apps/{addresses.d.ts.map → data/routes/addresses.d.ts.map} +1 -1
  60. package/dist/apps/{addresses.js → data/routes/addresses.js} +5 -5
  61. package/dist/apps/data/routes/addresses.js.map +1 -0
  62. package/dist/apps/{balances.d.ts → data/routes/balances.d.ts} +49 -49
  63. package/dist/apps/data/routes/balances.d.ts.map +1 -0
  64. package/dist/apps/{balances.js → data/routes/balances.js} +42 -11
  65. package/dist/apps/data/routes/balances.js.map +1 -0
  66. package/dist/apps/{blocks.d.ts → data/routes/blocks.d.ts} +47 -47
  67. package/dist/apps/data/routes/blocks.d.ts.map +1 -0
  68. package/dist/apps/{blocks.js → data/routes/blocks.js} +13 -13
  69. package/dist/apps/data/routes/blocks.js.map +1 -0
  70. package/dist/apps/{coingecko.d.ts → data/routes/coingecko.d.ts} +183 -183
  71. package/dist/apps/data/routes/coingecko.d.ts.map +1 -0
  72. package/dist/apps/{coingecko.js → data/routes/coingecko.js} +13 -13
  73. package/dist/apps/data/routes/coingecko.js.map +1 -0
  74. package/dist/apps/{exchanges.d.ts → data/routes/exchanges.d.ts} +460 -460
  75. package/dist/apps/data/routes/exchanges.d.ts.map +1 -0
  76. package/dist/apps/{exchanges.js → data/routes/exchanges.js} +19 -19
  77. package/dist/apps/data/routes/exchanges.js.map +1 -0
  78. package/dist/apps/{fee-amm.d.ts → data/routes/fee-amm.d.ts} +94 -94
  79. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -0
  80. package/dist/apps/{fee-amm.js → data/routes/fee-amm.js} +17 -17
  81. package/dist/apps/data/routes/fee-amm.js.map +1 -0
  82. package/dist/apps/{indexer.d.ts → data/routes/indexer.d.ts} +4 -4
  83. package/dist/apps/data/routes/indexer.d.ts.map +1 -0
  84. package/dist/apps/{indexer.js → data/routes/indexer.js} +13 -9
  85. package/dist/apps/data/routes/indexer.js.map +1 -0
  86. package/dist/apps/{receipts.d.ts → data/routes/receipts.d.ts} +6 -6
  87. package/dist/apps/data/routes/receipts.d.ts.map +1 -0
  88. package/dist/apps/{receipts.js → data/routes/receipts.js} +12 -12
  89. package/dist/apps/data/routes/receipts.js.map +1 -0
  90. package/dist/apps/{rpc.d.ts → data/routes/rpc.d.ts} +4 -4
  91. package/dist/apps/data/routes/rpc.d.ts.map +1 -0
  92. package/dist/apps/{rpc.js → data/routes/rpc.js} +6 -6
  93. package/dist/apps/data/routes/rpc.js.map +1 -0
  94. package/dist/apps/{tokenlist.d.ts → data/routes/tokenlist.d.ts} +4 -4
  95. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -0
  96. package/dist/apps/{tokenlist.js → data/routes/tokenlist.js} +8 -8
  97. package/dist/apps/data/routes/tokenlist.js.map +1 -0
  98. package/dist/apps/{tokens.d.ts → data/routes/tokens.d.ts} +11 -11
  99. package/dist/apps/data/routes/tokens.d.ts.map +1 -0
  100. package/dist/apps/{tokens.js → data/routes/tokens.js} +19 -19
  101. package/dist/apps/data/routes/tokens.js.map +1 -0
  102. package/dist/apps/{transactions.d.ts → data/routes/transactions.d.ts} +288 -288
  103. package/dist/apps/data/routes/transactions.d.ts.map +1 -0
  104. package/dist/apps/{transactions.js → data/routes/transactions.js} +13 -13
  105. package/dist/apps/data/routes/transactions.js.map +1 -0
  106. package/dist/apps/{transfers.d.ts → data/routes/transfers.d.ts} +35 -35
  107. package/dist/apps/data/routes/transfers.d.ts.map +1 -0
  108. package/dist/apps/{transfers.js → data/routes/transfers.js} +13 -13
  109. package/dist/apps/data/routes/transfers.js.map +1 -0
  110. package/dist/apps/{verified-tokens.d.ts → data/routes/verified-tokens.d.ts} +42 -42
  111. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -0
  112. package/dist/apps/{verified-tokens.js → data/routes/verified-tokens.js} +9 -9
  113. package/dist/apps/data/routes/verified-tokens.js.map +1 -0
  114. package/dist/apps/{webhooks.d.ts → data/routes/webhooks.d.ts} +66 -63
  115. package/dist/apps/{webhooks.d.ts.map → data/routes/webhooks.d.ts.map} +1 -1
  116. package/dist/apps/{webhooks.js → data/routes/webhooks.js} +67 -59
  117. package/dist/apps/data/routes/webhooks.js.map +1 -0
  118. package/dist/apps/docs/App.d.ts +27 -0
  119. package/dist/apps/docs/App.d.ts.map +1 -0
  120. package/dist/apps/docs/App.js +122 -0
  121. package/dist/apps/docs/App.js.map +1 -0
  122. package/dist/{internal/OpenApi.fonts.d.ts → apps/docs/fonts.d.ts} +1 -1
  123. package/dist/apps/docs/fonts.d.ts.map +1 -0
  124. package/dist/{internal/OpenApi.fonts.js → apps/docs/fonts.js} +1 -1
  125. package/dist/apps/docs/fonts.js.map +1 -0
  126. package/dist/apps/docs/index.d.ts +2 -0
  127. package/dist/apps/docs/index.d.ts.map +1 -0
  128. package/dist/apps/docs/index.js +2 -0
  129. package/dist/apps/docs/index.js.map +1 -0
  130. package/dist/{internal/OpenApi.logo.d.ts → apps/docs/logo.d.ts} +1 -1
  131. package/dist/apps/docs/logo.d.ts.map +1 -0
  132. package/dist/{internal/OpenApi.logo.js → apps/docs/logo.js} +1 -1
  133. package/dist/apps/docs/logo.js.map +1 -0
  134. package/dist/apps/index.d.ts +4 -0
  135. package/dist/apps/index.d.ts.map +1 -0
  136. package/dist/apps/index.js +4 -0
  137. package/dist/apps/index.js.map +1 -0
  138. package/dist/apps/metadata.d.ts +7 -0
  139. package/dist/apps/metadata.d.ts.map +1 -0
  140. package/dist/apps/metadata.js +15 -0
  141. package/dist/apps/metadata.js.map +1 -0
  142. package/dist/apps/platform/App.d.ts +2985 -0
  143. package/dist/apps/platform/App.d.ts.map +1 -0
  144. package/dist/apps/platform/App.js +74 -0
  145. package/dist/apps/platform/App.js.map +1 -0
  146. package/dist/apps/platform/index.d.ts +2 -0
  147. package/dist/apps/platform/index.d.ts.map +1 -0
  148. package/dist/apps/platform/index.js +2 -0
  149. package/dist/apps/platform/index.js.map +1 -0
  150. package/dist/apps/platform/routes/api-keys.d.ts +681 -0
  151. package/dist/apps/platform/routes/api-keys.d.ts.map +1 -0
  152. package/dist/apps/platform/routes/api-keys.js +328 -0
  153. package/dist/apps/platform/routes/api-keys.js.map +1 -0
  154. package/dist/apps/platform/routes/invitations.d.ts +733 -0
  155. package/dist/apps/platform/routes/invitations.d.ts.map +1 -0
  156. package/dist/apps/platform/routes/invitations.js +413 -0
  157. package/dist/apps/platform/routes/invitations.js.map +1 -0
  158. package/dist/apps/platform/routes/me.d.ts +95 -0
  159. package/dist/apps/platform/routes/me.d.ts.map +1 -0
  160. package/dist/apps/platform/routes/me.js +81 -0
  161. package/dist/apps/platform/routes/me.js.map +1 -0
  162. package/dist/apps/platform/routes/members.d.ts +554 -0
  163. package/dist/apps/platform/routes/members.d.ts.map +1 -0
  164. package/dist/apps/platform/routes/members.js +251 -0
  165. package/dist/apps/platform/routes/members.js.map +1 -0
  166. package/dist/apps/platform/routes/orgs.d.ts +582 -0
  167. package/dist/apps/platform/routes/orgs.d.ts.map +1 -0
  168. package/dist/apps/platform/routes/orgs.js +265 -0
  169. package/dist/apps/platform/routes/orgs.js.map +1 -0
  170. package/dist/apps/platform/routes/projects.d.ts +740 -0
  171. package/dist/apps/platform/routes/projects.d.ts.map +1 -0
  172. package/dist/apps/platform/routes/projects.js +286 -0
  173. package/dist/apps/platform/routes/projects.js.map +1 -0
  174. package/dist/apps/relay/App.d.ts +41 -0
  175. package/dist/apps/relay/App.d.ts.map +1 -0
  176. package/dist/apps/relay/App.js +103 -0
  177. package/dist/apps/relay/App.js.map +1 -0
  178. package/dist/apps/relay/Sponsorships.d.ts +107 -0
  179. package/dist/apps/relay/Sponsorships.d.ts.map +1 -0
  180. package/dist/apps/relay/Sponsorships.js +193 -0
  181. package/dist/apps/relay/Sponsorships.js.map +1 -0
  182. package/dist/apps/relay/index.d.ts +3 -0
  183. package/dist/apps/relay/index.d.ts.map +1 -0
  184. package/dist/apps/relay/index.js +3 -0
  185. package/dist/apps/relay/index.js.map +1 -0
  186. package/dist/{Cli.d.ts → cli/Cli.d.ts} +13 -2
  187. package/dist/cli/Cli.d.ts.map +1 -0
  188. package/dist/cli/Cli.js +19 -0
  189. package/dist/cli/Cli.js.map +1 -0
  190. package/dist/cli/bin.d.ts +3 -0
  191. package/dist/cli/bin.d.ts.map +1 -0
  192. package/dist/cli/bin.js +4 -0
  193. package/dist/cli/bin.js.map +1 -0
  194. package/dist/cli/commands/admin.d.ts +15 -0
  195. package/dist/cli/commands/admin.d.ts.map +1 -0
  196. package/dist/cli/commands/admin.js +60 -0
  197. package/dist/cli/commands/admin.js.map +1 -0
  198. package/dist/cloudflare.d.ts +7 -0
  199. package/dist/cloudflare.d.ts.map +1 -1
  200. package/dist/cloudflare.js +9 -0
  201. package/dist/cloudflare.js.map +1 -1
  202. package/dist/db/Db.d.ts +113 -0
  203. package/dist/db/Db.d.ts.map +1 -0
  204. package/dist/db/Db.js +402 -0
  205. package/dist/db/Db.js.map +1 -0
  206. package/dist/db/Schema.d.ts +168 -0
  207. package/dist/db/Schema.d.ts.map +1 -0
  208. package/dist/db/Schema.js +229 -0
  209. package/dist/db/Schema.js.map +1 -0
  210. package/dist/db/tables/invitations.d.ts +84 -0
  211. package/dist/db/tables/invitations.d.ts.map +1 -0
  212. package/dist/db/tables/invitations.js +165 -0
  213. package/dist/db/tables/invitations.js.map +1 -0
  214. package/dist/db/tables/memberships.d.ts +108 -0
  215. package/dist/db/tables/memberships.d.ts.map +1 -0
  216. package/dist/db/tables/memberships.js +153 -0
  217. package/dist/db/tables/memberships.js.map +1 -0
  218. package/dist/db/tables/organizations.d.ts +123 -0
  219. package/dist/db/tables/organizations.d.ts.map +1 -0
  220. package/dist/db/tables/organizations.js +170 -0
  221. package/dist/db/tables/organizations.js.map +1 -0
  222. package/dist/db/tables/projects.d.ts +65 -0
  223. package/dist/db/tables/projects.d.ts.map +1 -0
  224. package/dist/db/tables/projects.js +75 -0
  225. package/dist/db/tables/projects.js.map +1 -0
  226. package/dist/db/tables/sponsoredTransactions.d.ts +120 -0
  227. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -0
  228. package/dist/db/tables/sponsoredTransactions.js +161 -0
  229. package/dist/db/tables/sponsoredTransactions.js.map +1 -0
  230. package/dist/db/tables/users.d.ts +48 -0
  231. package/dist/db/tables/users.d.ts.map +1 -0
  232. package/dist/db/tables/users.js +65 -0
  233. package/dist/db/tables/users.js.map +1 -0
  234. package/dist/db/tables/verifiedTokens.d.ts +53 -0
  235. package/dist/db/tables/verifiedTokens.d.ts.map +1 -0
  236. package/dist/db/tables/verifiedTokens.js +74 -0
  237. package/dist/db/tables/verifiedTokens.js.map +1 -0
  238. package/dist/db/tables/webhookDeliveries.d.ts +71 -0
  239. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -0
  240. package/dist/db/tables/webhookDeliveries.js +119 -0
  241. package/dist/db/tables/webhookDeliveries.js.map +1 -0
  242. package/dist/db/tables/webhookSubscriptions.d.ts +158 -0
  243. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -0
  244. package/dist/db/tables/webhookSubscriptions.js +272 -0
  245. package/dist/db/tables/webhookSubscriptions.js.map +1 -0
  246. package/dist/handlers/internal/executionError.d.ts +25 -0
  247. package/dist/handlers/internal/executionError.d.ts.map +1 -0
  248. package/dist/handlers/internal/executionError.js +186 -0
  249. package/dist/handlers/internal/executionError.js.map +1 -0
  250. package/dist/handlers/internal/multisig.d.ts +233 -0
  251. package/dist/handlers/internal/multisig.d.ts.map +1 -0
  252. package/dist/handlers/internal/multisig.js +542 -0
  253. package/dist/handlers/internal/multisig.js.map +1 -0
  254. package/dist/handlers/internal/requestListener.d.ts +124 -0
  255. package/dist/handlers/internal/requestListener.d.ts.map +1 -0
  256. package/dist/handlers/internal/requestListener.js +173 -0
  257. package/dist/handlers/internal/requestListener.js.map +1 -0
  258. package/dist/handlers/internal/sponsorship.d.ts +113 -0
  259. package/dist/handlers/internal/sponsorship.d.ts.map +1 -0
  260. package/dist/handlers/internal/sponsorship.js +128 -0
  261. package/dist/handlers/internal/sponsorship.js.map +1 -0
  262. package/dist/handlers/internal/types.d.ts +284 -0
  263. package/dist/handlers/internal/types.d.ts.map +1 -0
  264. package/dist/handlers/internal/types.js +2 -0
  265. package/dist/handlers/internal/types.js.map +1 -0
  266. package/dist/handlers/internal/utils.d.ts +34 -0
  267. package/dist/handlers/internal/utils.d.ts.map +1 -0
  268. package/dist/handlers/internal/utils.js +131 -0
  269. package/dist/handlers/internal/utils.js.map +1 -0
  270. package/dist/handlers/relay.d.ts +123 -0
  271. package/dist/handlers/relay.d.ts.map +1 -0
  272. package/dist/handlers/relay.js +1278 -0
  273. package/dist/handlers/relay.js.map +1 -0
  274. package/dist/index.d.ts +4 -2
  275. package/dist/index.d.ts.map +1 -1
  276. package/dist/index.js +4 -2
  277. package/dist/index.js.map +1 -1
  278. package/dist/internal/Auth.d.ts +224 -16
  279. package/dist/internal/Auth.d.ts.map +1 -1
  280. package/dist/internal/Auth.js +572 -33
  281. package/dist/internal/Auth.js.map +1 -1
  282. package/dist/internal/Log.d.ts +7 -3
  283. package/dist/internal/Log.d.ts.map +1 -1
  284. package/dist/internal/Log.js +4 -0
  285. package/dist/internal/Log.js.map +1 -1
  286. package/dist/internal/OpenApi.d.ts +0 -19
  287. package/dist/internal/OpenApi.d.ts.map +1 -1
  288. package/dist/internal/OpenApi.js +0 -57
  289. package/dist/internal/OpenApi.js.map +1 -1
  290. package/dist/internal/RpcSchema.d.ts +10 -0
  291. package/dist/internal/RpcSchema.d.ts.map +1 -0
  292. package/dist/internal/RpcSchema.js +2 -0
  293. package/dist/internal/RpcSchema.js.map +1 -0
  294. package/dist/internal/Store.d.ts +49 -4
  295. package/dist/internal/Store.d.ts.map +1 -1
  296. package/dist/internal/Store.js +81 -5
  297. package/dist/internal/Store.js.map +1 -1
  298. package/dist/internal/VerifiedTokens.d.ts +15 -34
  299. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  300. package/dist/internal/VerifiedTokens.js +115 -159
  301. package/dist/internal/VerifiedTokens.js.map +1 -1
  302. package/dist/internal/Viem.d.ts +84 -0
  303. package/dist/internal/Viem.d.ts.map +1 -1
  304. package/dist/internal/Webhooks.d.ts +50 -36
  305. package/dist/internal/Webhooks.d.ts.map +1 -1
  306. package/dist/internal/Webhooks.js +92 -205
  307. package/dist/internal/Webhooks.js.map +1 -1
  308. package/package.json +37 -6
  309. package/src/ApiKey.test.ts +3 -3
  310. package/src/ApiKey.ts +11 -12
  311. package/src/ApiKeys.test.ts +278 -0
  312. package/src/ApiKeys.ts +358 -0
  313. package/src/App.test-d.ts +1 -1
  314. package/src/App.test.ts +40508 -19083
  315. package/src/App.ts +239 -416
  316. package/src/Client.test-d.ts +307 -16
  317. package/src/Handler.ts +154 -0
  318. package/src/Scope.ts +17 -4
  319. package/src/Webhooks.test.ts +8 -7
  320. package/src/Webhooks.ts +13 -7
  321. package/src/admin/Access.ts +1 -3
  322. package/src/admin/App.ts +19 -24
  323. package/src/admin/apps/api-keys.test.ts +70 -18
  324. package/src/admin/apps/api-keys.ts +92 -9
  325. package/src/admin/apps/scopes.test.ts +8 -0
  326. package/src/admin/apps/verified-tokens.test.ts +3 -30
  327. package/src/admin/apps/verified-tokens.ts +18 -37
  328. package/src/admin/ui.generated.ts +1 -1
  329. package/src/apps/composition.test.ts +66 -0
  330. package/src/apps/data/App.ts +295 -0
  331. package/src/apps/data/index.ts +2 -0
  332. package/src/apps/{activities.test.ts → data/routes/activities.test.ts} +3 -3
  333. package/src/apps/{activities.ts → data/routes/activities.ts} +15 -15
  334. package/src/apps/{addresses.ts → data/routes/addresses.ts} +6 -6
  335. package/src/apps/{balances.test.ts → data/routes/balances.test.ts} +6 -5
  336. package/src/apps/{balances.ts → data/routes/balances.ts} +46 -12
  337. package/src/apps/{blocks.test.ts → data/routes/blocks.test.ts} +4 -4
  338. package/src/apps/{blocks.ts → data/routes/blocks.ts} +14 -14
  339. package/src/apps/{coingecko.test.ts → data/routes/coingecko.test.ts} +2 -2
  340. package/src/apps/{coingecko.ts → data/routes/coingecko.ts} +14 -14
  341. package/src/apps/{exchanges.test.ts → data/routes/exchanges.test.ts} +2 -2
  342. package/src/apps/{exchanges.ts → data/routes/exchanges.ts} +20 -20
  343. package/src/apps/{fee-amm.test.ts → data/routes/fee-amm.test.ts} +3 -3
  344. package/src/apps/{fee-amm.ts → data/routes/fee-amm.ts} +18 -18
  345. package/src/apps/{indexer.test.ts → data/routes/indexer.test.ts} +27 -6
  346. package/src/apps/{indexer.ts → data/routes/indexer.ts} +13 -10
  347. package/src/apps/{receipts.test.ts → data/routes/receipts.test.ts} +4 -4
  348. package/src/apps/{receipts.ts → data/routes/receipts.ts} +13 -13
  349. package/src/apps/{rpc.test.ts → data/routes/rpc.test.ts} +142 -13
  350. package/src/apps/{rpc.ts → data/routes/rpc.ts} +7 -7
  351. package/src/apps/{tokenlist.test.ts → data/routes/tokenlist.test.ts} +8 -10
  352. package/src/apps/{tokenlist.ts → data/routes/tokenlist.ts} +9 -9
  353. package/src/apps/{tokens.test.ts → data/routes/tokens.test.ts} +6 -5
  354. package/src/apps/{tokens.ts → data/routes/tokens.ts} +20 -20
  355. package/src/apps/{transactions.test.ts → data/routes/transactions.test.ts} +4 -4
  356. package/src/apps/{transactions.ts → data/routes/transactions.ts} +15 -15
  357. package/src/apps/{transfers.test.ts → data/routes/transfers.test.ts} +3 -3
  358. package/src/apps/{transfers.ts → data/routes/transfers.ts} +15 -15
  359. package/src/apps/{verified-tokens.test.ts → data/routes/verified-tokens.test.ts} +27 -15
  360. package/src/apps/{verified-tokens.ts → data/routes/verified-tokens.ts} +10 -10
  361. package/src/apps/{webhooks.test.ts → data/routes/webhooks.test.ts} +137 -150
  362. package/src/apps/{webhooks.ts → data/routes/webhooks.ts} +83 -81
  363. package/src/apps/docs/App.ts +136 -0
  364. package/src/apps/docs/index.ts +1 -0
  365. package/src/apps/index.ts +3 -0
  366. package/src/apps/metadata.ts +23 -0
  367. package/src/apps/platform/App.ts +130 -0
  368. package/src/apps/platform/index.ts +1 -0
  369. package/src/apps/platform/routes/api-keys.test.ts +330 -0
  370. package/src/apps/platform/routes/api-keys.ts +427 -0
  371. package/src/apps/platform/routes/invitations.test.ts +361 -0
  372. package/src/apps/platform/routes/invitations.ts +519 -0
  373. package/src/apps/platform/routes/me.test.ts +121 -0
  374. package/src/apps/platform/routes/me.ts +106 -0
  375. package/src/apps/platform/routes/members.test.ts +195 -0
  376. package/src/apps/platform/routes/members.ts +313 -0
  377. package/src/apps/platform/routes/orgs.test.ts +313 -0
  378. package/src/apps/platform/routes/orgs.ts +343 -0
  379. package/src/apps/platform/routes/projects.test.ts +181 -0
  380. package/src/apps/platform/routes/projects.ts +367 -0
  381. package/src/apps/relay/App.test.ts +484 -0
  382. package/src/apps/relay/App.ts +128 -0
  383. package/src/apps/relay/Sponsorships.test.ts +375 -0
  384. package/src/apps/relay/Sponsorships.ts +305 -0
  385. package/src/apps/relay/index.ts +2 -0
  386. package/src/{Cli.test.ts → cli/Cli.test.ts} +10 -9
  387. package/src/{Cli.ts → cli/Cli.ts} +16 -9
  388. package/src/cli/bin.ts +4 -0
  389. package/src/cli/commands/admin.test.ts +71 -0
  390. package/src/cli/commands/admin.ts +60 -0
  391. package/src/cloudflare.ts +10 -0
  392. package/src/db/Db.test.ts +84 -0
  393. package/src/db/Db.ts +542 -0
  394. package/src/db/Schema.ts +301 -0
  395. package/src/db/tables/invitations.ts +198 -0
  396. package/src/db/tables/memberships.ts +208 -0
  397. package/src/db/tables/organizations.test.ts +160 -0
  398. package/src/db/tables/organizations.ts +232 -0
  399. package/src/db/tables/projects.ts +107 -0
  400. package/src/db/tables/sponsoredTransactions.test.ts +218 -0
  401. package/src/db/tables/sponsoredTransactions.ts +236 -0
  402. package/src/db/tables/users.ts +85 -0
  403. package/src/db/tables/verifiedTokens.ts +111 -0
  404. package/src/db/tables/webhookDeliveries.ts +159 -0
  405. package/src/db/tables/webhookSubscriptions.ts +358 -0
  406. package/src/handlers/internal/executionError.ts +207 -0
  407. package/src/handlers/internal/multisig.test.ts +818 -0
  408. package/src/handlers/internal/multisig.ts +823 -0
  409. package/src/handlers/internal/requestListener.ts +273 -0
  410. package/src/handlers/internal/sponsorship.ts +245 -0
  411. package/src/handlers/internal/types.ts +378 -0
  412. package/src/handlers/internal/utils.ts +153 -0
  413. package/src/handlers/relay.test.ts +2035 -0
  414. package/src/handlers/relay.ts +1623 -0
  415. package/src/index.ts +4 -2
  416. package/src/internal/Auth.test.ts +337 -21
  417. package/src/internal/Auth.ts +783 -44
  418. package/src/internal/Cursor.test.ts +3 -2
  419. package/src/internal/Log.test.ts +1 -1
  420. package/src/internal/Log.ts +11 -3
  421. package/src/internal/MetricSink.ts +1 -1
  422. package/src/internal/OpenApi.ts +0 -59
  423. package/src/internal/RateLimit.test.ts +1 -1
  424. package/src/internal/RpcSchema.ts +10 -0
  425. package/src/internal/Store.test.ts +150 -10
  426. package/src/internal/Store.ts +136 -11
  427. package/src/internal/Tidx.local.test.ts +1 -1
  428. package/src/internal/VerifiedTokens.test.ts +99 -115
  429. package/src/internal/VerifiedTokens.ts +123 -175
  430. package/src/internal/WebhookDestination.test.ts +1 -1
  431. package/src/internal/Webhooks.test.ts +111 -111
  432. package/src/internal/Webhooks.ts +103 -221
  433. package/dist/ApiKeySource.d.ts +0 -166
  434. package/dist/ApiKeySource.d.ts.map +0 -1
  435. package/dist/ApiKeySource.js +0 -234
  436. package/dist/ApiKeySource.js.map +0 -1
  437. package/dist/Cli.d.ts.map +0 -1
  438. package/dist/Cli.js +0 -13
  439. package/dist/Cli.js.map +0 -1
  440. package/dist/apps/activities.js.map +0 -1
  441. package/dist/apps/addresses.js.map +0 -1
  442. package/dist/apps/balances.d.ts.map +0 -1
  443. package/dist/apps/balances.js.map +0 -1
  444. package/dist/apps/blocks.d.ts.map +0 -1
  445. package/dist/apps/blocks.js.map +0 -1
  446. package/dist/apps/coingecko.d.ts.map +0 -1
  447. package/dist/apps/coingecko.js.map +0 -1
  448. package/dist/apps/exchanges.d.ts.map +0 -1
  449. package/dist/apps/exchanges.js.map +0 -1
  450. package/dist/apps/fee-amm.d.ts.map +0 -1
  451. package/dist/apps/fee-amm.js.map +0 -1
  452. package/dist/apps/indexer.d.ts.map +0 -1
  453. package/dist/apps/indexer.js.map +0 -1
  454. package/dist/apps/receipts.d.ts.map +0 -1
  455. package/dist/apps/receipts.js.map +0 -1
  456. package/dist/apps/rpc.d.ts.map +0 -1
  457. package/dist/apps/rpc.js.map +0 -1
  458. package/dist/apps/tokenlist.d.ts.map +0 -1
  459. package/dist/apps/tokenlist.js.map +0 -1
  460. package/dist/apps/tokens.d.ts.map +0 -1
  461. package/dist/apps/tokens.js.map +0 -1
  462. package/dist/apps/transactions.d.ts.map +0 -1
  463. package/dist/apps/transactions.js.map +0 -1
  464. package/dist/apps/transfers.d.ts.map +0 -1
  465. package/dist/apps/transfers.js.map +0 -1
  466. package/dist/apps/verified-tokens.d.ts.map +0 -1
  467. package/dist/apps/verified-tokens.js.map +0 -1
  468. package/dist/apps/webhooks.js.map +0 -1
  469. package/dist/internal/OpenApi.fonts.d.ts.map +0 -1
  470. package/dist/internal/OpenApi.fonts.js.map +0 -1
  471. package/dist/internal/OpenApi.logo.d.ts.map +0 -1
  472. package/dist/internal/OpenApi.logo.js.map +0 -1
  473. package/seeds/31318/icons/0x20c0000000000000000000000000000000000000.svg +0 -1
  474. package/seeds/31318/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  475. package/seeds/31318/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  476. package/seeds/31318/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  477. package/seeds/31318/verified-tokens.json +0 -30
  478. package/seeds/4217/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  479. package/seeds/4217/icons/0x20c000000000000000000000048c8f36df1c9a4a.svg +0 -1
  480. package/seeds/4217/icons/0x20c0000000000000000000000520792dcccccccc.svg +0 -1
  481. package/seeds/4217/icons/0x20c0000000000000000000000a6da882d075a4c3.svg +0 -4
  482. package/seeds/4217/icons/0x20c000000000000000000000111111111e910f0f.svg +0 -30
  483. package/seeds/4217/icons/0x20c00000000000000000000014f22ca97301eb73.svg +0 -1
  484. package/seeds/4217/icons/0x20c0000000000000000000001621e21f71cf12fb.svg +0 -1
  485. package/seeds/4217/icons/0x20c0000000000000000000002f52d5cc21a3207b.svg +0 -1
  486. package/seeds/4217/icons/0x20c0000000000000000000003158081efd85bfc2.svg +0 -11
  487. package/seeds/4217/icons/0x20c0000000000000000000003554d28269e0f3c2.svg +0 -1
  488. package/seeds/4217/icons/0x20c000000000000000000000383a23bacb546ab9.svg +0 -1
  489. package/seeds/4217/icons/0x20c00000000000000000000042109aef2f8b28e1.png +0 -0
  490. package/seeds/4217/icons/0x20c0000000000000000000005c0bac7cef389a11.svg +0 -1
  491. package/seeds/4217/icons/0x20c0000000000000000000006fd9a167923ba194.png +0 -0
  492. package/seeds/4217/icons/0x20c0000000000000000000007f7ba549dd0251b9.svg +0 -1
  493. package/seeds/4217/icons/0x20c0000000000000000000008191667423f70e67.svg +0 -5
  494. package/seeds/4217/icons/0x20c0000000000000000000008ee4fcff88888888.svg +0 -1
  495. package/seeds/4217/icons/0x20c0000000000000000000009a4a4b17e0dc6651.svg +0 -1
  496. package/seeds/4217/icons/0x20c000000000000000000000ab02d39df30bd17e.svg +0 -1
  497. package/seeds/4217/icons/0x20c000000000000000000000ae247a1130450f09.svg +0 -1
  498. package/seeds/4217/icons/0x20c000000000000000000000aeed2ec36a54d0e5.svg +0 -1
  499. package/seeds/4217/icons/0x20c000000000000000000000b9537d11c60e8b50.svg +0 -1
  500. package/seeds/4217/icons/0x20c000000000000000000000bd95bfb69fbe6ce3.svg +0 -1
  501. package/seeds/4217/icons/0x20c000000000000000000000c412ec89d0c08be5.svg +0 -1
  502. package/seeds/4217/icons/0x20c000000000000000000000f047dd7018e50367.png +0 -0
  503. package/seeds/4217/verified-tokens.json +0 -177
  504. package/seeds/42431/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  505. package/seeds/42431/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  506. package/seeds/42431/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  507. package/seeds/42431/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  508. package/seeds/42431/icons/0x20c0000000000000000000009e8d7eb59b783726.svg +0 -1
  509. package/seeds/42431/icons/0x20c000000000000000000000d72572838bbee59c.svg +0 -1
  510. package/seeds/42431/verified-tokens.json +0 -44
  511. package/seeds/openrpc/README.md +0 -27
  512. package/seeds/openrpc/execution-apis.json +0 -8989
  513. package/src/ApiKeySource.test-d.ts +0 -11
  514. package/src/ApiKeySource.test.ts +0 -295
  515. package/src/ApiKeySource.ts +0 -303
  516. /package/src/{internal/OpenApi.fonts.ts → apps/docs/fonts.ts} +0 -0
  517. /package/src/{internal/OpenApi.logo.ts → apps/docs/logo.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { type Context } from 'hono';
2
2
  import * as z from 'zod/mini';
3
- import type * as App from '../App.js';
4
- import * as Response from '../internal/Response.js';
5
- import * as Schema from '../internal/Schema.js';
3
+ import type * as App from '../../../App.js';
4
+ import * as Response from '../../../internal/Response.js';
5
+ import * as Schema from '../../../internal/Schema.js';
6
6
  /** Zod schemas owned by the exchange handlers. */
7
7
  export declare namespace schema {
8
8
  /**
@@ -973,11 +973,71 @@ export declare namespace schema {
973
973
  * DEX-escrow balance is zero are excluded from the liquidity ranking.
974
974
  */
975
975
  export declare function exchanges(): import("hono/hono-base").HonoBase<App.Environment, {
976
- "/swaps": {
976
+ "/v1/exchange/swaps": {
977
977
  $get: {
978
- output: null;
979
- outputFormat: "body";
980
- status: 402;
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;
981
1041
  input: {
982
1042
  query?: {
983
1043
  'blockNumber.from'?: string | string[];
@@ -998,14 +1058,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
998
1058
  } | {
999
1059
  output: {
1000
1060
  error: {
1001
- code: "upstream_error";
1061
+ code: "api_key_malformed";
1002
1062
  details?: readonly Response.error.Detail[] | undefined;
1003
1063
  message: string;
1004
1064
  };
1005
1065
  requestId: string;
1006
1066
  };
1007
1067
  outputFormat: "json";
1008
- status: 502;
1068
+ status: 400;
1009
1069
  input: {
1010
1070
  query?: {
1011
1071
  'blockNumber.from'?: string | string[];
@@ -1026,7 +1086,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1026
1086
  } | {
1027
1087
  output: {
1028
1088
  error: {
1029
- code: "api_key_malformed";
1089
+ code: "query_invalid";
1030
1090
  details?: readonly Response.error.Detail[] | undefined;
1031
1091
  message: string;
1032
1092
  };
@@ -1079,6 +1139,27 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1079
1139
  transactionHash?: string | string[];
1080
1140
  } | undefined;
1081
1141
  };
1142
+ } | {
1143
+ output: null;
1144
+ outputFormat: "body";
1145
+ status: 402;
1146
+ input: {
1147
+ query?: {
1148
+ 'blockNumber.from'?: string | string[];
1149
+ 'blockNumber.to'?: string | string[];
1150
+ chainId?: string | string[];
1151
+ cursor?: string | string[];
1152
+ include?: string | string[];
1153
+ limit?: string | string[];
1154
+ maker?: string | string[];
1155
+ order?: string | string[];
1156
+ participant?: string | string[];
1157
+ taker?: string | string[];
1158
+ 'timestamp.from'?: string | string[];
1159
+ 'timestamp.to'?: string | string[];
1160
+ transactionHash?: string | string[];
1161
+ } | undefined;
1162
+ };
1082
1163
  } | {
1083
1164
  output: {
1084
1165
  error: {
@@ -1138,14 +1219,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1138
1219
  } | {
1139
1220
  output: {
1140
1221
  error: {
1141
- code: "query_invalid";
1222
+ code: "upstream_error";
1142
1223
  details?: readonly Response.error.Detail[] | undefined;
1143
1224
  message: string;
1144
1225
  };
1145
1226
  requestId: string;
1146
1227
  };
1147
1228
  outputFormat: "json";
1148
- status: 400;
1229
+ status: 502;
1149
1230
  input: {
1150
1231
  query?: {
1151
1232
  'blockNumber.from'?: string | string[];
@@ -1163,11 +1244,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1163
1244
  transactionHash?: string | string[];
1164
1245
  } | undefined;
1165
1246
  };
1166
- } | {
1247
+ };
1248
+ };
1249
+ } & {
1250
+ "/v1/exchange/pairs": {
1251
+ $get: {
1167
1252
  output: {
1168
1253
  data: {
1169
- blockNumber: number;
1170
- destinationToken: {
1254
+ base: {
1171
1255
  address: `0x${string}`;
1172
1256
  currency?: string | undefined;
1173
1257
  decimals?: number | undefined;
@@ -1175,42 +1259,12 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1175
1259
  name?: string | undefined;
1176
1260
  symbol?: string | undefined;
1177
1261
  verified?: boolean | undefined;
1178
- amount: string;
1179
1262
  };
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: {
1263
+ blockNumber: number;
1264
+ id: `0x${string}`;
1265
+ key: `0x${string}`;
1266
+ liquidity?: string | undefined;
1267
+ quote: {
1214
1268
  address: `0x${string}`;
1215
1269
  currency?: string | undefined;
1216
1270
  decimals?: number | undefined;
@@ -1218,40 +1272,18 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1218
1272
  name?: string | undefined;
1219
1273
  symbol?: string | undefined;
1220
1274
  verified?: boolean | undefined;
1221
- amount: string;
1222
1275
  };
1223
- taker: `0x${string}`;
1276
+ timestamp: string;
1224
1277
  transactionHash: `0x${string}`;
1225
1278
  }[];
1279
+ meta?: {
1280
+ totalCountCapped: boolean;
1281
+ totalCount: number;
1282
+ } | undefined;
1226
1283
  nextCursor: string | null;
1227
1284
  };
1228
1285
  outputFormat: "json";
1229
1286
  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
- "/pairs": {
1251
- $get: {
1252
- output: null;
1253
- outputFormat: "body";
1254
- status: 402;
1255
1287
  input: {
1256
1288
  query?: {
1257
1289
  chainId?: string | string[];
@@ -1266,14 +1298,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1266
1298
  } | {
1267
1299
  output: {
1268
1300
  error: {
1269
- code: "upstream_error";
1301
+ code: "api_key_malformed";
1270
1302
  details?: readonly Response.error.Detail[] | undefined;
1271
1303
  message: string;
1272
1304
  };
1273
1305
  requestId: string;
1274
1306
  };
1275
1307
  outputFormat: "json";
1276
- status: 502;
1308
+ status: 400;
1277
1309
  input: {
1278
1310
  query?: {
1279
1311
  chainId?: string | string[];
@@ -1288,7 +1320,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1288
1320
  } | {
1289
1321
  output: {
1290
1322
  error: {
1291
- code: "api_key_malformed";
1323
+ code: "query_invalid";
1292
1324
  details?: readonly Response.error.Detail[] | undefined;
1293
1325
  message: string;
1294
1326
  };
@@ -1330,16 +1362,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1330
1362
  } | undefined;
1331
1363
  };
1332
1364
  } | {
1333
- output: {
1334
- error: {
1335
- code: "api_key_forbidden";
1336
- details?: readonly Response.error.Detail[] | undefined;
1337
- message: string;
1338
- };
1339
- requestId: string;
1340
- };
1341
- outputFormat: "json";
1342
- status: 403;
1365
+ output: null;
1366
+ outputFormat: "body";
1367
+ status: 402;
1343
1368
  input: {
1344
1369
  query?: {
1345
1370
  chainId?: string | string[];
@@ -1354,14 +1379,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1354
1379
  } | {
1355
1380
  output: {
1356
1381
  error: {
1357
- code: "payment_required" | "rate_limit_exceeded";
1382
+ code: "api_key_forbidden";
1358
1383
  details?: readonly Response.error.Detail[] | undefined;
1359
1384
  message: string;
1360
1385
  };
1361
1386
  requestId: string;
1362
1387
  };
1363
1388
  outputFormat: "json";
1364
- status: 429;
1389
+ status: 403;
1365
1390
  input: {
1366
1391
  query?: {
1367
1392
  chainId?: string | string[];
@@ -1376,14 +1401,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1376
1401
  } | {
1377
1402
  output: {
1378
1403
  error: {
1379
- code: "query_invalid";
1404
+ code: "payment_required" | "rate_limit_exceeded";
1380
1405
  details?: readonly Response.error.Detail[] | undefined;
1381
1406
  message: string;
1382
1407
  };
1383
1408
  requestId: string;
1384
1409
  };
1385
1410
  outputFormat: "json";
1386
- status: 400;
1411
+ status: 429;
1387
1412
  input: {
1388
1413
  query?: {
1389
1414
  chainId?: string | string[];
@@ -1397,40 +1422,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1397
1422
  };
1398
1423
  } | {
1399
1424
  output: {
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;
1425
+ error: {
1426
+ code: "upstream_error";
1427
+ details?: readonly Response.error.Detail[] | undefined;
1428
+ message: string;
1429
+ };
1430
+ requestId: string;
1431
1431
  };
1432
1432
  outputFormat: "json";
1433
- status: 200;
1433
+ status: 502;
1434
1434
  input: {
1435
1435
  query?: {
1436
1436
  chainId?: string | string[];
@@ -1445,11 +1445,36 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1445
1445
  };
1446
1446
  };
1447
1447
  } & {
1448
- "/pairs/:base": {
1448
+ "/v1/exchange/pairs/:base": {
1449
1449
  $get: {
1450
- output: null;
1451
- outputFormat: "body";
1452
- status: 402;
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;
1453
1478
  input: {
1454
1479
  param: {
1455
1480
  base: `0x${string}`;
@@ -1463,14 +1488,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1463
1488
  } | {
1464
1489
  output: {
1465
1490
  error: {
1466
- code: "upstream_error";
1491
+ code: "api_key_malformed";
1467
1492
  details?: readonly Response.error.Detail[] | undefined;
1468
1493
  message: string;
1469
1494
  };
1470
1495
  requestId: string;
1471
1496
  };
1472
1497
  outputFormat: "json";
1473
- status: 502;
1498
+ status: 400;
1474
1499
  input: {
1475
1500
  param: {
1476
1501
  base: `0x${string}`;
@@ -1484,7 +1509,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1484
1509
  } | {
1485
1510
  output: {
1486
1511
  error: {
1487
- code: "api_key_malformed";
1512
+ code: "query_invalid";
1488
1513
  details?: readonly Response.error.Detail[] | undefined;
1489
1514
  message: string;
1490
1515
  };
@@ -1505,14 +1530,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1505
1530
  } | {
1506
1531
  output: {
1507
1532
  error: {
1508
- code: "api_key_invalid" | "api_key_missing";
1533
+ code: "pair_invalid";
1509
1534
  details?: readonly Response.error.Detail[] | undefined;
1510
1535
  message: string;
1511
1536
  };
1512
1537
  requestId: string;
1513
1538
  };
1514
1539
  outputFormat: "json";
1515
- status: 401;
1540
+ status: 400;
1516
1541
  input: {
1517
1542
  param: {
1518
1543
  base: `0x${string}`;
@@ -1526,14 +1551,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1526
1551
  } | {
1527
1552
  output: {
1528
1553
  error: {
1529
- code: "api_key_forbidden";
1554
+ code: "api_key_invalid" | "api_key_missing";
1530
1555
  details?: readonly Response.error.Detail[] | undefined;
1531
1556
  message: string;
1532
1557
  };
1533
1558
  requestId: string;
1534
1559
  };
1535
1560
  outputFormat: "json";
1536
- status: 403;
1561
+ status: 401;
1537
1562
  input: {
1538
1563
  param: {
1539
1564
  base: `0x${string}`;
@@ -1545,16 +1570,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1545
1570
  } | undefined;
1546
1571
  };
1547
1572
  } | {
1548
- output: {
1549
- error: {
1550
- code: "payment_required" | "rate_limit_exceeded";
1551
- details?: readonly Response.error.Detail[] | undefined;
1552
- message: string;
1553
- };
1554
- requestId: string;
1555
- };
1556
- outputFormat: "json";
1557
- status: 429;
1573
+ output: null;
1574
+ outputFormat: "body";
1575
+ status: 402;
1558
1576
  input: {
1559
1577
  param: {
1560
1578
  base: `0x${string}`;
@@ -1568,14 +1586,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1568
1586
  } | {
1569
1587
  output: {
1570
1588
  error: {
1571
- code: "query_invalid";
1589
+ code: "api_key_forbidden";
1572
1590
  details?: readonly Response.error.Detail[] | undefined;
1573
1591
  message: string;
1574
1592
  };
1575
1593
  requestId: string;
1576
1594
  };
1577
1595
  outputFormat: "json";
1578
- status: 400;
1596
+ status: 403;
1579
1597
  input: {
1580
1598
  param: {
1581
1599
  base: `0x${string}`;
@@ -1589,14 +1607,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1589
1607
  } | {
1590
1608
  output: {
1591
1609
  error: {
1592
- code: "pair_invalid";
1610
+ code: "pair_not_found";
1593
1611
  details?: readonly Response.error.Detail[] | undefined;
1594
1612
  message: string;
1595
1613
  };
1596
1614
  requestId: string;
1597
1615
  };
1598
1616
  outputFormat: "json";
1599
- status: 400;
1617
+ status: 404;
1600
1618
  input: {
1601
1619
  param: {
1602
1620
  base: `0x${string}`;
@@ -1610,14 +1628,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1610
1628
  } | {
1611
1629
  output: {
1612
1630
  error: {
1613
- code: "pair_not_found";
1631
+ code: "payment_required" | "rate_limit_exceeded";
1614
1632
  details?: readonly Response.error.Detail[] | undefined;
1615
1633
  message: string;
1616
1634
  };
1617
1635
  requestId: string;
1618
1636
  };
1619
1637
  outputFormat: "json";
1620
- status: 404;
1638
+ status: 429;
1621
1639
  input: {
1622
1640
  param: {
1623
1641
  base: `0x${string}`;
@@ -1630,33 +1648,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1630
1648
  };
1631
1649
  } | {
1632
1650
  output: {
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;
1641
- };
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;
1651
+ error: {
1652
+ code: "upstream_error";
1653
+ details?: readonly Response.error.Detail[] | undefined;
1654
+ message: string;
1654
1655
  };
1655
- timestamp: string;
1656
- transactionHash: `0x${string}`;
1656
+ requestId: string;
1657
1657
  };
1658
1658
  outputFormat: "json";
1659
- status: 200;
1659
+ status: 502;
1660
1660
  input: {
1661
1661
  param: {
1662
1662
  base: `0x${string}`;
@@ -1670,11 +1670,54 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1670
1670
  };
1671
1671
  };
1672
1672
  } & {
1673
- "/orders": {
1673
+ "/v1/exchange/orders": {
1674
1674
  $get: {
1675
- output: null;
1676
- outputFormat: "body";
1677
- status: 402;
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;
1678
1721
  input: {
1679
1722
  query?: {
1680
1723
  base?: string | string[];
@@ -1692,14 +1735,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1692
1735
  } | {
1693
1736
  output: {
1694
1737
  error: {
1695
- code: "upstream_error";
1738
+ code: "api_key_malformed";
1696
1739
  details?: readonly Response.error.Detail[] | undefined;
1697
1740
  message: string;
1698
1741
  };
1699
1742
  requestId: string;
1700
1743
  };
1701
1744
  outputFormat: "json";
1702
- status: 502;
1745
+ status: 400;
1703
1746
  input: {
1704
1747
  query?: {
1705
1748
  base?: string | string[];
@@ -1717,7 +1760,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1717
1760
  } | {
1718
1761
  output: {
1719
1762
  error: {
1720
- code: "api_key_malformed";
1763
+ code: "query_invalid";
1721
1764
  details?: readonly Response.error.Detail[] | undefined;
1722
1765
  message: string;
1723
1766
  };
@@ -1765,16 +1808,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1765
1808
  } | undefined;
1766
1809
  };
1767
1810
  } | {
1768
- output: {
1769
- error: {
1770
- code: "api_key_forbidden";
1771
- details?: readonly Response.error.Detail[] | undefined;
1772
- message: string;
1773
- };
1774
- requestId: string;
1775
- };
1776
- outputFormat: "json";
1777
- status: 403;
1811
+ output: null;
1812
+ outputFormat: "body";
1813
+ status: 402;
1778
1814
  input: {
1779
1815
  query?: {
1780
1816
  base?: string | string[];
@@ -1792,14 +1828,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1792
1828
  } | {
1793
1829
  output: {
1794
1830
  error: {
1795
- code: "payment_required" | "rate_limit_exceeded";
1831
+ code: "api_key_forbidden";
1796
1832
  details?: readonly Response.error.Detail[] | undefined;
1797
1833
  message: string;
1798
1834
  };
1799
1835
  requestId: string;
1800
1836
  };
1801
1837
  outputFormat: "json";
1802
- status: 429;
1838
+ status: 403;
1803
1839
  input: {
1804
1840
  query?: {
1805
1841
  base?: string | string[];
@@ -1817,14 +1853,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1817
1853
  } | {
1818
1854
  output: {
1819
1855
  error: {
1820
- code: "query_invalid";
1856
+ code: "pair_not_found";
1821
1857
  details?: readonly Response.error.Detail[] | undefined;
1822
1858
  message: string;
1823
1859
  };
1824
1860
  requestId: string;
1825
1861
  };
1826
1862
  outputFormat: "json";
1827
- status: 400;
1863
+ status: 404;
1828
1864
  input: {
1829
1865
  query?: {
1830
1866
  base?: string | string[];
@@ -1842,14 +1878,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1842
1878
  } | {
1843
1879
  output: {
1844
1880
  error: {
1845
- code: "pair_not_found";
1881
+ code: "payment_required" | "rate_limit_exceeded";
1846
1882
  details?: readonly Response.error.Detail[] | undefined;
1847
1883
  message: string;
1848
1884
  };
1849
1885
  requestId: string;
1850
1886
  };
1851
1887
  outputFormat: "json";
1852
- status: 404;
1888
+ status: 429;
1853
1889
  input: {
1854
1890
  query?: {
1855
1891
  base?: string | string[];
@@ -1866,51 +1902,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1866
1902
  };
1867
1903
  } | {
1868
1904
  output: {
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;
1905
+ error: {
1906
+ code: "upstream_error";
1907
+ details?: readonly Response.error.Detail[] | undefined;
1908
+ message: string;
1909
+ };
1910
+ requestId: string;
1911
1911
  };
1912
1912
  outputFormat: "json";
1913
- status: 200;
1913
+ status: 502;
1914
1914
  input: {
1915
1915
  query?: {
1916
1916
  base?: string | string[];
@@ -1928,11 +1928,45 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1928
1928
  };
1929
1929
  };
1930
1930
  } & {
1931
- "/orders/:orderId": {
1931
+ "/v1/exchange/orders/:orderId": {
1932
1932
  $get: {
1933
- output: null;
1934
- outputFormat: "body";
1935
- status: 402;
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;
1936
1970
  input: {
1937
1971
  param: {
1938
1972
  orderId: string;
@@ -1946,14 +1980,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1946
1980
  } | {
1947
1981
  output: {
1948
1982
  error: {
1949
- code: "upstream_error";
1983
+ code: "api_key_malformed";
1950
1984
  details?: readonly Response.error.Detail[] | undefined;
1951
1985
  message: string;
1952
1986
  };
1953
1987
  requestId: string;
1954
1988
  };
1955
1989
  outputFormat: "json";
1956
- status: 502;
1990
+ status: 400;
1957
1991
  input: {
1958
1992
  param: {
1959
1993
  orderId: string;
@@ -1967,7 +2001,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1967
2001
  } | {
1968
2002
  output: {
1969
2003
  error: {
1970
- code: "api_key_malformed";
2004
+ code: "query_invalid";
1971
2005
  details?: readonly Response.error.Detail[] | undefined;
1972
2006
  message: string;
1973
2007
  };
@@ -1988,14 +2022,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1988
2022
  } | {
1989
2023
  output: {
1990
2024
  error: {
1991
- code: "api_key_invalid" | "api_key_missing";
2025
+ code: "order_invalid";
1992
2026
  details?: readonly Response.error.Detail[] | undefined;
1993
2027
  message: string;
1994
2028
  };
1995
2029
  requestId: string;
1996
2030
  };
1997
2031
  outputFormat: "json";
1998
- status: 401;
2032
+ status: 400;
1999
2033
  input: {
2000
2034
  param: {
2001
2035
  orderId: string;
@@ -2009,14 +2043,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2009
2043
  } | {
2010
2044
  output: {
2011
2045
  error: {
2012
- code: "api_key_forbidden";
2046
+ code: "api_key_invalid" | "api_key_missing";
2013
2047
  details?: readonly Response.error.Detail[] | undefined;
2014
2048
  message: string;
2015
2049
  };
2016
2050
  requestId: string;
2017
2051
  };
2018
2052
  outputFormat: "json";
2019
- status: 403;
2053
+ status: 401;
2020
2054
  input: {
2021
2055
  param: {
2022
2056
  orderId: string;
@@ -2028,16 +2062,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2028
2062
  } | undefined;
2029
2063
  };
2030
2064
  } | {
2031
- output: {
2032
- error: {
2033
- code: "payment_required" | "rate_limit_exceeded";
2034
- details?: readonly Response.error.Detail[] | undefined;
2035
- message: string;
2036
- };
2037
- requestId: string;
2038
- };
2039
- outputFormat: "json";
2040
- status: 429;
2065
+ output: null;
2066
+ outputFormat: "body";
2067
+ status: 402;
2041
2068
  input: {
2042
2069
  param: {
2043
2070
  orderId: string;
@@ -2051,14 +2078,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2051
2078
  } | {
2052
2079
  output: {
2053
2080
  error: {
2054
- code: "query_invalid";
2081
+ code: "api_key_forbidden";
2055
2082
  details?: readonly Response.error.Detail[] | undefined;
2056
2083
  message: string;
2057
2084
  };
2058
2085
  requestId: string;
2059
2086
  };
2060
2087
  outputFormat: "json";
2061
- status: 400;
2088
+ status: 403;
2062
2089
  input: {
2063
2090
  param: {
2064
2091
  orderId: string;
@@ -2072,14 +2099,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2072
2099
  } | {
2073
2100
  output: {
2074
2101
  error: {
2075
- code: "order_invalid";
2102
+ code: "order_not_found";
2076
2103
  details?: readonly Response.error.Detail[] | undefined;
2077
2104
  message: string;
2078
2105
  };
2079
2106
  requestId: string;
2080
2107
  };
2081
2108
  outputFormat: "json";
2082
- status: 400;
2109
+ status: 404;
2083
2110
  input: {
2084
2111
  param: {
2085
2112
  orderId: string;
@@ -2093,14 +2120,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2093
2120
  } | {
2094
2121
  output: {
2095
2122
  error: {
2096
- code: "order_not_found";
2123
+ code: "payment_required" | "rate_limit_exceeded";
2097
2124
  details?: readonly Response.error.Detail[] | undefined;
2098
2125
  message: string;
2099
2126
  };
2100
2127
  requestId: string;
2101
2128
  };
2102
2129
  outputFormat: "json";
2103
- status: 404;
2130
+ status: 429;
2104
2131
  input: {
2105
2132
  param: {
2106
2133
  orderId: string;
@@ -2113,42 +2140,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2113
2140
  };
2114
2141
  } | {
2115
2142
  output: {
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
- };
2143
+ error: {
2144
+ code: "upstream_error";
2145
+ details?: readonly Response.error.Detail[] | undefined;
2146
+ message: string;
2144
2147
  };
2145
- price: string;
2146
- rate: string;
2147
- remaining: string;
2148
- tick: number;
2148
+ requestId: string;
2149
2149
  };
2150
2150
  outputFormat: "json";
2151
- status: 200;
2151
+ status: 502;
2152
2152
  input: {
2153
2153
  param: {
2154
2154
  orderId: string;
@@ -2162,11 +2162,28 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2162
2162
  };
2163
2163
  };
2164
2164
  } & {
2165
- "/orders/:orderId/fills": {
2165
+ "/v1/exchange/orders/:orderId/fills": {
2166
2166
  $get: {
2167
- output: null;
2168
- outputFormat: "body";
2169
- status: 402;
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;
2170
2187
  input: {
2171
2188
  param: {
2172
2189
  orderId: string;
@@ -2184,14 +2201,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2184
2201
  } | {
2185
2202
  output: {
2186
2203
  error: {
2187
- code: "upstream_error";
2204
+ code: "api_key_malformed";
2188
2205
  details?: readonly Response.error.Detail[] | undefined;
2189
2206
  message: string;
2190
2207
  };
2191
2208
  requestId: string;
2192
2209
  };
2193
2210
  outputFormat: "json";
2194
- status: 502;
2211
+ status: 400;
2195
2212
  input: {
2196
2213
  param: {
2197
2214
  orderId: string;
@@ -2209,7 +2226,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2209
2226
  } | {
2210
2227
  output: {
2211
2228
  error: {
2212
- code: "api_key_malformed";
2229
+ code: "query_invalid";
2213
2230
  details?: readonly Response.error.Detail[] | undefined;
2214
2231
  message: string;
2215
2232
  };
@@ -2234,14 +2251,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2234
2251
  } | {
2235
2252
  output: {
2236
2253
  error: {
2237
- code: "api_key_invalid" | "api_key_missing";
2254
+ code: "order_invalid";
2238
2255
  details?: readonly Response.error.Detail[] | undefined;
2239
2256
  message: string;
2240
2257
  };
2241
2258
  requestId: string;
2242
2259
  };
2243
2260
  outputFormat: "json";
2244
- status: 401;
2261
+ status: 400;
2245
2262
  input: {
2246
2263
  param: {
2247
2264
  orderId: string;
@@ -2259,14 +2276,32 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2259
2276
  } | {
2260
2277
  output: {
2261
2278
  error: {
2262
- code: "api_key_forbidden";
2279
+ code: "api_key_invalid" | "api_key_missing";
2263
2280
  details?: readonly Response.error.Detail[] | undefined;
2264
2281
  message: string;
2265
2282
  };
2266
2283
  requestId: string;
2267
2284
  };
2268
- outputFormat: "json";
2269
- status: 403;
2285
+ 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;
2270
2305
  input: {
2271
2306
  param: {
2272
2307
  orderId: string;
@@ -2284,14 +2319,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2284
2319
  } | {
2285
2320
  output: {
2286
2321
  error: {
2287
- code: "payment_required" | "rate_limit_exceeded";
2322
+ code: "api_key_forbidden";
2288
2323
  details?: readonly Response.error.Detail[] | undefined;
2289
2324
  message: string;
2290
2325
  };
2291
2326
  requestId: string;
2292
2327
  };
2293
2328
  outputFormat: "json";
2294
- status: 429;
2329
+ status: 403;
2295
2330
  input: {
2296
2331
  param: {
2297
2332
  orderId: string;
@@ -2309,14 +2344,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2309
2344
  } | {
2310
2345
  output: {
2311
2346
  error: {
2312
- code: "query_invalid";
2347
+ code: "payment_required" | "rate_limit_exceeded";
2313
2348
  details?: readonly Response.error.Detail[] | undefined;
2314
2349
  message: string;
2315
2350
  };
2316
2351
  requestId: string;
2317
2352
  };
2318
2353
  outputFormat: "json";
2319
- status: 400;
2354
+ status: 429;
2320
2355
  input: {
2321
2356
  param: {
2322
2357
  orderId: string;
@@ -2334,14 +2369,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2334
2369
  } | {
2335
2370
  output: {
2336
2371
  error: {
2337
- code: "order_invalid";
2372
+ code: "upstream_error";
2338
2373
  details?: readonly Response.error.Detail[] | undefined;
2339
2374
  message: string;
2340
2375
  };
2341
2376
  requestId: string;
2342
2377
  };
2343
2378
  outputFormat: "json";
2344
- status: 400;
2379
+ status: 502;
2345
2380
  input: {
2346
2381
  param: {
2347
2382
  orderId: string;
@@ -2356,49 +2391,72 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2356
2391
  page?: string | string[];
2357
2392
  } | undefined;
2358
2393
  };
2359
- } | {
2394
+ };
2395
+ };
2396
+ } & {
2397
+ "/v1/exchange/pairs/:base/ohlc": {
2398
+ $get: {
2360
2399
  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
+ };
2361
2409
  data: {
2362
- amountFilled: string;
2363
- blockNumber: number;
2364
- filledAt: string;
2410
+ close: string;
2411
+ fillCount: number;
2412
+ high: string;
2365
2413
  id: string;
2366
- logIndex: number;
2367
- orderId: string;
2368
- partialFill: boolean;
2369
- taker: `0x${string}`;
2370
- transactionHash: `0x${string}`;
2414
+ low: string;
2415
+ open: string;
2416
+ timestamp: string;
2417
+ volume: {
2418
+ base: string;
2419
+ quote: string;
2420
+ };
2371
2421
  }[];
2372
- meta?: {
2373
- totalCountCapped: boolean;
2374
- totalCount: number;
2375
- } | undefined;
2376
- nextCursor: string | null;
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";
2377
2434
  };
2378
2435
  outputFormat: "json";
2379
2436
  status: 200;
2380
2437
  input: {
2381
2438
  param: {
2382
- orderId: string;
2439
+ base: `0x${string}`;
2383
2440
  };
2384
2441
  } & {
2385
2442
  query?: {
2386
2443
  chainId?: string | string[];
2387
- cursor?: string | string[];
2388
2444
  include?: string | string[];
2389
- limit?: string | string[];
2390
- order?: string | string[];
2391
- page?: string | string[];
2445
+ interval?: string | string[];
2446
+ window?: string | string[];
2392
2447
  } | undefined;
2393
2448
  };
2394
- };
2395
- };
2396
- } & {
2397
- "/pairs/:base/ohlc": {
2398
- $get: {
2399
- output: null;
2400
- outputFormat: "body";
2401
- status: 402;
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;
2402
2460
  input: {
2403
2461
  param: {
2404
2462
  base: `0x${string}`;
@@ -2414,14 +2472,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2414
2472
  } | {
2415
2473
  output: {
2416
2474
  error: {
2417
- code: "upstream_error";
2475
+ code: "query_invalid";
2418
2476
  details?: readonly Response.error.Detail[] | undefined;
2419
2477
  message: string;
2420
2478
  };
2421
2479
  requestId: string;
2422
2480
  };
2423
2481
  outputFormat: "json";
2424
- status: 502;
2482
+ status: 400;
2425
2483
  input: {
2426
2484
  param: {
2427
2485
  base: `0x${string}`;
@@ -2437,7 +2495,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2437
2495
  } | {
2438
2496
  output: {
2439
2497
  error: {
2440
- code: "api_key_malformed";
2498
+ code: "pair_invalid";
2441
2499
  details?: readonly Response.error.Detail[] | undefined;
2442
2500
  message: string;
2443
2501
  };
@@ -2481,16 +2539,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2481
2539
  } | undefined;
2482
2540
  };
2483
2541
  } | {
2484
- output: {
2485
- error: {
2486
- code: "api_key_forbidden";
2487
- details?: readonly Response.error.Detail[] | undefined;
2488
- message: string;
2489
- };
2490
- requestId: string;
2491
- };
2492
- outputFormat: "json";
2493
- status: 403;
2542
+ output: null;
2543
+ outputFormat: "body";
2544
+ status: 402;
2494
2545
  input: {
2495
2546
  param: {
2496
2547
  base: `0x${string}`;
@@ -2506,14 +2557,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2506
2557
  } | {
2507
2558
  output: {
2508
2559
  error: {
2509
- code: "payment_required" | "rate_limit_exceeded";
2560
+ code: "api_key_forbidden";
2510
2561
  details?: readonly Response.error.Detail[] | undefined;
2511
2562
  message: string;
2512
2563
  };
2513
2564
  requestId: string;
2514
2565
  };
2515
2566
  outputFormat: "json";
2516
- status: 429;
2567
+ status: 403;
2517
2568
  input: {
2518
2569
  param: {
2519
2570
  base: `0x${string}`;
@@ -2529,14 +2580,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2529
2580
  } | {
2530
2581
  output: {
2531
2582
  error: {
2532
- code: "query_invalid";
2583
+ code: "pair_not_found";
2533
2584
  details?: readonly Response.error.Detail[] | undefined;
2534
2585
  message: string;
2535
2586
  };
2536
2587
  requestId: string;
2537
2588
  };
2538
2589
  outputFormat: "json";
2539
- status: 400;
2590
+ status: 404;
2540
2591
  input: {
2541
2592
  param: {
2542
2593
  base: `0x${string}`;
@@ -2552,14 +2603,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2552
2603
  } | {
2553
2604
  output: {
2554
2605
  error: {
2555
- code: "pair_invalid";
2606
+ code: "payment_required" | "rate_limit_exceeded";
2556
2607
  details?: readonly Response.error.Detail[] | undefined;
2557
2608
  message: string;
2558
2609
  };
2559
2610
  requestId: string;
2560
2611
  };
2561
2612
  outputFormat: "json";
2562
- status: 400;
2613
+ status: 429;
2563
2614
  input: {
2564
2615
  param: {
2565
2616
  base: `0x${string}`;
@@ -2575,14 +2626,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2575
2626
  } | {
2576
2627
  output: {
2577
2628
  error: {
2578
- code: "pair_not_found";
2629
+ code: "upstream_error";
2579
2630
  details?: readonly Response.error.Detail[] | undefined;
2580
2631
  message: string;
2581
2632
  };
2582
2633
  requestId: string;
2583
2634
  };
2584
2635
  outputFormat: "json";
2585
- status: 404;
2636
+ status: 502;
2586
2637
  input: {
2587
2638
  param: {
2588
2639
  base: `0x${string}`;
@@ -2595,8 +2646,19 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2595
2646
  window?: string | string[];
2596
2647
  } | undefined;
2597
2648
  };
2598
- } | {
2649
+ };
2650
+ };
2651
+ } & {
2652
+ "/v1/exchange/pairs/:base/depth": {
2653
+ $get: {
2599
2654
  output: {
2655
+ asks: {
2656
+ cumulativeSize: string;
2657
+ id: string;
2658
+ price: string;
2659
+ size: string;
2660
+ tick: number;
2661
+ }[];
2600
2662
  base: {
2601
2663
  address: `0x${string}`;
2602
2664
  currency?: string | undefined;
@@ -2606,20 +2668,13 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2606
2668
  symbol?: string | undefined;
2607
2669
  verified?: boolean | undefined;
2608
2670
  };
2609
- data: {
2610
- close: string;
2611
- fillCount: number;
2612
- high: string;
2671
+ bids: {
2672
+ cumulativeSize: string;
2613
2673
  id: string;
2614
- low: string;
2615
- open: string;
2616
- timestamp: string;
2617
- volume: {
2618
- base: string;
2619
- quote: string;
2620
- };
2674
+ price: string;
2675
+ size: string;
2676
+ tick: number;
2621
2677
  }[];
2622
- interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
2623
2678
  quote: {
2624
2679
  address: `0x${string}`;
2625
2680
  currency?: string | undefined;
@@ -2629,31 +2684,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2629
2684
  symbol?: string | undefined;
2630
2685
  verified?: boolean | undefined;
2631
2686
  };
2632
- truncated: boolean;
2633
- window: "1h" | "24h" | "30d" | "7d";
2634
2687
  };
2635
2688
  outputFormat: "json";
2636
2689
  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
- "/pairs/:base/depth": {
2653
- $get: {
2654
- output: null;
2655
- outputFormat: "body";
2656
- status: 402;
2657
2690
  input: {
2658
2691
  param: {
2659
2692
  base: `0x${string}`;
@@ -2668,14 +2701,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2668
2701
  } | {
2669
2702
  output: {
2670
2703
  error: {
2671
- code: "upstream_error";
2704
+ code: "api_key_malformed";
2672
2705
  details?: readonly Response.error.Detail[] | undefined;
2673
2706
  message: string;
2674
2707
  };
2675
2708
  requestId: string;
2676
2709
  };
2677
2710
  outputFormat: "json";
2678
- status: 502;
2711
+ status: 400;
2679
2712
  input: {
2680
2713
  param: {
2681
2714
  base: `0x${string}`;
@@ -2690,7 +2723,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2690
2723
  } | {
2691
2724
  output: {
2692
2725
  error: {
2693
- code: "api_key_malformed";
2726
+ code: "query_invalid";
2694
2727
  details?: readonly Response.error.Detail[] | undefined;
2695
2728
  message: string;
2696
2729
  };
@@ -2712,14 +2745,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2712
2745
  } | {
2713
2746
  output: {
2714
2747
  error: {
2715
- code: "api_key_invalid" | "api_key_missing";
2748
+ code: "pair_invalid";
2716
2749
  details?: readonly Response.error.Detail[] | undefined;
2717
2750
  message: string;
2718
2751
  };
2719
2752
  requestId: string;
2720
2753
  };
2721
2754
  outputFormat: "json";
2722
- status: 401;
2755
+ status: 400;
2723
2756
  input: {
2724
2757
  param: {
2725
2758
  base: `0x${string}`;
@@ -2734,14 +2767,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2734
2767
  } | {
2735
2768
  output: {
2736
2769
  error: {
2737
- code: "api_key_forbidden";
2770
+ code: "api_key_invalid" | "api_key_missing";
2738
2771
  details?: readonly Response.error.Detail[] | undefined;
2739
2772
  message: string;
2740
2773
  };
2741
2774
  requestId: string;
2742
2775
  };
2743
2776
  outputFormat: "json";
2744
- status: 403;
2777
+ status: 401;
2745
2778
  input: {
2746
2779
  param: {
2747
2780
  base: `0x${string}`;
@@ -2754,16 +2787,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2754
2787
  } | undefined;
2755
2788
  };
2756
2789
  } | {
2757
- output: {
2758
- error: {
2759
- code: "payment_required" | "rate_limit_exceeded";
2760
- details?: readonly Response.error.Detail[] | undefined;
2761
- message: string;
2762
- };
2763
- requestId: string;
2764
- };
2765
- outputFormat: "json";
2766
- status: 429;
2790
+ output: null;
2791
+ outputFormat: "body";
2792
+ status: 402;
2767
2793
  input: {
2768
2794
  param: {
2769
2795
  base: `0x${string}`;
@@ -2778,14 +2804,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2778
2804
  } | {
2779
2805
  output: {
2780
2806
  error: {
2781
- code: "query_invalid";
2807
+ code: "api_key_forbidden";
2782
2808
  details?: readonly Response.error.Detail[] | undefined;
2783
2809
  message: string;
2784
2810
  };
2785
2811
  requestId: string;
2786
2812
  };
2787
2813
  outputFormat: "json";
2788
- status: 400;
2814
+ status: 403;
2789
2815
  input: {
2790
2816
  param: {
2791
2817
  base: `0x${string}`;
@@ -2800,14 +2826,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2800
2826
  } | {
2801
2827
  output: {
2802
2828
  error: {
2803
- code: "pair_invalid";
2829
+ code: "pair_not_found";
2804
2830
  details?: readonly Response.error.Detail[] | undefined;
2805
2831
  message: string;
2806
2832
  };
2807
2833
  requestId: string;
2808
2834
  };
2809
2835
  outputFormat: "json";
2810
- status: 400;
2836
+ status: 404;
2811
2837
  input: {
2812
2838
  param: {
2813
2839
  base: `0x${string}`;
@@ -2822,14 +2848,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2822
2848
  } | {
2823
2849
  output: {
2824
2850
  error: {
2825
- code: "pair_not_found";
2851
+ code: "payment_required" | "rate_limit_exceeded";
2826
2852
  details?: readonly Response.error.Detail[] | undefined;
2827
2853
  message: string;
2828
2854
  };
2829
2855
  requestId: string;
2830
2856
  };
2831
2857
  outputFormat: "json";
2832
- status: 404;
2858
+ status: 429;
2833
2859
  input: {
2834
2860
  param: {
2835
2861
  base: `0x${string}`;
@@ -2843,41 +2869,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2843
2869
  };
2844
2870
  } | {
2845
2871
  output: {
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;
2872
+ error: {
2873
+ code: "upstream_error";
2874
+ details?: readonly Response.error.Detail[] | undefined;
2875
+ message: string;
2877
2876
  };
2877
+ requestId: string;
2878
2878
  };
2879
2879
  outputFormat: "json";
2880
- status: 200;
2880
+ status: 502;
2881
2881
  input: {
2882
2882
  param: {
2883
2883
  base: `0x${string}`;
@@ -2891,7 +2891,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2891
2891
  };
2892
2892
  };
2893
2893
  };
2894
- }, "/", "/pairs/:base/depth">;
2894
+ }, "/", "/v1/exchange/pairs/:base/depth">;
2895
2895
  /**
2896
2896
  * Resolves the point-in-time order-state streams for a set of `orderId`s
2897
2897
  * from the raw `OrderPlaced`/`OrderFlipped` logs.