tapimo 0.12.0 → 0.14.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 (398) hide show
  1. package/dist/App.d.ts +11333 -9563
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +39 -3
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +2 -0
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +17 -0
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/Webhooks.js +2 -2
  10. package/dist/Webhooks.js.map +1 -1
  11. package/dist/admin/App.d.ts +1064 -924
  12. package/dist/admin/App.d.ts.map +1 -1
  13. package/dist/admin/apps/api-keys.d.ts +80 -0
  14. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  15. package/dist/admin/apps/api-keys.js +54 -0
  16. package/dist/admin/apps/api-keys.js.map +1 -1
  17. package/dist/admin/apps/earn-vaults.d.ts +63 -15
  18. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  19. package/dist/admin/apps/earn-vaults.js +2 -1
  20. package/dist/admin/apps/earn-vaults.js.map +1 -1
  21. package/dist/admin/apps/organizations.d.ts +92 -3
  22. package/dist/admin/apps/organizations.d.ts.map +1 -1
  23. package/dist/admin/apps/organizations.js +69 -7
  24. package/dist/admin/apps/organizations.js.map +1 -1
  25. package/dist/admin/apps/verified-tokens.d.ts +7 -7
  26. package/dist/admin/ui.generated.d.ts +1 -1
  27. package/dist/admin/ui.generated.d.ts.map +1 -1
  28. package/dist/admin/ui.generated.js +151 -151
  29. package/dist/admin/ui.generated.js.map +1 -1
  30. package/dist/apps/Zones.d.ts +28 -28
  31. package/dist/apps/Zones.js +7 -7
  32. package/dist/apps/data/App.d.ts +2909 -2523
  33. package/dist/apps/data/App.d.ts.map +1 -1
  34. package/dist/apps/data/App.js +26 -21
  35. package/dist/apps/data/App.js.map +1 -1
  36. package/dist/apps/data/ZoneSelection.d.ts +8 -8
  37. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  38. package/dist/apps/data/ZoneSelection.js +1 -1
  39. package/dist/apps/data/ZoneSelection.js.map +1 -1
  40. package/dist/apps/data/routes/activities.d.ts +588 -584
  41. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  42. package/dist/apps/data/routes/activities.js +1561 -1239
  43. package/dist/apps/data/routes/activities.js.map +1 -1
  44. package/dist/apps/data/routes/addresses.d.ts +22 -22
  45. package/dist/apps/data/routes/balances.d.ts +26 -26
  46. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  47. package/dist/apps/data/routes/balances.js +43 -16
  48. package/dist/apps/data/routes/balances.js.map +1 -1
  49. package/dist/apps/data/routes/blocks.d.ts +44 -44
  50. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  51. package/dist/apps/data/routes/blocks.js +21 -11
  52. package/dist/apps/data/routes/blocks.js.map +1 -1
  53. package/dist/apps/data/routes/coingecko.d.ts +3 -3
  54. package/dist/apps/data/routes/earn.d.ts +201 -25
  55. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  56. package/dist/apps/data/routes/earn.js +434 -75
  57. package/dist/apps/data/routes/earn.js.map +1 -1
  58. package/dist/apps/data/routes/exchanges.d.ts +160 -145
  59. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  60. package/dist/apps/data/routes/exchanges.js +180 -114
  61. package/dist/apps/data/routes/exchanges.js.map +1 -1
  62. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  63. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  64. package/dist/apps/data/routes/fee-amm.js +18 -19
  65. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  66. package/dist/apps/data/routes/receipts.d.ts +155 -55
  67. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  68. package/dist/apps/data/routes/receipts.js +28 -10
  69. package/dist/apps/data/routes/receipts.js.map +1 -1
  70. package/dist/apps/data/routes/tokenlist.d.ts +13 -13
  71. package/dist/apps/data/routes/tokens.d.ts +5 -5
  72. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  73. package/dist/apps/data/routes/tokens.js +51 -20
  74. package/dist/apps/data/routes/tokens.js.map +1 -1
  75. package/dist/apps/data/routes/transactions.d.ts +7 -2
  76. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  77. package/dist/apps/data/routes/transactions.js +37 -17
  78. package/dist/apps/data/routes/transactions.js.map +1 -1
  79. package/dist/apps/data/routes/transfers.d.ts +13 -13
  80. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  81. package/dist/apps/data/routes/transfers.js +18 -12
  82. package/dist/apps/data/routes/transfers.js.map +1 -1
  83. package/dist/apps/data/routes/valuation.d.ts +31 -31
  84. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  85. package/dist/apps/data/routes/valuation.js +12 -7
  86. package/dist/apps/data/routes/valuation.js.map +1 -1
  87. package/dist/apps/data/routes/verified-tokens.d.ts +8 -8
  88. package/dist/apps/data/routes/webhooks.d.ts +816 -113
  89. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  90. package/dist/apps/data/routes/webhooks.js +47 -5
  91. package/dist/apps/data/routes/webhooks.js.map +1 -1
  92. package/dist/apps/data/routes/zones.d.ts +14 -14
  93. package/dist/apps/data/routes/zones.js +1 -1
  94. package/dist/apps/funding/App.d.ts +466 -44
  95. package/dist/apps/funding/App.d.ts.map +1 -1
  96. package/dist/apps/funding/App.js +1 -1
  97. package/dist/apps/funding/App.js.map +1 -1
  98. package/dist/apps/funding/routes/deposit-addresses.d.ts +17 -17
  99. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  100. package/dist/apps/funding/routes/deposit-addresses.js +17 -12
  101. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  102. package/dist/apps/funding/routes/transfers.d.ts +650 -57
  103. package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
  104. package/dist/apps/funding/routes/transfers.js +238 -24
  105. package/dist/apps/funding/routes/transfers.js.map +1 -1
  106. package/dist/apps/management/App.d.ts +5120 -4152
  107. package/dist/apps/management/App.d.ts.map +1 -1
  108. package/dist/apps/management/Billing.d.ts +1 -1
  109. package/dist/apps/management/Billing.d.ts.map +1 -1
  110. package/dist/apps/management/Billing.js +17 -1
  111. package/dist/apps/management/Billing.js.map +1 -1
  112. package/dist/apps/management/routes/api-keys.d.ts +632 -81
  113. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  114. package/dist/apps/management/routes/api-keys.js +236 -4
  115. package/dist/apps/management/routes/api-keys.js.map +1 -1
  116. package/dist/apps/management/routes/billing.d.ts +76 -76
  117. package/dist/apps/management/routes/faucet.d.ts +6 -6
  118. package/dist/apps/management/routes/invitations.d.ts +24 -24
  119. package/dist/apps/management/routes/invite-links.d.ts +4 -4
  120. package/dist/apps/management/routes/members.d.ts +16 -16
  121. package/dist/apps/management/routes/orgs.d.ts +20 -20
  122. package/dist/apps/management/routes/projects.d.ts +4 -4
  123. package/dist/apps/management/routes/usage.d.ts +8 -8
  124. package/dist/apps/management/routes/verified-token-requests.d.ts +17 -17
  125. package/dist/apps/management/routes/webhooks.d.ts +675 -25
  126. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  127. package/dist/apps/management/routes/webhooks.js +21 -21
  128. package/dist/apps/management/routes/webhooks.js.map +1 -1
  129. package/dist/apps/relay/App.d.ts.map +1 -1
  130. package/dist/apps/relay/App.js +115 -23
  131. package/dist/apps/relay/App.js.map +1 -1
  132. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  133. package/dist/apps/relay/Sponsorships.js +27 -1
  134. package/dist/apps/relay/Sponsorships.js.map +1 -1
  135. package/dist/db/Db.d.ts.map +1 -1
  136. package/dist/db/Db.js +34 -1
  137. package/dist/db/Db.js.map +1 -1
  138. package/dist/db/Schema.d.ts +11 -5
  139. package/dist/db/Schema.d.ts.map +1 -1
  140. package/dist/db/Schema.js +21 -3
  141. package/dist/db/Schema.js.map +1 -1
  142. package/dist/db/tables/fundingCatalog.d.ts +4 -2
  143. package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
  144. package/dist/db/tables/fundingCatalog.js +5 -1
  145. package/dist/db/tables/fundingCatalog.js.map +1 -1
  146. package/dist/db/tables/fundingTransferTransactions.d.ts +38 -0
  147. package/dist/db/tables/fundingTransferTransactions.d.ts.map +1 -1
  148. package/dist/db/tables/fundingTransferTransactions.js +44 -3
  149. package/dist/db/tables/fundingTransferTransactions.js.map +1 -1
  150. package/dist/db/tables/fundingTransfers.d.ts +17 -0
  151. package/dist/db/tables/fundingTransfers.d.ts.map +1 -1
  152. package/dist/db/tables/fundingTransfers.js +21 -0
  153. package/dist/db/tables/fundingTransfers.js.map +1 -1
  154. package/dist/db/tables/organizations.d.ts +24 -0
  155. package/dist/db/tables/organizations.d.ts.map +1 -1
  156. package/dist/db/tables/organizations.js +27 -0
  157. package/dist/db/tables/organizations.js.map +1 -1
  158. package/dist/db/tables/projects.d.ts +25 -1
  159. package/dist/db/tables/projects.d.ts.map +1 -1
  160. package/dist/db/tables/projects.js +26 -0
  161. package/dist/db/tables/projects.js.map +1 -1
  162. package/dist/db/tables/sponsoredTransactions.d.ts +44 -0
  163. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  164. package/dist/db/tables/sponsoredTransactions.js +146 -13
  165. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  166. package/dist/db/tables/webhookSubscriptions.d.ts +10 -6
  167. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  168. package/dist/db/tables/webhookSubscriptions.js +9 -6
  169. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  170. package/dist/handlers/internal/utils.d.ts.map +1 -1
  171. package/dist/handlers/internal/utils.js +9 -0
  172. package/dist/handlers/internal/utils.js.map +1 -1
  173. package/dist/internal/Auth.d.ts +3 -1
  174. package/dist/internal/Auth.d.ts.map +1 -1
  175. package/dist/internal/Auth.js +6 -3
  176. package/dist/internal/Auth.js.map +1 -1
  177. package/dist/internal/EarnVaults.d.ts +3 -3
  178. package/dist/internal/EarnVaults.js +5 -5
  179. package/dist/internal/EarnVaults.js.map +1 -1
  180. package/dist/internal/Fetch.d.ts +23 -0
  181. package/dist/internal/Fetch.d.ts.map +1 -0
  182. package/dist/internal/Fetch.js +26 -0
  183. package/dist/internal/Fetch.js.map +1 -0
  184. package/dist/internal/Log.d.ts +4 -2
  185. package/dist/internal/Log.d.ts.map +1 -1
  186. package/dist/internal/Log.js +16 -3
  187. package/dist/internal/Log.js.map +1 -1
  188. package/dist/internal/OpenApi.d.ts +5 -3
  189. package/dist/internal/OpenApi.d.ts.map +1 -1
  190. package/dist/internal/OpenApi.js +13 -3
  191. package/dist/internal/OpenApi.js.map +1 -1
  192. package/dist/internal/Response.d.ts +1 -1
  193. package/dist/internal/Response.d.ts.map +1 -1
  194. package/dist/internal/Schema.d.ts +6 -3
  195. package/dist/internal/Schema.d.ts.map +1 -1
  196. package/dist/internal/Schema.js +8 -2
  197. package/dist/internal/Schema.js.map +1 -1
  198. package/dist/internal/Store.d.ts +16 -3
  199. package/dist/internal/Store.d.ts.map +1 -1
  200. package/dist/internal/Store.js +82 -16
  201. package/dist/internal/Store.js.map +1 -1
  202. package/dist/internal/Tidx.d.ts.map +1 -1
  203. package/dist/internal/Tidx.js +7 -2
  204. package/dist/internal/Tidx.js.map +1 -1
  205. package/dist/internal/Timeout.d.ts +36 -0
  206. package/dist/internal/Timeout.d.ts.map +1 -0
  207. package/dist/internal/Timeout.js +37 -0
  208. package/dist/internal/Timeout.js.map +1 -0
  209. package/dist/internal/Timing.d.ts +9 -0
  210. package/dist/internal/Timing.d.ts.map +1 -1
  211. package/dist/internal/Timing.js +7 -0
  212. package/dist/internal/Timing.js.map +1 -1
  213. package/dist/internal/Viem.d.ts +16 -1
  214. package/dist/internal/Viem.d.ts.map +1 -1
  215. package/dist/internal/Viem.js +12 -2
  216. package/dist/internal/Viem.js.map +1 -1
  217. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  218. package/dist/internal/WebhookDestination.js +3 -0
  219. package/dist/internal/WebhookDestination.js.map +1 -1
  220. package/dist/internal/funding/Action.d.ts +9 -0
  221. package/dist/internal/funding/Action.d.ts.map +1 -1
  222. package/dist/internal/funding/Action.js +16 -8
  223. package/dist/internal/funding/Action.js.map +1 -1
  224. package/dist/internal/funding/Catalog.d.ts +9 -2
  225. package/dist/internal/funding/Catalog.d.ts.map +1 -1
  226. package/dist/internal/funding/Catalog.js +19 -8
  227. package/dist/internal/funding/Catalog.js.map +1 -1
  228. package/dist/internal/funding/DepositWebhook.d.ts.map +1 -1
  229. package/dist/internal/funding/DepositWebhook.js +2 -1
  230. package/dist/internal/funding/DepositWebhook.js.map +1 -1
  231. package/dist/internal/funding/Evidence.d.ts.map +1 -1
  232. package/dist/internal/funding/Evidence.js +2 -10
  233. package/dist/internal/funding/Evidence.js.map +1 -1
  234. package/dist/internal/funding/Provider.d.ts +108 -13
  235. package/dist/internal/funding/Provider.d.ts.map +1 -1
  236. package/dist/internal/funding/Provider.js +34 -8
  237. package/dist/internal/funding/Provider.js.map +1 -1
  238. package/dist/internal/funding/SourceObservation.d.ts.map +1 -1
  239. package/dist/internal/funding/SourceObservation.js +5 -7
  240. package/dist/internal/funding/SourceObservation.js.map +1 -1
  241. package/dist/internal/funding/Transfer.d.ts +114 -18
  242. package/dist/internal/funding/Transfer.d.ts.map +1 -1
  243. package/dist/internal/funding/Transfer.js +185 -55
  244. package/dist/internal/funding/Transfer.js.map +1 -1
  245. package/dist/internal/funding/TransferReconciliation.d.ts +52 -0
  246. package/dist/internal/funding/TransferReconciliation.d.ts.map +1 -0
  247. package/dist/internal/funding/TransferReconciliation.js +192 -0
  248. package/dist/internal/funding/TransferReconciliation.js.map +1 -0
  249. package/dist/internal/funding/TransferWebhook.d.ts +21 -0
  250. package/dist/internal/funding/TransferWebhook.d.ts.map +1 -0
  251. package/dist/internal/funding/TransferWebhook.js +43 -0
  252. package/dist/internal/funding/TransferWebhook.js.map +1 -0
  253. package/dist/internal/funding/index.d.ts +1 -0
  254. package/dist/internal/funding/index.d.ts.map +1 -1
  255. package/dist/internal/funding/index.js +1 -0
  256. package/dist/internal/funding/index.js.map +1 -1
  257. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  258. package/dist/internal/funding/providers/relay.js +3 -12
  259. package/dist/internal/funding/providers/relay.js.map +1 -1
  260. package/dist/internal/funding/providers/stargate.d.ts +127 -9
  261. package/dist/internal/funding/providers/stargate.d.ts.map +1 -1
  262. package/dist/internal/funding/providers/stargate.js +548 -112
  263. package/dist/internal/funding/providers/stargate.js.map +1 -1
  264. package/dist/internal/index.d.ts +1 -0
  265. package/dist/internal/index.d.ts.map +1 -1
  266. package/dist/internal/index.js +1 -0
  267. package/dist/internal/index.js.map +1 -1
  268. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
  269. package/dist/internal/webhookDestinations/slack.js +16 -0
  270. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  271. package/package.json +2 -2
  272. package/src/App.test.ts +100 -0
  273. package/src/App.ts +43 -3
  274. package/src/Client.test-d.ts +129 -2
  275. package/src/Scope.test.ts +20 -0
  276. package/src/Scope.ts +16 -0
  277. package/src/Webhooks.ts +2 -2
  278. package/src/admin/apps/api-keys.test.ts +75 -0
  279. package/src/admin/apps/api-keys.ts +64 -0
  280. package/src/admin/apps/earn-vaults.test.ts +1 -1
  281. package/src/admin/apps/earn-vaults.ts +2 -1
  282. package/src/admin/apps/organizations.test.ts +53 -1
  283. package/src/admin/apps/organizations.ts +90 -5
  284. package/src/admin/ui/src/lib/api-keys.ts +19 -0
  285. package/src/admin/ui/src/lib/organizations.test.ts +112 -1
  286. package/src/admin/ui/src/lib/organizations.ts +55 -0
  287. package/src/admin/ui/src/routes/api-keys.tsx +89 -2
  288. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +116 -0
  289. package/src/admin/ui.generated.ts +189 -151
  290. package/src/apps/Zones.test.ts +7 -7
  291. package/src/apps/Zones.ts +7 -7
  292. package/src/apps/composition.test.ts +2 -1
  293. package/src/apps/data/App.test.ts +41 -0
  294. package/src/apps/data/App.ts +30 -21
  295. package/src/apps/data/ZoneSelection.test.ts +2 -2
  296. package/src/apps/data/ZoneSelection.ts +8 -8
  297. package/src/apps/data/routes/activities.test.ts +1526 -12
  298. package/src/apps/data/routes/activities.ts +1774 -1356
  299. package/src/apps/data/routes/balances.ts +133 -97
  300. package/src/apps/data/routes/blocks.test.ts +533 -0
  301. package/src/apps/data/routes/blocks.ts +35 -16
  302. package/src/apps/data/routes/earn.test.ts +373 -16
  303. package/src/apps/data/routes/earn.ts +548 -79
  304. package/src/apps/data/routes/earn.zone-access.test.ts +6 -6
  305. package/src/apps/data/routes/exchanges.test.ts +740 -15
  306. package/src/apps/data/routes/exchanges.ts +954 -753
  307. package/src/apps/data/routes/fee-amm.ts +17 -18
  308. package/src/apps/data/routes/receipts.ts +47 -16
  309. package/src/apps/data/routes/tokens.test.ts +578 -0
  310. package/src/apps/data/routes/tokens.ts +283 -225
  311. package/src/apps/data/routes/transactions.ts +68 -29
  312. package/src/apps/data/routes/transfers.test.ts +421 -0
  313. package/src/apps/data/routes/transfers.ts +45 -27
  314. package/src/apps/data/routes/valuation.ts +94 -78
  315. package/src/apps/data/routes/webhooks.test.ts +21 -5
  316. package/src/apps/data/routes/webhooks.ts +63 -8
  317. package/src/apps/data/routes/zones.test.ts +2 -2
  318. package/src/apps/data/routes/zones.ts +1 -1
  319. package/src/apps/funding/App.ts +12 -2
  320. package/src/apps/funding/routes/deposit-addresses.test.ts +29 -7
  321. package/src/apps/funding/routes/deposit-addresses.ts +19 -14
  322. package/src/apps/funding/routes/quotes.test.ts +5 -9
  323. package/src/apps/funding/routes/transfers.test.ts +901 -23
  324. package/src/apps/funding/routes/transfers.ts +347 -64
  325. package/src/apps/management/Billing.ts +18 -5
  326. package/src/apps/management/routes/api-keys.test.ts +220 -0
  327. package/src/apps/management/routes/api-keys.ts +280 -3
  328. package/src/apps/management/routes/webhooks.test.ts +3 -3
  329. package/src/apps/management/routes/webhooks.ts +24 -25
  330. package/src/apps/relay/App.test.ts +212 -1
  331. package/src/apps/relay/App.ts +158 -29
  332. package/src/apps/relay/Sponsorships.ts +24 -1
  333. package/src/db/Db.ts +48 -1
  334. package/src/db/Schema.ts +22 -4
  335. package/src/db/tables/earnVaults.test.ts +9 -9
  336. package/src/db/tables/fundingCatalog.test.ts +16 -2
  337. package/src/db/tables/fundingCatalog.ts +9 -3
  338. package/src/db/tables/fundingTransferTransactions.test.ts +43 -0
  339. package/src/db/tables/fundingTransferTransactions.ts +79 -3
  340. package/src/db/tables/fundingTransfers.test.ts +26 -0
  341. package/src/db/tables/fundingTransfers.ts +36 -0
  342. package/src/db/tables/organizations.test.ts +41 -0
  343. package/src/db/tables/organizations.ts +49 -0
  344. package/src/db/tables/projects.test.ts +55 -0
  345. package/src/db/tables/projects.ts +46 -1
  346. package/src/db/tables/sponsoredTransactions.test.ts +338 -0
  347. package/src/db/tables/sponsoredTransactions.ts +197 -13
  348. package/src/db/tables/webhookSubscriptions.ts +18 -11
  349. package/src/handlers/internal/utils.test.ts +53 -0
  350. package/src/handlers/internal/utils.ts +15 -0
  351. package/src/internal/Auth.ts +12 -4
  352. package/src/internal/EarnVaults.capabilities.test.ts +2 -2
  353. package/src/internal/EarnVaults.test.ts +1 -1
  354. package/src/internal/EarnVaults.ts +5 -5
  355. package/src/internal/Fetch.test.ts +46 -0
  356. package/src/internal/Fetch.ts +56 -0
  357. package/src/internal/Log.test-d.ts +2 -0
  358. package/src/internal/Log.test.ts +21 -0
  359. package/src/internal/Log.ts +22 -5
  360. package/src/internal/OpenApi.ts +14 -4
  361. package/src/internal/Response.ts +1 -1
  362. package/src/internal/Schema.test.ts +2 -0
  363. package/src/internal/Schema.ts +12 -2
  364. package/src/internal/Store.test.ts +178 -0
  365. package/src/internal/Store.ts +104 -18
  366. package/src/internal/Tidx.test.ts +2 -1
  367. package/src/internal/Tidx.ts +7 -2
  368. package/src/internal/Timeout.test.ts +35 -0
  369. package/src/internal/Timeout.ts +73 -0
  370. package/src/internal/Timing.ts +16 -0
  371. package/src/internal/Viem.ts +39 -3
  372. package/src/internal/WebhookDestination.ts +3 -0
  373. package/src/internal/Webhooks.test.ts +45 -0
  374. package/src/internal/funding/Action.test.ts +41 -1
  375. package/src/internal/funding/Action.ts +69 -41
  376. package/src/internal/funding/Catalog.test.ts +34 -0
  377. package/src/internal/funding/Catalog.ts +28 -11
  378. package/src/internal/funding/DepositWebhook.ts +2 -1
  379. package/src/internal/funding/Evidence.ts +2 -13
  380. package/src/internal/funding/Provider.test.ts +73 -0
  381. package/src/internal/funding/Provider.ts +125 -28
  382. package/src/internal/funding/SourceObservation.ts +5 -9
  383. package/src/internal/funding/Transfer.test.ts +155 -0
  384. package/src/internal/funding/Transfer.ts +387 -147
  385. package/src/internal/funding/TransferReconciliation.test.ts +147 -0
  386. package/src/internal/funding/TransferReconciliation.ts +264 -0
  387. package/src/internal/funding/TransferWebhook.test.ts +128 -0
  388. package/src/internal/funding/TransferWebhook.ts +67 -0
  389. package/src/internal/funding/index.test.ts +1 -0
  390. package/src/internal/funding/index.ts +1 -0
  391. package/src/internal/funding/providers/index.test.ts +4 -167
  392. package/src/internal/funding/providers/relay.test.ts +2 -2
  393. package/src/internal/funding/providers/relay.ts +3 -15
  394. package/src/internal/funding/providers/stargate.test.ts +328 -0
  395. package/src/internal/funding/providers/stargate.ts +807 -135
  396. package/src/internal/index.test.ts +1 -0
  397. package/src/internal/index.ts +1 -0
  398. package/src/internal/webhookDestinations/slack.ts +15 -0
