tapimo 0.10.2 → 0.12.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 (386) hide show
  1. package/dist/App.d.ts +4896 -2166
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +2 -2
  4. package/dist/App.js.map +1 -1
  5. package/dist/Assets.d.ts +15 -0
  6. package/dist/Assets.d.ts.map +1 -1
  7. package/dist/Assets.js +7 -0
  8. package/dist/Assets.js.map +1 -1
  9. package/dist/Webhooks.d.ts +0 -75
  10. package/dist/Webhooks.d.ts.map +1 -1
  11. package/dist/Webhooks.js +1 -143
  12. package/dist/Webhooks.js.map +1 -1
  13. package/dist/admin/App.d.ts +127 -78
  14. package/dist/admin/App.d.ts.map +1 -1
  15. package/dist/admin/apps/earn-vaults.d.ts +115 -1
  16. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  17. package/dist/admin/apps/earn-vaults.js +59 -6
  18. package/dist/admin/apps/earn-vaults.js.map +1 -1
  19. package/dist/admin/apps/organizations.d.ts +3 -3
  20. package/dist/admin/apps/organizations.d.ts.map +1 -1
  21. package/dist/admin/apps/organizations.js +4 -2
  22. package/dist/admin/apps/organizations.js.map +1 -1
  23. package/dist/admin/apps/verified-tokens.d.ts +83 -83
  24. package/dist/admin/ui.generated.d.ts +1 -1
  25. package/dist/admin/ui.generated.d.ts.map +1 -1
  26. package/dist/admin/ui.generated.js +151 -151
  27. package/dist/admin/ui.generated.js.map +1 -1
  28. package/dist/apps/data/App.d.ts +5924 -4310
  29. package/dist/apps/data/App.d.ts.map +1 -1
  30. package/dist/apps/data/App.js +61 -9
  31. package/dist/apps/data/App.js.map +1 -1
  32. package/dist/apps/data/ZoneSelection.d.ts +62 -0
  33. package/dist/apps/data/ZoneSelection.d.ts.map +1 -0
  34. package/dist/apps/data/ZoneSelection.js +44 -0
  35. package/dist/apps/data/ZoneSelection.js.map +1 -0
  36. package/dist/apps/data/routes/activities.d.ts +2368 -5
  37. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  38. package/dist/apps/data/routes/activities.js +423 -114
  39. package/dist/apps/data/routes/activities.js.map +1 -1
  40. package/dist/apps/data/routes/addresses.d.ts +131 -0
  41. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  42. package/dist/apps/data/routes/balances.d.ts +25 -25
  43. package/dist/apps/data/routes/balances.js +1 -1
  44. package/dist/apps/data/routes/balances.js.map +1 -1
  45. package/dist/apps/data/routes/blocks.d.ts +1 -1
  46. package/dist/apps/data/routes/blocks.js +1 -1
  47. package/dist/apps/data/routes/blocks.js.map +1 -1
  48. package/dist/apps/data/routes/earn.d.ts +135 -10
  49. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  50. package/dist/apps/data/routes/earn.js +157 -25
  51. package/dist/apps/data/routes/earn.js.map +1 -1
  52. package/dist/apps/data/routes/exchanges.d.ts +829 -123
  53. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  54. package/dist/apps/data/routes/exchanges.js +16 -13
  55. package/dist/apps/data/routes/exchanges.js.map +1 -1
  56. package/dist/apps/data/routes/fee-amm.d.ts +26 -26
  57. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  58. package/dist/apps/data/routes/fee-amm.js +9 -11
  59. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  60. package/dist/apps/data/routes/receipts.d.ts +54 -54
  61. package/dist/apps/data/routes/receipts.js +1 -1
  62. package/dist/apps/data/routes/receipts.js.map +1 -1
  63. package/dist/apps/data/routes/rpc.js +24 -10
  64. package/dist/apps/data/routes/rpc.js.map +1 -1
  65. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  66. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  67. package/dist/apps/data/routes/tokenlist.js +16 -15
  68. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  69. package/dist/apps/data/routes/tokens.d.ts +17 -3
  70. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  71. package/dist/apps/data/routes/tokens.js +34 -15
  72. package/dist/apps/data/routes/tokens.js.map +1 -1
  73. package/dist/apps/data/routes/transactions.d.ts +1 -1
  74. package/dist/apps/data/routes/transactions.js +1 -1
  75. package/dist/apps/data/routes/transactions.js.map +1 -1
  76. package/dist/apps/data/routes/transfers.d.ts +13 -13
  77. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  78. package/dist/apps/data/routes/transfers.js +7 -9
  79. package/dist/apps/data/routes/transfers.js.map +1 -1
  80. package/dist/apps/data/routes/valuation.d.ts +21 -21
  81. package/dist/apps/data/routes/verified-tokens.d.ts +5 -5
  82. package/dist/apps/data/routes/webhooks.d.ts +1011 -151
  83. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  84. package/dist/apps/data/routes/webhooks.js +126 -739
  85. package/dist/apps/data/routes/webhooks.js.map +1 -1
  86. package/dist/apps/data/routes/zones.d.ts +15 -15
  87. package/dist/apps/funding/App.d.ts +27 -27
  88. package/dist/apps/funding/routes/chains.d.ts.map +1 -1
  89. package/dist/apps/funding/routes/chains.js +5 -4
  90. package/dist/apps/funding/routes/chains.js.map +1 -1
  91. package/dist/apps/funding/routes/deposit-addresses.d.ts +18 -18
  92. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  93. package/dist/apps/funding/routes/deposit-addresses.js +8 -8
  94. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  95. package/dist/apps/funding/routes/providers.d.ts.map +1 -1
  96. package/dist/apps/funding/routes/providers.js +3 -2
  97. package/dist/apps/funding/routes/providers.js.map +1 -1
  98. package/dist/apps/funding/routes/quotes.d.ts.map +1 -1
  99. package/dist/apps/funding/routes/quotes.js +2 -2
  100. package/dist/apps/funding/routes/quotes.js.map +1 -1
  101. package/dist/apps/funding/routes/transfers.d.ts +33 -33
  102. package/dist/apps/management/App.d.ts +1433 -322
  103. package/dist/apps/management/App.d.ts.map +1 -1
  104. package/dist/apps/management/Billing.d.ts.map +1 -1
  105. package/dist/apps/management/Billing.js +19 -6
  106. package/dist/apps/management/Billing.js.map +1 -1
  107. package/dist/apps/management/routes/api-keys.d.ts +154 -94
  108. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  109. package/dist/apps/management/routes/api-keys.js +76 -30
  110. package/dist/apps/management/routes/api-keys.js.map +1 -1
  111. package/dist/apps/management/routes/billing.d.ts +103 -30
  112. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  113. package/dist/apps/management/routes/billing.js +91 -32
  114. package/dist/apps/management/routes/billing.js.map +1 -1
  115. package/dist/apps/management/routes/faucet.d.ts +12 -12
  116. package/dist/apps/management/routes/faucet.d.ts.map +1 -1
  117. package/dist/apps/management/routes/faucet.js +23 -12
  118. package/dist/apps/management/routes/faucet.js.map +1 -1
  119. package/dist/apps/management/routes/invitations.d.ts +46 -13
  120. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  121. package/dist/apps/management/routes/invitations.js +79 -29
  122. package/dist/apps/management/routes/invitations.js.map +1 -1
  123. package/dist/apps/management/routes/invite-links.d.ts +128 -83
  124. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  125. package/dist/apps/management/routes/invite-links.js +100 -41
  126. package/dist/apps/management/routes/invite-links.js.map +1 -1
  127. package/dist/apps/management/routes/me.d.ts +5 -5
  128. package/dist/apps/management/routes/me.d.ts.map +1 -1
  129. package/dist/apps/management/routes/me.js +14 -10
  130. package/dist/apps/management/routes/me.js.map +1 -1
  131. package/dist/apps/management/routes/members.d.ts +68 -47
  132. package/dist/apps/management/routes/members.d.ts.map +1 -1
  133. package/dist/apps/management/routes/members.js +37 -18
  134. package/dist/apps/management/routes/members.js.map +1 -1
  135. package/dist/apps/management/routes/orgs.d.ts +48 -8
  136. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  137. package/dist/apps/management/routes/orgs.js +48 -19
  138. package/dist/apps/management/routes/orgs.js.map +1 -1
  139. package/dist/apps/management/routes/projects.d.ts +130 -68
  140. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  141. package/dist/apps/management/routes/projects.js +72 -21
  142. package/dist/apps/management/routes/projects.js.map +1 -1
  143. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  144. package/dist/apps/management/routes/scopes.js +8 -5
  145. package/dist/apps/management/routes/scopes.js.map +1 -1
  146. package/dist/apps/management/routes/usage.d.ts +38 -38
  147. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  148. package/dist/apps/management/routes/usage.js +41 -31
  149. package/dist/apps/management/routes/usage.js.map +1 -1
  150. package/dist/apps/management/routes/verified-token-requests.d.ts +34 -6
  151. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  152. package/dist/apps/management/routes/verified-token-requests.js +36 -17
  153. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  154. package/dist/apps/management/routes/webhooks.d.ts +1186 -197
  155. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  156. package/dist/apps/management/routes/webhooks.js +106 -38
  157. package/dist/apps/management/routes/webhooks.js.map +1 -1
  158. package/dist/apps/mpp/internal/Adapter.d.ts +1 -1
  159. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
  160. package/dist/apps/mpp/internal/Adapter.js +12 -0
  161. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  162. package/dist/db/Db.d.ts +2 -0
  163. package/dist/db/Db.d.ts.map +1 -1
  164. package/dist/db/Db.js +61 -0
  165. package/dist/db/Db.js.map +1 -1
  166. package/dist/db/Schema.d.ts +30 -2
  167. package/dist/db/Schema.d.ts.map +1 -1
  168. package/dist/db/Schema.js +28 -3
  169. package/dist/db/Schema.js.map +1 -1
  170. package/dist/db/tables/earnVaults.d.ts +5 -1
  171. package/dist/db/tables/earnVaults.d.ts.map +1 -1
  172. package/dist/db/tables/earnVaults.js +5 -0
  173. package/dist/db/tables/earnVaults.js.map +1 -1
  174. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
  175. package/dist/db/tables/webhookDeliveries.js +10 -0
  176. package/dist/db/tables/webhookDeliveries.js.map +1 -1
  177. package/dist/db/tables/webhookQueueCompletions.d.ts +15 -0
  178. package/dist/db/tables/webhookQueueCompletions.d.ts.map +1 -0
  179. package/dist/db/tables/webhookQueueCompletions.js +32 -0
  180. package/dist/db/tables/webhookQueueCompletions.js.map +1 -0
  181. package/dist/db/tables/webhookQueueEvents.d.ts +16 -20
  182. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  183. package/dist/db/tables/webhookQueueEvents.js +68 -43
  184. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  185. package/dist/db/tables/webhookSubscriptions.d.ts +47 -72
  186. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  187. package/dist/db/tables/webhookSubscriptions.js +92 -105
  188. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  189. package/dist/internal/Auth.d.ts +8 -1
  190. package/dist/internal/Auth.d.ts.map +1 -1
  191. package/dist/internal/Auth.js +13 -3
  192. package/dist/internal/Auth.js.map +1 -1
  193. package/dist/internal/Cache.d.ts.map +1 -1
  194. package/dist/internal/Cache.js +11 -7
  195. package/dist/internal/Cache.js.map +1 -1
  196. package/dist/internal/EarnVaults.d.ts +41 -2
  197. package/dist/internal/EarnVaults.d.ts.map +1 -1
  198. package/dist/internal/EarnVaults.js +167 -0
  199. package/dist/internal/EarnVaults.js.map +1 -1
  200. package/dist/internal/MetricSink.d.ts +35 -125
  201. package/dist/internal/MetricSink.d.ts.map +1 -1
  202. package/dist/internal/MetricSink.js +50 -121
  203. package/dist/internal/MetricSink.js.map +1 -1
  204. package/dist/internal/OpenApi.d.ts +26 -22
  205. package/dist/internal/OpenApi.d.ts.map +1 -1
  206. package/dist/internal/OpenApi.js +128 -39
  207. package/dist/internal/OpenApi.js.map +1 -1
  208. package/dist/internal/Response.d.ts +13 -8
  209. package/dist/internal/Response.d.ts.map +1 -1
  210. package/dist/internal/Response.js +16 -5
  211. package/dist/internal/Response.js.map +1 -1
  212. package/dist/internal/Schema.d.ts +8 -8
  213. package/dist/internal/Schema.d.ts.map +1 -1
  214. package/dist/internal/Schema.js +10 -9
  215. package/dist/internal/Schema.js.map +1 -1
  216. package/dist/internal/Store.d.ts +15 -6
  217. package/dist/internal/Store.d.ts.map +1 -1
  218. package/dist/internal/Store.js +45 -15
  219. package/dist/internal/Store.js.map +1 -1
  220. package/dist/internal/Tidx.d.ts +2 -0
  221. package/dist/internal/Tidx.d.ts.map +1 -1
  222. package/dist/internal/Tidx.js +16 -4
  223. package/dist/internal/Tidx.js.map +1 -1
  224. package/dist/internal/WebhookTransfer.d.ts +1 -55
  225. package/dist/internal/WebhookTransfer.d.ts.map +1 -1
  226. package/dist/internal/WebhookTransfer.js +1 -239
  227. package/dist/internal/WebhookTransfer.js.map +1 -1
  228. package/dist/internal/Webhooks.d.ts +112 -56
  229. package/dist/internal/Webhooks.d.ts.map +1 -1
  230. package/dist/internal/Webhooks.js +124 -93
  231. package/dist/internal/Webhooks.js.map +1 -1
  232. package/dist/internal/funding/Deposit.d.ts +2 -2
  233. package/dist/internal/funding/Deposit.d.ts.map +1 -1
  234. package/dist/internal/funding/Deposit.js +9 -8
  235. package/dist/internal/funding/Deposit.js.map +1 -1
  236. package/dist/internal/funding/DepositAddress.d.ts +4 -4
  237. package/dist/internal/funding/DepositAddress.d.ts.map +1 -1
  238. package/dist/internal/funding/DepositAddress.js +9 -8
  239. package/dist/internal/funding/DepositAddress.js.map +1 -1
  240. package/dist/internal/funding/DepositWebhook.d.ts +25 -0
  241. package/dist/internal/funding/DepositWebhook.d.ts.map +1 -0
  242. package/dist/internal/funding/DepositWebhook.js +74 -0
  243. package/dist/internal/funding/DepositWebhook.js.map +1 -0
  244. package/dist/internal/funding/Provider.d.ts.map +1 -1
  245. package/dist/internal/funding/Provider.js +13 -12
  246. package/dist/internal/funding/Provider.js.map +1 -1
  247. package/dist/internal/funding/Reconciliation.d.ts +6 -0
  248. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  249. package/dist/internal/funding/Reconciliation.js +42 -10
  250. package/dist/internal/funding/Reconciliation.js.map +1 -1
  251. package/dist/internal/funding/index.d.ts +1 -0
  252. package/dist/internal/funding/index.d.ts.map +1 -1
  253. package/dist/internal/funding/index.js +1 -0
  254. package/dist/internal/funding/index.js.map +1 -1
  255. package/dist/internal/funding/providers/stargate.d.ts +19 -0
  256. package/dist/internal/funding/providers/stargate.d.ts.map +1 -0
  257. package/dist/internal/funding/providers/stargate.js +143 -0
  258. package/dist/internal/funding/providers/stargate.js.map +1 -0
  259. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
  260. package/dist/internal/webhookDestinations/slack.js +16 -0
  261. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  262. package/dist/providers/index.d.ts +7 -0
  263. package/dist/providers/index.d.ts.map +1 -1
  264. package/dist/providers/index.js +3 -0
  265. package/dist/providers/index.js.map +1 -1
  266. package/package.json +2 -2
  267. package/src/App.test.ts +48 -0
  268. package/src/App.ts +7 -2
  269. package/src/Assets.test.ts +18 -0
  270. package/src/Assets.ts +22 -0
  271. package/src/Client.test-d.ts +287 -17
  272. package/src/Webhooks.ts +1 -220
  273. package/src/admin/apps/earn-vaults.test.ts +143 -0
  274. package/src/admin/apps/earn-vaults.ts +83 -6
  275. package/src/admin/apps/organizations.ts +6 -2
  276. package/src/admin/ui/src/routes/api-keys.tsx +36 -0
  277. package/src/admin/ui.generated.ts +151 -189
  278. package/src/apps/data/App.test.ts +31 -0
  279. package/src/apps/data/App.ts +64 -10
  280. package/src/apps/data/ZoneSelection.test.ts +196 -0
  281. package/src/apps/data/ZoneSelection.ts +108 -0
  282. package/src/apps/data/routes/activities.test.ts +435 -12
  283. package/src/apps/data/routes/activities.ts +562 -125
  284. package/src/apps/data/routes/balances.ts +1 -1
  285. package/src/apps/data/routes/blocks.ts +1 -1
  286. package/src/apps/data/routes/earn.test.ts +183 -23
  287. package/src/apps/data/routes/earn.ts +225 -29
  288. package/src/apps/data/routes/earn.zone-access.test.ts +46 -0
  289. package/src/apps/data/routes/exchanges.test.ts +31 -1
  290. package/src/apps/data/routes/exchanges.ts +19 -15
  291. package/src/apps/data/routes/fee-amm.ts +18 -11
  292. package/src/apps/data/routes/receipts.ts +1 -1
  293. package/src/apps/data/routes/rpc.test.ts +75 -0
  294. package/src/apps/data/routes/rpc.ts +23 -9
  295. package/src/apps/data/routes/tokenlist.ts +21 -18
  296. package/src/apps/data/routes/tokens.test.ts +29 -0
  297. package/src/apps/data/routes/tokens.ts +38 -15
  298. package/src/apps/data/routes/transactions.ts +1 -1
  299. package/src/apps/data/routes/transfers.test.ts +3 -3
  300. package/src/apps/data/routes/transfers.ts +12 -9
  301. package/src/apps/data/routes/webhooks.test.ts +179 -1497
  302. package/src/apps/data/routes/webhooks.ts +156 -976
  303. package/src/apps/data/routes/zones.test.ts +19 -13
  304. package/src/apps/funding/routes/chains.test.ts +211 -7
  305. package/src/apps/funding/routes/chains.ts +19 -12
  306. package/src/apps/funding/routes/deposit-addresses.test.ts +394 -0
  307. package/src/apps/funding/routes/deposit-addresses.ts +84 -72
  308. package/src/apps/funding/routes/providers.ts +9 -5
  309. package/src/apps/funding/routes/quotes.test.ts +46 -0
  310. package/src/apps/funding/routes/quotes.ts +8 -5
  311. package/src/apps/funding/routes/transfers.test.ts +35 -32
  312. package/src/apps/management/Billing.test.ts +26 -0
  313. package/src/apps/management/Billing.ts +24 -7
  314. package/src/apps/management/routes/api-keys.test.ts +178 -0
  315. package/src/apps/management/routes/api-keys.ts +203 -144
  316. package/src/apps/management/routes/billing.test.ts +209 -0
  317. package/src/apps/management/routes/billing.ts +254 -177
  318. package/src/apps/management/routes/faucet.test.ts +39 -0
  319. package/src/apps/management/routes/faucet.ts +75 -41
  320. package/src/apps/management/routes/invitations.test.ts +216 -0
  321. package/src/apps/management/routes/invitations.ts +186 -109
  322. package/src/apps/management/routes/invite-links.test.ts +263 -1
  323. package/src/apps/management/routes/invite-links.ts +295 -214
  324. package/src/apps/management/routes/me.test.ts +49 -0
  325. package/src/apps/management/routes/me.ts +42 -32
  326. package/src/apps/management/routes/members.test.ts +124 -1
  327. package/src/apps/management/routes/members.ts +81 -51
  328. package/src/apps/management/routes/orgs.test.ts +176 -0
  329. package/src/apps/management/routes/orgs.ts +101 -59
  330. package/src/apps/management/routes/projects.test.ts +183 -0
  331. package/src/apps/management/routes/projects.ts +124 -60
  332. package/src/apps/management/routes/scopes.test.ts +44 -0
  333. package/src/apps/management/routes/scopes.ts +37 -28
  334. package/src/apps/management/routes/usage.test.ts +92 -0
  335. package/src/apps/management/routes/usage.ts +186 -151
  336. package/src/apps/management/routes/verified-token-requests.test.ts +114 -0
  337. package/src/apps/management/routes/verified-token-requests.ts +166 -133
  338. package/src/apps/management/routes/webhooks.test.ts +313 -1
  339. package/src/apps/management/routes/webhooks.ts +220 -71
  340. package/src/apps/mpp/internal/Adapter.ts +13 -1
  341. package/src/db/Db.test.ts +42 -5
  342. package/src/db/Db.ts +85 -0
  343. package/src/db/Schema.ts +41 -3
  344. package/src/db/tables/earnVaults.test.ts +22 -0
  345. package/src/db/tables/earnVaults.ts +11 -1
  346. package/src/db/tables/organizations.test.ts +5 -2
  347. package/src/db/tables/webhookDeliveries.ts +13 -0
  348. package/src/db/tables/webhookQueueCompletions.ts +55 -0
  349. package/src/db/tables/webhookQueueEvents.ts +97 -57
  350. package/src/db/tables/webhookSubscriptions.ts +134 -144
  351. package/src/internal/Auth.ts +23 -5
  352. package/src/internal/Cache.ts +14 -7
  353. package/src/internal/EarnVaults.capabilities.test.ts +33 -0
  354. package/src/internal/EarnVaults.test.ts +79 -0
  355. package/src/internal/EarnVaults.ts +277 -0
  356. package/src/internal/MetricSink.test.ts +41 -373
  357. package/src/internal/MetricSink.ts +92 -273
  358. package/src/internal/OpenApi.ts +165 -49
  359. package/src/internal/Response.test.ts +95 -0
  360. package/src/internal/Response.ts +40 -2
  361. package/src/internal/Schema.test.ts +34 -0
  362. package/src/internal/Schema.ts +20 -9
  363. package/src/internal/Store.test.ts +186 -0
  364. package/src/internal/Store.ts +57 -17
  365. package/src/internal/Tidx.test.ts +19 -0
  366. package/src/internal/Tidx.ts +16 -4
  367. package/src/internal/WebhookTransfer.ts +1 -351
  368. package/src/internal/Webhooks.test.ts +222 -145
  369. package/src/internal/Webhooks.ts +234 -135
  370. package/src/internal/funding/Deposit.ts +71 -64
  371. package/src/internal/funding/DepositAddress.ts +50 -43
  372. package/src/internal/funding/DepositWebhook.test.ts +131 -0
  373. package/src/internal/funding/DepositWebhook.ts +101 -0
  374. package/src/internal/funding/Provider.ts +164 -142
  375. package/src/internal/funding/Reconciliation.test.ts +14 -0
  376. package/src/internal/funding/Reconciliation.ts +161 -86
  377. package/src/internal/funding/index.test.ts +1 -0
  378. package/src/internal/funding/index.ts +1 -0
  379. package/src/internal/funding/providers/index.test.ts +185 -0
  380. package/src/internal/funding/providers/stargate.ts +184 -0
  381. package/src/internal/webhookDestinations/slack.ts +15 -0
  382. package/src/providers/index.test.ts +1 -0
  383. package/src/providers/index.ts +9 -0
  384. package/src/Webhooks.bench.ts +0 -714
  385. package/src/Webhooks.memory.bench.ts +0 -250
  386. package/src/Webhooks.test.ts +0 -146
