tapimo 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (681) hide show
  1. package/dist/ApiKeys.d.ts +24 -7
  2. package/dist/ApiKeys.d.ts.map +1 -1
  3. package/dist/ApiKeys.js +17 -5
  4. package/dist/ApiKeys.js.map +1 -1
  5. package/dist/App.d.ts +12104 -7861
  6. package/dist/App.d.ts.map +1 -1
  7. package/dist/App.js +191 -128
  8. package/dist/App.js.map +1 -1
  9. package/dist/Assets.d.ts +10 -0
  10. package/dist/Assets.d.ts.map +1 -1
  11. package/dist/Assets.js +17 -4
  12. package/dist/Assets.js.map +1 -1
  13. package/dist/Scope.d.ts +19 -8
  14. package/dist/Scope.d.ts.map +1 -1
  15. package/dist/Scope.js +25 -9
  16. package/dist/Scope.js.map +1 -1
  17. package/dist/Webhooks.d.ts +1 -1
  18. package/dist/admin/App.d.ts +601 -20
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/App.js +12 -2
  21. package/dist/admin/App.js.map +1 -1
  22. package/dist/admin/apps/api-keys.d.ts +94 -11
  23. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.js +141 -32
  25. package/dist/admin/apps/api-keys.js.map +1 -1
  26. package/dist/admin/apps/earn-vaults.d.ts +1069 -0
  27. package/dist/admin/apps/earn-vaults.d.ts.map +1 -0
  28. package/dist/admin/apps/earn-vaults.js +409 -0
  29. package/dist/admin/apps/earn-vaults.js.map +1 -0
  30. package/dist/admin/apps/verified-tokens.d.ts +166 -166
  31. package/dist/admin/ui.generated.d.ts +1 -1
  32. package/dist/admin/ui.generated.d.ts.map +1 -1
  33. package/dist/admin/ui.generated.js +99 -43
  34. package/dist/admin/ui.generated.js.map +1 -1
  35. package/dist/analytics/Analytics.d.ts +2 -0
  36. package/dist/analytics/Analytics.d.ts.map +1 -1
  37. package/dist/analytics/Analytics.js +18 -2
  38. package/dist/analytics/Analytics.js.map +1 -1
  39. package/dist/analytics/tables/requestEvents.d.ts +22 -1
  40. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  41. package/dist/analytics/tables/requestEvents.js +59 -39
  42. package/dist/analytics/tables/requestEvents.js.map +1 -1
  43. package/dist/apps/Zones.d.ts +8335 -0
  44. package/dist/apps/Zones.d.ts.map +1 -0
  45. package/dist/apps/Zones.js +38 -0
  46. package/dist/apps/Zones.js.map +1 -0
  47. package/dist/apps/data/App.d.ts +12125 -7913
  48. package/dist/apps/data/App.d.ts.map +1 -1
  49. package/dist/apps/data/App.js +91 -19
  50. package/dist/apps/data/App.js.map +1 -1
  51. package/dist/apps/data/FxOracle.d.ts +1 -1
  52. package/dist/apps/data/FxOracle.d.ts.map +1 -1
  53. package/dist/apps/data/index.d.ts +0 -1
  54. package/dist/apps/data/index.d.ts.map +1 -1
  55. package/dist/apps/data/index.js +0 -1
  56. package/dist/apps/data/index.js.map +1 -1
  57. package/dist/apps/data/routes/activities.d.ts +32 -32
  58. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  59. package/dist/apps/data/routes/activities.js +130 -65
  60. package/dist/apps/data/routes/activities.js.map +1 -1
  61. package/dist/apps/data/routes/addresses.d.ts +312 -312
  62. package/dist/apps/data/routes/balances.d.ts +18 -18
  63. package/dist/apps/data/routes/balances.js +5 -5
  64. package/dist/apps/data/routes/balances.js.map +1 -1
  65. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  66. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  67. package/dist/apps/data/routes/coingecko.js +62 -35
  68. package/dist/apps/data/routes/coingecko.js.map +1 -1
  69. package/dist/apps/data/routes/earn.d.ts +2144 -0
  70. package/dist/apps/data/routes/earn.d.ts.map +1 -0
  71. package/dist/apps/data/routes/earn.js +947 -0
  72. package/dist/apps/data/routes/earn.js.map +1 -0
  73. package/dist/apps/data/routes/exchanges.d.ts +1625 -718
  74. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  75. package/dist/apps/data/routes/exchanges.js +656 -193
  76. package/dist/apps/data/routes/exchanges.js.map +1 -1
  77. package/dist/apps/data/routes/fee-amm.d.ts +108 -108
  78. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  79. package/dist/apps/data/routes/fee-amm.js +59 -8
  80. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  81. package/dist/apps/data/routes/funding.d.ts +4092 -387
  82. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  83. package/dist/apps/data/routes/funding.js +1403 -256
  84. package/dist/apps/data/routes/funding.js.map +1 -1
  85. package/dist/apps/data/routes/indexer.d.ts +30 -30
  86. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  87. package/dist/apps/data/routes/indexer.js +19 -2
  88. package/dist/apps/data/routes/indexer.js.map +1 -1
  89. package/dist/apps/data/routes/receipts.d.ts +263 -263
  90. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  91. package/dist/apps/data/routes/receipts.js +11 -11
  92. package/dist/apps/data/routes/receipts.js.map +1 -1
  93. package/dist/apps/data/routes/rpc.d.ts +5 -5
  94. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  95. package/dist/apps/data/routes/rpc.js +211 -22
  96. package/dist/apps/data/routes/rpc.js.map +1 -1
  97. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  98. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  99. package/dist/apps/data/routes/tokenlist.js +39 -8
  100. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  101. package/dist/apps/data/routes/tokens.d.ts +114 -86
  102. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  103. package/dist/apps/data/routes/tokens.js +194 -91
  104. package/dist/apps/data/routes/tokens.js.map +1 -1
  105. package/dist/apps/data/routes/transactions.d.ts +53 -53
  106. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  107. package/dist/apps/data/routes/transactions.js +78 -39
  108. package/dist/apps/data/routes/transactions.js.map +1 -1
  109. package/dist/apps/data/routes/transfers.d.ts +76 -27
  110. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  111. package/dist/apps/data/routes/transfers.js +165 -67
  112. package/dist/apps/data/routes/transfers.js.map +1 -1
  113. package/dist/apps/data/routes/valuation.d.ts +42 -42
  114. package/dist/apps/data/routes/valuation.js +2 -2
  115. package/dist/apps/data/routes/valuation.js.map +1 -1
  116. package/dist/apps/data/routes/webhooks.d.ts +369 -367
  117. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  118. package/dist/apps/data/routes/webhooks.js +161 -59
  119. package/dist/apps/data/routes/webhooks.js.map +1 -1
  120. package/dist/apps/data/routes/zones.d.ts +281 -0
  121. package/dist/apps/data/routes/zones.d.ts.map +1 -0
  122. package/dist/apps/data/routes/zones.js +252 -0
  123. package/dist/apps/data/routes/zones.js.map +1 -0
  124. package/dist/apps/docs/reference.js +6 -5
  125. package/dist/apps/docs/reference.js.map +1 -1
  126. package/dist/apps/index.d.ts +2 -1
  127. package/dist/apps/index.d.ts.map +1 -1
  128. package/dist/apps/index.js +2 -1
  129. package/dist/apps/index.js.map +1 -1
  130. package/dist/apps/management/App.d.ts +670 -670
  131. package/dist/apps/management/Billing.d.ts +8 -0
  132. package/dist/apps/management/Billing.d.ts.map +1 -1
  133. package/dist/apps/management/Billing.js +12 -0
  134. package/dist/apps/management/Billing.js.map +1 -1
  135. package/dist/apps/management/Error.d.ts +12 -0
  136. package/dist/apps/management/Error.d.ts.map +1 -0
  137. package/dist/apps/management/Error.js +10 -0
  138. package/dist/apps/management/Error.js.map +1 -0
  139. package/dist/apps/management/routes/api-keys.d.ts +5 -5
  140. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  141. package/dist/apps/management/routes/api-keys.js +2 -8
  142. package/dist/apps/management/routes/api-keys.js.map +1 -1
  143. package/dist/apps/management/routes/billing.d.ts +119 -119
  144. package/dist/apps/management/routes/faucet.d.ts +2 -2
  145. package/dist/apps/management/routes/invitations.d.ts +62 -62
  146. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  147. package/dist/apps/management/routes/invitations.js +4 -10
  148. package/dist/apps/management/routes/invitations.js.map +1 -1
  149. package/dist/apps/management/routes/invite-links.d.ts +30 -30
  150. package/dist/apps/management/routes/me.d.ts +6 -6
  151. package/dist/apps/management/routes/members.d.ts +2 -2
  152. package/dist/apps/management/routes/orgs.d.ts +48 -48
  153. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  154. package/dist/apps/management/routes/orgs.js +2 -8
  155. package/dist/apps/management/routes/orgs.js.map +1 -1
  156. package/dist/apps/management/routes/projects.d.ts +9 -9
  157. package/dist/apps/management/routes/scopes.js +2 -2
  158. package/dist/apps/management/routes/scopes.js.map +1 -1
  159. package/dist/apps/management/routes/verified-token-requests.d.ts +36 -36
  160. package/dist/apps/management/routes/webhooks.d.ts +50 -50
  161. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  162. package/dist/apps/management/routes/webhooks.js +15 -3
  163. package/dist/apps/management/routes/webhooks.js.map +1 -1
  164. package/dist/apps/mpp/App.d.ts +55 -56
  165. package/dist/apps/mpp/App.d.ts.map +1 -1
  166. package/dist/apps/mpp/App.js +192 -27
  167. package/dist/apps/mpp/App.js.map +1 -1
  168. package/dist/apps/mpp/Mpp.d.ts +0 -20
  169. package/dist/apps/mpp/Mpp.d.ts.map +1 -1
  170. package/dist/apps/mpp/Mpp.js +0 -24
  171. package/dist/apps/mpp/Mpp.js.map +1 -1
  172. package/dist/apps/mpp/internal/Adapter.d.ts +40 -0
  173. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -0
  174. package/dist/apps/mpp/internal/Adapter.js +66 -0
  175. package/dist/apps/mpp/internal/Adapter.js.map +1 -0
  176. package/dist/apps/mpp/internal/Error.d.ts +4 -0
  177. package/dist/apps/mpp/internal/Error.d.ts.map +1 -0
  178. package/dist/apps/mpp/internal/Error.js +41 -0
  179. package/dist/apps/mpp/internal/Error.js.map +1 -0
  180. package/dist/apps/mpp/internal/Idempotency.d.ts +33 -0
  181. package/dist/apps/mpp/internal/Idempotency.d.ts.map +1 -0
  182. package/dist/apps/mpp/internal/Idempotency.js +28 -0
  183. package/dist/apps/mpp/internal/Idempotency.js.map +1 -0
  184. package/dist/apps/mpp/internal/Policy.d.ts +46 -0
  185. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -0
  186. package/dist/apps/mpp/internal/Policy.js +57 -0
  187. package/dist/apps/mpp/internal/Policy.js.map +1 -0
  188. package/dist/apps/mpp/internal/ScreenManager.d.ts +27 -0
  189. package/dist/apps/mpp/internal/ScreenManager.d.ts.map +1 -0
  190. package/dist/apps/mpp/internal/ScreenManager.js +18 -0
  191. package/dist/apps/mpp/internal/ScreenManager.js.map +1 -0
  192. package/dist/apps/mpp/internal/Screening.d.ts +35 -0
  193. package/dist/apps/mpp/internal/Screening.d.ts.map +1 -0
  194. package/dist/apps/mpp/internal/Screening.js +20 -0
  195. package/dist/apps/mpp/internal/Screening.js.map +1 -0
  196. package/dist/apps/mpp/internal/Sponsorship.d.ts +36 -0
  197. package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -0
  198. package/dist/apps/mpp/internal/Sponsorship.js +103 -0
  199. package/dist/apps/mpp/internal/Sponsorship.js.map +1 -0
  200. package/dist/apps/mpp/internal/Utils.d.ts +7 -0
  201. package/dist/apps/mpp/internal/Utils.d.ts.map +1 -0
  202. package/dist/apps/mpp/internal/Utils.js +24 -0
  203. package/dist/apps/mpp/internal/Utils.js.map +1 -0
  204. package/dist/apps/relay/App.js +183 -23
  205. package/dist/apps/relay/App.js.map +1 -1
  206. package/dist/apps/relay/Sponsorships.d.ts +4 -0
  207. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  208. package/dist/apps/relay/Sponsorships.js +15 -6
  209. package/dist/apps/relay/Sponsorships.js.map +1 -1
  210. package/dist/db/Db.d.ts +20 -0
  211. package/dist/db/Db.d.ts.map +1 -1
  212. package/dist/db/Db.js +342 -0
  213. package/dist/db/Db.js.map +1 -1
  214. package/dist/db/Schema.d.ts +921 -1
  215. package/dist/db/Schema.d.ts.map +1 -1
  216. package/dist/db/Schema.js +269 -1
  217. package/dist/db/Schema.js.map +1 -1
  218. package/dist/db/tables/earnVaults.d.ts +68 -0
  219. package/dist/db/tables/earnVaults.d.ts.map +1 -0
  220. package/dist/db/tables/earnVaults.js +72 -0
  221. package/dist/db/tables/earnVaults.js.map +1 -0
  222. package/dist/db/tables/fundingCatalog.d.ts +56 -0
  223. package/dist/db/tables/fundingCatalog.d.ts.map +1 -0
  224. package/dist/db/tables/fundingCatalog.js +85 -0
  225. package/dist/db/tables/fundingCatalog.js.map +1 -0
  226. package/dist/db/tables/fundingDepositAddresses.d.ts +159 -0
  227. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -0
  228. package/dist/db/tables/fundingDepositAddresses.js +206 -0
  229. package/dist/db/tables/fundingDepositAddresses.js.map +1 -0
  230. package/dist/db/tables/fundingDeposits.d.ts +115 -0
  231. package/dist/db/tables/fundingDeposits.d.ts.map +1 -0
  232. package/dist/db/tables/fundingDeposits.js +100 -0
  233. package/dist/db/tables/fundingDeposits.js.map +1 -0
  234. package/dist/db/tables/fundingIdempotency.d.ts +91 -0
  235. package/dist/db/tables/fundingIdempotency.d.ts.map +1 -0
  236. package/dist/db/tables/fundingIdempotency.js +103 -0
  237. package/dist/db/tables/fundingIdempotency.js.map +1 -0
  238. package/dist/db/tables/fundingTransferEvents.d.ts +12 -0
  239. package/dist/db/tables/fundingTransferEvents.d.ts.map +1 -0
  240. package/dist/db/tables/fundingTransferEvents.js +18 -0
  241. package/dist/db/tables/fundingTransferEvents.js.map +1 -0
  242. package/dist/db/tables/fundingTransferTransactions.d.ts +15 -0
  243. package/dist/db/tables/fundingTransferTransactions.d.ts.map +1 -0
  244. package/dist/db/tables/fundingTransferTransactions.js +27 -0
  245. package/dist/db/tables/fundingTransferTransactions.js.map +1 -0
  246. package/dist/db/tables/fundingTransfers.d.ts +82 -0
  247. package/dist/db/tables/fundingTransfers.d.ts.map +1 -0
  248. package/dist/db/tables/fundingTransfers.js +89 -0
  249. package/dist/db/tables/fundingTransfers.js.map +1 -0
  250. package/dist/db/tables/organizations.d.ts +8 -0
  251. package/dist/db/tables/organizations.d.ts.map +1 -1
  252. package/dist/db/tables/organizations.js +16 -0
  253. package/dist/db/tables/organizations.js.map +1 -1
  254. package/dist/db/tables/projects.d.ts +8 -0
  255. package/dist/db/tables/projects.d.ts.map +1 -1
  256. package/dist/db/tables/projects.js +16 -0
  257. package/dist/db/tables/projects.js.map +1 -1
  258. package/dist/db/tables/requestUsage.d.ts +13 -0
  259. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  260. package/dist/db/tables/requestUsage.js +16 -0
  261. package/dist/db/tables/requestUsage.js.map +1 -1
  262. package/dist/db/tables/sponsoredTransactions.d.ts +2 -2
  263. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  264. package/dist/db/tables/sponsoredTransactions.js +1 -1
  265. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  266. package/dist/db/tables/users.d.ts +8 -0
  267. package/dist/db/tables/users.d.ts.map +1 -1
  268. package/dist/db/tables/users.js +16 -0
  269. package/dist/db/tables/users.js.map +1 -1
  270. package/dist/db/tables/verifiedTokens.d.ts +14 -7
  271. package/dist/db/tables/verifiedTokens.d.ts.map +1 -1
  272. package/dist/db/tables/verifiedTokens.js +9 -7
  273. package/dist/db/tables/verifiedTokens.js.map +1 -1
  274. package/dist/db/tables/webhookSubscriptions.d.ts +31 -1
  275. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  276. package/dist/db/tables/webhookSubscriptions.js +24 -3
  277. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  278. package/dist/handlers/relay.js +108 -108
  279. package/dist/handlers/relay.js.map +1 -1
  280. package/dist/internal/Auth.d.ts +26 -0
  281. package/dist/internal/Auth.d.ts.map +1 -1
  282. package/dist/internal/Auth.js +35 -2
  283. package/dist/internal/Auth.js.map +1 -1
  284. package/dist/internal/Cache.d.ts.map +1 -1
  285. package/dist/internal/Cache.js +16 -10
  286. package/dist/internal/Cache.js.map +1 -1
  287. package/dist/internal/Cursor.js +1 -1
  288. package/dist/internal/Cursor.js.map +1 -1
  289. package/dist/internal/EarnRates.d.ts +89 -0
  290. package/dist/internal/EarnRates.d.ts.map +1 -0
  291. package/dist/internal/EarnRates.js +266 -0
  292. package/dist/internal/EarnRates.js.map +1 -0
  293. package/dist/internal/EarnVaults.d.ts +171 -0
  294. package/dist/internal/EarnVaults.d.ts.map +1 -0
  295. package/dist/internal/EarnVaults.js +547 -0
  296. package/dist/internal/EarnVaults.js.map +1 -0
  297. package/dist/internal/EdgeCache.d.ts +8 -1
  298. package/dist/internal/EdgeCache.d.ts.map +1 -1
  299. package/dist/internal/EdgeCache.js +33 -7
  300. package/dist/internal/EdgeCache.js.map +1 -1
  301. package/dist/internal/Id.d.ts +11 -0
  302. package/dist/internal/Id.d.ts.map +1 -1
  303. package/dist/internal/Id.js +13 -0
  304. package/dist/internal/Id.js.map +1 -1
  305. package/dist/internal/Idempotency.d.ts +83 -0
  306. package/dist/internal/Idempotency.d.ts.map +1 -0
  307. package/dist/internal/Idempotency.js +113 -0
  308. package/dist/internal/Idempotency.js.map +1 -0
  309. package/dist/internal/Log.d.ts +64 -9
  310. package/dist/internal/Log.d.ts.map +1 -1
  311. package/dist/internal/Log.js +29 -7
  312. package/dist/internal/Log.js.map +1 -1
  313. package/dist/internal/MetricSink.d.ts.map +1 -1
  314. package/dist/internal/MetricSink.js +47 -1
  315. package/dist/internal/MetricSink.js.map +1 -1
  316. package/dist/internal/OpenApi.d.ts +1 -1
  317. package/dist/internal/OpenApi.d.ts.map +1 -1
  318. package/dist/internal/OpenApi.js +3 -0
  319. package/dist/internal/OpenApi.js.map +1 -1
  320. package/dist/internal/Provider.d.ts +14 -0
  321. package/dist/internal/Provider.d.ts.map +1 -0
  322. package/dist/internal/Provider.js +5 -0
  323. package/dist/internal/Provider.js.map +1 -0
  324. package/dist/internal/Schema.d.ts +6 -1
  325. package/dist/internal/Schema.d.ts.map +1 -1
  326. package/dist/internal/Schema.js +20 -11
  327. package/dist/internal/Schema.js.map +1 -1
  328. package/dist/internal/Store.d.ts +6 -0
  329. package/dist/internal/Store.d.ts.map +1 -1
  330. package/dist/internal/Store.js +35 -0
  331. package/dist/internal/Store.js.map +1 -1
  332. package/dist/internal/Tidx.d.ts +43 -24
  333. package/dist/internal/Tidx.d.ts.map +1 -1
  334. package/dist/internal/Tidx.js +79 -11
  335. package/dist/internal/Tidx.js.map +1 -1
  336. package/dist/internal/Viem.d.ts +82 -65
  337. package/dist/internal/Viem.d.ts.map +1 -1
  338. package/dist/internal/Viem.js +83 -12
  339. package/dist/internal/Viem.js.map +1 -1
  340. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  341. package/dist/internal/WebhookDestination.js +34 -28
  342. package/dist/internal/WebhookDestination.js.map +1 -1
  343. package/dist/internal/Webhooks.d.ts +9 -0
  344. package/dist/internal/Webhooks.d.ts.map +1 -1
  345. package/dist/internal/Webhooks.js +15 -10
  346. package/dist/internal/Webhooks.js.map +1 -1
  347. package/dist/internal/exchange/Provider.d.ts +219 -0
  348. package/dist/internal/exchange/Provider.d.ts.map +1 -0
  349. package/dist/internal/exchange/Provider.js +117 -0
  350. package/dist/internal/exchange/Provider.js.map +1 -0
  351. package/dist/internal/exchange/index.d.ts +2 -0
  352. package/dist/internal/exchange/index.d.ts.map +1 -0
  353. package/dist/internal/exchange/index.js +2 -0
  354. package/dist/internal/exchange/index.js.map +1 -0
  355. package/dist/internal/exchange/providers/uniswap.d.ts +57 -0
  356. package/dist/internal/exchange/providers/uniswap.d.ts.map +1 -0
  357. package/dist/internal/exchange/providers/uniswap.js +553 -0
  358. package/dist/internal/exchange/providers/uniswap.js.map +1 -0
  359. package/dist/internal/funding/Action.d.ts +55 -0
  360. package/dist/internal/funding/Action.d.ts.map +1 -0
  361. package/dist/internal/funding/Action.js +74 -0
  362. package/dist/internal/funding/Action.js.map +1 -0
  363. package/dist/internal/funding/Catalog.d.ts +107 -0
  364. package/dist/internal/funding/Catalog.d.ts.map +1 -0
  365. package/dist/internal/funding/Catalog.js +270 -0
  366. package/dist/internal/funding/Catalog.js.map +1 -0
  367. package/dist/internal/funding/Chain.d.ts +76 -0
  368. package/dist/internal/funding/Chain.d.ts.map +1 -0
  369. package/dist/internal/funding/Chain.js +38 -0
  370. package/dist/internal/funding/Chain.js.map +1 -0
  371. package/dist/internal/funding/Deposit.d.ts +366 -0
  372. package/dist/internal/funding/Deposit.d.ts.map +1 -0
  373. package/dist/internal/funding/Deposit.js +286 -0
  374. package/dist/internal/funding/Deposit.js.map +1 -0
  375. package/dist/internal/funding/DepositAddress.d.ts +345 -0
  376. package/dist/internal/funding/DepositAddress.d.ts.map +1 -0
  377. package/dist/internal/funding/DepositAddress.js +189 -0
  378. package/dist/internal/funding/DepositAddress.js.map +1 -0
  379. package/dist/internal/funding/Evidence.d.ts +52 -0
  380. package/dist/internal/funding/Evidence.d.ts.map +1 -0
  381. package/dist/internal/funding/Evidence.js +314 -0
  382. package/dist/internal/funding/Evidence.js.map +1 -0
  383. package/dist/internal/funding/Provider.d.ts +1186 -0
  384. package/dist/internal/funding/Provider.d.ts.map +1 -0
  385. package/dist/internal/funding/Provider.js +1081 -0
  386. package/dist/internal/funding/Provider.js.map +1 -0
  387. package/dist/internal/funding/Reconciliation.d.ts +113 -0
  388. package/dist/internal/funding/Reconciliation.d.ts.map +1 -0
  389. package/dist/internal/funding/Reconciliation.js +676 -0
  390. package/dist/internal/funding/Reconciliation.js.map +1 -0
  391. package/dist/internal/funding/Route.d.ts +21 -0
  392. package/dist/internal/funding/Route.d.ts.map +1 -0
  393. package/dist/internal/funding/Route.js +5 -0
  394. package/dist/internal/funding/Route.js.map +1 -0
  395. package/dist/internal/funding/Subsidy.d.ts +113 -0
  396. package/dist/internal/funding/Subsidy.d.ts.map +1 -0
  397. package/dist/internal/funding/Subsidy.js +138 -0
  398. package/dist/internal/funding/Subsidy.js.map +1 -0
  399. package/dist/internal/funding/Token.d.ts +41 -0
  400. package/dist/internal/funding/Token.d.ts.map +1 -0
  401. package/dist/internal/funding/Token.js +22 -0
  402. package/dist/internal/funding/Token.js.map +1 -0
  403. package/dist/internal/funding/Transfer.d.ts +643 -0
  404. package/dist/internal/funding/Transfer.d.ts.map +1 -0
  405. package/dist/internal/funding/Transfer.js +332 -0
  406. package/dist/internal/funding/Transfer.js.map +1 -0
  407. package/dist/internal/funding/index.d.ts +13 -0
  408. package/dist/internal/funding/index.d.ts.map +1 -0
  409. package/dist/internal/funding/index.js +13 -0
  410. package/dist/internal/funding/index.js.map +1 -0
  411. package/dist/internal/funding/providers/across.d.ts +21 -0
  412. package/dist/internal/funding/providers/across.d.ts.map +1 -0
  413. package/dist/internal/funding/providers/across.js +117 -0
  414. package/dist/internal/funding/providers/across.js.map +1 -0
  415. package/dist/internal/funding/providers/relay.d.ts +46 -0
  416. package/dist/internal/funding/providers/relay.d.ts.map +1 -0
  417. package/dist/internal/funding/providers/relay.js +464 -0
  418. package/dist/internal/funding/providers/relay.js.map +1 -0
  419. package/dist/internal/funding/providers/rhino.d.ts +15 -0
  420. package/dist/internal/funding/providers/rhino.d.ts.map +1 -0
  421. package/dist/internal/funding/providers/rhino.js +116 -0
  422. package/dist/internal/funding/providers/rhino.js.map +1 -0
  423. package/dist/internal/funding/providers/squid.d.ts +19 -0
  424. package/dist/internal/funding/providers/squid.d.ts.map +1 -0
  425. package/dist/internal/funding/providers/squid.js +120 -0
  426. package/dist/internal/funding/providers/squid.js.map +1 -0
  427. package/dist/internal/funding/providers/symbiosis.d.ts +20 -0
  428. package/dist/internal/funding/providers/symbiosis.d.ts.map +1 -0
  429. package/dist/internal/funding/providers/symbiosis.js +176 -0
  430. package/dist/internal/funding/providers/symbiosis.js.map +1 -0
  431. package/dist/internal/index.d.ts +5 -1
  432. package/dist/internal/index.d.ts.map +1 -1
  433. package/dist/internal/index.js +5 -1
  434. package/dist/internal/index.js.map +1 -1
  435. package/dist/internal/webhookDestinations/url.js +61 -57
  436. package/dist/internal/webhookDestinations/url.js.map +1 -1
  437. package/dist/providers/index.d.ts +43 -0
  438. package/dist/providers/index.d.ts.map +1 -0
  439. package/dist/providers/index.js +19 -0
  440. package/dist/providers/index.js.map +1 -0
  441. package/package.json +9 -4
  442. package/src/ApiKeys.test.ts +11 -7
  443. package/src/ApiKeys.ts +37 -9
  444. package/src/App.test.ts +85 -10
  445. package/src/App.ts +224 -137
  446. package/src/Assets.ts +29 -4
  447. package/src/Client.test-d.ts +650 -30
  448. package/src/Scope.test.ts +19 -0
  449. package/src/Scope.ts +28 -11
  450. package/src/Webhooks.test.ts +25 -0
  451. package/src/Webhooks.ts +1 -1
  452. package/src/admin/App.test.ts +9 -2
  453. package/src/admin/App.ts +32 -9
  454. package/src/admin/apps/api-keys.test.ts +167 -23
  455. package/src/admin/apps/api-keys.ts +166 -28
  456. package/src/admin/apps/earn-vaults.test.ts +338 -0
  457. package/src/admin/apps/earn-vaults.ts +572 -0
  458. package/src/admin/apps/scopes.test.ts +16 -1
  459. package/src/admin/ui/plugin.ts +2 -2
  460. package/src/admin/ui/src/components/EarnVaultForm.tsx +137 -0
  461. package/src/admin/ui/src/components/MobileProfile.tsx +2 -2
  462. package/src/admin/ui/src/components/Page.tsx +1 -1
  463. package/src/admin/ui/src/components/ThemeToggle.tsx +1 -1
  464. package/src/admin/ui/src/lib/api-keys.ts +37 -7
  465. package/src/admin/ui/src/lib/client.ts +1 -1
  466. package/src/admin/ui/src/lib/config.ts +1 -1
  467. package/src/admin/ui/src/lib/early-access.ts +8 -9
  468. package/src/admin/ui/src/lib/earn-vaults.ts +207 -0
  469. package/src/admin/ui/src/lib/format.ts +13 -0
  470. package/src/admin/ui/src/lib/organizations.test.ts +14 -4
  471. package/src/admin/ui/src/lib/organizations.ts +7 -1
  472. package/src/admin/ui/src/lib/response.ts +22 -0
  473. package/src/admin/ui/src/lib/scopes.test.ts +19 -11
  474. package/src/admin/ui/src/lib/scopes.ts +28 -7
  475. package/src/admin/ui/src/lib/verified-tokens.ts +10 -9
  476. package/src/admin/ui/src/routeTree.gen.ts +70 -7
  477. package/src/admin/ui/src/router.tsx +2 -2
  478. package/src/admin/ui/src/routes/__root.tsx +9 -8
  479. package/src/admin/ui/src/routes/api-keys.tsx +475 -64
  480. package/src/admin/ui/src/routes/early-access.tsx +5 -12
  481. package/src/admin/ui/src/routes/earn.vaults.tsx +348 -0
  482. package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +154 -0
  483. package/src/admin/ui/src/routes/earn.vaults_.new.tsx +190 -0
  484. package/src/admin/ui/src/routes/organizations.tsx +4 -7
  485. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +56 -54
  486. package/src/admin/ui/src/routes/verified-tokens.tsx +4 -4
  487. package/src/admin/ui/vite.config.ts +4 -1
  488. package/src/admin/ui.generated.ts +113 -43
  489. package/src/analytics/Analytics.test.ts +69 -10
  490. package/src/analytics/Analytics.ts +20 -1
  491. package/src/analytics/tables/requestEvents.ts +79 -37
  492. package/src/apps/Zones.test.ts +33 -0
  493. package/src/apps/Zones.ts +40 -0
  494. package/src/apps/composition.test.ts +84 -1
  495. package/src/apps/data/App.test.ts +28 -11
  496. package/src/apps/data/App.ts +96 -33
  497. package/src/apps/data/FxOracle.ts +1 -1
  498. package/src/apps/data/index.ts +0 -1
  499. package/src/apps/data/routes/activities.test.ts +82 -6
  500. package/src/apps/data/routes/activities.ts +131 -71
  501. package/src/apps/data/routes/balances.test.ts +50 -37
  502. package/src/apps/data/routes/balances.ts +5 -5
  503. package/src/apps/data/routes/blocks.test.ts +2 -0
  504. package/src/apps/data/routes/coingecko.test.ts +22 -0
  505. package/src/apps/data/routes/coingecko.ts +84 -48
  506. package/src/apps/data/routes/earn.test.ts +1108 -0
  507. package/src/apps/data/routes/earn.ts +1391 -0
  508. package/src/apps/data/routes/exchanges.test.ts +82 -33
  509. package/src/apps/data/routes/exchanges.ts +842 -227
  510. package/src/apps/data/routes/fee-amm.test.ts +4 -6
  511. package/src/apps/data/routes/fee-amm.ts +69 -12
  512. package/src/apps/data/routes/funding.test.ts +2712 -221
  513. package/src/apps/data/routes/funding.ts +1604 -387
  514. package/src/apps/data/routes/indexer.test.ts +43 -34
  515. package/src/apps/data/routes/indexer.ts +19 -2
  516. package/src/apps/data/routes/receipts.test.ts +5 -3
  517. package/src/apps/data/routes/receipts.ts +13 -11
  518. package/src/apps/data/routes/rpc.test.ts +446 -28
  519. package/src/apps/data/routes/rpc.ts +243 -25
  520. package/src/apps/data/routes/tokenlist.ts +72 -19
  521. package/src/apps/data/routes/tokens.ts +258 -86
  522. package/src/apps/data/routes/transactions.test.ts +2 -0
  523. package/src/apps/data/routes/transactions.ts +77 -42
  524. package/src/apps/data/routes/transfers.test.ts +166 -4
  525. package/src/apps/data/routes/transfers.ts +216 -78
  526. package/src/apps/data/routes/valuation.test.ts +62 -9
  527. package/src/apps/data/routes/valuation.ts +2 -2
  528. package/src/apps/data/routes/webhooks.test.ts +386 -43
  529. package/src/apps/data/routes/webhooks.ts +172 -71
  530. package/src/apps/data/routes/zones.test.ts +473 -0
  531. package/src/apps/data/routes/zones.ts +338 -0
  532. package/src/apps/docs/reference.ts +8 -6
  533. package/src/apps/index.ts +2 -1
  534. package/src/apps/management/Billing.test.ts +29 -0
  535. package/src/apps/management/Billing.ts +23 -0
  536. package/src/apps/management/Error.ts +12 -0
  537. package/src/apps/management/routes/api-keys.test.ts +5 -3
  538. package/src/apps/management/routes/api-keys.ts +2 -9
  539. package/src/apps/management/routes/invitations.ts +4 -11
  540. package/src/apps/management/routes/orgs.ts +2 -9
  541. package/src/apps/management/routes/scopes.test.ts +7 -2
  542. package/src/apps/management/routes/scopes.ts +2 -2
  543. package/src/apps/management/routes/webhooks.test.ts +6 -1
  544. package/src/apps/management/routes/webhooks.ts +15 -3
  545. package/src/apps/mpp/App.ts +276 -29
  546. package/src/apps/mpp/Mpp.test.ts +631 -26
  547. package/src/apps/mpp/Mpp.ts +0 -42
  548. package/src/apps/mpp/internal/Adapter.ts +108 -3
  549. package/src/apps/mpp/internal/Error.test.ts +33 -0
  550. package/src/apps/mpp/internal/Error.ts +44 -6
  551. package/src/apps/mpp/internal/Idempotency.test.ts +213 -0
  552. package/src/apps/mpp/internal/Idempotency.ts +59 -5
  553. package/src/apps/mpp/internal/Policy.test.ts +122 -0
  554. package/src/apps/mpp/internal/Policy.ts +98 -0
  555. package/src/apps/mpp/internal/ScreenManager.test.ts +68 -0
  556. package/src/apps/mpp/internal/ScreenManager.ts +41 -0
  557. package/src/apps/mpp/internal/Screening.ts +40 -3
  558. package/src/apps/mpp/internal/Sponsorship.ts +144 -0
  559. package/src/apps/mpp/internal/Utils.ts +30 -0
  560. package/src/apps/relay/App.test.ts +493 -62
  561. package/src/apps/relay/App.ts +233 -23
  562. package/src/apps/relay/Sponsorships.test.ts +49 -0
  563. package/src/apps/relay/Sponsorships.ts +18 -6
  564. package/src/db/Db.ts +439 -0
  565. package/src/db/Schema.ts +325 -2
  566. package/src/db/tables/earnVaults.test.ts +185 -0
  567. package/src/db/tables/earnVaults.ts +151 -0
  568. package/src/db/tables/fundingCatalog.test.ts +108 -0
  569. package/src/db/tables/fundingCatalog.ts +157 -0
  570. package/src/db/tables/fundingDepositAddresses.test.ts +580 -0
  571. package/src/db/tables/fundingDepositAddresses.ts +376 -0
  572. package/src/db/tables/fundingDeposits.test.ts +261 -0
  573. package/src/db/tables/fundingDeposits.ts +229 -0
  574. package/src/db/tables/fundingIdempotency.test.ts +182 -0
  575. package/src/db/tables/fundingIdempotency.ts +180 -0
  576. package/src/db/tables/fundingTransferEvents.ts +28 -0
  577. package/src/db/tables/fundingTransferTransactions.test.ts +69 -0
  578. package/src/db/tables/fundingTransferTransactions.ts +37 -0
  579. package/src/db/tables/fundingTransfers.test.ts +89 -0
  580. package/src/db/tables/fundingTransfers.ts +153 -0
  581. package/src/db/tables/organizations.ts +16 -0
  582. package/src/db/tables/projects.ts +16 -0
  583. package/src/db/tables/requestUsage.ts +23 -0
  584. package/src/db/tables/sponsoredTransactions.test.ts +11 -0
  585. package/src/db/tables/sponsoredTransactions.ts +3 -3
  586. package/src/db/tables/users.ts +16 -0
  587. package/src/db/tables/verifiedTokens.ts +19 -14
  588. package/src/db/tables/webhookSubscriptions.ts +58 -3
  589. package/src/handlers/relay.test.ts +2 -0
  590. package/src/handlers/relay.ts +95 -99
  591. package/src/internal/Auth.test.ts +48 -0
  592. package/src/internal/Auth.ts +61 -2
  593. package/src/internal/Cache.ts +13 -9
  594. package/src/internal/Cursor.test.ts +2 -2
  595. package/src/internal/Cursor.ts +1 -1
  596. package/src/internal/EarnRates.test.ts +125 -0
  597. package/src/internal/EarnRates.ts +409 -0
  598. package/src/internal/EarnVaults.test.ts +195 -0
  599. package/src/internal/EarnVaults.ts +876 -0
  600. package/src/internal/EdgeCache.test.ts +19 -0
  601. package/src/internal/EdgeCache.ts +35 -5
  602. package/src/internal/Id.ts +14 -0
  603. package/src/internal/Idempotency.test.ts +109 -0
  604. package/src/internal/Idempotency.ts +237 -0
  605. package/src/internal/Log.test-d.ts +41 -8
  606. package/src/internal/Log.test.ts +189 -8
  607. package/src/internal/Log.ts +124 -17
  608. package/src/internal/MetricSink.test.ts +244 -4
  609. package/src/internal/MetricSink.ts +51 -1
  610. package/src/internal/OpenApi.ts +3 -0
  611. package/src/internal/Provider.test.ts +17 -0
  612. package/src/internal/Provider.ts +17 -0
  613. package/src/internal/Schema.ts +27 -17
  614. package/src/internal/Store.test.ts +25 -0
  615. package/src/internal/Store.ts +46 -0
  616. package/src/internal/Tidx.local.test.ts +78 -3
  617. package/src/internal/Tidx.test.ts +212 -18
  618. package/src/internal/Tidx.ts +112 -32
  619. package/src/internal/VerifiedTokens.test.ts +15 -0
  620. package/src/internal/Viem.test.ts +170 -17
  621. package/src/internal/Viem.ts +111 -28
  622. package/src/internal/WebhookDestination.ts +25 -23
  623. package/src/internal/Webhooks.test.ts +59 -0
  624. package/src/internal/Webhooks.ts +34 -10
  625. package/src/internal/exchange/Provider.test.ts +216 -0
  626. package/src/internal/exchange/Provider.ts +326 -0
  627. package/src/internal/exchange/index.test.ts +6 -0
  628. package/src/internal/exchange/index.ts +1 -0
  629. package/src/internal/exchange/providers/uniswap.test.ts +122 -0
  630. package/src/internal/exchange/providers/uniswap.ts +682 -0
  631. package/src/internal/funding/Action.test.ts +138 -0
  632. package/src/internal/funding/Action.ts +117 -0
  633. package/src/internal/funding/Catalog.test.ts +311 -0
  634. package/src/internal/funding/Catalog.ts +347 -0
  635. package/src/internal/funding/Chain.test.ts +79 -0
  636. package/src/internal/funding/Chain.ts +120 -0
  637. package/src/internal/funding/Deposit.test.ts +26 -0
  638. package/src/internal/funding/Deposit.ts +453 -0
  639. package/src/internal/funding/DepositAddress.test.ts +18 -0
  640. package/src/internal/funding/DepositAddress.ts +312 -0
  641. package/src/internal/funding/Evidence.test.ts +297 -0
  642. package/src/internal/funding/Evidence.ts +430 -0
  643. package/src/internal/funding/Provider.test.ts +1328 -0
  644. package/src/internal/funding/Provider.ts +1796 -0
  645. package/src/internal/funding/Reconciliation.local.test.ts +504 -0
  646. package/src/internal/funding/Reconciliation.test.ts +2020 -0
  647. package/src/internal/funding/Reconciliation.ts +930 -0
  648. package/src/internal/funding/Route.test.ts +66 -0
  649. package/src/internal/funding/Route.ts +29 -0
  650. package/src/internal/funding/Subsidy.local.test.ts +152 -0
  651. package/src/internal/funding/Subsidy.test.ts +75 -0
  652. package/src/internal/funding/Subsidy.ts +260 -0
  653. package/src/internal/funding/Token.test.ts +47 -0
  654. package/src/internal/funding/Token.ts +59 -0
  655. package/src/internal/funding/Transfer.test.ts +369 -0
  656. package/src/internal/funding/Transfer.ts +522 -0
  657. package/src/internal/funding/index.test.ts +20 -0
  658. package/src/internal/funding/index.ts +12 -0
  659. package/src/internal/funding/providers/across.ts +149 -0
  660. package/src/{apps/data/FundingQuoteProviders.test.ts → internal/funding/providers/index.test.ts} +178 -157
  661. package/src/internal/funding/providers/relay.test.ts +474 -0
  662. package/src/internal/funding/providers/relay.ts +559 -0
  663. package/src/internal/funding/providers/rhino.ts +139 -0
  664. package/src/internal/funding/providers/squid.ts +151 -0
  665. package/src/internal/funding/providers/symbiosis.ts +221 -0
  666. package/src/internal/index.test.ts +5 -1
  667. package/src/internal/index.ts +5 -1
  668. package/src/internal/webhookDestinations/url.ts +49 -45
  669. package/src/providers/index.test.ts +14 -0
  670. package/src/providers/index.ts +54 -0
  671. package/dist/apps/data/FundingQuoteProviders.d.ts +0 -174
  672. package/dist/apps/data/FundingQuoteProviders.d.ts.map +0 -1
  673. package/dist/apps/data/FundingQuoteProviders.js +0 -775
  674. package/dist/apps/data/FundingQuoteProviders.js.map +0 -1
  675. package/dist/internal/FundingQuotes.d.ts +0 -864
  676. package/dist/internal/FundingQuotes.d.ts.map +0 -1
  677. package/dist/internal/FundingQuotes.js +0 -672
  678. package/dist/internal/FundingQuotes.js.map +0 -1
  679. package/src/apps/data/FundingQuoteProviders.ts +0 -1043
  680. package/src/internal/FundingQuotes.test.ts +0 -456
  681. package/src/internal/FundingQuotes.ts +0 -944