@@ -40,7 +40,7 @@ export declare namespace schema {
40
40
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
41
41
  mainnet: "mainnet";
42
42
  testnet: "testnet";
43
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
43
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
44
44
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
45
45
  "token.logoUri": "token.logoUri";
46
46
  "token.verified": "token.verified";
@@ -74,7 +74,7 @@ export declare namespace schema {
74
74
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
75
75
  mainnet: "mainnet";
76
76
  testnet: "testnet";
77
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
77
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
78
78
  }, z.core.$strip>;
79
79
  /** Response-level valuation rate provenance. */
80
80
  const Meta: z.ZodMiniObject<{
@@ -175,7 +175,7 @@ export declare namespace schema {
175
175
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
176
176
  mainnet: "mainnet";
177
177
  testnet: "testnet";
178
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
178
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
179
179
  }, z.core.$strip>;
180
180
  destinationAmount: z.ZodMiniObject<{
181
181
  baseUnits: z.ZodMiniString<string>;
@@ -383,7 +383,7 @@ export declare namespace schema {
383
383
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
384
384
  mainnet: "mainnet";
385
385
  testnet: "testnet";
386
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
386
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
387
387
  }, z.core.$strip>;
388
388
  destinationAmount: z.ZodMiniObject<{
389
389
  baseUnits: z.ZodMiniString<string>;
@@ -534,7 +534,7 @@ export declare namespace schema {
534
534
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
535
535
  mainnet: "mainnet";
536
536
  testnet: "testnet";
537
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
537
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
538
538
  }, z.core.$strip>;
539
539
  }, z.core.$strip>;
540
540
  }
@@ -563,7 +563,7 @@ export declare namespace schema {
563
563
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
564
564
  mainnet: "mainnet";
565
565
  testnet: "testnet";
566
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
566
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
567
567
  cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
568
568
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
569
569
  tokens: "tokens";
@@ -607,6 +607,11 @@ export declare namespace schema {
607
607
  timestamp: z.ZodMiniISODateTime;
608
608
  transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
609
609
  }, z.core.$strip>;
610
+ /** Response metadata requested through `include`, such as capped counts. */
611
+ const Meta: z.ZodMiniObject<{
612
+ totalCountCapped: z.ZodMiniBoolean<boolean>;
613
+ totalCount: z.ZodMiniNumber<number>;
614
+ }, z.core.$strip>;
610
615
  /** Page of trading pairs on the stablecoin DEX, ordered by creation. */
611
616
  const Response: z.ZodMiniObject<{
612
617
  data: z.ZodMiniArray<z.ZodMiniObject<{
@@ -668,7 +673,7 @@ export declare namespace schema {
668
673
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
669
674
  mainnet: "mainnet";
670
675
  testnet: "testnet";
671
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
676
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
672
677
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
673
678
  tokens: "tokens";
674
679
  }>>>;
@@ -720,7 +725,7 @@ export declare namespace schema {
720
725
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
721
726
  mainnet: "mainnet";
722
727
  testnet: "testnet";
723
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
728
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
724
729
  cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
725
730
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
726
731
  "token.logoUri": "token.logoUri";
@@ -1067,7 +1072,7 @@ export declare namespace schema {
1067
1072
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1068
1073
  mainnet: "mainnet";
1069
1074
  testnet: "testnet";
1070
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
1075
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
1071
1076
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1072
1077
  tokens: "tokens";
1073
1078
  }>>>;
@@ -1211,7 +1216,7 @@ export declare namespace schema {
1211
1216
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1212
1217
  mainnet: "mainnet";
1213
1218
  testnet: "testnet";
1214
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
1219
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
1215
1220
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1216
1221
  tokens: "tokens";
1217
1222
  }>>>;
@@ -1290,7 +1295,7 @@ export declare namespace schema {
1290
1295
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1291
1296
  mainnet: "mainnet";
1292
1297
  testnet: "testnet";
1293
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
1298
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
1294
1299
  cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
1295
1300
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1296
1301
  tokens: "tokens";
@@ -1378,6 +1383,11 @@ export declare namespace schema {
1378
1383
  }, z.core.$strip>;
1379
1384
  }, z.core.$strip>;
1380
1385
  }, z.core.$strip>;
1386
+ /** Response metadata requested through `include`, such as capped counts. */
1387
+ const Meta: z.ZodMiniObject<{
1388
+ totalCountCapped: z.ZodMiniBoolean<boolean>;
1389
+ totalCount: z.ZodMiniNumber<number>;
1390
+ }, z.core.$strip>;
1381
1391
  /** Page of resting maker orders, each annotated with its trading pair. */
1382
1392
  const Response: z.ZodMiniObject<{
1383
1393
  data: z.ZodMiniArray<z.ZodMiniObject<{
@@ -1438,7 +1448,7 @@ export declare namespace schema {
1438
1448
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1439
1449
  mainnet: "mainnet";
1440
1450
  testnet: "testnet";
1441
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
1451
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
1442
1452
  cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
1443
1453
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1444
1454
  totalCount: "totalCount";
@@ -1466,6 +1476,11 @@ export declare namespace schema {
1466
1476
  taker: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
1467
1477
  transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
1468
1478
  }, z.core.$strip>;
1479
+ /** Response metadata requested through `include`, such as capped counts. */
1480
+ const Meta: z.ZodMiniObject<{
1481
+ totalCountCapped: z.ZodMiniBoolean<boolean>;
1482
+ totalCount: z.ZodMiniNumber<number>;
1483
+ }, z.core.$strip>;
1469
1484
  /** Paginated page of fills for one order. */
1470
1485
  const Response: z.ZodMiniObject<{
1471
1486
  data: z.ZodMiniArray<z.ZodMiniObject<{
@@ -1515,7 +1530,7 @@ export declare namespace schema {
1515
1530
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1516
1531
  mainnet: "mainnet";
1517
1532
  testnet: "testnet";
1518
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
1533
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
1519
1534
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1520
1535
  tokens: "tokens";
1521
1536
  }>>>;
@@ -1611,14 +1626,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1611
1626
  } | {
1612
1627
  output: {
1613
1628
  error: {
1614
- code: "upstream_error";
1629
+ code: "api_key_malformed";
1615
1630
  details?: readonly Response.error.Detail[] | undefined;
1616
1631
  message: string;
1617
1632
  };
1618
1633
  requestId: string;
1619
1634
  };
1620
1635
  outputFormat: "json";
1621
- status: 502;
1636
+ status: 400;
1622
1637
  input: {
1623
1638
  query?: {
1624
1639
  chainId?: string | string[];
@@ -1638,14 +1653,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1638
1653
  } | {
1639
1654
  output: {
1640
1655
  error: {
1641
- code: "query_invalid";
1656
+ code: "api_key_invalid" | "api_key_missing";
1642
1657
  details?: readonly Response.error.Detail[] | undefined;
1643
1658
  message: string;
1644
1659
  };
1645
1660
  requestId: string;
1646
1661
  };
1647
1662
  outputFormat: "json";
1648
- status: 400;
1663
+ status: 401;
1649
1664
  input: {
1650
1665
  query?: {
1651
1666
  chainId?: string | string[];
@@ -1665,14 +1680,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1665
1680
  } | {
1666
1681
  output: {
1667
1682
  error: {
1668
- code: "api_key_malformed";
1683
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1669
1684
  details?: readonly Response.error.Detail[] | undefined;
1670
1685
  message: string;
1671
1686
  };
1672
1687
  requestId: string;
1673
1688
  };
1674
1689
  outputFormat: "json";
1675
- status: 400;
1690
+ status: 403;
1676
1691
  input: {
1677
1692
  query?: {
1678
1693
  chainId?: string | string[];
@@ -1692,14 +1707,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1692
1707
  } | {
1693
1708
  output: {
1694
1709
  error: {
1695
- code: "api_key_invalid" | "api_key_missing";
1710
+ code: "payment_required" | "rate_limit_exceeded";
1696
1711
  details?: readonly Response.error.Detail[] | undefined;
1697
1712
  message: string;
1698
1713
  };
1699
1714
  requestId: string;
1700
1715
  };
1701
1716
  outputFormat: "json";
1702
- status: 401;
1717
+ status: 429;
1703
1718
  input: {
1704
1719
  query?: {
1705
1720
  chainId?: string | string[];
@@ -1719,14 +1734,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1719
1734
  } | {
1720
1735
  output: {
1721
1736
  error: {
1722
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1737
+ code: "query_invalid";
1723
1738
  details?: readonly Response.error.Detail[] | undefined;
1724
1739
  message: string;
1725
1740
  };
1726
1741
  requestId: string;
1727
1742
  };
1728
1743
  outputFormat: "json";
1729
- status: 403;
1744
+ status: 400;
1730
1745
  input: {
1731
1746
  query?: {
1732
1747
  chainId?: string | string[];
@@ -1746,14 +1761,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1746
1761
  } | {
1747
1762
  output: {
1748
1763
  error: {
1749
- code: "payment_required" | "rate_limit_exceeded";
1764
+ code: "upstream_error";
1750
1765
  details?: readonly Response.error.Detail[] | undefined;
1751
1766
  message: string;
1752
1767
  };
1753
1768
  requestId: string;
1754
1769
  };
1755
1770
  outputFormat: "json";
1756
- status: 429;
1771
+ status: 502;
1757
1772
  input: {
1758
1773
  query?: {
1759
1774
  chainId?: string | string[];
@@ -2317,14 +2332,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2317
2332
  } | {
2318
2333
  output: {
2319
2334
  error: {
2320
- code: "upstream_error";
2335
+ code: "api_key_malformed";
2321
2336
  details?: readonly Response.error.Detail[] | undefined;
2322
2337
  message: string;
2323
2338
  };
2324
2339
  requestId: string;
2325
2340
  };
2326
2341
  outputFormat: "json";
2327
- status: 502;
2342
+ status: 400;
2328
2343
  input: {
2329
2344
  query?: {
2330
2345
  chainId?: string | string[];
@@ -2344,14 +2359,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2344
2359
  } | {
2345
2360
  output: {
2346
2361
  error: {
2347
- code: "query_invalid";
2362
+ code: "api_key_invalid" | "api_key_missing";
2348
2363
  details?: readonly Response.error.Detail[] | undefined;
2349
2364
  message: string;
2350
2365
  };
2351
2366
  requestId: string;
2352
2367
  };
2353
2368
  outputFormat: "json";
2354
- status: 400;
2369
+ status: 401;
2355
2370
  input: {
2356
2371
  query?: {
2357
2372
  chainId?: string | string[];
@@ -2371,14 +2386,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2371
2386
  } | {
2372
2387
  output: {
2373
2388
  error: {
2374
- code: "api_key_malformed";
2389
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2375
2390
  details?: readonly Response.error.Detail[] | undefined;
2376
2391
  message: string;
2377
2392
  };
2378
2393
  requestId: string;
2379
2394
  };
2380
2395
  outputFormat: "json";
2381
- status: 400;
2396
+ status: 403;
2382
2397
  input: {
2383
2398
  query?: {
2384
2399
  chainId?: string | string[];
@@ -2398,14 +2413,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2398
2413
  } | {
2399
2414
  output: {
2400
2415
  error: {
2401
- code: "api_key_invalid" | "api_key_missing";
2416
+ code: "payment_required" | "rate_limit_exceeded";
2402
2417
  details?: readonly Response.error.Detail[] | undefined;
2403
2418
  message: string;
2404
2419
  };
2405
2420
  requestId: string;
2406
2421
  };
2407
2422
  outputFormat: "json";
2408
- status: 401;
2423
+ status: 429;
2409
2424
  input: {
2410
2425
  query?: {
2411
2426
  chainId?: string | string[];
@@ -2425,14 +2440,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2425
2440
  } | {
2426
2441
  output: {
2427
2442
  error: {
2428
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2443
+ code: "query_invalid";
2429
2444
  details?: readonly Response.error.Detail[] | undefined;
2430
2445
  message: string;
2431
2446
  };
2432
2447
  requestId: string;
2433
2448
  };
2434
2449
  outputFormat: "json";
2435
- status: 403;
2450
+ status: 400;
2436
2451
  input: {
2437
2452
  query?: {
2438
2453
  chainId?: string | string[];
@@ -2452,14 +2467,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2452
2467
  } | {
2453
2468
  output: {
2454
2469
  error: {
2455
- code: "payment_required" | "rate_limit_exceeded";
2470
+ code: "upstream_error";
2456
2471
  details?: readonly Response.error.Detail[] | undefined;
2457
2472
  message: string;
2458
2473
  };
2459
2474
  requestId: string;
2460
2475
  };
2461
2476
  outputFormat: "json";
2462
- status: 429;
2477
+ status: 502;
2463
2478
  input: {
2464
2479
  query?: {
2465
2480
  chainId?: string | string[];
@@ -3024,14 +3039,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3024
3039
  } | {
3025
3040
  output: {
3026
3041
  error: {
3027
- code: "upstream_error";
3042
+ code: "api_key_malformed";
3028
3043
  details?: readonly Response.error.Detail[] | undefined;
3029
3044
  message: string;
3030
3045
  };
3031
3046
  requestId: string;
3032
3047
  };
3033
3048
  outputFormat: "json";
3034
- status: 502;
3049
+ status: 400;
3035
3050
  input: {
3036
3051
  query?: {
3037
3052
  chainId?: string | string[];
@@ -3049,14 +3064,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3049
3064
  } | {
3050
3065
  output: {
3051
3066
  error: {
3052
- code: "query_invalid";
3067
+ code: "api_key_invalid" | "api_key_missing";
3053
3068
  details?: readonly Response.error.Detail[] | undefined;
3054
3069
  message: string;
3055
3070
  };
3056
3071
  requestId: string;
3057
3072
  };
3058
3073
  outputFormat: "json";
3059
- status: 400;
3074
+ status: 401;
3060
3075
  input: {
3061
3076
  query?: {
3062
3077
  chainId?: string | string[];
@@ -3074,14 +3089,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3074
3089
  } | {
3075
3090
  output: {
3076
3091
  error: {
3077
- code: "api_key_malformed";
3092
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3078
3093
  details?: readonly Response.error.Detail[] | undefined;
3079
3094
  message: string;
3080
3095
  };
3081
3096
  requestId: string;
3082
3097
  };
3083
3098
  outputFormat: "json";
3084
- status: 400;
3099
+ status: 403;
3085
3100
  input: {
3086
3101
  query?: {
3087
3102
  chainId?: string | string[];
@@ -3099,14 +3114,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3099
3114
  } | {
3100
3115
  output: {
3101
3116
  error: {
3102
- code: "api_key_invalid" | "api_key_missing";
3117
+ code: "payment_required" | "rate_limit_exceeded";
3103
3118
  details?: readonly Response.error.Detail[] | undefined;
3104
3119
  message: string;
3105
3120
  };
3106
3121
  requestId: string;
3107
3122
  };
3108
3123
  outputFormat: "json";
3109
- status: 401;
3124
+ status: 429;
3110
3125
  input: {
3111
3126
  query?: {
3112
3127
  chainId?: string | string[];
@@ -3124,14 +3139,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3124
3139
  } | {
3125
3140
  output: {
3126
3141
  error: {
3127
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3142
+ code: "query_invalid";
3128
3143
  details?: readonly Response.error.Detail[] | undefined;
3129
3144
  message: string;
3130
3145
  };
3131
3146
  requestId: string;
3132
3147
  };
3133
3148
  outputFormat: "json";
3134
- status: 403;
3149
+ status: 400;
3135
3150
  input: {
3136
3151
  query?: {
3137
3152
  chainId?: string | string[];
@@ -3149,14 +3164,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3149
3164
  } | {
3150
3165
  output: {
3151
3166
  error: {
3152
- code: "payment_required" | "rate_limit_exceeded";
3167
+ code: "upstream_error";
3153
3168
  details?: readonly Response.error.Detail[] | undefined;
3154
3169
  message: string;
3155
3170
  };
3156
3171
  requestId: string;
3157
3172
  };
3158
3173
  outputFormat: "json";
3159
- status: 429;
3174
+ status: 502;
3160
3175
  input: {
3161
3176
  query?: {
3162
3177
  chainId?: string | string[];
@@ -3303,14 +3318,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3303
3318
  } | {
3304
3319
  output: {
3305
3320
  error: {
3306
- code: "upstream_error";
3321
+ code: "api_key_malformed";
3307
3322
  details?: readonly Response.error.Detail[] | undefined;
3308
3323
  message: string;
3309
3324
  };
3310
3325
  requestId: string;
3311
3326
  };
3312
3327
  outputFormat: "json";
3313
- status: 502;
3328
+ status: 400;
3314
3329
  input: {
3315
3330
  query?: {
3316
3331
  'blockNumber.from'?: string | string[];
@@ -3332,14 +3347,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3332
3347
  } | {
3333
3348
  output: {
3334
3349
  error: {
3335
- code: "query_invalid";
3350
+ code: "api_key_invalid" | "api_key_missing";
3336
3351
  details?: readonly Response.error.Detail[] | undefined;
3337
3352
  message: string;
3338
3353
  };
3339
3354
  requestId: string;
3340
3355
  };
3341
3356
  outputFormat: "json";
3342
- status: 400;
3357
+ status: 401;
3343
3358
  input: {
3344
3359
  query?: {
3345
3360
  'blockNumber.from'?: string | string[];
@@ -3361,14 +3376,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3361
3376
  } | {
3362
3377
  output: {
3363
3378
  error: {
3364
- code: "api_key_malformed";
3379
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3365
3380
  details?: readonly Response.error.Detail[] | undefined;
3366
3381
  message: string;
3367
3382
  };
3368
3383
  requestId: string;
3369
3384
  };
3370
3385
  outputFormat: "json";
3371
- status: 400;
3386
+ status: 403;
3372
3387
  input: {
3373
3388
  query?: {
3374
3389
  'blockNumber.from'?: string | string[];
@@ -3390,14 +3405,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3390
3405
  } | {
3391
3406
  output: {
3392
3407
  error: {
3393
- code: "api_key_invalid" | "api_key_missing";
3408
+ code: "payment_required" | "rate_limit_exceeded";
3394
3409
  details?: readonly Response.error.Detail[] | undefined;
3395
3410
  message: string;
3396
3411
  };
3397
3412
  requestId: string;
3398
3413
  };
3399
3414
  outputFormat: "json";
3400
- status: 401;
3415
+ status: 429;
3401
3416
  input: {
3402
3417
  query?: {
3403
3418
  'blockNumber.from'?: string | string[];
@@ -3419,14 +3434,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3419
3434
  } | {
3420
3435
  output: {
3421
3436
  error: {
3422
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3437
+ code: "query_invalid";
3423
3438
  details?: readonly Response.error.Detail[] | undefined;
3424
3439
  message: string;
3425
3440
  };
3426
3441
  requestId: string;
3427
3442
  };
3428
3443
  outputFormat: "json";
3429
- status: 403;
3444
+ status: 400;
3430
3445
  input: {
3431
3446
  query?: {
3432
3447
  'blockNumber.from'?: string | string[];
@@ -3448,14 +3463,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3448
3463
  } | {
3449
3464
  output: {
3450
3465
  error: {
3451
- code: "payment_required" | "rate_limit_exceeded";
3466
+ code: "upstream_error";
3452
3467
  details?: readonly Response.error.Detail[] | undefined;
3453
3468
  message: string;
3454
3469
  };
3455
3470
  requestId: string;
3456
3471
  };
3457
3472
  outputFormat: "json";
3458
- status: 429;
3473
+ status: 502;
3459
3474
  input: {
3460
3475
  query?: {
3461
3476
  'blockNumber.from'?: string | string[];
@@ -3621,14 +3636,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3621
3636
  } | {
3622
3637
  output: {
3623
3638
  error: {
3624
- code: "upstream_error";
3639
+ code: "api_key_malformed";
3625
3640
  details?: readonly Response.error.Detail[] | undefined;
3626
3641
  message: string;
3627
3642
  };
3628
3643
  requestId: string;
3629
3644
  };
3630
3645
  outputFormat: "json";
3631
- status: 502;
3646
+ status: 400;
3632
3647
  input: {
3633
3648
  query?: {
3634
3649
  chainId?: string | string[];
@@ -3643,14 +3658,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3643
3658
  } | {
3644
3659
  output: {
3645
3660
  error: {
3646
- code: "query_invalid";
3661
+ code: "api_key_invalid" | "api_key_missing";
3647
3662
  details?: readonly Response.error.Detail[] | undefined;
3648
3663
  message: string;
3649
3664
  };
3650
3665
  requestId: string;
3651
3666
  };
3652
3667
  outputFormat: "json";
3653
- status: 400;
3668
+ status: 401;
3654
3669
  input: {
3655
3670
  query?: {
3656
3671
  chainId?: string | string[];
@@ -3665,14 +3680,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3665
3680
  } | {
3666
3681
  output: {
3667
3682
  error: {
3668
- code: "api_key_malformed";
3683
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3669
3684
  details?: readonly Response.error.Detail[] | undefined;
3670
3685
  message: string;
3671
3686
  };
3672
3687
  requestId: string;
3673
3688
  };
3674
3689
  outputFormat: "json";
3675
- status: 400;
3690
+ status: 403;
3676
3691
  input: {
3677
3692
  query?: {
3678
3693
  chainId?: string | string[];
@@ -3687,14 +3702,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3687
3702
  } | {
3688
3703
  output: {
3689
3704
  error: {
3690
- code: "api_key_invalid" | "api_key_missing";
3705
+ code: "payment_required" | "rate_limit_exceeded";
3691
3706
  details?: readonly Response.error.Detail[] | undefined;
3692
3707
  message: string;
3693
3708
  };
3694
3709
  requestId: string;
3695
3710
  };
3696
3711
  outputFormat: "json";
3697
- status: 401;
3712
+ status: 429;
3698
3713
  input: {
3699
3714
  query?: {
3700
3715
  chainId?: string | string[];
@@ -3709,14 +3724,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3709
3724
  } | {
3710
3725
  output: {
3711
3726
  error: {
3712
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3727
+ code: "query_invalid";
3713
3728
  details?: readonly Response.error.Detail[] | undefined;
3714
3729
  message: string;
3715
3730
  };
3716
3731
  requestId: string;
3717
3732
  };
3718
3733
  outputFormat: "json";
3719
- status: 403;
3734
+ status: 400;
3720
3735
  input: {
3721
3736
  query?: {
3722
3737
  chainId?: string | string[];
@@ -3731,14 +3746,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3731
3746
  } | {
3732
3747
  output: {
3733
3748
  error: {
3734
- code: "payment_required" | "rate_limit_exceeded";
3749
+ code: "upstream_error";
3735
3750
  details?: readonly Response.error.Detail[] | undefined;
3736
3751
  message: string;
3737
3752
  };
3738
3753
  requestId: string;
3739
3754
  };
3740
3755
  outputFormat: "json";
3741
- status: 429;
3756
+ status: 502;
3742
3757
  input: {
3743
3758
  query?: {
3744
3759
  chainId?: string | string[];
@@ -3818,14 +3833,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3818
3833
  } | {
3819
3834
  output: {
3820
3835
  error: {
3821
- code: "upstream_error";
3836
+ code: "api_key_malformed";
3822
3837
  details?: readonly Response.error.Detail[] | undefined;
3823
3838
  message: string;
3824
3839
  };
3825
3840
  requestId: string;
3826
3841
  };
3827
3842
  outputFormat: "json";
3828
- status: 502;
3843
+ status: 400;
3829
3844
  input: {
3830
3845
  param: {
3831
3846
  base: `0x${string}`;
@@ -3839,14 +3854,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3839
3854
  } | {
3840
3855
  output: {
3841
3856
  error: {
3842
- code: "query_invalid";
3857
+ code: "api_key_invalid" | "api_key_missing";
3843
3858
  details?: readonly Response.error.Detail[] | undefined;
3844
3859
  message: string;
3845
3860
  };
3846
3861
  requestId: string;
3847
3862
  };
3848
3863
  outputFormat: "json";
3849
- status: 400;
3864
+ status: 401;
3850
3865
  input: {
3851
3866
  param: {
3852
3867
  base: `0x${string}`;
@@ -3860,14 +3875,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3860
3875
  } | {
3861
3876
  output: {
3862
3877
  error: {
3863
- code: "api_key_malformed";
3878
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3864
3879
  details?: readonly Response.error.Detail[] | undefined;
3865
3880
  message: string;
3866
3881
  };
3867
3882
  requestId: string;
3868
3883
  };
3869
3884
  outputFormat: "json";
3870
- status: 400;
3885
+ status: 403;
3871
3886
  input: {
3872
3887
  param: {
3873
3888
  base: `0x${string}`;
@@ -3881,14 +3896,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3881
3896
  } | {
3882
3897
  output: {
3883
3898
  error: {
3884
- code: "api_key_invalid" | "api_key_missing";
3899
+ code: "payment_required" | "rate_limit_exceeded";
3885
3900
  details?: readonly Response.error.Detail[] | undefined;
3886
3901
  message: string;
3887
3902
  };
3888
3903
  requestId: string;
3889
3904
  };
3890
3905
  outputFormat: "json";
3891
- status: 401;
3906
+ status: 429;
3892
3907
  input: {
3893
3908
  param: {
3894
3909
  base: `0x${string}`;
@@ -3902,14 +3917,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3902
3917
  } | {
3903
3918
  output: {
3904
3919
  error: {
3905
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3920
+ code: "query_invalid";
3906
3921
  details?: readonly Response.error.Detail[] | undefined;
3907
3922
  message: string;
3908
3923
  };
3909
3924
  requestId: string;
3910
3925
  };
3911
3926
  outputFormat: "json";
3912
- status: 403;
3927
+ status: 400;
3913
3928
  input: {
3914
3929
  param: {
3915
3930
  base: `0x${string}`;
@@ -3923,14 +3938,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3923
3938
  } | {
3924
3939
  output: {
3925
3940
  error: {
3926
- code: "payment_required" | "rate_limit_exceeded";
3941
+ code: "upstream_error";
3927
3942
  details?: readonly Response.error.Detail[] | undefined;
3928
3943
  message: string;
3929
3944
  };
3930
3945
  requestId: string;
3931
3946
  };
3932
3947
  outputFormat: "json";
3933
- status: 429;
3948
+ status: 502;
3934
3949
  input: {
3935
3950
  param: {
3936
3951
  base: `0x${string}`;
@@ -4047,14 +4062,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4047
4062
  } | {
4048
4063
  output: {
4049
4064
  error: {
4050
- code: "upstream_error";
4065
+ code: "api_key_malformed";
4051
4066
  details?: readonly Response.error.Detail[] | undefined;
4052
4067
  message: string;
4053
4068
  };
4054
4069
  requestId: string;
4055
4070
  };
4056
4071
  outputFormat: "json";
4057
- status: 502;
4072
+ status: 400;
4058
4073
  input: {
4059
4074
  query?: {
4060
4075
  base?: string | string[];
@@ -4072,14 +4087,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4072
4087
  } | {
4073
4088
  output: {
4074
4089
  error: {
4075
- code: "query_invalid";
4090
+ code: "api_key_invalid" | "api_key_missing";
4076
4091
  details?: readonly Response.error.Detail[] | undefined;
4077
4092
  message: string;
4078
4093
  };
4079
4094
  requestId: string;
4080
4095
  };
4081
4096
  outputFormat: "json";
4082
- status: 400;
4097
+ status: 401;
4083
4098
  input: {
4084
4099
  query?: {
4085
4100
  base?: string | string[];
@@ -4097,14 +4112,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4097
4112
  } | {
4098
4113
  output: {
4099
4114
  error: {
4100
- code: "api_key_malformed";
4115
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4101
4116
  details?: readonly Response.error.Detail[] | undefined;
4102
4117
  message: string;
4103
4118
  };
4104
4119
  requestId: string;
4105
4120
  };
4106
4121
  outputFormat: "json";
4107
- status: 400;
4122
+ status: 403;
4108
4123
  input: {
4109
4124
  query?: {
4110
4125
  base?: string | string[];
@@ -4122,14 +4137,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4122
4137
  } | {
4123
4138
  output: {
4124
4139
  error: {
4125
- code: "api_key_invalid" | "api_key_missing";
4140
+ code: "payment_required" | "rate_limit_exceeded";
4126
4141
  details?: readonly Response.error.Detail[] | undefined;
4127
4142
  message: string;
4128
4143
  };
4129
4144
  requestId: string;
4130
4145
  };
4131
4146
  outputFormat: "json";
4132
- status: 401;
4147
+ status: 429;
4133
4148
  input: {
4134
4149
  query?: {
4135
4150
  base?: string | string[];
@@ -4147,14 +4162,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4147
4162
  } | {
4148
4163
  output: {
4149
4164
  error: {
4150
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4165
+ code: "query_invalid";
4151
4166
  details?: readonly Response.error.Detail[] | undefined;
4152
4167
  message: string;
4153
4168
  };
4154
4169
  requestId: string;
4155
4170
  };
4156
4171
  outputFormat: "json";
4157
- status: 403;
4172
+ status: 400;
4158
4173
  input: {
4159
4174
  query?: {
4160
4175
  base?: string | string[];
@@ -4172,14 +4187,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4172
4187
  } | {
4173
4188
  output: {
4174
4189
  error: {
4175
- code: "payment_required" | "rate_limit_exceeded";
4190
+ code: "upstream_error";
4176
4191
  details?: readonly Response.error.Detail[] | undefined;
4177
4192
  message: string;
4178
4193
  };
4179
4194
  requestId: string;
4180
4195
  };
4181
4196
  outputFormat: "json";
4182
- status: 429;
4197
+ status: 502;
4183
4198
  input: {
4184
4199
  query?: {
4185
4200
  base?: string | string[];
@@ -4301,14 +4316,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4301
4316
  } | {
4302
4317
  output: {
4303
4318
  error: {
4304
- code: "upstream_error";
4319
+ code: "api_key_malformed";
4305
4320
  details?: readonly Response.error.Detail[] | undefined;
4306
4321
  message: string;
4307
4322
  };
4308
4323
  requestId: string;
4309
4324
  };
4310
4325
  outputFormat: "json";
4311
- status: 502;
4326
+ status: 400;
4312
4327
  input: {
4313
4328
  param: {
4314
4329
  orderId: string;
@@ -4322,14 +4337,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4322
4337
  } | {
4323
4338
  output: {
4324
4339
  error: {
4325
- code: "query_invalid";
4340
+ code: "api_key_invalid" | "api_key_missing";
4326
4341
  details?: readonly Response.error.Detail[] | undefined;
4327
4342
  message: string;
4328
4343
  };
4329
4344
  requestId: string;
4330
4345
  };
4331
4346
  outputFormat: "json";
4332
- status: 400;
4347
+ status: 401;
4333
4348
  input: {
4334
4349
  param: {
4335
4350
  orderId: string;
@@ -4343,14 +4358,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4343
4358
  } | {
4344
4359
  output: {
4345
4360
  error: {
4346
- code: "api_key_malformed";
4361
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4347
4362
  details?: readonly Response.error.Detail[] | undefined;
4348
4363
  message: string;
4349
4364
  };
4350
4365
  requestId: string;
4351
4366
  };
4352
4367
  outputFormat: "json";
4353
- status: 400;
4368
+ status: 403;
4354
4369
  input: {
4355
4370
  param: {
4356
4371
  orderId: string;
@@ -4364,14 +4379,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4364
4379
  } | {
4365
4380
  output: {
4366
4381
  error: {
4367
- code: "api_key_invalid" | "api_key_missing";
4382
+ code: "payment_required" | "rate_limit_exceeded";
4368
4383
  details?: readonly Response.error.Detail[] | undefined;
4369
4384
  message: string;
4370
4385
  };
4371
4386
  requestId: string;
4372
4387
  };
4373
4388
  outputFormat: "json";
4374
- status: 401;
4389
+ status: 429;
4375
4390
  input: {
4376
4391
  param: {
4377
4392
  orderId: string;
@@ -4385,14 +4400,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4385
4400
  } | {
4386
4401
  output: {
4387
4402
  error: {
4388
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4403
+ code: "query_invalid";
4389
4404
  details?: readonly Response.error.Detail[] | undefined;
4390
4405
  message: string;
4391
4406
  };
4392
4407
  requestId: string;
4393
4408
  };
4394
4409
  outputFormat: "json";
4395
- status: 403;
4410
+ status: 400;
4396
4411
  input: {
4397
4412
  param: {
4398
4413
  orderId: string;
@@ -4406,14 +4421,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4406
4421
  } | {
4407
4422
  output: {
4408
4423
  error: {
4409
- code: "payment_required" | "rate_limit_exceeded";
4424
+ code: "upstream_error";
4410
4425
  details?: readonly Response.error.Detail[] | undefined;
4411
4426
  message: string;
4412
4427
  };
4413
4428
  requestId: string;
4414
4429
  };
4415
4430
  outputFormat: "json";
4416
- status: 429;
4431
+ status: 502;
4417
4432
  input: {
4418
4433
  param: {
4419
4434
  orderId: string;
@@ -4539,14 +4554,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4539
4554
  } | {
4540
4555
  output: {
4541
4556
  error: {
4542
- code: "upstream_error";
4557
+ code: "api_key_malformed";
4543
4558
  details?: readonly Response.error.Detail[] | undefined;
4544
4559
  message: string;
4545
4560
  };
4546
4561
  requestId: string;
4547
4562
  };
4548
4563
  outputFormat: "json";
4549
- status: 502;
4564
+ status: 400;
4550
4565
  input: {
4551
4566
  param: {
4552
4567
  orderId: string;
@@ -4564,14 +4579,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4564
4579
  } | {
4565
4580
  output: {
4566
4581
  error: {
4567
- code: "query_invalid";
4582
+ code: "api_key_invalid" | "api_key_missing";
4568
4583
  details?: readonly Response.error.Detail[] | undefined;
4569
4584
  message: string;
4570
4585
  };
4571
4586
  requestId: string;
4572
4587
  };
4573
4588
  outputFormat: "json";
4574
- status: 400;
4589
+ status: 401;
4575
4590
  input: {
4576
4591
  param: {
4577
4592
  orderId: string;
@@ -4589,14 +4604,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4589
4604
  } | {
4590
4605
  output: {
4591
4606
  error: {
4592
- code: "api_key_malformed";
4607
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4593
4608
  details?: readonly Response.error.Detail[] | undefined;
4594
4609
  message: string;
4595
4610
  };
4596
4611
  requestId: string;
4597
4612
  };
4598
4613
  outputFormat: "json";
4599
- status: 400;
4614
+ status: 403;
4600
4615
  input: {
4601
4616
  param: {
4602
4617
  orderId: string;
@@ -4614,14 +4629,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4614
4629
  } | {
4615
4630
  output: {
4616
4631
  error: {
4617
- code: "api_key_invalid" | "api_key_missing";
4632
+ code: "payment_required" | "rate_limit_exceeded";
4618
4633
  details?: readonly Response.error.Detail[] | undefined;
4619
4634
  message: string;
4620
4635
  };
4621
4636
  requestId: string;
4622
4637
  };
4623
4638
  outputFormat: "json";
4624
- status: 401;
4639
+ status: 429;
4625
4640
  input: {
4626
4641
  param: {
4627
4642
  orderId: string;
@@ -4639,14 +4654,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4639
4654
  } | {
4640
4655
  output: {
4641
4656
  error: {
4642
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4657
+ code: "query_invalid";
4643
4658
  details?: readonly Response.error.Detail[] | undefined;
4644
4659
  message: string;
4645
4660
  };
4646
4661
  requestId: string;
4647
4662
  };
4648
4663
  outputFormat: "json";
4649
- status: 403;
4664
+ status: 400;
4650
4665
  input: {
4651
4666
  param: {
4652
4667
  orderId: string;
@@ -4664,14 +4679,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4664
4679
  } | {
4665
4680
  output: {
4666
4681
  error: {
4667
- code: "payment_required" | "rate_limit_exceeded";
4682
+ code: "upstream_error";
4668
4683
  details?: readonly Response.error.Detail[] | undefined;
4669
4684
  message: string;
4670
4685
  };
4671
4686
  requestId: string;
4672
4687
  };
4673
4688
  outputFormat: "json";
4674
- status: 429;
4689
+ status: 502;
4675
4690
  input: {
4676
4691
  param: {
4677
4692
  orderId: string;
@@ -4769,14 +4784,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4769
4784
  } | {
4770
4785
  output: {
4771
4786
  error: {
4772
- code: "upstream_error";
4787
+ code: "api_key_malformed";
4773
4788
  details?: readonly Response.error.Detail[] | undefined;
4774
4789
  message: string;
4775
4790
  };
4776
4791
  requestId: string;
4777
4792
  };
4778
4793
  outputFormat: "json";
4779
- status: 502;
4794
+ status: 400;
4780
4795
  input: {
4781
4796
  param: {
4782
4797
  base: `0x${string}`;
@@ -4792,14 +4807,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4792
4807
  } | {
4793
4808
  output: {
4794
4809
  error: {
4795
- code: "query_invalid";
4810
+ code: "api_key_invalid" | "api_key_missing";
4796
4811
  details?: readonly Response.error.Detail[] | undefined;
4797
4812
  message: string;
4798
4813
  };
4799
4814
  requestId: string;
4800
4815
  };
4801
4816
  outputFormat: "json";
4802
- status: 400;
4817
+ status: 401;
4803
4818
  input: {
4804
4819
  param: {
4805
4820
  base: `0x${string}`;
@@ -4815,14 +4830,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4815
4830
  } | {
4816
4831
  output: {
4817
4832
  error: {
4818
- code: "api_key_malformed";
4833
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4819
4834
  details?: readonly Response.error.Detail[] | undefined;
4820
4835
  message: string;
4821
4836
  };
4822
4837
  requestId: string;
4823
4838
  };
4824
4839
  outputFormat: "json";
4825
- status: 400;
4840
+ status: 403;
4826
4841
  input: {
4827
4842
  param: {
4828
4843
  base: `0x${string}`;
@@ -4838,14 +4853,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4838
4853
  } | {
4839
4854
  output: {
4840
4855
  error: {
4841
- code: "api_key_invalid" | "api_key_missing";
4856
+ code: "payment_required" | "rate_limit_exceeded";
4842
4857
  details?: readonly Response.error.Detail[] | undefined;
4843
4858
  message: string;
4844
4859
  };
4845
4860
  requestId: string;
4846
4861
  };
4847
4862
  outputFormat: "json";
4848
- status: 401;
4863
+ status: 429;
4849
4864
  input: {
4850
4865
  param: {
4851
4866
  base: `0x${string}`;
@@ -4861,14 +4876,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4861
4876
  } | {
4862
4877
  output: {
4863
4878
  error: {
4864
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4879
+ code: "query_invalid";
4865
4880
  details?: readonly Response.error.Detail[] | undefined;
4866
4881
  message: string;
4867
4882
  };
4868
4883
  requestId: string;
4869
4884
  };
4870
4885
  outputFormat: "json";
4871
- status: 403;
4886
+ status: 400;
4872
4887
  input: {
4873
4888
  param: {
4874
4889
  base: `0x${string}`;
@@ -4884,14 +4899,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4884
4899
  } | {
4885
4900
  output: {
4886
4901
  error: {
4887
- code: "payment_required" | "rate_limit_exceeded";
4902
+ code: "upstream_error";
4888
4903
  details?: readonly Response.error.Detail[] | undefined;
4889
4904
  message: string;
4890
4905
  };
4891
4906
  requestId: string;
4892
4907
  };
4893
4908
  outputFormat: "json";
4894
- status: 429;
4909
+ status: 502;
4895
4910
  input: {
4896
4911
  param: {
4897
4912
  base: `0x${string}`;
@@ -5023,14 +5038,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5023
5038
  } | {
5024
5039
  output: {
5025
5040
  error: {
5026
- code: "upstream_error";
5041
+ code: "api_key_malformed";
5027
5042
  details?: readonly Response.error.Detail[] | undefined;
5028
5043
  message: string;
5029
5044
  };
5030
5045
  requestId: string;
5031
5046
  };
5032
5047
  outputFormat: "json";
5033
- status: 502;
5048
+ status: 400;
5034
5049
  input: {
5035
5050
  param: {
5036
5051
  base: `0x${string}`;
@@ -5045,14 +5060,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5045
5060
  } | {
5046
5061
  output: {
5047
5062
  error: {
5048
- code: "query_invalid";
5063
+ code: "api_key_invalid" | "api_key_missing";
5049
5064
  details?: readonly Response.error.Detail[] | undefined;
5050
5065
  message: string;
5051
5066
  };
5052
5067
  requestId: string;
5053
5068
  };
5054
5069
  outputFormat: "json";
5055
- status: 400;
5070
+ status: 401;
5056
5071
  input: {
5057
5072
  param: {
5058
5073
  base: `0x${string}`;
@@ -5067,14 +5082,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5067
5082
  } | {
5068
5083
  output: {
5069
5084
  error: {
5070
- code: "api_key_malformed";
5085
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
5071
5086
  details?: readonly Response.error.Detail[] | undefined;
5072
5087
  message: string;
5073
5088
  };
5074
5089
  requestId: string;
5075
5090
  };
5076
5091
  outputFormat: "json";
5077
- status: 400;
5092
+ status: 403;
5078
5093
  input: {
5079
5094
  param: {
5080
5095
  base: `0x${string}`;
@@ -5089,14 +5104,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5089
5104
  } | {
5090
5105
  output: {
5091
5106
  error: {
5092
- code: "api_key_invalid" | "api_key_missing";
5107
+ code: "payment_required" | "rate_limit_exceeded";
5093
5108
  details?: readonly Response.error.Detail[] | undefined;
5094
5109
  message: string;
5095
5110
  };
5096
5111
  requestId: string;
5097
5112
  };
5098
5113
  outputFormat: "json";
5099
- status: 401;
5114
+ status: 429;
5100
5115
  input: {
5101
5116
  param: {
5102
5117
  base: `0x${string}`;
@@ -5111,14 +5126,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5111
5126
  } | {
5112
5127
  output: {
5113
5128
  error: {
5114
- code: "api_key_forbidden" | "api_key_ip_forbidden";
5129
+ code: "query_invalid";
5115
5130
  details?: readonly Response.error.Detail[] | undefined;
5116
5131
  message: string;
5117
5132
  };
5118
5133
  requestId: string;
5119
5134
  };
5120
5135
  outputFormat: "json";
5121
- status: 403;
5136
+ status: 400;
5122
5137
  input: {
5123
5138
  param: {
5124
5139
  base: `0x${string}`;
@@ -5133,14 +5148,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5133
5148
  } | {
5134
5149
  output: {
5135
5150
  error: {
5136
- code: "payment_required" | "rate_limit_exceeded";
5151
+ code: "upstream_error";
5137
5152
  details?: readonly Response.error.Detail[] | undefined;
5138
5153
  message: string;
5139
5154
  };
5140
5155
  requestId: string;
5141
5156
  };
5142
5157
  outputFormat: "json";
5143
- status: 429;
5158
+ status: 502;
5144
5159
  input: {
5145
5160
  param: {
5146
5161
  base: `0x${string}`;