@@ -569,7 +569,7 @@ export declare namespace schema {
569
569
  tokens: "tokens";
570
570
  totalCount: "totalCount";
571
571
  }>>>;
572
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
572
+ limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
573
573
  order: z.ZodMiniDefault<z.ZodMiniEnum<{
574
574
  asc: "asc";
575
575
  desc: "desc";
@@ -726,7 +726,7 @@ export declare namespace schema {
726
726
  "token.logoUri": "token.logoUri";
727
727
  "token.verified": "token.verified";
728
728
  }>>>;
729
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
729
+ limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
730
730
  maker: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
731
731
  order: z.ZodMiniDefault<z.ZodMiniEnum<{
732
732
  asc: "asc";
@@ -1296,7 +1296,7 @@ export declare namespace schema {
1296
1296
  tokens: "tokens";
1297
1297
  totalCount: "totalCount";
1298
1298
  }>>>;
1299
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
1299
+ limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
1300
1300
  maker: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
1301
1301
  order: z.ZodMiniDefault<z.ZodMiniEnum<{
1302
1302
  asc: "asc";
@@ -1443,7 +1443,7 @@ export declare namespace schema {
1443
1443
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1444
1444
  totalCount: "totalCount";
1445
1445
  }>>>;
1446
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
1446
+ limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
1447
1447
  order: z.ZodMiniDefault<z.ZodMiniEnum<{
1448
1448
  asc: "asc";
1449
1449
  desc: "desc";
@@ -1608,6 +1608,60 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1608
1608
  sourceToken: `0x${string}`;
1609
1609
  };
1610
1610
  };
1611
+ } | {
1612
+ output: {
1613
+ error: {
1614
+ code: "upstream_error";
1615
+ details?: readonly Response.error.Detail[] | undefined;
1616
+ message: string;
1617
+ };
1618
+ requestId: string;
1619
+ };
1620
+ outputFormat: "json";
1621
+ status: 502;
1622
+ input: {
1623
+ query?: {
1624
+ chainId?: string | string[];
1625
+ include?: string | string[];
1626
+ 'valuation.currency'?: string | string[];
1627
+ } | undefined;
1628
+ } & {
1629
+ json: {
1630
+ account?: `0x${string}` | undefined;
1631
+ amount: string;
1632
+ destinationToken: `0x${string}`;
1633
+ mode: "exactDestination" | "exactSource";
1634
+ slippageBps: number;
1635
+ sourceToken: `0x${string}`;
1636
+ };
1637
+ };
1638
+ } | {
1639
+ output: {
1640
+ error: {
1641
+ code: "query_invalid";
1642
+ details?: readonly Response.error.Detail[] | undefined;
1643
+ message: string;
1644
+ };
1645
+ requestId: string;
1646
+ };
1647
+ outputFormat: "json";
1648
+ status: 400;
1649
+ input: {
1650
+ query?: {
1651
+ chainId?: string | string[];
1652
+ include?: string | string[];
1653
+ 'valuation.currency'?: string | string[];
1654
+ } | undefined;
1655
+ } & {
1656
+ json: {
1657
+ account?: `0x${string}` | undefined;
1658
+ amount: string;
1659
+ destinationToken: `0x${string}`;
1660
+ mode: "exactDestination" | "exactSource";
1661
+ slippageBps: number;
1662
+ sourceToken: `0x${string}`;
1663
+ };
1664
+ };
1611
1665
  } | {
1612
1666
  output: {
1613
1667
  error: {
@@ -1618,7 +1672,659 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1618
1672
  requestId: string;
1619
1673
  };
1620
1674
  outputFormat: "json";
1621
- status: 400;
1675
+ status: 400;
1676
+ input: {
1677
+ query?: {
1678
+ chainId?: string | string[];
1679
+ include?: string | string[];
1680
+ 'valuation.currency'?: string | string[];
1681
+ } | undefined;
1682
+ } & {
1683
+ json: {
1684
+ account?: `0x${string}` | undefined;
1685
+ amount: string;
1686
+ destinationToken: `0x${string}`;
1687
+ mode: "exactDestination" | "exactSource";
1688
+ slippageBps: number;
1689
+ sourceToken: `0x${string}`;
1690
+ };
1691
+ };
1692
+ } | {
1693
+ output: {
1694
+ error: {
1695
+ code: "api_key_invalid" | "api_key_missing";
1696
+ details?: readonly Response.error.Detail[] | undefined;
1697
+ message: string;
1698
+ };
1699
+ requestId: string;
1700
+ };
1701
+ outputFormat: "json";
1702
+ status: 401;
1703
+ input: {
1704
+ query?: {
1705
+ chainId?: string | string[];
1706
+ include?: string | string[];
1707
+ 'valuation.currency'?: string | string[];
1708
+ } | undefined;
1709
+ } & {
1710
+ json: {
1711
+ account?: `0x${string}` | undefined;
1712
+ amount: string;
1713
+ destinationToken: `0x${string}`;
1714
+ mode: "exactDestination" | "exactSource";
1715
+ slippageBps: number;
1716
+ sourceToken: `0x${string}`;
1717
+ };
1718
+ };
1719
+ } | {
1720
+ output: {
1721
+ error: {
1722
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1723
+ details?: readonly Response.error.Detail[] | undefined;
1724
+ message: string;
1725
+ };
1726
+ requestId: string;
1727
+ };
1728
+ outputFormat: "json";
1729
+ status: 403;
1730
+ input: {
1731
+ query?: {
1732
+ chainId?: string | string[];
1733
+ include?: string | string[];
1734
+ 'valuation.currency'?: string | string[];
1735
+ } | undefined;
1736
+ } & {
1737
+ json: {
1738
+ account?: `0x${string}` | undefined;
1739
+ amount: string;
1740
+ destinationToken: `0x${string}`;
1741
+ mode: "exactDestination" | "exactSource";
1742
+ slippageBps: number;
1743
+ sourceToken: `0x${string}`;
1744
+ };
1745
+ };
1746
+ } | {
1747
+ output: {
1748
+ error: {
1749
+ code: "payment_required" | "rate_limit_exceeded";
1750
+ details?: readonly Response.error.Detail[] | undefined;
1751
+ message: string;
1752
+ };
1753
+ requestId: string;
1754
+ };
1755
+ outputFormat: "json";
1756
+ status: 429;
1757
+ input: {
1758
+ query?: {
1759
+ chainId?: string | string[];
1760
+ include?: string | string[];
1761
+ 'valuation.currency'?: string | string[];
1762
+ } | undefined;
1763
+ } & {
1764
+ json: {
1765
+ account?: `0x${string}` | undefined;
1766
+ amount: string;
1767
+ destinationToken: `0x${string}`;
1768
+ mode: "exactDestination" | "exactSource";
1769
+ slippageBps: number;
1770
+ sourceToken: `0x${string}`;
1771
+ };
1772
+ };
1773
+ } | {
1774
+ output: {
1775
+ error: {
1776
+ code: "body_invalid";
1777
+ details?: readonly Response.error.Detail[] | undefined;
1778
+ message: string;
1779
+ };
1780
+ requestId: string;
1781
+ };
1782
+ outputFormat: "json";
1783
+ status: 400;
1784
+ input: {
1785
+ query?: {
1786
+ chainId?: string | string[];
1787
+ include?: string | string[];
1788
+ 'valuation.currency'?: string | string[];
1789
+ } | undefined;
1790
+ } & {
1791
+ json: {
1792
+ account?: `0x${string}` | undefined;
1793
+ amount: string;
1794
+ destinationToken: `0x${string}`;
1795
+ mode: "exactDestination" | "exactSource";
1796
+ slippageBps: number;
1797
+ sourceToken: `0x${string}`;
1798
+ };
1799
+ };
1800
+ } | {
1801
+ output: {
1802
+ error: {
1803
+ code: "quote_amount_out_of_range";
1804
+ details?: readonly Response.error.Detail[] | undefined;
1805
+ message: string;
1806
+ };
1807
+ requestId: string;
1808
+ };
1809
+ outputFormat: "json";
1810
+ status: 400;
1811
+ input: {
1812
+ query?: {
1813
+ chainId?: string | string[];
1814
+ include?: string | string[];
1815
+ 'valuation.currency'?: string | string[];
1816
+ } | undefined;
1817
+ } & {
1818
+ json: {
1819
+ account?: `0x${string}` | undefined;
1820
+ amount: string;
1821
+ destinationToken: `0x${string}`;
1822
+ mode: "exactDestination" | "exactSource";
1823
+ slippageBps: number;
1824
+ sourceToken: `0x${string}`;
1825
+ };
1826
+ };
1827
+ } | {
1828
+ output: {
1829
+ error: {
1830
+ code: "quote_not_available";
1831
+ details?: readonly Response.error.Detail[] | undefined;
1832
+ message: string;
1833
+ };
1834
+ requestId: string;
1835
+ };
1836
+ outputFormat: "json";
1837
+ status: 404;
1838
+ input: {
1839
+ query?: {
1840
+ chainId?: string | string[];
1841
+ include?: string | string[];
1842
+ 'valuation.currency'?: string | string[];
1843
+ } | undefined;
1844
+ } & {
1845
+ json: {
1846
+ account?: `0x${string}` | undefined;
1847
+ amount: string;
1848
+ destinationToken: `0x${string}`;
1849
+ mode: "exactDestination" | "exactSource";
1850
+ slippageBps: number;
1851
+ sourceToken: `0x${string}`;
1852
+ };
1853
+ };
1854
+ } | {
1855
+ output: {
1856
+ gasEstimate: string;
1857
+ provider: string;
1858
+ approval: {
1859
+ calls: {
1860
+ data: `0x${string}`;
1861
+ to: `0x${string}`;
1862
+ value: `0x${string}`;
1863
+ }[];
1864
+ };
1865
+ status: "approvalRequired";
1866
+ destinationAmount: {
1867
+ baseUnits: string;
1868
+ currency: string;
1869
+ decimals: number;
1870
+ formatted: string;
1871
+ valuation?: {
1872
+ amount: string;
1873
+ currency: string;
1874
+ } | null | undefined;
1875
+ };
1876
+ destinationAmountMin: {
1877
+ baseUnits: string;
1878
+ currency: string;
1879
+ decimals: number;
1880
+ formatted: string;
1881
+ valuation?: {
1882
+ amount: string;
1883
+ currency: string;
1884
+ } | null | undefined;
1885
+ };
1886
+ destinationToken: {
1887
+ currency: string;
1888
+ decimals: number;
1889
+ logoUri?: string | undefined;
1890
+ name: string;
1891
+ symbol: string;
1892
+ verified?: boolean | undefined;
1893
+ address: `0x${string}`;
1894
+ };
1895
+ meta?: {
1896
+ valuation?: {
1897
+ asOf: string;
1898
+ basis: "nominal";
1899
+ source: string;
1900
+ } | undefined;
1901
+ } | undefined;
1902
+ mode: "exactSource";
1903
+ sourceAmount: {
1904
+ baseUnits: string;
1905
+ currency: string;
1906
+ decimals: number;
1907
+ formatted: string;
1908
+ valuation?: {
1909
+ amount: string;
1910
+ currency: string;
1911
+ } | null | undefined;
1912
+ };
1913
+ sourceToken: {
1914
+ currency: string;
1915
+ decimals: number;
1916
+ logoUri?: string | undefined;
1917
+ name: string;
1918
+ symbol: string;
1919
+ verified?: boolean | undefined;
1920
+ address: `0x${string}`;
1921
+ };
1922
+ } | {
1923
+ gasEstimate: string;
1924
+ provider: string;
1925
+ status: "ready";
1926
+ transaction: {
1927
+ calls: {
1928
+ data: `0x${string}`;
1929
+ to: `0x${string}`;
1930
+ value: `0x${string}`;
1931
+ }[];
1932
+ chainId: number;
1933
+ };
1934
+ destinationAmount: {
1935
+ baseUnits: string;
1936
+ currency: string;
1937
+ decimals: number;
1938
+ formatted: string;
1939
+ valuation?: {
1940
+ amount: string;
1941
+ currency: string;
1942
+ } | null | undefined;
1943
+ };
1944
+ destinationAmountMin: {
1945
+ baseUnits: string;
1946
+ currency: string;
1947
+ decimals: number;
1948
+ formatted: string;
1949
+ valuation?: {
1950
+ amount: string;
1951
+ currency: string;
1952
+ } | null | undefined;
1953
+ };
1954
+ destinationToken: {
1955
+ currency: string;
1956
+ decimals: number;
1957
+ logoUri?: string | undefined;
1958
+ name: string;
1959
+ symbol: string;
1960
+ verified?: boolean | undefined;
1961
+ address: `0x${string}`;
1962
+ };
1963
+ meta?: {
1964
+ valuation?: {
1965
+ asOf: string;
1966
+ basis: "nominal";
1967
+ source: string;
1968
+ } | undefined;
1969
+ } | undefined;
1970
+ mode: "exactSource";
1971
+ sourceAmount: {
1972
+ baseUnits: string;
1973
+ currency: string;
1974
+ decimals: number;
1975
+ formatted: string;
1976
+ valuation?: {
1977
+ amount: string;
1978
+ currency: string;
1979
+ } | null | undefined;
1980
+ };
1981
+ sourceToken: {
1982
+ currency: string;
1983
+ decimals: number;
1984
+ logoUri?: string | undefined;
1985
+ name: string;
1986
+ symbol: string;
1987
+ verified?: boolean | undefined;
1988
+ address: `0x${string}`;
1989
+ };
1990
+ } | {
1991
+ gasEstimate: string;
1992
+ provider: string;
1993
+ continuation: string;
1994
+ status: "signatureRequired";
1995
+ typedData: {
1996
+ domain: {
1997
+ [x: string]: import("hono/utils/types").JSONValue;
1998
+ };
1999
+ message: {
2000
+ [x: string]: import("hono/utils/types").JSONValue;
2001
+ };
2002
+ primaryType: string;
2003
+ types: {
2004
+ [x: string]: {
2005
+ name: string;
2006
+ type: string;
2007
+ }[];
2008
+ };
2009
+ };
2010
+ destinationAmount: {
2011
+ baseUnits: string;
2012
+ currency: string;
2013
+ decimals: number;
2014
+ formatted: string;
2015
+ valuation?: {
2016
+ amount: string;
2017
+ currency: string;
2018
+ } | null | undefined;
2019
+ };
2020
+ destinationAmountMin: {
2021
+ baseUnits: string;
2022
+ currency: string;
2023
+ decimals: number;
2024
+ formatted: string;
2025
+ valuation?: {
2026
+ amount: string;
2027
+ currency: string;
2028
+ } | null | undefined;
2029
+ };
2030
+ destinationToken: {
2031
+ currency: string;
2032
+ decimals: number;
2033
+ logoUri?: string | undefined;
2034
+ name: string;
2035
+ symbol: string;
2036
+ verified?: boolean | undefined;
2037
+ address: `0x${string}`;
2038
+ };
2039
+ meta?: {
2040
+ valuation?: {
2041
+ asOf: string;
2042
+ basis: "nominal";
2043
+ source: string;
2044
+ } | undefined;
2045
+ } | undefined;
2046
+ mode: "exactSource";
2047
+ sourceAmount: {
2048
+ baseUnits: string;
2049
+ currency: string;
2050
+ decimals: number;
2051
+ formatted: string;
2052
+ valuation?: {
2053
+ amount: string;
2054
+ currency: string;
2055
+ } | null | undefined;
2056
+ };
2057
+ sourceToken: {
2058
+ currency: string;
2059
+ decimals: number;
2060
+ logoUri?: string | undefined;
2061
+ name: string;
2062
+ symbol: string;
2063
+ verified?: boolean | undefined;
2064
+ address: `0x${string}`;
2065
+ };
2066
+ } | {
2067
+ gasEstimate: string;
2068
+ provider: string;
2069
+ approval: {
2070
+ calls: {
2071
+ data: `0x${string}`;
2072
+ to: `0x${string}`;
2073
+ value: `0x${string}`;
2074
+ }[];
2075
+ };
2076
+ status: "approvalRequired";
2077
+ destinationAmount: {
2078
+ baseUnits: string;
2079
+ currency: string;
2080
+ decimals: number;
2081
+ formatted: string;
2082
+ valuation?: {
2083
+ amount: string;
2084
+ currency: string;
2085
+ } | null | undefined;
2086
+ };
2087
+ destinationToken: {
2088
+ currency: string;
2089
+ decimals: number;
2090
+ logoUri?: string | undefined;
2091
+ name: string;
2092
+ symbol: string;
2093
+ verified?: boolean | undefined;
2094
+ address: `0x${string}`;
2095
+ };
2096
+ meta?: {
2097
+ valuation?: {
2098
+ asOf: string;
2099
+ basis: "nominal";
2100
+ source: string;
2101
+ } | undefined;
2102
+ } | undefined;
2103
+ mode: "exactDestination";
2104
+ sourceAmount: {
2105
+ baseUnits: string;
2106
+ currency: string;
2107
+ decimals: number;
2108
+ formatted: string;
2109
+ valuation?: {
2110
+ amount: string;
2111
+ currency: string;
2112
+ } | null | undefined;
2113
+ };
2114
+ sourceAmountMax: {
2115
+ baseUnits: string;
2116
+ currency: string;
2117
+ decimals: number;
2118
+ formatted: string;
2119
+ valuation?: {
2120
+ amount: string;
2121
+ currency: string;
2122
+ } | null | undefined;
2123
+ };
2124
+ sourceToken: {
2125
+ currency: string;
2126
+ decimals: number;
2127
+ logoUri?: string | undefined;
2128
+ name: string;
2129
+ symbol: string;
2130
+ verified?: boolean | undefined;
2131
+ address: `0x${string}`;
2132
+ };
2133
+ } | {
2134
+ gasEstimate: string;
2135
+ provider: string;
2136
+ status: "ready";
2137
+ transaction: {
2138
+ calls: {
2139
+ data: `0x${string}`;
2140
+ to: `0x${string}`;
2141
+ value: `0x${string}`;
2142
+ }[];
2143
+ chainId: number;
2144
+ };
2145
+ destinationAmount: {
2146
+ baseUnits: string;
2147
+ currency: string;
2148
+ decimals: number;
2149
+ formatted: string;
2150
+ valuation?: {
2151
+ amount: string;
2152
+ currency: string;
2153
+ } | null | undefined;
2154
+ };
2155
+ destinationToken: {
2156
+ currency: string;
2157
+ decimals: number;
2158
+ logoUri?: string | undefined;
2159
+ name: string;
2160
+ symbol: string;
2161
+ verified?: boolean | undefined;
2162
+ address: `0x${string}`;
2163
+ };
2164
+ meta?: {
2165
+ valuation?: {
2166
+ asOf: string;
2167
+ basis: "nominal";
2168
+ source: string;
2169
+ } | undefined;
2170
+ } | undefined;
2171
+ mode: "exactDestination";
2172
+ sourceAmount: {
2173
+ baseUnits: string;
2174
+ currency: string;
2175
+ decimals: number;
2176
+ formatted: string;
2177
+ valuation?: {
2178
+ amount: string;
2179
+ currency: string;
2180
+ } | null | undefined;
2181
+ };
2182
+ sourceAmountMax: {
2183
+ baseUnits: string;
2184
+ currency: string;
2185
+ decimals: number;
2186
+ formatted: string;
2187
+ valuation?: {
2188
+ amount: string;
2189
+ currency: string;
2190
+ } | null | undefined;
2191
+ };
2192
+ sourceToken: {
2193
+ currency: string;
2194
+ decimals: number;
2195
+ logoUri?: string | undefined;
2196
+ name: string;
2197
+ symbol: string;
2198
+ verified?: boolean | undefined;
2199
+ address: `0x${string}`;
2200
+ };
2201
+ } | {
2202
+ gasEstimate: string;
2203
+ provider: string;
2204
+ continuation: string;
2205
+ status: "signatureRequired";
2206
+ typedData: {
2207
+ domain: {
2208
+ [x: string]: import("hono/utils/types").JSONValue;
2209
+ };
2210
+ message: {
2211
+ [x: string]: import("hono/utils/types").JSONValue;
2212
+ };
2213
+ primaryType: string;
2214
+ types: {
2215
+ [x: string]: {
2216
+ name: string;
2217
+ type: string;
2218
+ }[];
2219
+ };
2220
+ };
2221
+ destinationAmount: {
2222
+ baseUnits: string;
2223
+ currency: string;
2224
+ decimals: number;
2225
+ formatted: string;
2226
+ valuation?: {
2227
+ amount: string;
2228
+ currency: string;
2229
+ } | null | undefined;
2230
+ };
2231
+ destinationToken: {
2232
+ currency: string;
2233
+ decimals: number;
2234
+ logoUri?: string | undefined;
2235
+ name: string;
2236
+ symbol: string;
2237
+ verified?: boolean | undefined;
2238
+ address: `0x${string}`;
2239
+ };
2240
+ meta?: {
2241
+ valuation?: {
2242
+ asOf: string;
2243
+ basis: "nominal";
2244
+ source: string;
2245
+ } | undefined;
2246
+ } | undefined;
2247
+ mode: "exactDestination";
2248
+ sourceAmount: {
2249
+ baseUnits: string;
2250
+ currency: string;
2251
+ decimals: number;
2252
+ formatted: string;
2253
+ valuation?: {
2254
+ amount: string;
2255
+ currency: string;
2256
+ } | null | undefined;
2257
+ };
2258
+ sourceAmountMax: {
2259
+ baseUnits: string;
2260
+ currency: string;
2261
+ decimals: number;
2262
+ formatted: string;
2263
+ valuation?: {
2264
+ amount: string;
2265
+ currency: string;
2266
+ } | null | undefined;
2267
+ };
2268
+ sourceToken: {
2269
+ currency: string;
2270
+ decimals: number;
2271
+ logoUri?: string | undefined;
2272
+ name: string;
2273
+ symbol: string;
2274
+ verified?: boolean | undefined;
2275
+ address: `0x${string}`;
2276
+ };
2277
+ };
2278
+ outputFormat: "json";
2279
+ status: 200;
2280
+ input: {
2281
+ query?: {
2282
+ chainId?: string | string[];
2283
+ include?: string | string[];
2284
+ 'valuation.currency'?: string | string[];
2285
+ } | undefined;
2286
+ } & {
2287
+ json: {
2288
+ account?: `0x${string}` | undefined;
2289
+ amount: string;
2290
+ destinationToken: `0x${string}`;
2291
+ mode: "exactDestination" | "exactSource";
2292
+ slippageBps: number;
2293
+ sourceToken: `0x${string}`;
2294
+ };
2295
+ };
2296
+ };
2297
+ $query: {
2298
+ output: null;
2299
+ outputFormat: "body";
2300
+ status: 402;
2301
+ input: {
2302
+ query?: {
2303
+ chainId?: string | string[];
2304
+ include?: string | string[];
2305
+ 'valuation.currency'?: string | string[];
2306
+ } | undefined;
2307
+ } & {
2308
+ json: {
2309
+ account?: `0x${string}` | undefined;
2310
+ amount: string;
2311
+ destinationToken: `0x${string}`;
2312
+ mode: "exactDestination" | "exactSource";
2313
+ slippageBps: number;
2314
+ sourceToken: `0x${string}`;
2315
+ };
2316
+ };
2317
+ } | {
2318
+ output: {
2319
+ error: {
2320
+ code: "upstream_error";
2321
+ details?: readonly Response.error.Detail[] | undefined;
2322
+ message: string;
2323
+ };
2324
+ requestId: string;
2325
+ };
2326
+ outputFormat: "json";
2327
+ status: 502;
1622
2328
  input: {
1623
2329
  query?: {
1624
2330
  chainId?: string | string[];
@@ -1638,14 +2344,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1638
2344
  } | {
1639
2345
  output: {
1640
2346
  error: {
1641
- code: "api_key_invalid" | "api_key_missing";
2347
+ code: "query_invalid";
1642
2348
  details?: readonly Response.error.Detail[] | undefined;
1643
2349
  message: string;
1644
2350
  };
1645
2351
  requestId: string;
1646
2352
  };
1647
2353
  outputFormat: "json";
1648
- status: 401;
2354
+ status: 400;
1649
2355
  input: {
1650
2356
  query?: {
1651
2357
  chainId?: string | string[];
@@ -1665,14 +2371,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1665
2371
  } | {
1666
2372
  output: {
1667
2373
  error: {
1668
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2374
+ code: "api_key_malformed";
1669
2375
  details?: readonly Response.error.Detail[] | undefined;
1670
2376
  message: string;
1671
2377
  };
1672
2378
  requestId: string;
1673
2379
  };
1674
2380
  outputFormat: "json";
1675
- status: 403;
2381
+ status: 400;
1676
2382
  input: {
1677
2383
  query?: {
1678
2384
  chainId?: string | string[];
@@ -1692,14 +2398,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1692
2398
  } | {
1693
2399
  output: {
1694
2400
  error: {
1695
- code: "payment_required" | "rate_limit_exceeded";
2401
+ code: "api_key_invalid" | "api_key_missing";
1696
2402
  details?: readonly Response.error.Detail[] | undefined;
1697
2403
  message: string;
1698
2404
  };
1699
2405
  requestId: string;
1700
2406
  };
1701
2407
  outputFormat: "json";
1702
- status: 429;
2408
+ status: 401;
1703
2409
  input: {
1704
2410
  query?: {
1705
2411
  chainId?: string | string[];
@@ -1719,14 +2425,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1719
2425
  } | {
1720
2426
  output: {
1721
2427
  error: {
1722
- code: "query_invalid";
2428
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1723
2429
  details?: readonly Response.error.Detail[] | undefined;
1724
2430
  message: string;
1725
2431
  };
1726
2432
  requestId: string;
1727
2433
  };
1728
2434
  outputFormat: "json";
1729
- status: 400;
2435
+ status: 403;
1730
2436
  input: {
1731
2437
  query?: {
1732
2438
  chainId?: string | string[];
@@ -1746,14 +2452,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1746
2452
  } | {
1747
2453
  output: {
1748
2454
  error: {
1749
- code: "upstream_error";
2455
+ code: "payment_required" | "rate_limit_exceeded";
1750
2456
  details?: readonly Response.error.Detail[] | undefined;
1751
2457
  message: string;
1752
2458
  };
1753
2459
  requestId: string;
1754
2460
  };
1755
2461
  outputFormat: "json";
1756
- status: 502;
2462
+ status: 429;
1757
2463
  input: {
1758
2464
  query?: {
1759
2465
  chainId?: string | string[];
@@ -2318,14 +3024,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2318
3024
  } | {
2319
3025
  output: {
2320
3026
  error: {
2321
- code: "api_key_malformed";
3027
+ code: "upstream_error";
2322
3028
  details?: readonly Response.error.Detail[] | undefined;
2323
3029
  message: string;
2324
3030
  };
2325
3031
  requestId: string;
2326
3032
  };
2327
3033
  outputFormat: "json";
2328
- status: 400;
3034
+ status: 502;
2329
3035
  input: {
2330
3036
  query?: {
2331
3037
  chainId?: string | string[];
@@ -2343,14 +3049,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2343
3049
  } | {
2344
3050
  output: {
2345
3051
  error: {
2346
- code: "api_key_invalid" | "api_key_missing";
3052
+ code: "query_invalid";
2347
3053
  details?: readonly Response.error.Detail[] | undefined;
2348
3054
  message: string;
2349
3055
  };
2350
3056
  requestId: string;
2351
3057
  };
2352
3058
  outputFormat: "json";
2353
- status: 401;
3059
+ status: 400;
2354
3060
  input: {
2355
3061
  query?: {
2356
3062
  chainId?: string | string[];
@@ -2368,14 +3074,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2368
3074
  } | {
2369
3075
  output: {
2370
3076
  error: {
2371
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3077
+ code: "api_key_malformed";
2372
3078
  details?: readonly Response.error.Detail[] | undefined;
2373
3079
  message: string;
2374
3080
  };
2375
3081
  requestId: string;
2376
3082
  };
2377
3083
  outputFormat: "json";
2378
- status: 403;
3084
+ status: 400;
2379
3085
  input: {
2380
3086
  query?: {
2381
3087
  chainId?: string | string[];
@@ -2393,14 +3099,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2393
3099
  } | {
2394
3100
  output: {
2395
3101
  error: {
2396
- code: "payment_required" | "rate_limit_exceeded";
3102
+ code: "api_key_invalid" | "api_key_missing";
2397
3103
  details?: readonly Response.error.Detail[] | undefined;
2398
3104
  message: string;
2399
3105
  };
2400
3106
  requestId: string;
2401
3107
  };
2402
3108
  outputFormat: "json";
2403
- status: 429;
3109
+ status: 401;
2404
3110
  input: {
2405
3111
  query?: {
2406
3112
  chainId?: string | string[];
@@ -2418,14 +3124,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2418
3124
  } | {
2419
3125
  output: {
2420
3126
  error: {
2421
- code: "query_invalid";
3127
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2422
3128
  details?: readonly Response.error.Detail[] | undefined;
2423
3129
  message: string;
2424
3130
  };
2425
3131
  requestId: string;
2426
3132
  };
2427
3133
  outputFormat: "json";
2428
- status: 400;
3134
+ status: 403;
2429
3135
  input: {
2430
3136
  query?: {
2431
3137
  chainId?: string | string[];
@@ -2443,14 +3149,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2443
3149
  } | {
2444
3150
  output: {
2445
3151
  error: {
2446
- code: "upstream_error";
3152
+ code: "payment_required" | "rate_limit_exceeded";
2447
3153
  details?: readonly Response.error.Detail[] | undefined;
2448
3154
  message: string;
2449
3155
  };
2450
3156
  requestId: string;
2451
3157
  };
2452
3158
  outputFormat: "json";
2453
- status: 502;
3159
+ status: 429;
2454
3160
  input: {
2455
3161
  query?: {
2456
3162
  chainId?: string | string[];
@@ -2597,14 +3303,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2597
3303
  } | {
2598
3304
  output: {
2599
3305
  error: {
2600
- code: "api_key_malformed";
3306
+ code: "upstream_error";
2601
3307
  details?: readonly Response.error.Detail[] | undefined;
2602
3308
  message: string;
2603
3309
  };
2604
3310
  requestId: string;
2605
3311
  };
2606
3312
  outputFormat: "json";
2607
- status: 400;
3313
+ status: 502;
2608
3314
  input: {
2609
3315
  query?: {
2610
3316
  'blockNumber.from'?: string | string[];
@@ -2626,14 +3332,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2626
3332
  } | {
2627
3333
  output: {
2628
3334
  error: {
2629
- code: "api_key_invalid" | "api_key_missing";
3335
+ code: "query_invalid";
2630
3336
  details?: readonly Response.error.Detail[] | undefined;
2631
3337
  message: string;
2632
3338
  };
2633
3339
  requestId: string;
2634
3340
  };
2635
3341
  outputFormat: "json";
2636
- status: 401;
3342
+ status: 400;
2637
3343
  input: {
2638
3344
  query?: {
2639
3345
  'blockNumber.from'?: string | string[];
@@ -2655,14 +3361,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2655
3361
  } | {
2656
3362
  output: {
2657
3363
  error: {
2658
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3364
+ code: "api_key_malformed";
2659
3365
  details?: readonly Response.error.Detail[] | undefined;
2660
3366
  message: string;
2661
3367
  };
2662
3368
  requestId: string;
2663
3369
  };
2664
3370
  outputFormat: "json";
2665
- status: 403;
3371
+ status: 400;
2666
3372
  input: {
2667
3373
  query?: {
2668
3374
  'blockNumber.from'?: string | string[];
@@ -2684,14 +3390,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2684
3390
  } | {
2685
3391
  output: {
2686
3392
  error: {
2687
- code: "payment_required" | "rate_limit_exceeded";
3393
+ code: "api_key_invalid" | "api_key_missing";
2688
3394
  details?: readonly Response.error.Detail[] | undefined;
2689
3395
  message: string;
2690
3396
  };
2691
3397
  requestId: string;
2692
3398
  };
2693
3399
  outputFormat: "json";
2694
- status: 429;
3400
+ status: 401;
2695
3401
  input: {
2696
3402
  query?: {
2697
3403
  'blockNumber.from'?: string | string[];
@@ -2713,14 +3419,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2713
3419
  } | {
2714
3420
  output: {
2715
3421
  error: {
2716
- code: "query_invalid";
3422
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2717
3423
  details?: readonly Response.error.Detail[] | undefined;
2718
3424
  message: string;
2719
3425
  };
2720
3426
  requestId: string;
2721
3427
  };
2722
3428
  outputFormat: "json";
2723
- status: 400;
3429
+ status: 403;
2724
3430
  input: {
2725
3431
  query?: {
2726
3432
  'blockNumber.from'?: string | string[];
@@ -2742,14 +3448,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2742
3448
  } | {
2743
3449
  output: {
2744
3450
  error: {
2745
- code: "upstream_error";
3451
+ code: "payment_required" | "rate_limit_exceeded";
2746
3452
  details?: readonly Response.error.Detail[] | undefined;
2747
3453
  message: string;
2748
3454
  };
2749
3455
  requestId: string;
2750
3456
  };
2751
3457
  outputFormat: "json";
2752
- status: 502;
3458
+ status: 429;
2753
3459
  input: {
2754
3460
  query?: {
2755
3461
  'blockNumber.from'?: string | string[];
@@ -2915,14 +3621,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2915
3621
  } | {
2916
3622
  output: {
2917
3623
  error: {
2918
- code: "api_key_malformed";
3624
+ code: "upstream_error";
2919
3625
  details?: readonly Response.error.Detail[] | undefined;
2920
3626
  message: string;
2921
3627
  };
2922
3628
  requestId: string;
2923
3629
  };
2924
3630
  outputFormat: "json";
2925
- status: 400;
3631
+ status: 502;
2926
3632
  input: {
2927
3633
  query?: {
2928
3634
  chainId?: string | string[];
@@ -2937,14 +3643,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2937
3643
  } | {
2938
3644
  output: {
2939
3645
  error: {
2940
- code: "api_key_invalid" | "api_key_missing";
3646
+ code: "query_invalid";
2941
3647
  details?: readonly Response.error.Detail[] | undefined;
2942
3648
  message: string;
2943
3649
  };
2944
3650
  requestId: string;
2945
3651
  };
2946
3652
  outputFormat: "json";
2947
- status: 401;
3653
+ status: 400;
2948
3654
  input: {
2949
3655
  query?: {
2950
3656
  chainId?: string | string[];
@@ -2959,14 +3665,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2959
3665
  } | {
2960
3666
  output: {
2961
3667
  error: {
2962
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3668
+ code: "api_key_malformed";
2963
3669
  details?: readonly Response.error.Detail[] | undefined;
2964
3670
  message: string;
2965
3671
  };
2966
3672
  requestId: string;
2967
3673
  };
2968
3674
  outputFormat: "json";
2969
- status: 403;
3675
+ status: 400;
2970
3676
  input: {
2971
3677
  query?: {
2972
3678
  chainId?: string | string[];
@@ -2981,14 +3687,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2981
3687
  } | {
2982
3688
  output: {
2983
3689
  error: {
2984
- code: "payment_required" | "rate_limit_exceeded";
3690
+ code: "api_key_invalid" | "api_key_missing";
2985
3691
  details?: readonly Response.error.Detail[] | undefined;
2986
3692
  message: string;
2987
3693
  };
2988
3694
  requestId: string;
2989
3695
  };
2990
3696
  outputFormat: "json";
2991
- status: 429;
3697
+ status: 401;
2992
3698
  input: {
2993
3699
  query?: {
2994
3700
  chainId?: string | string[];
@@ -3003,14 +3709,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3003
3709
  } | {
3004
3710
  output: {
3005
3711
  error: {
3006
- code: "query_invalid";
3712
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3007
3713
  details?: readonly Response.error.Detail[] | undefined;
3008
3714
  message: string;
3009
3715
  };
3010
3716
  requestId: string;
3011
3717
  };
3012
3718
  outputFormat: "json";
3013
- status: 400;
3719
+ status: 403;
3014
3720
  input: {
3015
3721
  query?: {
3016
3722
  chainId?: string | string[];
@@ -3025,14 +3731,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3025
3731
  } | {
3026
3732
  output: {
3027
3733
  error: {
3028
- code: "upstream_error";
3734
+ code: "payment_required" | "rate_limit_exceeded";
3029
3735
  details?: readonly Response.error.Detail[] | undefined;
3030
3736
  message: string;
3031
3737
  };
3032
3738
  requestId: string;
3033
3739
  };
3034
3740
  outputFormat: "json";
3035
- status: 502;
3741
+ status: 429;
3036
3742
  input: {
3037
3743
  query?: {
3038
3744
  chainId?: string | string[];
@@ -3112,14 +3818,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3112
3818
  } | {
3113
3819
  output: {
3114
3820
  error: {
3115
- code: "api_key_malformed";
3821
+ code: "upstream_error";
3116
3822
  details?: readonly Response.error.Detail[] | undefined;
3117
3823
  message: string;
3118
3824
  };
3119
3825
  requestId: string;
3120
3826
  };
3121
3827
  outputFormat: "json";
3122
- status: 400;
3828
+ status: 502;
3123
3829
  input: {
3124
3830
  param: {
3125
3831
  base: `0x${string}`;
@@ -3133,14 +3839,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3133
3839
  } | {
3134
3840
  output: {
3135
3841
  error: {
3136
- code: "api_key_invalid" | "api_key_missing";
3842
+ code: "query_invalid";
3137
3843
  details?: readonly Response.error.Detail[] | undefined;
3138
3844
  message: string;
3139
3845
  };
3140
3846
  requestId: string;
3141
3847
  };
3142
3848
  outputFormat: "json";
3143
- status: 401;
3849
+ status: 400;
3144
3850
  input: {
3145
3851
  param: {
3146
3852
  base: `0x${string}`;
@@ -3154,14 +3860,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3154
3860
  } | {
3155
3861
  output: {
3156
3862
  error: {
3157
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3863
+ code: "api_key_malformed";
3158
3864
  details?: readonly Response.error.Detail[] | undefined;
3159
3865
  message: string;
3160
3866
  };
3161
3867
  requestId: string;
3162
3868
  };
3163
3869
  outputFormat: "json";
3164
- status: 403;
3870
+ status: 400;
3165
3871
  input: {
3166
3872
  param: {
3167
3873
  base: `0x${string}`;
@@ -3175,14 +3881,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3175
3881
  } | {
3176
3882
  output: {
3177
3883
  error: {
3178
- code: "payment_required" | "rate_limit_exceeded";
3884
+ code: "api_key_invalid" | "api_key_missing";
3179
3885
  details?: readonly Response.error.Detail[] | undefined;
3180
3886
  message: string;
3181
3887
  };
3182
3888
  requestId: string;
3183
3889
  };
3184
3890
  outputFormat: "json";
3185
- status: 429;
3891
+ status: 401;
3186
3892
  input: {
3187
3893
  param: {
3188
3894
  base: `0x${string}`;
@@ -3196,14 +3902,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3196
3902
  } | {
3197
3903
  output: {
3198
3904
  error: {
3199
- code: "query_invalid";
3905
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3200
3906
  details?: readonly Response.error.Detail[] | undefined;
3201
3907
  message: string;
3202
3908
  };
3203
3909
  requestId: string;
3204
3910
  };
3205
3911
  outputFormat: "json";
3206
- status: 400;
3912
+ status: 403;
3207
3913
  input: {
3208
3914
  param: {
3209
3915
  base: `0x${string}`;
@@ -3217,14 +3923,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3217
3923
  } | {
3218
3924
  output: {
3219
3925
  error: {
3220
- code: "upstream_error";
3926
+ code: "payment_required" | "rate_limit_exceeded";
3221
3927
  details?: readonly Response.error.Detail[] | undefined;
3222
3928
  message: string;
3223
3929
  };
3224
3930
  requestId: string;
3225
3931
  };
3226
3932
  outputFormat: "json";
3227
- status: 502;
3933
+ status: 429;
3228
3934
  input: {
3229
3935
  param: {
3230
3936
  base: `0x${string}`;
@@ -3341,14 +4047,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3341
4047
  } | {
3342
4048
  output: {
3343
4049
  error: {
3344
- code: "api_key_malformed";
4050
+ code: "upstream_error";
3345
4051
  details?: readonly Response.error.Detail[] | undefined;
3346
4052
  message: string;
3347
4053
  };
3348
4054
  requestId: string;
3349
4055
  };
3350
4056
  outputFormat: "json";
3351
- status: 400;
4057
+ status: 502;
3352
4058
  input: {
3353
4059
  query?: {
3354
4060
  base?: string | string[];
@@ -3366,14 +4072,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3366
4072
  } | {
3367
4073
  output: {
3368
4074
  error: {
3369
- code: "api_key_invalid" | "api_key_missing";
4075
+ code: "query_invalid";
3370
4076
  details?: readonly Response.error.Detail[] | undefined;
3371
4077
  message: string;
3372
4078
  };
3373
4079
  requestId: string;
3374
4080
  };
3375
4081
  outputFormat: "json";
3376
- status: 401;
4082
+ status: 400;
3377
4083
  input: {
3378
4084
  query?: {
3379
4085
  base?: string | string[];
@@ -3391,14 +4097,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3391
4097
  } | {
3392
4098
  output: {
3393
4099
  error: {
3394
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4100
+ code: "api_key_malformed";
3395
4101
  details?: readonly Response.error.Detail[] | undefined;
3396
4102
  message: string;
3397
4103
  };
3398
4104
  requestId: string;
3399
4105
  };
3400
4106
  outputFormat: "json";
3401
- status: 403;
4107
+ status: 400;
3402
4108
  input: {
3403
4109
  query?: {
3404
4110
  base?: string | string[];
@@ -3416,14 +4122,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3416
4122
  } | {
3417
4123
  output: {
3418
4124
  error: {
3419
- code: "payment_required" | "rate_limit_exceeded";
4125
+ code: "api_key_invalid" | "api_key_missing";
3420
4126
  details?: readonly Response.error.Detail[] | undefined;
3421
4127
  message: string;
3422
4128
  };
3423
4129
  requestId: string;
3424
4130
  };
3425
4131
  outputFormat: "json";
3426
- status: 429;
4132
+ status: 401;
3427
4133
  input: {
3428
4134
  query?: {
3429
4135
  base?: string | string[];
@@ -3441,14 +4147,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3441
4147
  } | {
3442
4148
  output: {
3443
4149
  error: {
3444
- code: "query_invalid";
4150
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3445
4151
  details?: readonly Response.error.Detail[] | undefined;
3446
4152
  message: string;
3447
4153
  };
3448
4154
  requestId: string;
3449
4155
  };
3450
4156
  outputFormat: "json";
3451
- status: 400;
4157
+ status: 403;
3452
4158
  input: {
3453
4159
  query?: {
3454
4160
  base?: string | string[];
@@ -3466,14 +4172,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3466
4172
  } | {
3467
4173
  output: {
3468
4174
  error: {
3469
- code: "upstream_error";
4175
+ code: "payment_required" | "rate_limit_exceeded";
3470
4176
  details?: readonly Response.error.Detail[] | undefined;
3471
4177
  message: string;
3472
4178
  };
3473
4179
  requestId: string;
3474
4180
  };
3475
4181
  outputFormat: "json";
3476
- status: 502;
4182
+ status: 429;
3477
4183
  input: {
3478
4184
  query?: {
3479
4185
  base?: string | string[];
@@ -3595,14 +4301,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3595
4301
  } | {
3596
4302
  output: {
3597
4303
  error: {
3598
- code: "api_key_malformed";
4304
+ code: "upstream_error";
3599
4305
  details?: readonly Response.error.Detail[] | undefined;
3600
4306
  message: string;
3601
4307
  };
3602
4308
  requestId: string;
3603
4309
  };
3604
4310
  outputFormat: "json";
3605
- status: 400;
4311
+ status: 502;
3606
4312
  input: {
3607
4313
  param: {
3608
4314
  orderId: string;
@@ -3616,14 +4322,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3616
4322
  } | {
3617
4323
  output: {
3618
4324
  error: {
3619
- code: "api_key_invalid" | "api_key_missing";
4325
+ code: "query_invalid";
3620
4326
  details?: readonly Response.error.Detail[] | undefined;
3621
4327
  message: string;
3622
4328
  };
3623
4329
  requestId: string;
3624
4330
  };
3625
4331
  outputFormat: "json";
3626
- status: 401;
4332
+ status: 400;
3627
4333
  input: {
3628
4334
  param: {
3629
4335
  orderId: string;
@@ -3637,14 +4343,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3637
4343
  } | {
3638
4344
  output: {
3639
4345
  error: {
3640
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4346
+ code: "api_key_malformed";
3641
4347
  details?: readonly Response.error.Detail[] | undefined;
3642
4348
  message: string;
3643
4349
  };
3644
4350
  requestId: string;
3645
4351
  };
3646
4352
  outputFormat: "json";
3647
- status: 403;
4353
+ status: 400;
3648
4354
  input: {
3649
4355
  param: {
3650
4356
  orderId: string;
@@ -3658,14 +4364,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3658
4364
  } | {
3659
4365
  output: {
3660
4366
  error: {
3661
- code: "payment_required" | "rate_limit_exceeded";
4367
+ code: "api_key_invalid" | "api_key_missing";
3662
4368
  details?: readonly Response.error.Detail[] | undefined;
3663
4369
  message: string;
3664
4370
  };
3665
4371
  requestId: string;
3666
4372
  };
3667
4373
  outputFormat: "json";
3668
- status: 429;
4374
+ status: 401;
3669
4375
  input: {
3670
4376
  param: {
3671
4377
  orderId: string;
@@ -3679,14 +4385,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3679
4385
  } | {
3680
4386
  output: {
3681
4387
  error: {
3682
- code: "query_invalid";
4388
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3683
4389
  details?: readonly Response.error.Detail[] | undefined;
3684
4390
  message: string;
3685
4391
  };
3686
4392
  requestId: string;
3687
4393
  };
3688
4394
  outputFormat: "json";
3689
- status: 400;
4395
+ status: 403;
3690
4396
  input: {
3691
4397
  param: {
3692
4398
  orderId: string;
@@ -3700,14 +4406,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3700
4406
  } | {
3701
4407
  output: {
3702
4408
  error: {
3703
- code: "upstream_error";
4409
+ code: "payment_required" | "rate_limit_exceeded";
3704
4410
  details?: readonly Response.error.Detail[] | undefined;
3705
4411
  message: string;
3706
4412
  };
3707
4413
  requestId: string;
3708
4414
  };
3709
4415
  outputFormat: "json";
3710
- status: 502;
4416
+ status: 429;
3711
4417
  input: {
3712
4418
  param: {
3713
4419
  orderId: string;
@@ -3833,14 +4539,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3833
4539
  } | {
3834
4540
  output: {
3835
4541
  error: {
3836
- code: "api_key_malformed";
4542
+ code: "upstream_error";
3837
4543
  details?: readonly Response.error.Detail[] | undefined;
3838
4544
  message: string;
3839
4545
  };
3840
4546
  requestId: string;
3841
4547
  };
3842
4548
  outputFormat: "json";
3843
- status: 400;
4549
+ status: 502;
3844
4550
  input: {
3845
4551
  param: {
3846
4552
  orderId: string;
@@ -3858,14 +4564,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3858
4564
  } | {
3859
4565
  output: {
3860
4566
  error: {
3861
- code: "api_key_invalid" | "api_key_missing";
4567
+ code: "query_invalid";
3862
4568
  details?: readonly Response.error.Detail[] | undefined;
3863
4569
  message: string;
3864
4570
  };
3865
4571
  requestId: string;
3866
4572
  };
3867
4573
  outputFormat: "json";
3868
- status: 401;
4574
+ status: 400;
3869
4575
  input: {
3870
4576
  param: {
3871
4577
  orderId: string;
@@ -3883,14 +4589,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3883
4589
  } | {
3884
4590
  output: {
3885
4591
  error: {
3886
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4592
+ code: "api_key_malformed";
3887
4593
  details?: readonly Response.error.Detail[] | undefined;
3888
4594
  message: string;
3889
4595
  };
3890
4596
  requestId: string;
3891
4597
  };
3892
4598
  outputFormat: "json";
3893
- status: 403;
4599
+ status: 400;
3894
4600
  input: {
3895
4601
  param: {
3896
4602
  orderId: string;
@@ -3908,14 +4614,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3908
4614
  } | {
3909
4615
  output: {
3910
4616
  error: {
3911
- code: "payment_required" | "rate_limit_exceeded";
4617
+ code: "api_key_invalid" | "api_key_missing";
3912
4618
  details?: readonly Response.error.Detail[] | undefined;
3913
4619
  message: string;
3914
4620
  };
3915
4621
  requestId: string;
3916
4622
  };
3917
4623
  outputFormat: "json";
3918
- status: 429;
4624
+ status: 401;
3919
4625
  input: {
3920
4626
  param: {
3921
4627
  orderId: string;
@@ -3933,14 +4639,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3933
4639
  } | {
3934
4640
  output: {
3935
4641
  error: {
3936
- code: "query_invalid";
4642
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3937
4643
  details?: readonly Response.error.Detail[] | undefined;
3938
4644
  message: string;
3939
4645
  };
3940
4646
  requestId: string;
3941
4647
  };
3942
4648
  outputFormat: "json";
3943
- status: 400;
4649
+ status: 403;
3944
4650
  input: {
3945
4651
  param: {
3946
4652
  orderId: string;
@@ -3958,14 +4664,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3958
4664
  } | {
3959
4665
  output: {
3960
4666
  error: {
3961
- code: "upstream_error";
4667
+ code: "payment_required" | "rate_limit_exceeded";
3962
4668
  details?: readonly Response.error.Detail[] | undefined;
3963
4669
  message: string;
3964
4670
  };
3965
4671
  requestId: string;
3966
4672
  };
3967
4673
  outputFormat: "json";
3968
- status: 502;
4674
+ status: 429;
3969
4675
  input: {
3970
4676
  param: {
3971
4677
  orderId: string;
@@ -4063,14 +4769,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4063
4769
  } | {
4064
4770
  output: {
4065
4771
  error: {
4066
- code: "api_key_malformed";
4772
+ code: "upstream_error";
4067
4773
  details?: readonly Response.error.Detail[] | undefined;
4068
4774
  message: string;
4069
4775
  };
4070
4776
  requestId: string;
4071
4777
  };
4072
4778
  outputFormat: "json";
4073
- status: 400;
4779
+ status: 502;
4074
4780
  input: {
4075
4781
  param: {
4076
4782
  base: `0x${string}`;
@@ -4086,14 +4792,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4086
4792
  } | {
4087
4793
  output: {
4088
4794
  error: {
4089
- code: "api_key_invalid" | "api_key_missing";
4795
+ code: "query_invalid";
4090
4796
  details?: readonly Response.error.Detail[] | undefined;
4091
4797
  message: string;
4092
4798
  };
4093
4799
  requestId: string;
4094
4800
  };
4095
4801
  outputFormat: "json";
4096
- status: 401;
4802
+ status: 400;
4097
4803
  input: {
4098
4804
  param: {
4099
4805
  base: `0x${string}`;
@@ -4109,14 +4815,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4109
4815
  } | {
4110
4816
  output: {
4111
4817
  error: {
4112
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4818
+ code: "api_key_malformed";
4113
4819
  details?: readonly Response.error.Detail[] | undefined;
4114
4820
  message: string;
4115
4821
  };
4116
4822
  requestId: string;
4117
4823
  };
4118
4824
  outputFormat: "json";
4119
- status: 403;
4825
+ status: 400;
4120
4826
  input: {
4121
4827
  param: {
4122
4828
  base: `0x${string}`;
@@ -4132,14 +4838,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4132
4838
  } | {
4133
4839
  output: {
4134
4840
  error: {
4135
- code: "payment_required" | "rate_limit_exceeded";
4841
+ code: "api_key_invalid" | "api_key_missing";
4136
4842
  details?: readonly Response.error.Detail[] | undefined;
4137
4843
  message: string;
4138
4844
  };
4139
4845
  requestId: string;
4140
4846
  };
4141
4847
  outputFormat: "json";
4142
- status: 429;
4848
+ status: 401;
4143
4849
  input: {
4144
4850
  param: {
4145
4851
  base: `0x${string}`;
@@ -4155,14 +4861,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4155
4861
  } | {
4156
4862
  output: {
4157
4863
  error: {
4158
- code: "query_invalid";
4864
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4159
4865
  details?: readonly Response.error.Detail[] | undefined;
4160
4866
  message: string;
4161
4867
  };
4162
4868
  requestId: string;
4163
4869
  };
4164
4870
  outputFormat: "json";
4165
- status: 400;
4871
+ status: 403;
4166
4872
  input: {
4167
4873
  param: {
4168
4874
  base: `0x${string}`;
@@ -4178,14 +4884,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4178
4884
  } | {
4179
4885
  output: {
4180
4886
  error: {
4181
- code: "upstream_error";
4887
+ code: "payment_required" | "rate_limit_exceeded";
4182
4888
  details?: readonly Response.error.Detail[] | undefined;
4183
4889
  message: string;
4184
4890
  };
4185
4891
  requestId: string;
4186
4892
  };
4187
4893
  outputFormat: "json";
4188
- status: 502;
4894
+ status: 429;
4189
4895
  input: {
4190
4896
  param: {
4191
4897
  base: `0x${string}`;
@@ -4317,14 +5023,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4317
5023
  } | {
4318
5024
  output: {
4319
5025
  error: {
4320
- code: "api_key_malformed";
5026
+ code: "upstream_error";
4321
5027
  details?: readonly Response.error.Detail[] | undefined;
4322
5028
  message: string;
4323
5029
  };
4324
5030
  requestId: string;
4325
5031
  };
4326
5032
  outputFormat: "json";
4327
- status: 400;
5033
+ status: 502;
4328
5034
  input: {
4329
5035
  param: {
4330
5036
  base: `0x${string}`;
@@ -4339,14 +5045,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4339
5045
  } | {
4340
5046
  output: {
4341
5047
  error: {
4342
- code: "api_key_invalid" | "api_key_missing";
5048
+ code: "query_invalid";
4343
5049
  details?: readonly Response.error.Detail[] | undefined;
4344
5050
  message: string;
4345
5051
  };
4346
5052
  requestId: string;
4347
5053
  };
4348
5054
  outputFormat: "json";
4349
- status: 401;
5055
+ status: 400;
4350
5056
  input: {
4351
5057
  param: {
4352
5058
  base: `0x${string}`;
@@ -4361,14 +5067,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4361
5067
  } | {
4362
5068
  output: {
4363
5069
  error: {
4364
- code: "api_key_forbidden" | "api_key_ip_forbidden";
5070
+ code: "api_key_malformed";
4365
5071
  details?: readonly Response.error.Detail[] | undefined;
4366
5072
  message: string;
4367
5073
  };
4368
5074
  requestId: string;
4369
5075
  };
4370
5076
  outputFormat: "json";
4371
- status: 403;
5077
+ status: 400;
4372
5078
  input: {
4373
5079
  param: {
4374
5080
  base: `0x${string}`;
@@ -4383,14 +5089,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4383
5089
  } | {
4384
5090
  output: {
4385
5091
  error: {
4386
- code: "payment_required" | "rate_limit_exceeded";
5092
+ code: "api_key_invalid" | "api_key_missing";
4387
5093
  details?: readonly Response.error.Detail[] | undefined;
4388
5094
  message: string;
4389
5095
  };
4390
5096
  requestId: string;
4391
5097
  };
4392
5098
  outputFormat: "json";
4393
- status: 429;
5099
+ status: 401;
4394
5100
  input: {
4395
5101
  param: {
4396
5102
  base: `0x${string}`;
@@ -4405,14 +5111,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4405
5111
  } | {
4406
5112
  output: {
4407
5113
  error: {
4408
- code: "query_invalid";
5114
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4409
5115
  details?: readonly Response.error.Detail[] | undefined;
4410
5116
  message: string;
4411
5117
  };
4412
5118
  requestId: string;
4413
5119
  };
4414
5120
  outputFormat: "json";
4415
- status: 400;
5121
+ status: 403;
4416
5122
  input: {
4417
5123
  param: {
4418
5124
  base: `0x${string}`;
@@ -4427,14 +5133,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4427
5133
  } | {
4428
5134
  output: {
4429
5135
  error: {
4430
- code: "upstream_error";
5136
+ code: "payment_required" | "rate_limit_exceeded";
4431
5137
  details?: readonly Response.error.Detail[] | undefined;
4432
5138
  message: string;
4433
5139
  };
4434
5140
  requestId: string;
4435
5141
  };
4436
5142
  outputFormat: "json";
4437
- status: 502;
5143
+ status: 429;
4438
5144
  input: {
4439
5145
  param: {
4440
5146
  base: `0x${string}`;