@@ -21,9 +21,9 @@ export declare namespace schema {
21
21
  symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
22
22
  verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
23
23
  }, z.core.$strip>;
24
- /** Schemas for creating an executable native DEX exchange quote. */
24
+ /** Schemas for creating an executable exchange quote. */
25
25
  namespace createQuote {
26
- /** Positive token amount accepted by the DEX's uint128 arguments. */
26
+ /** Positive token amount accepted by exchange providers. */
27
27
  const Amount: z.ZodMiniString<string>;
28
28
  /** Optional token fields that require sources beyond RPC metadata. */
29
29
  const Include: z.ZodMiniEnum<{
@@ -41,14 +41,15 @@ export declare namespace schema {
41
41
  mainnet: "mainnet";
42
42
  testnet: "testnet";
43
43
  }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
44
- denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
45
44
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
46
45
  "token.logoUri": "token.logoUri";
47
46
  "token.verified": "token.verified";
48
47
  }>>>;
48
+ 'valuation.currency': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
49
49
  }, z.core.$strict>;
50
50
  /** Quote request with one pinned side and caller-selected slippage. */
51
51
  const Request: z.ZodMiniObject<{
52
+ account: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
52
53
  amount: z.ZodMiniString<string>;
53
54
  destinationToken: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
54
55
  mode: z.ZodMiniEnum<{
@@ -64,16 +65,47 @@ export declare namespace schema {
64
65
  to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
65
66
  value: z.ZodMiniTemplateLiteral<`0x${string}`>;
66
67
  }, z.core.$strip>;
68
+ const Transaction: z.ZodMiniObject<{
69
+ calls: z.ZodMiniArray<z.ZodMiniObject<{
70
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
71
+ to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
72
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
73
+ }, z.core.$strip>>;
74
+ chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
75
+ mainnet: "mainnet";
76
+ testnet: "testnet";
77
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
78
+ }, z.core.$strip>;
67
79
  /** Response-level valuation rate provenance. */
68
80
  const Meta: z.ZodMiniObject<{
69
- pricing: z.ZodMiniOptional<z.ZodMiniObject<{
81
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
70
82
  asOf: z.ZodMiniISODateTime;
71
83
  basis: z.ZodMiniLiteral<"nominal">;
72
84
  source: z.ZodMiniString<string>;
73
85
  }, z.core.$strip>>;
74
86
  }, z.core.$strip>;
75
- /** Native DEX quote plus the approval and swap calls needed to execute it. */
76
- const Response: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
87
+ /** Provider-neutral EIP-712 payload to sign before finalizing a quote. */
88
+ const TypedData: z.ZodMiniObject<{
89
+ domain: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
90
+ message: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
91
+ primaryType: z.ZodMiniString<string>;
92
+ types: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniObject<{
93
+ name: z.ZodMiniString<string>;
94
+ type: z.ZodMiniString<string>;
95
+ }, z.core.$strict>>>;
96
+ }, z.core.$strip>;
97
+ /** Provider-neutral quote and the action needed to execute it. */
98
+ const Response: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
99
+ gasEstimate: z.ZodMiniString<string>;
100
+ provider: z.ZodMiniString<string>;
101
+ approval: z.ZodMiniObject<{
102
+ calls: z.ZodMiniArray<z.ZodMiniObject<{
103
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
104
+ to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
105
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>;
108
+ status: z.ZodMiniLiteral<"approvalRequired">;
77
109
  destinationAmount: z.ZodMiniObject<{
78
110
  baseUnits: z.ZodMiniString<string>;
79
111
  currency: z.ZodMiniString<string>;
@@ -104,7 +136,7 @@ export declare namespace schema {
104
136
  address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
105
137
  }, z.core.$strip>;
106
138
  meta: z.ZodMiniOptional<z.ZodMiniObject<{
107
- pricing: z.ZodMiniOptional<z.ZodMiniObject<{
139
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
108
140
  asOf: z.ZodMiniISODateTime;
109
141
  basis: z.ZodMiniLiteral<"nominal">;
110
142
  source: z.ZodMiniString<string>;
@@ -130,6 +162,10 @@ export declare namespace schema {
130
162
  verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
131
163
  address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
132
164
  }, z.core.$strip>;
165
+ }, z.core.$strip>, z.ZodMiniObject<{
166
+ gasEstimate: z.ZodMiniString<string>;
167
+ provider: z.ZodMiniString<string>;
168
+ status: z.ZodMiniLiteral<"ready">;
133
169
  transaction: z.ZodMiniObject<{
134
170
  calls: z.ZodMiniArray<z.ZodMiniObject<{
135
171
  data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
@@ -141,7 +177,143 @@ export declare namespace schema {
141
177
  testnet: "testnet";
142
178
  }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
143
179
  }, z.core.$strip>;
180
+ destinationAmount: z.ZodMiniObject<{
181
+ baseUnits: z.ZodMiniString<string>;
182
+ currency: z.ZodMiniString<string>;
183
+ decimals: z.ZodMiniNumber<number>;
184
+ formatted: z.ZodMiniString<string>;
185
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
186
+ amount: z.ZodMiniString<string>;
187
+ currency: z.ZodMiniString<string>;
188
+ }, z.core.$strip>>>;
189
+ }, z.core.$strip>;
190
+ destinationAmountMin: z.ZodMiniObject<{
191
+ baseUnits: z.ZodMiniString<string>;
192
+ currency: z.ZodMiniString<string>;
193
+ decimals: z.ZodMiniNumber<number>;
194
+ formatted: z.ZodMiniString<string>;
195
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
196
+ amount: z.ZodMiniString<string>;
197
+ currency: z.ZodMiniString<string>;
198
+ }, z.core.$strip>>>;
199
+ }, z.core.$strip>;
200
+ destinationToken: z.ZodMiniObject<{
201
+ currency: z.ZodMiniString<string>;
202
+ decimals: z.ZodMiniNumber<number>;
203
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
204
+ name: z.ZodMiniString<string>;
205
+ symbol: z.ZodMiniString<string>;
206
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
207
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
208
+ }, z.core.$strip>;
209
+ meta: z.ZodMiniOptional<z.ZodMiniObject<{
210
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
211
+ asOf: z.ZodMiniISODateTime;
212
+ basis: z.ZodMiniLiteral<"nominal">;
213
+ source: z.ZodMiniString<string>;
214
+ }, z.core.$strip>>;
215
+ }, z.core.$strip>>;
216
+ mode: z.ZodMiniLiteral<"exactSource">;
217
+ sourceAmount: z.ZodMiniObject<{
218
+ baseUnits: z.ZodMiniString<string>;
219
+ currency: z.ZodMiniString<string>;
220
+ decimals: z.ZodMiniNumber<number>;
221
+ formatted: z.ZodMiniString<string>;
222
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
223
+ amount: z.ZodMiniString<string>;
224
+ currency: z.ZodMiniString<string>;
225
+ }, z.core.$strip>>>;
226
+ }, z.core.$strip>;
227
+ sourceToken: z.ZodMiniObject<{
228
+ currency: z.ZodMiniString<string>;
229
+ decimals: z.ZodMiniNumber<number>;
230
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
231
+ name: z.ZodMiniString<string>;
232
+ symbol: z.ZodMiniString<string>;
233
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
234
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
235
+ }, z.core.$strip>;
236
+ }, z.core.$strip>, z.ZodMiniObject<{
237
+ gasEstimate: z.ZodMiniString<string>;
238
+ provider: z.ZodMiniString<string>;
239
+ continuation: z.ZodMiniString<string>;
240
+ status: z.ZodMiniLiteral<"signatureRequired">;
241
+ typedData: z.ZodMiniObject<{
242
+ domain: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
243
+ message: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
244
+ primaryType: z.ZodMiniString<string>;
245
+ types: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniObject<{
246
+ name: z.ZodMiniString<string>;
247
+ type: z.ZodMiniString<string>;
248
+ }, z.core.$strict>>>;
249
+ }, z.core.$strip>;
250
+ destinationAmount: z.ZodMiniObject<{
251
+ baseUnits: z.ZodMiniString<string>;
252
+ currency: z.ZodMiniString<string>;
253
+ decimals: z.ZodMiniNumber<number>;
254
+ formatted: z.ZodMiniString<string>;
255
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
256
+ amount: z.ZodMiniString<string>;
257
+ currency: z.ZodMiniString<string>;
258
+ }, z.core.$strip>>>;
259
+ }, z.core.$strip>;
260
+ destinationAmountMin: z.ZodMiniObject<{
261
+ baseUnits: z.ZodMiniString<string>;
262
+ currency: z.ZodMiniString<string>;
263
+ decimals: z.ZodMiniNumber<number>;
264
+ formatted: z.ZodMiniString<string>;
265
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
266
+ amount: z.ZodMiniString<string>;
267
+ currency: z.ZodMiniString<string>;
268
+ }, z.core.$strip>>>;
269
+ }, z.core.$strip>;
270
+ destinationToken: z.ZodMiniObject<{
271
+ currency: z.ZodMiniString<string>;
272
+ decimals: z.ZodMiniNumber<number>;
273
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
274
+ name: z.ZodMiniString<string>;
275
+ symbol: z.ZodMiniString<string>;
276
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
277
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
278
+ }, z.core.$strip>;
279
+ meta: z.ZodMiniOptional<z.ZodMiniObject<{
280
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
281
+ asOf: z.ZodMiniISODateTime;
282
+ basis: z.ZodMiniLiteral<"nominal">;
283
+ source: z.ZodMiniString<string>;
284
+ }, z.core.$strip>>;
285
+ }, z.core.$strip>>;
286
+ mode: z.ZodMiniLiteral<"exactSource">;
287
+ sourceAmount: z.ZodMiniObject<{
288
+ baseUnits: z.ZodMiniString<string>;
289
+ currency: z.ZodMiniString<string>;
290
+ decimals: z.ZodMiniNumber<number>;
291
+ formatted: z.ZodMiniString<string>;
292
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
293
+ amount: z.ZodMiniString<string>;
294
+ currency: z.ZodMiniString<string>;
295
+ }, z.core.$strip>>>;
296
+ }, z.core.$strip>;
297
+ sourceToken: z.ZodMiniObject<{
298
+ currency: z.ZodMiniString<string>;
299
+ decimals: z.ZodMiniNumber<number>;
300
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
301
+ name: z.ZodMiniString<string>;
302
+ symbol: z.ZodMiniString<string>;
303
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
304
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
305
+ }, z.core.$strip>;
144
306
  }, z.core.$strip>, z.ZodMiniObject<{
307
+ gasEstimate: z.ZodMiniString<string>;
308
+ provider: z.ZodMiniString<string>;
309
+ approval: z.ZodMiniObject<{
310
+ calls: z.ZodMiniArray<z.ZodMiniObject<{
311
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
312
+ to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
313
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
314
+ }, z.core.$strip>>;
315
+ }, z.core.$strip>;
316
+ status: z.ZodMiniLiteral<"approvalRequired">;
145
317
  destinationAmount: z.ZodMiniObject<{
146
318
  baseUnits: z.ZodMiniString<string>;
147
319
  currency: z.ZodMiniString<string>;
@@ -162,7 +334,7 @@ export declare namespace schema {
162
334
  address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
163
335
  }, z.core.$strip>;
164
336
  meta: z.ZodMiniOptional<z.ZodMiniObject<{
165
- pricing: z.ZodMiniOptional<z.ZodMiniObject<{
337
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
166
338
  asOf: z.ZodMiniISODateTime;
167
339
  basis: z.ZodMiniLiteral<"nominal">;
168
340
  source: z.ZodMiniString<string>;
@@ -198,6 +370,10 @@ export declare namespace schema {
198
370
  verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
199
371
  address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
200
372
  }, z.core.$strip>;
373
+ }, z.core.$strip>, z.ZodMiniObject<{
374
+ gasEstimate: z.ZodMiniString<string>;
375
+ provider: z.ZodMiniString<string>;
376
+ status: z.ZodMiniLiteral<"ready">;
201
377
  transaction: z.ZodMiniObject<{
202
378
  calls: z.ZodMiniArray<z.ZodMiniObject<{
203
379
  data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
@@ -209,115 +385,266 @@ export declare namespace schema {
209
385
  testnet: "testnet";
210
386
  }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
211
387
  }, z.core.$strip>;
212
- }, z.core.$strip>], "mode">;
213
- }
214
- /** Schemas for the getPairs operation. */
215
- namespace getPairs {
216
- /**
217
- * Optional resources for the pair list: the per-row `tokens` embed plus the
218
- * response-wide capped `totalCount`. The detail route keeps its own
219
- * `tokens`-only {@link getPair.Include}.
220
- */
221
- const Include: z.ZodMiniEnum<{
222
- tokens: "tokens";
223
- totalCount: "totalCount";
224
- }>;
225
- /**
226
- * Parses a comma-separated `include` query value into a list of optional
227
- * resources to embed. Extra lookups (e.g. token metadata) only run when
228
- * explicitly requested, keeping the base pair page fast.
229
- */
230
- const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
231
- tokens: "tokens";
232
- totalCount: "totalCount";
233
- }>>>;
234
- /** Query parameters for trading pair list requests. */
235
- const Query: z.ZodMiniObject<{
236
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
237
- mainnet: "mainnet";
238
- testnet: "testnet";
239
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
240
- cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
241
- include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
242
- tokens: "tokens";
243
- totalCount: "totalCount";
244
- }>>>;
245
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
246
- order: z.ZodMiniDefault<z.ZodMiniEnum<{
247
- asc: "asc";
248
- desc: "desc";
249
- }>>;
250
- page: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
251
- sort: z.ZodMiniDefault<z.ZodMiniEnum<{
252
- created: "created";
253
- liquidity: "liquidity";
254
- }>>;
255
- }, z.core.$strict>;
256
- /** A single trading pair on the stablecoin DEX. */
257
- const Pair: z.ZodMiniObject<{
258
- base: z.ZodMiniObject<{
259
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
260
- currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
261
- decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
262
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
263
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
264
- symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
265
- verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
388
+ destinationAmount: z.ZodMiniObject<{
389
+ baseUnits: z.ZodMiniString<string>;
390
+ currency: z.ZodMiniString<string>;
391
+ decimals: z.ZodMiniNumber<number>;
392
+ formatted: z.ZodMiniString<string>;
393
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
394
+ amount: z.ZodMiniString<string>;
395
+ currency: z.ZodMiniString<string>;
396
+ }, z.core.$strip>>>;
266
397
  }, z.core.$strip>;
267
- blockNumber: z.ZodMiniNumber<number>;
268
- id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
269
- key: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
270
- liquidity: z.ZodMiniOptional<z.ZodMiniString<string>>;
271
- quote: z.ZodMiniObject<{
272
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
273
- currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
274
- decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
275
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
276
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
277
- symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
398
+ destinationToken: z.ZodMiniObject<{
399
+ currency: z.ZodMiniString<string>;
400
+ decimals: z.ZodMiniNumber<number>;
401
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
402
+ name: z.ZodMiniString<string>;
403
+ symbol: z.ZodMiniString<string>;
278
404
  verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
405
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
279
406
  }, z.core.$strip>;
280
- timestamp: z.ZodMiniISODateTime;
281
- transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
282
- }, z.core.$strip>;
283
- /** Page of trading pairs on the stablecoin DEX, ordered by creation. */
284
- const Response: z.ZodMiniObject<{
285
- data: z.ZodMiniArray<z.ZodMiniObject<{
286
- base: z.ZodMiniObject<{
287
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
288
- currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
289
- decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
290
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
291
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
292
- symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
293
- verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
294
- }, z.core.$strip>;
295
- blockNumber: z.ZodMiniNumber<number>;
296
- id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
297
- key: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
298
- liquidity: z.ZodMiniOptional<z.ZodMiniString<string>>;
299
- quote: z.ZodMiniObject<{
300
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
301
- currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
302
- decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
303
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
304
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
305
- symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
306
- verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
307
- }, z.core.$strip>;
308
- timestamp: z.ZodMiniISODateTime;
309
- transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
310
- }, z.core.$strip>>;
311
407
  meta: z.ZodMiniOptional<z.ZodMiniObject<{
312
- totalCountCapped: z.ZodMiniBoolean<boolean>;
313
- totalCount: z.ZodMiniNumber<number>;
408
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
409
+ asOf: z.ZodMiniISODateTime;
410
+ basis: z.ZodMiniLiteral<"nominal">;
411
+ source: z.ZodMiniString<string>;
412
+ }, z.core.$strip>>;
314
413
  }, z.core.$strip>>;
315
- nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
316
- }, z.core.$strip>;
317
- }
318
- /** Schemas for the getPair operation (single trading pair detail). */
319
- namespace getPair {
320
- /**
414
+ mode: z.ZodMiniLiteral<"exactDestination">;
415
+ sourceAmount: z.ZodMiniObject<{
416
+ baseUnits: z.ZodMiniString<string>;
417
+ currency: z.ZodMiniString<string>;
418
+ decimals: z.ZodMiniNumber<number>;
419
+ formatted: z.ZodMiniString<string>;
420
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
421
+ amount: z.ZodMiniString<string>;
422
+ currency: z.ZodMiniString<string>;
423
+ }, z.core.$strip>>>;
424
+ }, z.core.$strip>;
425
+ sourceAmountMax: z.ZodMiniObject<{
426
+ baseUnits: z.ZodMiniString<string>;
427
+ currency: z.ZodMiniString<string>;
428
+ decimals: z.ZodMiniNumber<number>;
429
+ formatted: z.ZodMiniString<string>;
430
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
431
+ amount: z.ZodMiniString<string>;
432
+ currency: z.ZodMiniString<string>;
433
+ }, z.core.$strip>>>;
434
+ }, z.core.$strip>;
435
+ sourceToken: z.ZodMiniObject<{
436
+ currency: z.ZodMiniString<string>;
437
+ decimals: z.ZodMiniNumber<number>;
438
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
439
+ name: z.ZodMiniString<string>;
440
+ symbol: z.ZodMiniString<string>;
441
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
442
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
443
+ }, z.core.$strip>;
444
+ }, z.core.$strip>, z.ZodMiniObject<{
445
+ gasEstimate: z.ZodMiniString<string>;
446
+ provider: z.ZodMiniString<string>;
447
+ continuation: z.ZodMiniString<string>;
448
+ status: z.ZodMiniLiteral<"signatureRequired">;
449
+ typedData: z.ZodMiniObject<{
450
+ domain: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
451
+ message: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
452
+ primaryType: z.ZodMiniString<string>;
453
+ types: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniObject<{
454
+ name: z.ZodMiniString<string>;
455
+ type: z.ZodMiniString<string>;
456
+ }, z.core.$strict>>>;
457
+ }, z.core.$strip>;
458
+ destinationAmount: z.ZodMiniObject<{
459
+ baseUnits: z.ZodMiniString<string>;
460
+ currency: z.ZodMiniString<string>;
461
+ decimals: z.ZodMiniNumber<number>;
462
+ formatted: z.ZodMiniString<string>;
463
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
464
+ amount: z.ZodMiniString<string>;
465
+ currency: z.ZodMiniString<string>;
466
+ }, z.core.$strip>>>;
467
+ }, z.core.$strip>;
468
+ destinationToken: z.ZodMiniObject<{
469
+ currency: z.ZodMiniString<string>;
470
+ decimals: z.ZodMiniNumber<number>;
471
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
472
+ name: z.ZodMiniString<string>;
473
+ symbol: z.ZodMiniString<string>;
474
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
475
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
476
+ }, z.core.$strip>;
477
+ meta: z.ZodMiniOptional<z.ZodMiniObject<{
478
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
479
+ asOf: z.ZodMiniISODateTime;
480
+ basis: z.ZodMiniLiteral<"nominal">;
481
+ source: z.ZodMiniString<string>;
482
+ }, z.core.$strip>>;
483
+ }, z.core.$strip>>;
484
+ mode: z.ZodMiniLiteral<"exactDestination">;
485
+ sourceAmount: z.ZodMiniObject<{
486
+ baseUnits: z.ZodMiniString<string>;
487
+ currency: z.ZodMiniString<string>;
488
+ decimals: z.ZodMiniNumber<number>;
489
+ formatted: z.ZodMiniString<string>;
490
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
491
+ amount: z.ZodMiniString<string>;
492
+ currency: z.ZodMiniString<string>;
493
+ }, z.core.$strip>>>;
494
+ }, z.core.$strip>;
495
+ sourceAmountMax: z.ZodMiniObject<{
496
+ baseUnits: z.ZodMiniString<string>;
497
+ currency: z.ZodMiniString<string>;
498
+ decimals: z.ZodMiniNumber<number>;
499
+ formatted: z.ZodMiniString<string>;
500
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
501
+ amount: z.ZodMiniString<string>;
502
+ currency: z.ZodMiniString<string>;
503
+ }, z.core.$strip>>>;
504
+ }, z.core.$strip>;
505
+ sourceToken: z.ZodMiniObject<{
506
+ currency: z.ZodMiniString<string>;
507
+ decimals: z.ZodMiniNumber<number>;
508
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
509
+ name: z.ZodMiniString<string>;
510
+ symbol: z.ZodMiniString<string>;
511
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
512
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
513
+ }, z.core.$strip>;
514
+ }, z.core.$strip>]>;
515
+ }
516
+ /** Schemas for finishing a quote after a provider-requested signature. */
517
+ namespace executeQuote {
518
+ /** Signed continuation request. */
519
+ const Request: z.ZodMiniObject<{
520
+ account: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
521
+ continuation: z.ZodMiniString<string>;
522
+ provider: z.ZodMiniString<string>;
523
+ signature: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
524
+ }, z.core.$strict>;
525
+ /** Final transaction plan. */
526
+ const Response: z.ZodMiniObject<{
527
+ provider: z.ZodMiniString<string>;
528
+ transaction: z.ZodMiniObject<{
529
+ calls: z.ZodMiniArray<z.ZodMiniObject<{
530
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
531
+ to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
532
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
533
+ }, z.core.$strip>>;
534
+ chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
535
+ mainnet: "mainnet";
536
+ testnet: "testnet";
537
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
538
+ }, z.core.$strip>;
539
+ }, z.core.$strip>;
540
+ }
541
+ /** Schemas for the getPairs operation. */
542
+ namespace getPairs {
543
+ /**
544
+ * Optional resources for the pair list: the per-row `tokens` embed plus the
545
+ * response-wide capped `totalCount`. The detail route keeps its own
546
+ * `tokens`-only {@link getPair.Include}.
547
+ */
548
+ const Include: z.ZodMiniEnum<{
549
+ tokens: "tokens";
550
+ totalCount: "totalCount";
551
+ }>;
552
+ /**
553
+ * Parses a comma-separated `include` query value into a list of optional
554
+ * resources to embed. Extra lookups (e.g. token metadata) only run when
555
+ * explicitly requested, keeping the base pair page fast.
556
+ */
557
+ const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
558
+ tokens: "tokens";
559
+ totalCount: "totalCount";
560
+ }>>>;
561
+ /** Query parameters for trading pair list requests. */
562
+ const Query: z.ZodMiniObject<{
563
+ chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
564
+ mainnet: "mainnet";
565
+ testnet: "testnet";
566
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
567
+ cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
568
+ include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
569
+ tokens: "tokens";
570
+ totalCount: "totalCount";
571
+ }>>>;
572
+ limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
573
+ order: z.ZodMiniDefault<z.ZodMiniEnum<{
574
+ asc: "asc";
575
+ desc: "desc";
576
+ }>>;
577
+ page: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
578
+ sort: z.ZodMiniDefault<z.ZodMiniEnum<{
579
+ created: "created";
580
+ liquidity: "liquidity";
581
+ }>>;
582
+ }, z.core.$strict>;
583
+ /** A single trading pair on the stablecoin DEX. */
584
+ const Pair: z.ZodMiniObject<{
585
+ base: z.ZodMiniObject<{
586
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
587
+ currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
588
+ decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
589
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
590
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
591
+ symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
592
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
593
+ }, z.core.$strip>;
594
+ blockNumber: z.ZodMiniNumber<number>;
595
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
596
+ key: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
597
+ liquidity: z.ZodMiniOptional<z.ZodMiniString<string>>;
598
+ quote: z.ZodMiniObject<{
599
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
600
+ currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
601
+ decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
602
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
603
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
604
+ symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
605
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
606
+ }, z.core.$strip>;
607
+ timestamp: z.ZodMiniISODateTime;
608
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
609
+ }, z.core.$strip>;
610
+ /** Page of trading pairs on the stablecoin DEX, ordered by creation. */
611
+ const Response: z.ZodMiniObject<{
612
+ data: z.ZodMiniArray<z.ZodMiniObject<{
613
+ base: z.ZodMiniObject<{
614
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
615
+ currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
616
+ decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
617
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
618
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
619
+ symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
620
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
621
+ }, z.core.$strip>;
622
+ blockNumber: z.ZodMiniNumber<number>;
623
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
624
+ key: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
625
+ liquidity: z.ZodMiniOptional<z.ZodMiniString<string>>;
626
+ quote: z.ZodMiniObject<{
627
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
628
+ currency: z.ZodMiniOptional<z.ZodMiniString<string>>;
629
+ decimals: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
630
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
631
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
632
+ symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
633
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
634
+ }, z.core.$strip>;
635
+ timestamp: z.ZodMiniISODateTime;
636
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
637
+ }, z.core.$strip>>;
638
+ meta: z.ZodMiniOptional<z.ZodMiniObject<{
639
+ totalCountCapped: z.ZodMiniBoolean<boolean>;
640
+ totalCount: z.ZodMiniNumber<number>;
641
+ }, z.core.$strip>>;
642
+ nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
643
+ }, z.core.$strip>;
644
+ }
645
+ /** Schemas for the getPair operation (single trading pair detail). */
646
+ namespace getPair {
647
+ /**
321
648
  * Path parameter for pair detail requests. On-chain, a pair's quote is
322
649
  * intrinsic to its base token (the precompile resolves it from the TIP-20's
323
650
  * `quote_token()`), so the base address alone identifies the pair.
@@ -395,7 +722,6 @@ export declare namespace schema {
395
722
  testnet: "testnet";
396
723
  }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
397
724
  cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
398
- denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
399
725
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
400
726
  "token.logoUri": "token.logoUri";
401
727
  "token.verified": "token.verified";
@@ -411,6 +737,7 @@ export declare namespace schema {
411
737
  'timestamp.from': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniISODateTime, z.ZodMiniTransform<string, string>>>;
412
738
  'timestamp.to': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniISODateTime, z.ZodMiniTransform<string, string>>>;
413
739
  transactionHash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
740
+ 'valuation.currency': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
414
741
  }, z.core.$strict>;
415
742
  /** One swap-side token with RPC metadata and optional curated fields. */
416
743
  const SwapSide: z.ZodMiniObject<{
@@ -581,7 +908,7 @@ export declare namespace schema {
581
908
  */
582
909
  /** Page-level resources: valuation rate provenance. */
583
910
  const Meta: z.ZodMiniObject<{
584
- pricing: z.ZodMiniOptional<z.ZodMiniObject<{
911
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
585
912
  asOf: z.ZodMiniISODateTime;
586
913
  basis: z.ZodMiniLiteral<"nominal">;
587
914
  source: z.ZodMiniString<string>;
@@ -686,7 +1013,7 @@ export declare namespace schema {
686
1013
  transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
687
1014
  }, z.core.$strip>>;
688
1015
  meta: z.ZodMiniOptional<z.ZodMiniObject<{
689
- pricing: z.ZodMiniOptional<z.ZodMiniObject<{
1016
+ valuation: z.ZodMiniOptional<z.ZodMiniObject<{
690
1017
  asOf: z.ZodMiniISODateTime;
691
1018
  basis: z.ZodMiniLiteral<"nominal">;
692
1019
  source: z.ZodMiniString<string>;
@@ -1262,7 +1589,424 @@ export declare namespace schema {
1262
1589
  export declare function exchanges(options?: exchanges.Options): import("hono/hono-base").HonoBase<App.Environment, {
1263
1590
  "/v1/exchange/quotes": {
1264
1591
  $post: {
1592
+ output: null;
1593
+ outputFormat: "body";
1594
+ status: 402;
1595
+ input: {
1596
+ query?: {
1597
+ chainId?: string | string[];
1598
+ include?: string | string[];
1599
+ 'valuation.currency'?: string | string[];
1600
+ } | undefined;
1601
+ } & {
1602
+ json: {
1603
+ account?: `0x${string}` | undefined;
1604
+ amount: string;
1605
+ destinationToken: `0x${string}`;
1606
+ mode: "exactDestination" | "exactSource";
1607
+ slippageBps: number;
1608
+ sourceToken: `0x${string}`;
1609
+ };
1610
+ };
1611
+ } | {
1612
+ output: {
1613
+ error: {
1614
+ code: "api_key_malformed";
1615
+ details?: readonly Response.error.Detail[] | undefined;
1616
+ message: string;
1617
+ };
1618
+ requestId: string;
1619
+ };
1620
+ outputFormat: "json";
1621
+ status: 400;
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
+ } | {
1265
1639
  output: {
1640
+ error: {
1641
+ code: "api_key_invalid" | "api_key_missing";
1642
+ details?: readonly Response.error.Detail[] | undefined;
1643
+ message: string;
1644
+ };
1645
+ requestId: string;
1646
+ };
1647
+ outputFormat: "json";
1648
+ status: 401;
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
+ };
1665
+ } | {
1666
+ output: {
1667
+ error: {
1668
+ code: "api_key_forbidden";
1669
+ details?: readonly Response.error.Detail[] | undefined;
1670
+ message: string;
1671
+ };
1672
+ requestId: string;
1673
+ };
1674
+ outputFormat: "json";
1675
+ status: 403;
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: "payment_required" | "rate_limit_exceeded";
1696
+ details?: readonly Response.error.Detail[] | undefined;
1697
+ message: string;
1698
+ };
1699
+ requestId: string;
1700
+ };
1701
+ outputFormat: "json";
1702
+ status: 429;
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: "query_invalid";
1723
+ details?: readonly Response.error.Detail[] | undefined;
1724
+ message: string;
1725
+ };
1726
+ requestId: string;
1727
+ };
1728
+ outputFormat: "json";
1729
+ status: 400;
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: "upstream_error";
1750
+ details?: readonly Response.error.Detail[] | undefined;
1751
+ message: string;
1752
+ };
1753
+ requestId: string;
1754
+ };
1755
+ outputFormat: "json";
1756
+ status: 502;
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
+ };
1266
2010
  destinationAmount: {
1267
2011
  baseUnits: string;
1268
2012
  currency: string;
@@ -1293,7 +2037,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1293
2037
  address: `0x${string}`;
1294
2038
  };
1295
2039
  meta?: {
1296
- pricing?: {
2040
+ valuation?: {
1297
2041
  asOf: string;
1298
2042
  basis: "nominal";
1299
2043
  source: string;
@@ -1319,15 +2063,17 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1319
2063
  verified?: boolean | undefined;
1320
2064
  address: `0x${string}`;
1321
2065
  };
1322
- transaction: {
2066
+ } | {
2067
+ gasEstimate: string;
2068
+ provider: string;
2069
+ approval: {
1323
2070
  calls: {
1324
2071
  data: `0x${string}`;
1325
2072
  to: `0x${string}`;
1326
2073
  value: `0x${string}`;
1327
2074
  }[];
1328
- chainId: number;
1329
2075
  };
1330
- } | {
2076
+ status: "approvalRequired";
1331
2077
  destinationAmount: {
1332
2078
  baseUnits: string;
1333
2079
  currency: string;
@@ -1348,7 +2094,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1348
2094
  address: `0x${string}`;
1349
2095
  };
1350
2096
  meta?: {
1351
- pricing?: {
2097
+ valuation?: {
1352
2098
  asOf: string;
1353
2099
  basis: "nominal";
1354
2100
  source: string;
@@ -1384,6 +2130,10 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1384
2130
  verified?: boolean | undefined;
1385
2131
  address: `0x${string}`;
1386
2132
  };
2133
+ } | {
2134
+ gasEstimate: string;
2135
+ provider: string;
2136
+ status: "ready";
1387
2137
  transaction: {
1388
2138
  calls: {
1389
2139
  data: `0x${string}`;
@@ -1392,17 +2142,150 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1392
2142
  }[];
1393
2143
  chainId: number;
1394
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
+ };
1395
2277
  };
1396
2278
  outputFormat: "json";
1397
2279
  status: 200;
1398
2280
  input: {
1399
2281
  query?: {
1400
2282
  chainId?: string | string[];
1401
- denomination?: string | string[];
1402
2283
  include?: string | string[];
2284
+ 'valuation.currency'?: string | string[];
1403
2285
  } | undefined;
1404
2286
  } & {
1405
2287
  json: {
2288
+ account?: `0x${string}` | undefined;
1406
2289
  amount: string;
1407
2290
  destinationToken: `0x${string}`;
1408
2291
  mode: "exactDestination" | "exactSource";
@@ -1410,6 +2293,28 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1410
2293
  sourceToken: `0x${string}`;
1411
2294
  };
1412
2295
  };
2296
+ };
2297
+ };
2298
+ } & {
2299
+ "/v1/exchange/quotes/execute": {
2300
+ $post: {
2301
+ output: null;
2302
+ outputFormat: "body";
2303
+ status: 402;
2304
+ input: {
2305
+ query?: {
2306
+ chainId?: string | string[];
2307
+ include?: string | string[];
2308
+ 'valuation.currency'?: string | string[];
2309
+ } | undefined;
2310
+ } & {
2311
+ json: {
2312
+ account: `0x${string}`;
2313
+ continuation: string;
2314
+ provider: string;
2315
+ signature: string;
2316
+ };
2317
+ };
1413
2318
  } | {
1414
2319
  output: {
1415
2320
  error: {
@@ -1424,243 +2329,243 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1424
2329
  input: {
1425
2330
  query?: {
1426
2331
  chainId?: string | string[];
1427
- denomination?: string | string[];
1428
2332
  include?: string | string[];
2333
+ 'valuation.currency'?: string | string[];
1429
2334
  } | undefined;
1430
2335
  } & {
1431
2336
  json: {
1432
- amount: string;
1433
- destinationToken: `0x${string}`;
1434
- mode: "exactDestination" | "exactSource";
1435
- slippageBps: number;
1436
- sourceToken: `0x${string}`;
2337
+ account: `0x${string}`;
2338
+ continuation: string;
2339
+ provider: string;
2340
+ signature: string;
1437
2341
  };
1438
2342
  };
1439
2343
  } | {
1440
2344
  output: {
1441
2345
  error: {
1442
- code: "query_invalid";
2346
+ code: "api_key_invalid" | "api_key_missing";
1443
2347
  details?: readonly Response.error.Detail[] | undefined;
1444
2348
  message: string;
1445
2349
  };
1446
2350
  requestId: string;
1447
2351
  };
1448
2352
  outputFormat: "json";
1449
- status: 400;
2353
+ status: 401;
1450
2354
  input: {
1451
2355
  query?: {
1452
2356
  chainId?: string | string[];
1453
- denomination?: string | string[];
1454
2357
  include?: string | string[];
2358
+ 'valuation.currency'?: string | string[];
1455
2359
  } | undefined;
1456
2360
  } & {
1457
2361
  json: {
1458
- amount: string;
1459
- destinationToken: `0x${string}`;
1460
- mode: "exactDestination" | "exactSource";
1461
- slippageBps: number;
1462
- sourceToken: `0x${string}`;
2362
+ account: `0x${string}`;
2363
+ continuation: string;
2364
+ provider: string;
2365
+ signature: string;
1463
2366
  };
1464
2367
  };
1465
2368
  } | {
1466
2369
  output: {
1467
2370
  error: {
1468
- code: "body_invalid";
2371
+ code: "api_key_forbidden";
1469
2372
  details?: readonly Response.error.Detail[] | undefined;
1470
2373
  message: string;
1471
2374
  };
1472
2375
  requestId: string;
1473
2376
  };
1474
2377
  outputFormat: "json";
1475
- status: 400;
2378
+ status: 403;
1476
2379
  input: {
1477
2380
  query?: {
1478
2381
  chainId?: string | string[];
1479
- denomination?: string | string[];
1480
2382
  include?: string | string[];
2383
+ 'valuation.currency'?: string | string[];
1481
2384
  } | undefined;
1482
2385
  } & {
1483
2386
  json: {
1484
- amount: string;
1485
- destinationToken: `0x${string}`;
1486
- mode: "exactDestination" | "exactSource";
1487
- slippageBps: number;
1488
- sourceToken: `0x${string}`;
2387
+ account: `0x${string}`;
2388
+ continuation: string;
2389
+ provider: string;
2390
+ signature: string;
1489
2391
  };
1490
2392
  };
1491
2393
  } | {
1492
2394
  output: {
1493
2395
  error: {
1494
- code: "quote_amount_out_of_range";
2396
+ code: "payment_required" | "rate_limit_exceeded";
1495
2397
  details?: readonly Response.error.Detail[] | undefined;
1496
2398
  message: string;
1497
2399
  };
1498
2400
  requestId: string;
1499
2401
  };
1500
2402
  outputFormat: "json";
1501
- status: 400;
2403
+ status: 429;
1502
2404
  input: {
1503
2405
  query?: {
1504
2406
  chainId?: string | string[];
1505
- denomination?: string | string[];
1506
2407
  include?: string | string[];
2408
+ 'valuation.currency'?: string | string[];
1507
2409
  } | undefined;
1508
2410
  } & {
1509
2411
  json: {
1510
- amount: string;
1511
- destinationToken: `0x${string}`;
1512
- mode: "exactDestination" | "exactSource";
1513
- slippageBps: number;
1514
- sourceToken: `0x${string}`;
2412
+ account: `0x${string}`;
2413
+ continuation: string;
2414
+ provider: string;
2415
+ signature: string;
1515
2416
  };
1516
2417
  };
1517
2418
  } | {
1518
2419
  output: {
1519
2420
  error: {
1520
- code: "api_key_invalid" | "api_key_missing";
2421
+ code: "query_invalid";
1521
2422
  details?: readonly Response.error.Detail[] | undefined;
1522
2423
  message: string;
1523
2424
  };
1524
2425
  requestId: string;
1525
2426
  };
1526
2427
  outputFormat: "json";
1527
- status: 401;
2428
+ status: 400;
1528
2429
  input: {
1529
2430
  query?: {
1530
2431
  chainId?: string | string[];
1531
- denomination?: string | string[];
1532
2432
  include?: string | string[];
2433
+ 'valuation.currency'?: string | string[];
1533
2434
  } | undefined;
1534
2435
  } & {
1535
2436
  json: {
1536
- amount: string;
1537
- destinationToken: `0x${string}`;
1538
- mode: "exactDestination" | "exactSource";
1539
- slippageBps: number;
1540
- sourceToken: `0x${string}`;
2437
+ account: `0x${string}`;
2438
+ continuation: string;
2439
+ provider: string;
2440
+ signature: string;
1541
2441
  };
1542
2442
  };
1543
2443
  } | {
1544
- output: null;
1545
- outputFormat: "body";
1546
- status: 402;
2444
+ output: {
2445
+ error: {
2446
+ code: "upstream_error";
2447
+ details?: readonly Response.error.Detail[] | undefined;
2448
+ message: string;
2449
+ };
2450
+ requestId: string;
2451
+ };
2452
+ outputFormat: "json";
2453
+ status: 502;
1547
2454
  input: {
1548
2455
  query?: {
1549
2456
  chainId?: string | string[];
1550
- denomination?: string | string[];
1551
2457
  include?: string | string[];
2458
+ 'valuation.currency'?: string | string[];
1552
2459
  } | undefined;
1553
2460
  } & {
1554
2461
  json: {
1555
- amount: string;
1556
- destinationToken: `0x${string}`;
1557
- mode: "exactDestination" | "exactSource";
1558
- slippageBps: number;
1559
- sourceToken: `0x${string}`;
2462
+ account: `0x${string}`;
2463
+ continuation: string;
2464
+ provider: string;
2465
+ signature: string;
1560
2466
  };
1561
2467
  };
1562
2468
  } | {
1563
2469
  output: {
1564
2470
  error: {
1565
- code: "api_key_forbidden";
2471
+ code: "body_invalid";
1566
2472
  details?: readonly Response.error.Detail[] | undefined;
1567
2473
  message: string;
1568
2474
  };
1569
2475
  requestId: string;
1570
2476
  };
1571
2477
  outputFormat: "json";
1572
- status: 403;
2478
+ status: 400;
1573
2479
  input: {
1574
2480
  query?: {
1575
2481
  chainId?: string | string[];
1576
- denomination?: string | string[];
1577
2482
  include?: string | string[];
2483
+ 'valuation.currency'?: string | string[];
1578
2484
  } | undefined;
1579
2485
  } & {
1580
2486
  json: {
1581
- amount: string;
1582
- destinationToken: `0x${string}`;
1583
- mode: "exactDestination" | "exactSource";
1584
- slippageBps: number;
1585
- sourceToken: `0x${string}`;
2487
+ account: `0x${string}`;
2488
+ continuation: string;
2489
+ provider: string;
2490
+ signature: string;
1586
2491
  };
1587
2492
  };
1588
2493
  } | {
1589
2494
  output: {
1590
2495
  error: {
1591
- code: "quote_not_available";
2496
+ code: "swap_provider_invalid";
1592
2497
  details?: readonly Response.error.Detail[] | undefined;
1593
2498
  message: string;
1594
2499
  };
1595
2500
  requestId: string;
1596
2501
  };
1597
2502
  outputFormat: "json";
1598
- status: 404;
2503
+ status: 400;
1599
2504
  input: {
1600
2505
  query?: {
1601
2506
  chainId?: string | string[];
1602
- denomination?: string | string[];
1603
2507
  include?: string | string[];
2508
+ 'valuation.currency'?: string | string[];
1604
2509
  } | undefined;
1605
2510
  } & {
1606
2511
  json: {
1607
- amount: string;
1608
- destinationToken: `0x${string}`;
1609
- mode: "exactDestination" | "exactSource";
1610
- slippageBps: number;
1611
- sourceToken: `0x${string}`;
2512
+ account: `0x${string}`;
2513
+ continuation: string;
2514
+ provider: string;
2515
+ signature: string;
1612
2516
  };
1613
2517
  };
1614
2518
  } | {
1615
2519
  output: {
1616
- error: {
1617
- code: "payment_required" | "rate_limit_exceeded";
1618
- details?: readonly Response.error.Detail[] | undefined;
1619
- message: string;
2520
+ provider: string;
2521
+ transaction: {
2522
+ calls: {
2523
+ data: `0x${string}`;
2524
+ to: `0x${string}`;
2525
+ value: `0x${string}`;
2526
+ }[];
2527
+ chainId: number;
1620
2528
  };
1621
- requestId: string;
1622
2529
  };
1623
2530
  outputFormat: "json";
1624
- status: 429;
2531
+ status: 200;
1625
2532
  input: {
1626
2533
  query?: {
1627
2534
  chainId?: string | string[];
1628
- denomination?: string | string[];
1629
2535
  include?: string | string[];
2536
+ 'valuation.currency'?: string | string[];
1630
2537
  } | undefined;
1631
2538
  } & {
1632
2539
  json: {
1633
- amount: string;
1634
- destinationToken: `0x${string}`;
1635
- mode: "exactDestination" | "exactSource";
1636
- slippageBps: number;
1637
- sourceToken: `0x${string}`;
2540
+ account: `0x${string}`;
2541
+ continuation: string;
2542
+ provider: string;
2543
+ signature: string;
1638
2544
  };
1639
2545
  };
1640
2546
  } | {
1641
2547
  output: {
1642
2548
  error: {
1643
- code: "upstream_error";
2549
+ code: "swap_continuation_invalid";
1644
2550
  details?: readonly Response.error.Detail[] | undefined;
1645
2551
  message: string;
1646
2552
  };
1647
2553
  requestId: string;
1648
2554
  };
1649
2555
  outputFormat: "json";
1650
- status: 502;
2556
+ status: 400;
1651
2557
  input: {
1652
2558
  query?: {
1653
2559
  chainId?: string | string[];
1654
- denomination?: string | string[];
1655
2560
  include?: string | string[];
2561
+ 'valuation.currency'?: string | string[];
1656
2562
  } | undefined;
1657
2563
  } & {
1658
2564
  json: {
1659
- amount: string;
1660
- destinationToken: `0x${string}`;
1661
- mode: "exactDestination" | "exactSource";
1662
- slippageBps: number;
1663
- sourceToken: `0x${string}`;
2565
+ account: `0x${string}`;
2566
+ continuation: string;
2567
+ provider: string;
2568
+ signature: string;
1664
2569
  };
1665
2570
  };
1666
2571
  };
@@ -1668,119 +2573,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1668
2573
  } & {
1669
2574
  "/v1/exchange/swaps": {
1670
2575
  $get: {
1671
- output: {
1672
- data: {
1673
- blockNumber: number;
1674
- destinationAmount: {
1675
- baseUnits: string;
1676
- currency: string;
1677
- decimals: number;
1678
- formatted: string;
1679
- valuation?: {
1680
- amount: string;
1681
- currency: string;
1682
- } | null | undefined;
1683
- };
1684
- destinationToken: {
1685
- address: `0x${string}`;
1686
- currency: string;
1687
- decimals: number;
1688
- logoUri?: string | undefined;
1689
- name: string;
1690
- symbol: string;
1691
- verified?: boolean | undefined;
1692
- };
1693
- filledAt: string;
1694
- fills: {
1695
- destinationAmount: {
1696
- baseUnits: string;
1697
- currency: string;
1698
- decimals: number;
1699
- formatted: string;
1700
- valuation?: {
1701
- amount: string;
1702
- currency: string;
1703
- } | null | undefined;
1704
- };
1705
- destinationToken: {
1706
- address: `0x${string}`;
1707
- currency: string;
1708
- decimals: number;
1709
- logoUri?: string | undefined;
1710
- name: string;
1711
- symbol: string;
1712
- verified?: boolean | undefined;
1713
- };
1714
- logIndex: number;
1715
- maker: `0x${string}`;
1716
- orderId: string;
1717
- partialFill: boolean;
1718
- price: string;
1719
- sourceAmount: {
1720
- baseUnits: string;
1721
- currency: string;
1722
- decimals: number;
1723
- formatted: string;
1724
- valuation?: {
1725
- amount: string;
1726
- currency: string;
1727
- } | null | undefined;
1728
- };
1729
- sourceToken: {
1730
- address: `0x${string}`;
1731
- currency: string;
1732
- decimals: number;
1733
- logoUri?: string | undefined;
1734
- name: string;
1735
- symbol: string;
1736
- verified?: boolean | undefined;
1737
- };
1738
- }[];
1739
- id: string;
1740
- logIndex: number;
1741
- mode: "exactDestination" | "exactSource" | null;
1742
- rate: string;
1743
- route: `0x${string}`[];
1744
- sourceAmount: {
1745
- baseUnits: string;
1746
- currency: string;
1747
- decimals: number;
1748
- formatted: string;
1749
- valuation?: {
1750
- amount: string;
1751
- currency: string;
1752
- } | null | undefined;
1753
- };
1754
- sourceToken: {
1755
- address: `0x${string}`;
1756
- currency: string;
1757
- decimals: number;
1758
- logoUri?: string | undefined;
1759
- name: string;
1760
- symbol: string;
1761
- verified?: boolean | undefined;
1762
- };
1763
- taker: `0x${string}`;
1764
- transactionHash: `0x${string}`;
1765
- }[];
1766
- meta?: {
1767
- pricing?: {
1768
- asOf: string;
1769
- basis: "nominal";
1770
- source: string;
1771
- } | undefined;
1772
- } | undefined;
1773
- nextCursor: string | null;
1774
- };
1775
- outputFormat: "json";
1776
- status: 200;
2576
+ output: null;
2577
+ outputFormat: "body";
2578
+ status: 402;
1777
2579
  input: {
1778
2580
  query?: {
1779
2581
  'blockNumber.from'?: string | string[];
1780
2582
  'blockNumber.to'?: string | string[];
1781
2583
  chainId?: string | string[];
1782
2584
  cursor?: string | string[];
1783
- denomination?: string | string[];
1784
2585
  include?: string | string[];
1785
2586
  limit?: string | string[];
1786
2587
  maker?: string | string[];
@@ -1790,6 +2591,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1790
2591
  'timestamp.from'?: string | string[];
1791
2592
  'timestamp.to'?: string | string[];
1792
2593
  transactionHash?: string | string[];
2594
+ 'valuation.currency'?: string | string[];
1793
2595
  } | undefined;
1794
2596
  };
1795
2597
  } | {
@@ -1809,7 +2611,6 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1809
2611
  'blockNumber.to'?: string | string[];
1810
2612
  chainId?: string | string[];
1811
2613
  cursor?: string | string[];
1812
- denomination?: string | string[];
1813
2614
  include?: string | string[];
1814
2615
  limit?: string | string[];
1815
2616
  maker?: string | string[];
@@ -1819,26 +2620,26 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1819
2620
  'timestamp.from'?: string | string[];
1820
2621
  'timestamp.to'?: string | string[];
1821
2622
  transactionHash?: string | string[];
2623
+ 'valuation.currency'?: string | string[];
1822
2624
  } | undefined;
1823
2625
  };
1824
2626
  } | {
1825
2627
  output: {
1826
2628
  error: {
1827
- code: "query_invalid";
2629
+ code: "api_key_invalid" | "api_key_missing";
1828
2630
  details?: readonly Response.error.Detail[] | undefined;
1829
2631
  message: string;
1830
2632
  };
1831
2633
  requestId: string;
1832
2634
  };
1833
2635
  outputFormat: "json";
1834
- status: 400;
2636
+ status: 401;
1835
2637
  input: {
1836
2638
  query?: {
1837
2639
  'blockNumber.from'?: string | string[];
1838
2640
  'blockNumber.to'?: string | string[];
1839
2641
  chainId?: string | string[];
1840
2642
  cursor?: string | string[];
1841
- denomination?: string | string[];
1842
2643
  include?: string | string[];
1843
2644
  limit?: string | string[];
1844
2645
  maker?: string | string[];
@@ -1848,26 +2649,26 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1848
2649
  'timestamp.from'?: string | string[];
1849
2650
  'timestamp.to'?: string | string[];
1850
2651
  transactionHash?: string | string[];
2652
+ 'valuation.currency'?: string | string[];
1851
2653
  } | undefined;
1852
2654
  };
1853
2655
  } | {
1854
2656
  output: {
1855
2657
  error: {
1856
- code: "api_key_invalid" | "api_key_missing";
2658
+ code: "api_key_forbidden";
1857
2659
  details?: readonly Response.error.Detail[] | undefined;
1858
2660
  message: string;
1859
2661
  };
1860
2662
  requestId: string;
1861
2663
  };
1862
2664
  outputFormat: "json";
1863
- status: 401;
2665
+ status: 403;
1864
2666
  input: {
1865
2667
  query?: {
1866
2668
  'blockNumber.from'?: string | string[];
1867
2669
  'blockNumber.to'?: string | string[];
1868
2670
  chainId?: string | string[];
1869
2671
  cursor?: string | string[];
1870
- denomination?: string | string[];
1871
2672
  include?: string | string[];
1872
2673
  limit?: string | string[];
1873
2674
  maker?: string | string[];
@@ -1877,19 +2678,26 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1877
2678
  'timestamp.from'?: string | string[];
1878
2679
  'timestamp.to'?: string | string[];
1879
2680
  transactionHash?: string | string[];
2681
+ 'valuation.currency'?: string | string[];
1880
2682
  } | undefined;
1881
2683
  };
1882
2684
  } | {
1883
- output: null;
1884
- outputFormat: "body";
1885
- status: 402;
2685
+ output: {
2686
+ error: {
2687
+ code: "payment_required" | "rate_limit_exceeded";
2688
+ details?: readonly Response.error.Detail[] | undefined;
2689
+ message: string;
2690
+ };
2691
+ requestId: string;
2692
+ };
2693
+ outputFormat: "json";
2694
+ status: 429;
1886
2695
  input: {
1887
2696
  query?: {
1888
2697
  'blockNumber.from'?: string | string[];
1889
2698
  'blockNumber.to'?: string | string[];
1890
2699
  chainId?: string | string[];
1891
2700
  cursor?: string | string[];
1892
- denomination?: string | string[];
1893
2701
  include?: string | string[];
1894
2702
  limit?: string | string[];
1895
2703
  maker?: string | string[];
@@ -1899,26 +2707,26 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1899
2707
  'timestamp.from'?: string | string[];
1900
2708
  'timestamp.to'?: string | string[];
1901
2709
  transactionHash?: string | string[];
2710
+ 'valuation.currency'?: string | string[];
1902
2711
  } | undefined;
1903
2712
  };
1904
2713
  } | {
1905
2714
  output: {
1906
2715
  error: {
1907
- code: "api_key_forbidden";
2716
+ code: "query_invalid";
1908
2717
  details?: readonly Response.error.Detail[] | undefined;
1909
2718
  message: string;
1910
2719
  };
1911
2720
  requestId: string;
1912
2721
  };
1913
2722
  outputFormat: "json";
1914
- status: 403;
2723
+ status: 400;
1915
2724
  input: {
1916
2725
  query?: {
1917
2726
  'blockNumber.from'?: string | string[];
1918
2727
  'blockNumber.to'?: string | string[];
1919
2728
  chainId?: string | string[];
1920
2729
  cursor?: string | string[];
1921
- denomination?: string | string[];
1922
2730
  include?: string | string[];
1923
2731
  limit?: string | string[];
1924
2732
  maker?: string | string[];
@@ -1928,26 +2736,26 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1928
2736
  'timestamp.from'?: string | string[];
1929
2737
  'timestamp.to'?: string | string[];
1930
2738
  transactionHash?: string | string[];
2739
+ 'valuation.currency'?: string | string[];
1931
2740
  } | undefined;
1932
2741
  };
1933
2742
  } | {
1934
2743
  output: {
1935
2744
  error: {
1936
- code: "payment_required" | "rate_limit_exceeded";
2745
+ code: "upstream_error";
1937
2746
  details?: readonly Response.error.Detail[] | undefined;
1938
2747
  message: string;
1939
2748
  };
1940
2749
  requestId: string;
1941
2750
  };
1942
2751
  outputFormat: "json";
1943
- status: 429;
2752
+ status: 502;
1944
2753
  input: {
1945
2754
  query?: {
1946
2755
  'blockNumber.from'?: string | string[];
1947
2756
  'blockNumber.to'?: string | string[];
1948
2757
  chainId?: string | string[];
1949
2758
  cursor?: string | string[];
1950
- denomination?: string | string[];
1951
2759
  include?: string | string[];
1952
2760
  limit?: string | string[];
1953
2761
  maker?: string | string[];
@@ -1957,26 +2765,122 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1957
2765
  'timestamp.from'?: string | string[];
1958
2766
  'timestamp.to'?: string | string[];
1959
2767
  transactionHash?: string | string[];
2768
+ 'valuation.currency'?: string | string[];
1960
2769
  } | undefined;
1961
2770
  };
1962
2771
  } | {
1963
2772
  output: {
1964
- error: {
1965
- code: "upstream_error";
1966
- details?: readonly Response.error.Detail[] | undefined;
1967
- message: string;
1968
- };
1969
- requestId: string;
2773
+ data: {
2774
+ blockNumber: number;
2775
+ destinationAmount: {
2776
+ baseUnits: string;
2777
+ currency: string;
2778
+ decimals: number;
2779
+ formatted: string;
2780
+ valuation?: {
2781
+ amount: string;
2782
+ currency: string;
2783
+ } | null | undefined;
2784
+ };
2785
+ destinationToken: {
2786
+ address: `0x${string}`;
2787
+ currency: string;
2788
+ decimals: number;
2789
+ logoUri?: string | undefined;
2790
+ name: string;
2791
+ symbol: string;
2792
+ verified?: boolean | undefined;
2793
+ };
2794
+ filledAt: string;
2795
+ fills: {
2796
+ destinationAmount: {
2797
+ baseUnits: string;
2798
+ currency: string;
2799
+ decimals: number;
2800
+ formatted: string;
2801
+ valuation?: {
2802
+ amount: string;
2803
+ currency: string;
2804
+ } | null | undefined;
2805
+ };
2806
+ destinationToken: {
2807
+ address: `0x${string}`;
2808
+ currency: string;
2809
+ decimals: number;
2810
+ logoUri?: string | undefined;
2811
+ name: string;
2812
+ symbol: string;
2813
+ verified?: boolean | undefined;
2814
+ };
2815
+ logIndex: number;
2816
+ maker: `0x${string}`;
2817
+ orderId: string;
2818
+ partialFill: boolean;
2819
+ price: string;
2820
+ sourceAmount: {
2821
+ baseUnits: string;
2822
+ currency: string;
2823
+ decimals: number;
2824
+ formatted: string;
2825
+ valuation?: {
2826
+ amount: string;
2827
+ currency: string;
2828
+ } | null | undefined;
2829
+ };
2830
+ sourceToken: {
2831
+ address: `0x${string}`;
2832
+ currency: string;
2833
+ decimals: number;
2834
+ logoUri?: string | undefined;
2835
+ name: string;
2836
+ symbol: string;
2837
+ verified?: boolean | undefined;
2838
+ };
2839
+ }[];
2840
+ id: string;
2841
+ logIndex: number;
2842
+ mode: "exactDestination" | "exactSource" | null;
2843
+ rate: string;
2844
+ route: `0x${string}`[];
2845
+ sourceAmount: {
2846
+ baseUnits: string;
2847
+ currency: string;
2848
+ decimals: number;
2849
+ formatted: string;
2850
+ valuation?: {
2851
+ amount: string;
2852
+ currency: string;
2853
+ } | null | undefined;
2854
+ };
2855
+ sourceToken: {
2856
+ address: `0x${string}`;
2857
+ currency: string;
2858
+ decimals: number;
2859
+ logoUri?: string | undefined;
2860
+ name: string;
2861
+ symbol: string;
2862
+ verified?: boolean | undefined;
2863
+ };
2864
+ taker: `0x${string}`;
2865
+ transactionHash: `0x${string}`;
2866
+ }[];
2867
+ meta?: {
2868
+ valuation?: {
2869
+ asOf: string;
2870
+ basis: "nominal";
2871
+ source: string;
2872
+ } | undefined;
2873
+ } | undefined;
2874
+ nextCursor: string | null;
1970
2875
  };
1971
2876
  outputFormat: "json";
1972
- status: 502;
2877
+ status: 200;
1973
2878
  input: {
1974
2879
  query?: {
1975
2880
  'blockNumber.from'?: string | string[];
1976
2881
  'blockNumber.to'?: string | string[];
1977
2882
  chainId?: string | string[];
1978
2883
  cursor?: string | string[];
1979
- denomination?: string | string[];
1980
2884
  include?: string | string[];
1981
2885
  limit?: string | string[];
1982
2886
  maker?: string | string[];
@@ -1986,6 +2890,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1986
2890
  'timestamp.from'?: string | string[];
1987
2891
  'timestamp.to'?: string | string[];
1988
2892
  transactionHash?: string | string[];
2893
+ 'valuation.currency'?: string | string[];
1989
2894
  } | undefined;
1990
2895
  };
1991
2896
  };
@@ -1993,41 +2898,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1993
2898
  } & {
1994
2899
  "/v1/exchange/pairs": {
1995
2900
  $get: {
1996
- output: {
1997
- data: {
1998
- base: {
1999
- address: `0x${string}`;
2000
- currency?: string | undefined;
2001
- decimals?: number | undefined;
2002
- logoUri?: string | undefined;
2003
- name?: string | undefined;
2004
- symbol?: string | undefined;
2005
- verified?: boolean | undefined;
2006
- };
2007
- blockNumber: number;
2008
- id: `0x${string}`;
2009
- key: `0x${string}`;
2010
- liquidity?: string | undefined;
2011
- quote: {
2012
- address: `0x${string}`;
2013
- currency?: string | undefined;
2014
- decimals?: number | undefined;
2015
- logoUri?: string | undefined;
2016
- name?: string | undefined;
2017
- symbol?: string | undefined;
2018
- verified?: boolean | undefined;
2019
- };
2020
- timestamp: string;
2021
- transactionHash: `0x${string}`;
2022
- }[];
2023
- meta?: {
2024
- totalCountCapped: boolean;
2025
- totalCount: number;
2026
- } | undefined;
2027
- nextCursor: string | null;
2028
- };
2029
- outputFormat: "json";
2030
- status: 200;
2901
+ output: null;
2902
+ outputFormat: "body";
2903
+ status: 402;
2031
2904
  input: {
2032
2905
  query?: {
2033
2906
  chainId?: string | string[];
@@ -2064,14 +2937,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2064
2937
  } | {
2065
2938
  output: {
2066
2939
  error: {
2067
- code: "query_invalid";
2940
+ code: "api_key_invalid" | "api_key_missing";
2068
2941
  details?: readonly Response.error.Detail[] | undefined;
2069
2942
  message: string;
2070
2943
  };
2071
2944
  requestId: string;
2072
2945
  };
2073
2946
  outputFormat: "json";
2074
- status: 400;
2947
+ status: 401;
2075
2948
  input: {
2076
2949
  query?: {
2077
2950
  chainId?: string | string[];
@@ -2086,14 +2959,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2086
2959
  } | {
2087
2960
  output: {
2088
2961
  error: {
2089
- code: "api_key_invalid" | "api_key_missing";
2962
+ code: "api_key_forbidden";
2090
2963
  details?: readonly Response.error.Detail[] | undefined;
2091
2964
  message: string;
2092
2965
  };
2093
2966
  requestId: string;
2094
2967
  };
2095
2968
  outputFormat: "json";
2096
- status: 401;
2969
+ status: 403;
2097
2970
  input: {
2098
2971
  query?: {
2099
2972
  chainId?: string | string[];
@@ -2106,9 +2979,16 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2106
2979
  } | undefined;
2107
2980
  };
2108
2981
  } | {
2109
- output: null;
2110
- outputFormat: "body";
2111
- status: 402;
2982
+ output: {
2983
+ error: {
2984
+ code: "payment_required" | "rate_limit_exceeded";
2985
+ details?: readonly Response.error.Detail[] | undefined;
2986
+ message: string;
2987
+ };
2988
+ requestId: string;
2989
+ };
2990
+ outputFormat: "json";
2991
+ status: 429;
2112
2992
  input: {
2113
2993
  query?: {
2114
2994
  chainId?: string | string[];
@@ -2123,14 +3003,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2123
3003
  } | {
2124
3004
  output: {
2125
3005
  error: {
2126
- code: "api_key_forbidden";
3006
+ code: "query_invalid";
2127
3007
  details?: readonly Response.error.Detail[] | undefined;
2128
3008
  message: string;
2129
3009
  };
2130
3010
  requestId: string;
2131
3011
  };
2132
3012
  outputFormat: "json";
2133
- status: 403;
3013
+ status: 400;
2134
3014
  input: {
2135
3015
  query?: {
2136
3016
  chainId?: string | string[];
@@ -2145,14 +3025,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2145
3025
  } | {
2146
3026
  output: {
2147
3027
  error: {
2148
- code: "payment_required" | "rate_limit_exceeded";
3028
+ code: "upstream_error";
2149
3029
  details?: readonly Response.error.Detail[] | undefined;
2150
3030
  message: string;
2151
3031
  };
2152
3032
  requestId: string;
2153
3033
  };
2154
3034
  outputFormat: "json";
2155
- status: 429;
3035
+ status: 502;
2156
3036
  input: {
2157
3037
  query?: {
2158
3038
  chainId?: string | string[];
@@ -2166,15 +3046,40 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2166
3046
  };
2167
3047
  } | {
2168
3048
  output: {
2169
- error: {
2170
- code: "upstream_error";
2171
- details?: readonly Response.error.Detail[] | undefined;
2172
- message: string;
2173
- };
2174
- requestId: string;
3049
+ data: {
3050
+ base: {
3051
+ address: `0x${string}`;
3052
+ currency?: string | undefined;
3053
+ decimals?: number | undefined;
3054
+ logoUri?: string | undefined;
3055
+ name?: string | undefined;
3056
+ symbol?: string | undefined;
3057
+ verified?: boolean | undefined;
3058
+ };
3059
+ blockNumber: number;
3060
+ id: `0x${string}`;
3061
+ key: `0x${string}`;
3062
+ liquidity?: string | undefined;
3063
+ quote: {
3064
+ address: `0x${string}`;
3065
+ currency?: string | undefined;
3066
+ decimals?: number | undefined;
3067
+ logoUri?: string | undefined;
3068
+ name?: string | undefined;
3069
+ symbol?: string | undefined;
3070
+ verified?: boolean | undefined;
3071
+ };
3072
+ timestamp: string;
3073
+ transactionHash: `0x${string}`;
3074
+ }[];
3075
+ meta?: {
3076
+ totalCountCapped: boolean;
3077
+ totalCount: number;
3078
+ } | undefined;
3079
+ nextCursor: string | null;
2175
3080
  };
2176
3081
  outputFormat: "json";
2177
- status: 502;
3082
+ status: 200;
2178
3083
  input: {
2179
3084
  query?: {
2180
3085
  chainId?: string | string[];
@@ -2191,34 +3096,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2191
3096
  } & {
2192
3097
  "/v1/exchange/pairs/:base": {
2193
3098
  $get: {
2194
- output: {
2195
- base: {
2196
- address: `0x${string}`;
2197
- currency?: string | undefined;
2198
- decimals?: number | undefined;
2199
- logoUri?: string | undefined;
2200
- name?: string | undefined;
2201
- symbol?: string | undefined;
2202
- verified?: boolean | undefined;
2203
- };
2204
- blockNumber: number;
2205
- id: `0x${string}`;
2206
- key: `0x${string}`;
2207
- liquidity?: string | undefined;
2208
- quote: {
2209
- address: `0x${string}`;
2210
- currency?: string | undefined;
2211
- decimals?: number | undefined;
2212
- logoUri?: string | undefined;
2213
- name?: string | undefined;
2214
- symbol?: string | undefined;
2215
- verified?: boolean | undefined;
2216
- };
2217
- timestamp: string;
2218
- transactionHash: `0x${string}`;
2219
- };
2220
- outputFormat: "json";
2221
- status: 200;
3099
+ output: null;
3100
+ outputFormat: "body";
3101
+ status: 402;
2222
3102
  input: {
2223
3103
  param: {
2224
3104
  base: `0x${string}`;
@@ -2253,14 +3133,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2253
3133
  } | {
2254
3134
  output: {
2255
3135
  error: {
2256
- code: "query_invalid";
3136
+ code: "api_key_invalid" | "api_key_missing";
2257
3137
  details?: readonly Response.error.Detail[] | undefined;
2258
3138
  message: string;
2259
3139
  };
2260
3140
  requestId: string;
2261
3141
  };
2262
3142
  outputFormat: "json";
2263
- status: 400;
3143
+ status: 401;
2264
3144
  input: {
2265
3145
  param: {
2266
3146
  base: `0x${string}`;
@@ -2274,14 +3154,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2274
3154
  } | {
2275
3155
  output: {
2276
3156
  error: {
2277
- code: "pair_invalid";
3157
+ code: "api_key_forbidden";
2278
3158
  details?: readonly Response.error.Detail[] | undefined;
2279
3159
  message: string;
2280
3160
  };
2281
3161
  requestId: string;
2282
3162
  };
2283
3163
  outputFormat: "json";
2284
- status: 400;
3164
+ status: 403;
2285
3165
  input: {
2286
3166
  param: {
2287
3167
  base: `0x${string}`;
@@ -2295,14 +3175,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2295
3175
  } | {
2296
3176
  output: {
2297
3177
  error: {
2298
- code: "api_key_invalid" | "api_key_missing";
3178
+ code: "payment_required" | "rate_limit_exceeded";
2299
3179
  details?: readonly Response.error.Detail[] | undefined;
2300
3180
  message: string;
2301
3181
  };
2302
3182
  requestId: string;
2303
3183
  };
2304
3184
  outputFormat: "json";
2305
- status: 401;
3185
+ status: 429;
2306
3186
  input: {
2307
3187
  param: {
2308
3188
  base: `0x${string}`;
@@ -2314,9 +3194,16 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2314
3194
  } | undefined;
2315
3195
  };
2316
3196
  } | {
2317
- output: null;
2318
- outputFormat: "body";
2319
- status: 402;
3197
+ output: {
3198
+ error: {
3199
+ code: "query_invalid";
3200
+ details?: readonly Response.error.Detail[] | undefined;
3201
+ message: string;
3202
+ };
3203
+ requestId: string;
3204
+ };
3205
+ outputFormat: "json";
3206
+ status: 400;
2320
3207
  input: {
2321
3208
  param: {
2322
3209
  base: `0x${string}`;
@@ -2330,14 +3217,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2330
3217
  } | {
2331
3218
  output: {
2332
3219
  error: {
2333
- code: "api_key_forbidden";
3220
+ code: "upstream_error";
2334
3221
  details?: readonly Response.error.Detail[] | undefined;
2335
3222
  message: string;
2336
3223
  };
2337
3224
  requestId: string;
2338
3225
  };
2339
3226
  outputFormat: "json";
2340
- status: 403;
3227
+ status: 502;
2341
3228
  input: {
2342
3229
  param: {
2343
3230
  base: `0x${string}`;
@@ -2351,14 +3238,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2351
3238
  } | {
2352
3239
  output: {
2353
3240
  error: {
2354
- code: "pair_not_found";
3241
+ code: "pair_invalid";
2355
3242
  details?: readonly Response.error.Detail[] | undefined;
2356
3243
  message: string;
2357
3244
  };
2358
3245
  requestId: string;
2359
3246
  };
2360
3247
  outputFormat: "json";
2361
- status: 404;
3248
+ status: 400;
2362
3249
  input: {
2363
3250
  param: {
2364
3251
  base: `0x${string}`;
@@ -2372,14 +3259,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2372
3259
  } | {
2373
3260
  output: {
2374
3261
  error: {
2375
- code: "payment_required" | "rate_limit_exceeded";
3262
+ code: "pair_not_found";
2376
3263
  details?: readonly Response.error.Detail[] | undefined;
2377
3264
  message: string;
2378
3265
  };
2379
3266
  requestId: string;
2380
3267
  };
2381
3268
  outputFormat: "json";
2382
- status: 429;
3269
+ status: 404;
2383
3270
  input: {
2384
3271
  param: {
2385
3272
  base: `0x${string}`;
@@ -2392,15 +3279,33 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2392
3279
  };
2393
3280
  } | {
2394
3281
  output: {
2395
- error: {
2396
- code: "upstream_error";
2397
- details?: readonly Response.error.Detail[] | undefined;
2398
- message: string;
3282
+ base: {
3283
+ address: `0x${string}`;
3284
+ currency?: string | undefined;
3285
+ decimals?: number | undefined;
3286
+ logoUri?: string | undefined;
3287
+ name?: string | undefined;
3288
+ symbol?: string | undefined;
3289
+ verified?: boolean | undefined;
2399
3290
  };
2400
- requestId: string;
3291
+ blockNumber: number;
3292
+ id: `0x${string}`;
3293
+ key: `0x${string}`;
3294
+ liquidity?: string | undefined;
3295
+ quote: {
3296
+ address: `0x${string}`;
3297
+ currency?: string | undefined;
3298
+ decimals?: number | undefined;
3299
+ logoUri?: string | undefined;
3300
+ name?: string | undefined;
3301
+ symbol?: string | undefined;
3302
+ verified?: boolean | undefined;
3303
+ };
3304
+ timestamp: string;
3305
+ transactionHash: `0x${string}`;
2401
3306
  };
2402
3307
  outputFormat: "json";
2403
- status: 502;
3308
+ status: 200;
2404
3309
  input: {
2405
3310
  param: {
2406
3311
  base: `0x${string}`;
@@ -2414,54 +3319,11 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2414
3319
  };
2415
3320
  };
2416
3321
  } & {
2417
- "/v1/exchange/orders": {
2418
- $get: {
2419
- output: {
2420
- data: {
2421
- amount: string;
2422
- blockNumber: number;
2423
- id: string;
2424
- logIndex: number;
2425
- maker: `0x${string}`;
2426
- orderId: string;
2427
- placedAt: string;
2428
- price: string;
2429
- rate: string;
2430
- remaining: string;
2431
- side: "ask" | "bid";
2432
- tick: number;
2433
- transactionHash: `0x${string}`;
2434
- pair: {
2435
- base: {
2436
- address: `0x${string}`;
2437
- currency?: string | undefined;
2438
- decimals?: number | undefined;
2439
- logoUri?: string | undefined;
2440
- name?: string | undefined;
2441
- symbol?: string | undefined;
2442
- verified?: boolean | undefined;
2443
- };
2444
- key: `0x${string}`;
2445
- quote: {
2446
- address: `0x${string}`;
2447
- currency?: string | undefined;
2448
- decimals?: number | undefined;
2449
- logoUri?: string | undefined;
2450
- name?: string | undefined;
2451
- symbol?: string | undefined;
2452
- verified?: boolean | undefined;
2453
- };
2454
- };
2455
- }[];
2456
- meta?: {
2457
- totalCountCapped: boolean;
2458
- totalCount: number;
2459
- } | undefined;
2460
- nextCursor: string | null;
2461
- truncated: boolean;
2462
- };
2463
- outputFormat: "json";
2464
- status: 200;
3322
+ "/v1/exchange/orders": {
3323
+ $get: {
3324
+ output: null;
3325
+ outputFormat: "body";
3326
+ status: 402;
2465
3327
  input: {
2466
3328
  query?: {
2467
3329
  base?: string | string[];
@@ -2504,14 +3366,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2504
3366
  } | {
2505
3367
  output: {
2506
3368
  error: {
2507
- code: "query_invalid";
3369
+ code: "api_key_invalid" | "api_key_missing";
2508
3370
  details?: readonly Response.error.Detail[] | undefined;
2509
3371
  message: string;
2510
3372
  };
2511
3373
  requestId: string;
2512
3374
  };
2513
3375
  outputFormat: "json";
2514
- status: 400;
3376
+ status: 401;
2515
3377
  input: {
2516
3378
  query?: {
2517
3379
  base?: string | string[];
@@ -2529,14 +3391,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2529
3391
  } | {
2530
3392
  output: {
2531
3393
  error: {
2532
- code: "api_key_invalid" | "api_key_missing";
3394
+ code: "api_key_forbidden";
2533
3395
  details?: readonly Response.error.Detail[] | undefined;
2534
3396
  message: string;
2535
3397
  };
2536
3398
  requestId: string;
2537
3399
  };
2538
3400
  outputFormat: "json";
2539
- status: 401;
3401
+ status: 403;
2540
3402
  input: {
2541
3403
  query?: {
2542
3404
  base?: string | string[];
@@ -2552,9 +3414,16 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2552
3414
  } | undefined;
2553
3415
  };
2554
3416
  } | {
2555
- output: null;
2556
- outputFormat: "body";
2557
- status: 402;
3417
+ output: {
3418
+ error: {
3419
+ code: "payment_required" | "rate_limit_exceeded";
3420
+ details?: readonly Response.error.Detail[] | undefined;
3421
+ message: string;
3422
+ };
3423
+ requestId: string;
3424
+ };
3425
+ outputFormat: "json";
3426
+ status: 429;
2558
3427
  input: {
2559
3428
  query?: {
2560
3429
  base?: string | string[];
@@ -2572,14 +3441,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2572
3441
  } | {
2573
3442
  output: {
2574
3443
  error: {
2575
- code: "api_key_forbidden";
3444
+ code: "query_invalid";
2576
3445
  details?: readonly Response.error.Detail[] | undefined;
2577
3446
  message: string;
2578
3447
  };
2579
3448
  requestId: string;
2580
3449
  };
2581
3450
  outputFormat: "json";
2582
- status: 403;
3451
+ status: 400;
2583
3452
  input: {
2584
3453
  query?: {
2585
3454
  base?: string | string[];
@@ -2597,14 +3466,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2597
3466
  } | {
2598
3467
  output: {
2599
3468
  error: {
2600
- code: "pair_not_found";
3469
+ code: "upstream_error";
2601
3470
  details?: readonly Response.error.Detail[] | undefined;
2602
3471
  message: string;
2603
3472
  };
2604
3473
  requestId: string;
2605
3474
  };
2606
3475
  outputFormat: "json";
2607
- status: 404;
3476
+ status: 502;
2608
3477
  input: {
2609
3478
  query?: {
2610
3479
  base?: string | string[];
@@ -2622,14 +3491,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2622
3491
  } | {
2623
3492
  output: {
2624
3493
  error: {
2625
- code: "payment_required" | "rate_limit_exceeded";
3494
+ code: "pair_not_found";
2626
3495
  details?: readonly Response.error.Detail[] | undefined;
2627
3496
  message: string;
2628
3497
  };
2629
3498
  requestId: string;
2630
3499
  };
2631
3500
  outputFormat: "json";
2632
- status: 429;
3501
+ status: 404;
2633
3502
  input: {
2634
3503
  query?: {
2635
3504
  base?: string | string[];
@@ -2646,15 +3515,51 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2646
3515
  };
2647
3516
  } | {
2648
3517
  output: {
2649
- error: {
2650
- code: "upstream_error";
2651
- details?: readonly Response.error.Detail[] | undefined;
2652
- message: string;
2653
- };
2654
- requestId: string;
3518
+ data: {
3519
+ amount: string;
3520
+ blockNumber: number;
3521
+ id: string;
3522
+ logIndex: number;
3523
+ maker: `0x${string}`;
3524
+ orderId: string;
3525
+ placedAt: string;
3526
+ price: string;
3527
+ rate: string;
3528
+ remaining: string;
3529
+ side: "ask" | "bid";
3530
+ tick: number;
3531
+ transactionHash: `0x${string}`;
3532
+ pair: {
3533
+ base: {
3534
+ address: `0x${string}`;
3535
+ currency?: string | undefined;
3536
+ decimals?: number | undefined;
3537
+ logoUri?: string | undefined;
3538
+ name?: string | undefined;
3539
+ symbol?: string | undefined;
3540
+ verified?: boolean | undefined;
3541
+ };
3542
+ key: `0x${string}`;
3543
+ quote: {
3544
+ address: `0x${string}`;
3545
+ currency?: string | undefined;
3546
+ decimals?: number | undefined;
3547
+ logoUri?: string | undefined;
3548
+ name?: string | undefined;
3549
+ symbol?: string | undefined;
3550
+ verified?: boolean | undefined;
3551
+ };
3552
+ };
3553
+ }[];
3554
+ meta?: {
3555
+ totalCountCapped: boolean;
3556
+ totalCount: number;
3557
+ } | undefined;
3558
+ nextCursor: string | null;
3559
+ truncated: boolean;
2655
3560
  };
2656
3561
  outputFormat: "json";
2657
- status: 502;
3562
+ status: 200;
2658
3563
  input: {
2659
3564
  query?: {
2660
3565
  base?: string | string[];
@@ -2674,43 +3579,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2674
3579
  } & {
2675
3580
  "/v1/exchange/orders/:orderId": {
2676
3581
  $get: {
2677
- output: {
2678
- amount: string;
2679
- flipTick: number;
2680
- id: string;
2681
- isBid: boolean;
2682
- isFlipOrder: boolean;
2683
- maker: `0x${string}`;
2684
- mode: "exactDestination" | "exactSource";
2685
- orderId: string;
2686
- pair: {
2687
- base: {
2688
- address: `0x${string}`;
2689
- currency?: string | undefined;
2690
- decimals?: number | undefined;
2691
- logoUri?: string | undefined;
2692
- name?: string | undefined;
2693
- symbol?: string | undefined;
2694
- verified?: boolean | undefined;
2695
- };
2696
- key: `0x${string}`;
2697
- quote: {
2698
- address: `0x${string}`;
2699
- currency?: string | undefined;
2700
- decimals?: number | undefined;
2701
- logoUri?: string | undefined;
2702
- name?: string | undefined;
2703
- symbol?: string | undefined;
2704
- verified?: boolean | undefined;
2705
- };
2706
- };
2707
- price: string;
2708
- rate: string;
2709
- remaining: string;
2710
- tick: number;
2711
- };
2712
- outputFormat: "json";
2713
- status: 200;
3582
+ output: null;
3583
+ outputFormat: "body";
3584
+ status: 402;
2714
3585
  input: {
2715
3586
  param: {
2716
3587
  orderId: string;
@@ -2745,14 +3616,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2745
3616
  } | {
2746
3617
  output: {
2747
3618
  error: {
2748
- code: "query_invalid";
3619
+ code: "api_key_invalid" | "api_key_missing";
2749
3620
  details?: readonly Response.error.Detail[] | undefined;
2750
3621
  message: string;
2751
3622
  };
2752
3623
  requestId: string;
2753
3624
  };
2754
3625
  outputFormat: "json";
2755
- status: 400;
3626
+ status: 401;
2756
3627
  input: {
2757
3628
  param: {
2758
3629
  orderId: string;
@@ -2766,14 +3637,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2766
3637
  } | {
2767
3638
  output: {
2768
3639
  error: {
2769
- code: "order_invalid";
3640
+ code: "api_key_forbidden";
2770
3641
  details?: readonly Response.error.Detail[] | undefined;
2771
3642
  message: string;
2772
3643
  };
2773
3644
  requestId: string;
2774
3645
  };
2775
3646
  outputFormat: "json";
2776
- status: 400;
3647
+ status: 403;
2777
3648
  input: {
2778
3649
  param: {
2779
3650
  orderId: string;
@@ -2787,14 +3658,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2787
3658
  } | {
2788
3659
  output: {
2789
3660
  error: {
2790
- code: "api_key_invalid" | "api_key_missing";
3661
+ code: "payment_required" | "rate_limit_exceeded";
2791
3662
  details?: readonly Response.error.Detail[] | undefined;
2792
3663
  message: string;
2793
3664
  };
2794
3665
  requestId: string;
2795
3666
  };
2796
3667
  outputFormat: "json";
2797
- status: 401;
3668
+ status: 429;
2798
3669
  input: {
2799
3670
  param: {
2800
3671
  orderId: string;
@@ -2806,9 +3677,16 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2806
3677
  } | undefined;
2807
3678
  };
2808
3679
  } | {
2809
- output: null;
2810
- outputFormat: "body";
2811
- status: 402;
3680
+ output: {
3681
+ error: {
3682
+ code: "query_invalid";
3683
+ details?: readonly Response.error.Detail[] | undefined;
3684
+ message: string;
3685
+ };
3686
+ requestId: string;
3687
+ };
3688
+ outputFormat: "json";
3689
+ status: 400;
2812
3690
  input: {
2813
3691
  param: {
2814
3692
  orderId: string;
@@ -2822,14 +3700,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2822
3700
  } | {
2823
3701
  output: {
2824
3702
  error: {
2825
- code: "api_key_forbidden";
3703
+ code: "upstream_error";
2826
3704
  details?: readonly Response.error.Detail[] | undefined;
2827
3705
  message: string;
2828
3706
  };
2829
3707
  requestId: string;
2830
3708
  };
2831
3709
  outputFormat: "json";
2832
- status: 403;
3710
+ status: 502;
2833
3711
  input: {
2834
3712
  param: {
2835
3713
  orderId: string;
@@ -2843,14 +3721,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2843
3721
  } | {
2844
3722
  output: {
2845
3723
  error: {
2846
- code: "order_not_found";
3724
+ code: "order_invalid";
2847
3725
  details?: readonly Response.error.Detail[] | undefined;
2848
3726
  message: string;
2849
3727
  };
2850
3728
  requestId: string;
2851
3729
  };
2852
3730
  outputFormat: "json";
2853
- status: 404;
3731
+ status: 400;
2854
3732
  input: {
2855
3733
  param: {
2856
3734
  orderId: string;
@@ -2864,14 +3742,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2864
3742
  } | {
2865
3743
  output: {
2866
3744
  error: {
2867
- code: "payment_required" | "rate_limit_exceeded";
3745
+ code: "order_not_found";
2868
3746
  details?: readonly Response.error.Detail[] | undefined;
2869
3747
  message: string;
2870
3748
  };
2871
3749
  requestId: string;
2872
3750
  };
2873
3751
  outputFormat: "json";
2874
- status: 429;
3752
+ status: 404;
2875
3753
  input: {
2876
3754
  param: {
2877
3755
  orderId: string;
@@ -2884,15 +3762,42 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2884
3762
  };
2885
3763
  } | {
2886
3764
  output: {
2887
- error: {
2888
- code: "upstream_error";
2889
- details?: readonly Response.error.Detail[] | undefined;
2890
- message: string;
3765
+ amount: string;
3766
+ flipTick: number;
3767
+ id: string;
3768
+ isBid: boolean;
3769
+ isFlipOrder: boolean;
3770
+ maker: `0x${string}`;
3771
+ mode: "exactDestination" | "exactSource";
3772
+ orderId: string;
3773
+ pair: {
3774
+ base: {
3775
+ address: `0x${string}`;
3776
+ currency?: string | undefined;
3777
+ decimals?: number | undefined;
3778
+ logoUri?: string | undefined;
3779
+ name?: string | undefined;
3780
+ symbol?: string | undefined;
3781
+ verified?: boolean | undefined;
3782
+ };
3783
+ key: `0x${string}`;
3784
+ quote: {
3785
+ address: `0x${string}`;
3786
+ currency?: string | undefined;
3787
+ decimals?: number | undefined;
3788
+ logoUri?: string | undefined;
3789
+ name?: string | undefined;
3790
+ symbol?: string | undefined;
3791
+ verified?: boolean | undefined;
3792
+ };
2891
3793
  };
2892
- requestId: string;
3794
+ price: string;
3795
+ rate: string;
3796
+ remaining: string;
3797
+ tick: number;
2893
3798
  };
2894
3799
  outputFormat: "json";
2895
- status: 502;
3800
+ status: 200;
2896
3801
  input: {
2897
3802
  param: {
2898
3803
  orderId: string;
@@ -2908,26 +3813,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2908
3813
  } & {
2909
3814
  "/v1/exchange/orders/:orderId/fills": {
2910
3815
  $get: {
2911
- output: {
2912
- data: {
2913
- amountFilled: string;
2914
- blockNumber: number;
2915
- filledAt: string;
2916
- id: string;
2917
- logIndex: number;
2918
- orderId: string;
2919
- partialFill: boolean;
2920
- taker: `0x${string}`;
2921
- transactionHash: `0x${string}`;
2922
- }[];
2923
- meta?: {
2924
- totalCountCapped: boolean;
2925
- totalCount: number;
2926
- } | undefined;
2927
- nextCursor: string | null;
2928
- };
2929
- outputFormat: "json";
2930
- status: 200;
3816
+ output: null;
3817
+ outputFormat: "body";
3818
+ status: 402;
2931
3819
  input: {
2932
3820
  param: {
2933
3821
  orderId: string;
@@ -2970,14 +3858,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2970
3858
  } | {
2971
3859
  output: {
2972
3860
  error: {
2973
- code: "query_invalid";
3861
+ code: "api_key_invalid" | "api_key_missing";
2974
3862
  details?: readonly Response.error.Detail[] | undefined;
2975
3863
  message: string;
2976
3864
  };
2977
3865
  requestId: string;
2978
3866
  };
2979
3867
  outputFormat: "json";
2980
- status: 400;
3868
+ status: 401;
2981
3869
  input: {
2982
3870
  param: {
2983
3871
  orderId: string;
@@ -2995,14 +3883,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2995
3883
  } | {
2996
3884
  output: {
2997
3885
  error: {
2998
- code: "order_invalid";
3886
+ code: "api_key_forbidden";
2999
3887
  details?: readonly Response.error.Detail[] | undefined;
3000
3888
  message: string;
3001
3889
  };
3002
3890
  requestId: string;
3003
3891
  };
3004
3892
  outputFormat: "json";
3005
- status: 400;
3893
+ status: 403;
3006
3894
  input: {
3007
3895
  param: {
3008
3896
  orderId: string;
@@ -3020,32 +3908,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3020
3908
  } | {
3021
3909
  output: {
3022
3910
  error: {
3023
- code: "api_key_invalid" | "api_key_missing";
3911
+ code: "payment_required" | "rate_limit_exceeded";
3024
3912
  details?: readonly Response.error.Detail[] | undefined;
3025
3913
  message: string;
3026
3914
  };
3027
3915
  requestId: string;
3028
3916
  };
3029
3917
  outputFormat: "json";
3030
- status: 401;
3031
- input: {
3032
- param: {
3033
- orderId: string;
3034
- };
3035
- } & {
3036
- query?: {
3037
- chainId?: string | string[];
3038
- cursor?: string | string[];
3039
- include?: string | string[];
3040
- limit?: string | string[];
3041
- order?: string | string[];
3042
- page?: string | string[];
3043
- } | undefined;
3044
- };
3045
- } | {
3046
- output: null;
3047
- outputFormat: "body";
3048
- status: 402;
3918
+ status: 429;
3049
3919
  input: {
3050
3920
  param: {
3051
3921
  orderId: string;
@@ -3063,14 +3933,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3063
3933
  } | {
3064
3934
  output: {
3065
3935
  error: {
3066
- code: "api_key_forbidden";
3936
+ code: "query_invalid";
3067
3937
  details?: readonly Response.error.Detail[] | undefined;
3068
3938
  message: string;
3069
3939
  };
3070
3940
  requestId: string;
3071
3941
  };
3072
3942
  outputFormat: "json";
3073
- status: 403;
3943
+ status: 400;
3074
3944
  input: {
3075
3945
  param: {
3076
3946
  orderId: string;
@@ -3088,14 +3958,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3088
3958
  } | {
3089
3959
  output: {
3090
3960
  error: {
3091
- code: "payment_required" | "rate_limit_exceeded";
3961
+ code: "upstream_error";
3092
3962
  details?: readonly Response.error.Detail[] | undefined;
3093
3963
  message: string;
3094
3964
  };
3095
3965
  requestId: string;
3096
3966
  };
3097
3967
  outputFormat: "json";
3098
- status: 429;
3968
+ status: 502;
3099
3969
  input: {
3100
3970
  param: {
3101
3971
  orderId: string;
@@ -3113,14 +3983,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3113
3983
  } | {
3114
3984
  output: {
3115
3985
  error: {
3116
- code: "upstream_error";
3986
+ code: "order_invalid";
3117
3987
  details?: readonly Response.error.Detail[] | undefined;
3118
3988
  message: string;
3119
3989
  };
3120
3990
  requestId: string;
3121
3991
  };
3122
3992
  outputFormat: "json";
3123
- status: 502;
3993
+ status: 400;
3124
3994
  input: {
3125
3995
  param: {
3126
3996
  orderId: string;
@@ -3135,72 +4005,49 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3135
4005
  page?: string | string[];
3136
4006
  } | undefined;
3137
4007
  };
3138
- };
3139
- };
3140
- } & {
3141
- "/v1/exchange/pairs/:base/ohlc": {
3142
- $get: {
4008
+ } | {
3143
4009
  output: {
3144
- base: {
3145
- address: `0x${string}`;
3146
- currency?: string | undefined;
3147
- decimals?: number | undefined;
3148
- logoUri?: string | undefined;
3149
- name?: string | undefined;
3150
- symbol?: string | undefined;
3151
- verified?: boolean | undefined;
3152
- };
3153
4010
  data: {
3154
- close: string;
3155
- fillCount: number;
3156
- high: string;
4011
+ amountFilled: string;
4012
+ blockNumber: number;
4013
+ filledAt: string;
3157
4014
  id: string;
3158
- low: string;
3159
- open: string;
3160
- timestamp: string;
3161
- volume: {
3162
- base: string;
3163
- quote: string;
3164
- };
4015
+ logIndex: number;
4016
+ orderId: string;
4017
+ partialFill: boolean;
4018
+ taker: `0x${string}`;
4019
+ transactionHash: `0x${string}`;
3165
4020
  }[];
3166
- interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
3167
- quote: {
3168
- address: `0x${string}`;
3169
- currency?: string | undefined;
3170
- decimals?: number | undefined;
3171
- logoUri?: string | undefined;
3172
- name?: string | undefined;
3173
- symbol?: string | undefined;
3174
- verified?: boolean | undefined;
3175
- };
3176
- truncated: boolean;
3177
- window: "1h" | "24h" | "30d" | "7d";
4021
+ meta?: {
4022
+ totalCountCapped: boolean;
4023
+ totalCount: number;
4024
+ } | undefined;
4025
+ nextCursor: string | null;
3178
4026
  };
3179
4027
  outputFormat: "json";
3180
4028
  status: 200;
3181
4029
  input: {
3182
4030
  param: {
3183
- base: `0x${string}`;
4031
+ orderId: string;
3184
4032
  };
3185
4033
  } & {
3186
4034
  query?: {
3187
4035
  chainId?: string | string[];
4036
+ cursor?: string | string[];
3188
4037
  include?: string | string[];
3189
- interval?: string | string[];
3190
- window?: string | string[];
4038
+ limit?: string | string[];
4039
+ order?: string | string[];
4040
+ page?: string | string[];
3191
4041
  } | undefined;
3192
4042
  };
3193
- } | {
3194
- output: {
3195
- error: {
3196
- code: "api_key_malformed";
3197
- details?: readonly Response.error.Detail[] | undefined;
3198
- message: string;
3199
- };
3200
- requestId: string;
3201
- };
3202
- outputFormat: "json";
3203
- status: 400;
4043
+ };
4044
+ };
4045
+ } & {
4046
+ "/v1/exchange/pairs/:base/ohlc": {
4047
+ $get: {
4048
+ output: null;
4049
+ outputFormat: "body";
4050
+ status: 402;
3204
4051
  input: {
3205
4052
  param: {
3206
4053
  base: `0x${string}`;
@@ -3216,7 +4063,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3216
4063
  } | {
3217
4064
  output: {
3218
4065
  error: {
3219
- code: "query_invalid";
4066
+ code: "api_key_malformed";
3220
4067
  details?: readonly Response.error.Detail[] | undefined;
3221
4068
  message: string;
3222
4069
  };
@@ -3239,14 +4086,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3239
4086
  } | {
3240
4087
  output: {
3241
4088
  error: {
3242
- code: "pair_invalid";
4089
+ code: "api_key_invalid" | "api_key_missing";
3243
4090
  details?: readonly Response.error.Detail[] | undefined;
3244
4091
  message: string;
3245
4092
  };
3246
4093
  requestId: string;
3247
4094
  };
3248
4095
  outputFormat: "json";
3249
- status: 400;
4096
+ status: 401;
3250
4097
  input: {
3251
4098
  param: {
3252
4099
  base: `0x${string}`;
@@ -3262,14 +4109,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3262
4109
  } | {
3263
4110
  output: {
3264
4111
  error: {
3265
- code: "api_key_invalid" | "api_key_missing";
4112
+ code: "api_key_forbidden";
3266
4113
  details?: readonly Response.error.Detail[] | undefined;
3267
4114
  message: string;
3268
4115
  };
3269
4116
  requestId: string;
3270
4117
  };
3271
4118
  outputFormat: "json";
3272
- status: 401;
4119
+ status: 403;
3273
4120
  input: {
3274
4121
  param: {
3275
4122
  base: `0x${string}`;
@@ -3283,9 +4130,16 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3283
4130
  } | undefined;
3284
4131
  };
3285
4132
  } | {
3286
- output: null;
3287
- outputFormat: "body";
3288
- status: 402;
4133
+ output: {
4134
+ error: {
4135
+ code: "payment_required" | "rate_limit_exceeded";
4136
+ details?: readonly Response.error.Detail[] | undefined;
4137
+ message: string;
4138
+ };
4139
+ requestId: string;
4140
+ };
4141
+ outputFormat: "json";
4142
+ status: 429;
3289
4143
  input: {
3290
4144
  param: {
3291
4145
  base: `0x${string}`;
@@ -3301,14 +4155,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3301
4155
  } | {
3302
4156
  output: {
3303
4157
  error: {
3304
- code: "api_key_forbidden";
4158
+ code: "query_invalid";
3305
4159
  details?: readonly Response.error.Detail[] | undefined;
3306
4160
  message: string;
3307
4161
  };
3308
4162
  requestId: string;
3309
4163
  };
3310
4164
  outputFormat: "json";
3311
- status: 403;
4165
+ status: 400;
3312
4166
  input: {
3313
4167
  param: {
3314
4168
  base: `0x${string}`;
@@ -3324,14 +4178,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3324
4178
  } | {
3325
4179
  output: {
3326
4180
  error: {
3327
- code: "pair_not_found";
4181
+ code: "upstream_error";
3328
4182
  details?: readonly Response.error.Detail[] | undefined;
3329
4183
  message: string;
3330
4184
  };
3331
4185
  requestId: string;
3332
4186
  };
3333
4187
  outputFormat: "json";
3334
- status: 404;
4188
+ status: 502;
3335
4189
  input: {
3336
4190
  param: {
3337
4191
  base: `0x${string}`;
@@ -3347,14 +4201,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3347
4201
  } | {
3348
4202
  output: {
3349
4203
  error: {
3350
- code: "payment_required" | "rate_limit_exceeded";
4204
+ code: "pair_invalid";
3351
4205
  details?: readonly Response.error.Detail[] | undefined;
3352
4206
  message: string;
3353
4207
  };
3354
4208
  requestId: string;
3355
4209
  };
3356
4210
  outputFormat: "json";
3357
- status: 429;
4211
+ status: 400;
3358
4212
  input: {
3359
4213
  param: {
3360
4214
  base: `0x${string}`;
@@ -3370,14 +4224,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3370
4224
  } | {
3371
4225
  output: {
3372
4226
  error: {
3373
- code: "upstream_error";
4227
+ code: "pair_not_found";
3374
4228
  details?: readonly Response.error.Detail[] | undefined;
3375
4229
  message: string;
3376
4230
  };
3377
4231
  requestId: string;
3378
4232
  };
3379
4233
  outputFormat: "json";
3380
- status: 502;
4234
+ status: 404;
3381
4235
  input: {
3382
4236
  param: {
3383
4237
  base: `0x${string}`;
@@ -3390,19 +4244,8 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3390
4244
  window?: string | string[];
3391
4245
  } | undefined;
3392
4246
  };
3393
- };
3394
- };
3395
- } & {
3396
- "/v1/exchange/pairs/:base/depth": {
3397
- $get: {
4247
+ } | {
3398
4248
  output: {
3399
- asks: {
3400
- cumulativeSize: string;
3401
- id: string;
3402
- price: string;
3403
- size: string;
3404
- tick: number;
3405
- }[];
3406
4249
  base: {
3407
4250
  address: `0x${string}`;
3408
4251
  currency?: string | undefined;
@@ -3412,13 +4255,20 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3412
4255
  symbol?: string | undefined;
3413
4256
  verified?: boolean | undefined;
3414
4257
  };
3415
- bids: {
3416
- cumulativeSize: string;
4258
+ data: {
4259
+ close: string;
4260
+ fillCount: number;
4261
+ high: string;
3417
4262
  id: string;
3418
- price: string;
3419
- size: string;
3420
- tick: number;
4263
+ low: string;
4264
+ open: string;
4265
+ timestamp: string;
4266
+ volume: {
4267
+ base: string;
4268
+ quote: string;
4269
+ };
3421
4270
  }[];
4271
+ interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
3422
4272
  quote: {
3423
4273
  address: `0x${string}`;
3424
4274
  currency?: string | undefined;
@@ -3428,9 +4278,31 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3428
4278
  symbol?: string | undefined;
3429
4279
  verified?: boolean | undefined;
3430
4280
  };
4281
+ truncated: boolean;
4282
+ window: "1h" | "24h" | "30d" | "7d";
3431
4283
  };
3432
4284
  outputFormat: "json";
3433
4285
  status: 200;
4286
+ input: {
4287
+ param: {
4288
+ base: `0x${string}`;
4289
+ };
4290
+ } & {
4291
+ query?: {
4292
+ chainId?: string | string[];
4293
+ include?: string | string[];
4294
+ interval?: string | string[];
4295
+ window?: string | string[];
4296
+ } | undefined;
4297
+ };
4298
+ };
4299
+ };
4300
+ } & {
4301
+ "/v1/exchange/pairs/:base/depth": {
4302
+ $get: {
4303
+ output: null;
4304
+ outputFormat: "body";
4305
+ status: 402;
3434
4306
  input: {
3435
4307
  param: {
3436
4308
  base: `0x${string}`;
@@ -3467,14 +4339,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3467
4339
  } | {
3468
4340
  output: {
3469
4341
  error: {
3470
- code: "query_invalid";
4342
+ code: "api_key_invalid" | "api_key_missing";
3471
4343
  details?: readonly Response.error.Detail[] | undefined;
3472
4344
  message: string;
3473
4345
  };
3474
4346
  requestId: string;
3475
4347
  };
3476
4348
  outputFormat: "json";
3477
- status: 400;
4349
+ status: 401;
3478
4350
  input: {
3479
4351
  param: {
3480
4352
  base: `0x${string}`;
@@ -3489,14 +4361,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3489
4361
  } | {
3490
4362
  output: {
3491
4363
  error: {
3492
- code: "pair_invalid";
4364
+ code: "api_key_forbidden";
3493
4365
  details?: readonly Response.error.Detail[] | undefined;
3494
4366
  message: string;
3495
4367
  };
3496
4368
  requestId: string;
3497
4369
  };
3498
4370
  outputFormat: "json";
3499
- status: 400;
4371
+ status: 403;
3500
4372
  input: {
3501
4373
  param: {
3502
4374
  base: `0x${string}`;
@@ -3511,14 +4383,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3511
4383
  } | {
3512
4384
  output: {
3513
4385
  error: {
3514
- code: "api_key_invalid" | "api_key_missing";
4386
+ code: "payment_required" | "rate_limit_exceeded";
3515
4387
  details?: readonly Response.error.Detail[] | undefined;
3516
4388
  message: string;
3517
4389
  };
3518
4390
  requestId: string;
3519
4391
  };
3520
4392
  outputFormat: "json";
3521
- status: 401;
4393
+ status: 429;
3522
4394
  input: {
3523
4395
  param: {
3524
4396
  base: `0x${string}`;
@@ -3531,9 +4403,16 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3531
4403
  } | undefined;
3532
4404
  };
3533
4405
  } | {
3534
- output: null;
3535
- outputFormat: "body";
3536
- status: 402;
4406
+ output: {
4407
+ error: {
4408
+ code: "query_invalid";
4409
+ details?: readonly Response.error.Detail[] | undefined;
4410
+ message: string;
4411
+ };
4412
+ requestId: string;
4413
+ };
4414
+ outputFormat: "json";
4415
+ status: 400;
3537
4416
  input: {
3538
4417
  param: {
3539
4418
  base: `0x${string}`;
@@ -3548,14 +4427,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3548
4427
  } | {
3549
4428
  output: {
3550
4429
  error: {
3551
- code: "api_key_forbidden";
4430
+ code: "upstream_error";
3552
4431
  details?: readonly Response.error.Detail[] | undefined;
3553
4432
  message: string;
3554
4433
  };
3555
4434
  requestId: string;
3556
4435
  };
3557
4436
  outputFormat: "json";
3558
- status: 403;
4437
+ status: 502;
3559
4438
  input: {
3560
4439
  param: {
3561
4440
  base: `0x${string}`;
@@ -3570,14 +4449,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3570
4449
  } | {
3571
4450
  output: {
3572
4451
  error: {
3573
- code: "pair_not_found";
4452
+ code: "pair_invalid";
3574
4453
  details?: readonly Response.error.Detail[] | undefined;
3575
4454
  message: string;
3576
4455
  };
3577
4456
  requestId: string;
3578
4457
  };
3579
4458
  outputFormat: "json";
3580
- status: 404;
4459
+ status: 400;
3581
4460
  input: {
3582
4461
  param: {
3583
4462
  base: `0x${string}`;
@@ -3592,14 +4471,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3592
4471
  } | {
3593
4472
  output: {
3594
4473
  error: {
3595
- code: "payment_required" | "rate_limit_exceeded";
4474
+ code: "pair_not_found";
3596
4475
  details?: readonly Response.error.Detail[] | undefined;
3597
4476
  message: string;
3598
4477
  };
3599
4478
  requestId: string;
3600
4479
  };
3601
4480
  outputFormat: "json";
3602
- status: 429;
4481
+ status: 404;
3603
4482
  input: {
3604
4483
  param: {
3605
4484
  base: `0x${string}`;
@@ -3613,15 +4492,41 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3613
4492
  };
3614
4493
  } | {
3615
4494
  output: {
3616
- error: {
3617
- code: "upstream_error";
3618
- details?: readonly Response.error.Detail[] | undefined;
3619
- message: string;
4495
+ asks: {
4496
+ cumulativeSize: string;
4497
+ id: string;
4498
+ price: string;
4499
+ size: string;
4500
+ tick: number;
4501
+ }[];
4502
+ base: {
4503
+ address: `0x${string}`;
4504
+ currency?: string | undefined;
4505
+ decimals?: number | undefined;
4506
+ logoUri?: string | undefined;
4507
+ name?: string | undefined;
4508
+ symbol?: string | undefined;
4509
+ verified?: boolean | undefined;
4510
+ };
4511
+ bids: {
4512
+ cumulativeSize: string;
4513
+ id: string;
4514
+ price: string;
4515
+ size: string;
4516
+ tick: number;
4517
+ }[];
4518
+ quote: {
4519
+ address: `0x${string}`;
4520
+ currency?: string | undefined;
4521
+ decimals?: number | undefined;
4522
+ logoUri?: string | undefined;
4523
+ name?: string | undefined;
4524
+ symbol?: string | undefined;
4525
+ verified?: boolean | undefined;
3620
4526
  };
3621
- requestId: string;
3622
4527
  };
3623
4528
  outputFormat: "json";
3624
- status: 502;
4529
+ status: 200;
3625
4530
  input: {
3626
4531
  param: {
3627
4532
  base: `0x${string}`;
@@ -3641,6 +4546,8 @@ export declare namespace exchanges {
3641
4546
  type Options = {
3642
4547
  /** FX configuration backing amount valuation. */
3643
4548
  fx?: Valuation.addresses.Fx | undefined;
4549
+ /** Whether to try Tempo's native stablecoin DEX first. Enabled by default. */
4550
+ nativeDex?: boolean | undefined;
3644
4551
  };
3645
4552
  }
3646
4553
  /**