tapimo 0.0.0 → 0.0.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 (422) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -0
  3. package/dist/ApiKey.d.ts +65 -0
  4. package/dist/ApiKey.d.ts.map +1 -0
  5. package/dist/ApiKey.js +105 -0
  6. package/dist/ApiKey.js.map +1 -0
  7. package/dist/ApiKeySource.d.ts +166 -0
  8. package/dist/ApiKeySource.d.ts.map +1 -0
  9. package/dist/ApiKeySource.js +234 -0
  10. package/dist/ApiKeySource.js.map +1 -0
  11. package/dist/App.d.ts +19317 -0
  12. package/dist/App.d.ts.map +1 -0
  13. package/dist/App.js +612 -0
  14. package/dist/App.js.map +1 -0
  15. package/dist/Assets.d.ts +44 -0
  16. package/dist/Assets.d.ts.map +1 -0
  17. package/dist/Assets.js +23 -0
  18. package/dist/Assets.js.map +1 -0
  19. package/dist/Auth.d.ts +2 -0
  20. package/dist/Auth.d.ts.map +1 -0
  21. package/dist/Auth.js +2 -0
  22. package/dist/Auth.js.map +1 -0
  23. package/dist/Cli.d.ts +21 -0
  24. package/dist/Cli.d.ts.map +1 -0
  25. package/dist/Cli.js +13 -0
  26. package/dist/Cli.js.map +1 -0
  27. package/dist/Client.d.ts +20 -0
  28. package/dist/Client.d.ts.map +1 -0
  29. package/dist/Client.js +24 -0
  30. package/dist/Client.js.map +1 -0
  31. package/dist/Metrics.d.ts +70 -0
  32. package/dist/Metrics.d.ts.map +1 -0
  33. package/dist/Metrics.js +91 -0
  34. package/dist/Metrics.js.map +1 -0
  35. package/dist/Scope.d.ts +35 -0
  36. package/dist/Scope.d.ts.map +1 -0
  37. package/dist/Scope.js +38 -0
  38. package/dist/Scope.js.map +1 -0
  39. package/dist/Webhooks.d.ts +79 -0
  40. package/dist/Webhooks.d.ts.map +1 -0
  41. package/dist/Webhooks.js +107 -0
  42. package/dist/Webhooks.js.map +1 -0
  43. package/dist/admin/Access.d.ts +41 -0
  44. package/dist/admin/Access.d.ts.map +1 -0
  45. package/dist/admin/Access.js +75 -0
  46. package/dist/admin/Access.js.map +1 -0
  47. package/dist/admin/App.d.ts +1221 -0
  48. package/dist/admin/App.d.ts.map +1 -0
  49. package/dist/admin/App.js +113 -0
  50. package/dist/admin/App.js.map +1 -0
  51. package/dist/admin/apps/api-keys.d.ts +209 -0
  52. package/dist/admin/apps/api-keys.d.ts.map +1 -0
  53. package/dist/admin/apps/api-keys.js +129 -0
  54. package/dist/admin/apps/api-keys.js.map +1 -0
  55. package/dist/admin/apps/scopes.d.ts +46 -0
  56. package/dist/admin/apps/scopes.d.ts.map +1 -0
  57. package/dist/admin/apps/scopes.js +41 -0
  58. package/dist/admin/apps/scopes.js.map +1 -0
  59. package/dist/admin/apps/verified-tokens.d.ts +1206 -0
  60. package/dist/admin/apps/verified-tokens.d.ts.map +1 -0
  61. package/dist/admin/apps/verified-tokens.js +485 -0
  62. package/dist/admin/apps/verified-tokens.js.map +1 -0
  63. package/dist/admin/index.d.ts +3 -0
  64. package/dist/admin/index.d.ts.map +1 -0
  65. package/dist/admin/index.js +3 -0
  66. package/dist/admin/index.js.map +1 -0
  67. package/dist/admin/ui.generated.d.ts +11 -0
  68. package/dist/admin/ui.generated.d.ts.map +1 -0
  69. package/dist/admin/ui.generated.js +43 -0
  70. package/dist/admin/ui.generated.js.map +1 -0
  71. package/dist/apps/activities.d.ts +18725 -0
  72. package/dist/apps/activities.d.ts.map +1 -0
  73. package/dist/apps/activities.js +3138 -0
  74. package/dist/apps/activities.js.map +1 -0
  75. package/dist/apps/addresses.d.ts +3662 -0
  76. package/dist/apps/addresses.d.ts.map +1 -0
  77. package/dist/apps/addresses.js +22 -0
  78. package/dist/apps/addresses.js.map +1 -0
  79. package/dist/apps/balances.d.ts +342 -0
  80. package/dist/apps/balances.d.ts.map +1 -0
  81. package/dist/apps/balances.js +393 -0
  82. package/dist/apps/balances.js.map +1 -0
  83. package/dist/apps/blocks.d.ts +931 -0
  84. package/dist/apps/blocks.d.ts.map +1 -0
  85. package/dist/apps/blocks.js +689 -0
  86. package/dist/apps/blocks.js.map +1 -0
  87. package/dist/apps/coingecko.d.ts +1053 -0
  88. package/dist/apps/coingecko.d.ts.map +1 -0
  89. package/dist/apps/coingecko.js +1015 -0
  90. package/dist/apps/coingecko.js.map +1 -0
  91. package/dist/apps/exchanges.d.ts +3000 -0
  92. package/dist/apps/exchanges.d.ts.map +1 -0
  93. package/dist/apps/exchanges.js +3570 -0
  94. package/dist/apps/exchanges.js.map +1 -0
  95. package/dist/apps/fee-amm.d.ts +640 -0
  96. package/dist/apps/fee-amm.d.ts.map +1 -0
  97. package/dist/apps/fee-amm.js +815 -0
  98. package/dist/apps/fee-amm.js.map +1 -0
  99. package/dist/apps/indexer.d.ts +116 -0
  100. package/dist/apps/indexer.d.ts.map +1 -0
  101. package/dist/apps/indexer.js +270 -0
  102. package/dist/apps/indexer.js.map +1 -0
  103. package/dist/apps/receipts.d.ts +1438 -0
  104. package/dist/apps/receipts.d.ts.map +1 -0
  105. package/dist/apps/receipts.js +874 -0
  106. package/dist/apps/receipts.js.map +1 -0
  107. package/dist/apps/rpc.d.ts +173 -0
  108. package/dist/apps/rpc.d.ts.map +1 -0
  109. package/dist/apps/rpc.js +191 -0
  110. package/dist/apps/rpc.js.map +1 -0
  111. package/dist/apps/tokenlist.d.ts +192 -0
  112. package/dist/apps/tokenlist.d.ts.map +1 -0
  113. package/dist/apps/tokenlist.js +153 -0
  114. package/dist/apps/tokenlist.js.map +1 -0
  115. package/dist/apps/tokens.d.ts +2246 -0
  116. package/dist/apps/tokens.d.ts.map +1 -0
  117. package/dist/apps/tokens.js +1789 -0
  118. package/dist/apps/tokens.js.map +1 -0
  119. package/dist/apps/transactions.d.ts +2327 -0
  120. package/dist/apps/transactions.d.ts.map +1 -0
  121. package/dist/apps/transactions.js +975 -0
  122. package/dist/apps/transactions.js.map +1 -0
  123. package/dist/apps/transfers.d.ts +589 -0
  124. package/dist/apps/transfers.d.ts.map +1 -0
  125. package/dist/apps/transfers.js +769 -0
  126. package/dist/apps/transfers.js.map +1 -0
  127. package/dist/apps/verified-tokens.d.ts +544 -0
  128. package/dist/apps/verified-tokens.d.ts.map +1 -0
  129. package/dist/apps/verified-tokens.js +234 -0
  130. package/dist/apps/verified-tokens.js.map +1 -0
  131. package/dist/apps/webhooks.d.ts +7684 -0
  132. package/dist/apps/webhooks.d.ts.map +1 -0
  133. package/dist/apps/webhooks.js +2112 -0
  134. package/dist/apps/webhooks.js.map +1 -0
  135. package/dist/cloudflare.d.ts +32 -0
  136. package/dist/cloudflare.d.ts.map +1 -0
  137. package/dist/cloudflare.js +45 -0
  138. package/dist/cloudflare.js.map +1 -0
  139. package/dist/index.d.ts +16 -0
  140. package/dist/index.d.ts.map +1 -0
  141. package/dist/index.js +16 -0
  142. package/dist/index.js.map +1 -0
  143. package/dist/internal/Auth.d.ts +298 -0
  144. package/dist/internal/Auth.d.ts.map +1 -0
  145. package/dist/internal/Auth.js +618 -0
  146. package/dist/internal/Auth.js.map +1 -0
  147. package/dist/internal/Cache.d.ts +74 -0
  148. package/dist/internal/Cache.d.ts.map +1 -0
  149. package/dist/internal/Cache.js +215 -0
  150. package/dist/internal/Cache.js.map +1 -0
  151. package/dist/internal/Cursor.d.ts +79 -0
  152. package/dist/internal/Cursor.d.ts.map +1 -0
  153. package/dist/internal/Cursor.js +116 -0
  154. package/dist/internal/Cursor.js.map +1 -0
  155. package/dist/internal/EdgeCache.d.ts +59 -0
  156. package/dist/internal/EdgeCache.d.ts.map +1 -0
  157. package/dist/internal/EdgeCache.js +174 -0
  158. package/dist/internal/EdgeCache.js.map +1 -0
  159. package/dist/internal/Log.d.ts +104 -0
  160. package/dist/internal/Log.d.ts.map +1 -0
  161. package/dist/internal/Log.js +118 -0
  162. package/dist/internal/Log.js.map +1 -0
  163. package/dist/internal/MetricSink.d.ts +65 -0
  164. package/dist/internal/MetricSink.d.ts.map +1 -0
  165. package/dist/internal/MetricSink.js +146 -0
  166. package/dist/internal/MetricSink.js.map +1 -0
  167. package/dist/internal/Mpp.d.ts +71 -0
  168. package/dist/internal/Mpp.d.ts.map +1 -0
  169. package/dist/internal/Mpp.js +105 -0
  170. package/dist/internal/Mpp.js.map +1 -0
  171. package/dist/internal/OpenApi.d.ts +313 -0
  172. package/dist/internal/OpenApi.d.ts.map +1 -0
  173. package/dist/internal/OpenApi.fonts.d.ts +2 -0
  174. package/dist/internal/OpenApi.fonts.d.ts.map +1 -0
  175. package/dist/internal/OpenApi.fonts.js +39 -0
  176. package/dist/internal/OpenApi.fonts.js.map +1 -0
  177. package/dist/internal/OpenApi.js +335 -0
  178. package/dist/internal/OpenApi.js.map +1 -0
  179. package/dist/internal/OpenApi.logo.d.ts +6 -0
  180. package/dist/internal/OpenApi.logo.d.ts.map +1 -0
  181. package/dist/internal/OpenApi.logo.js +19 -0
  182. package/dist/internal/OpenApi.logo.js.map +1 -0
  183. package/dist/internal/Path.d.ts +5 -0
  184. package/dist/internal/Path.d.ts.map +1 -0
  185. package/dist/internal/Path.js +16 -0
  186. package/dist/internal/Path.js.map +1 -0
  187. package/dist/internal/RateLimit.d.ts +60 -0
  188. package/dist/internal/RateLimit.d.ts.map +1 -0
  189. package/dist/internal/RateLimit.js +48 -0
  190. package/dist/internal/RateLimit.js.map +1 -0
  191. package/dist/internal/Response.d.ts +132 -0
  192. package/dist/internal/Response.d.ts.map +1 -0
  193. package/dist/internal/Response.js +72 -0
  194. package/dist/internal/Response.js.map +1 -0
  195. package/dist/internal/Schema.d.ts +257 -0
  196. package/dist/internal/Schema.d.ts.map +1 -0
  197. package/dist/internal/Schema.js +360 -0
  198. package/dist/internal/Schema.js.map +1 -0
  199. package/dist/internal/Store.d.ts +204 -0
  200. package/dist/internal/Store.d.ts.map +1 -0
  201. package/dist/internal/Store.js +291 -0
  202. package/dist/internal/Store.js.map +1 -0
  203. package/dist/internal/Tidx.d.ts +120 -0
  204. package/dist/internal/Tidx.d.ts.map +1 -0
  205. package/dist/internal/Tidx.js +156 -0
  206. package/dist/internal/Tidx.js.map +1 -0
  207. package/dist/internal/Timing.d.ts +22 -0
  208. package/dist/internal/Timing.d.ts.map +1 -0
  209. package/dist/internal/Timing.js +32 -0
  210. package/dist/internal/Timing.js.map +1 -0
  211. package/dist/internal/Ttl.d.ts +25 -0
  212. package/dist/internal/Ttl.d.ts.map +1 -0
  213. package/dist/internal/Ttl.js +49 -0
  214. package/dist/internal/Ttl.js.map +1 -0
  215. package/dist/internal/Value.d.ts +47 -0
  216. package/dist/internal/Value.d.ts.map +1 -0
  217. package/dist/internal/Value.js +122 -0
  218. package/dist/internal/Value.js.map +1 -0
  219. package/dist/internal/VerifiedTokens.d.ts +228 -0
  220. package/dist/internal/VerifiedTokens.d.ts.map +1 -0
  221. package/dist/internal/VerifiedTokens.js +450 -0
  222. package/dist/internal/VerifiedTokens.js.map +1 -0
  223. package/dist/internal/Viem.d.ts +2082 -0
  224. package/dist/internal/Viem.d.ts.map +1 -0
  225. package/dist/internal/Viem.js +63 -0
  226. package/dist/internal/Viem.js.map +1 -0
  227. package/dist/internal/WebhookDestination.d.ts +198 -0
  228. package/dist/internal/WebhookDestination.d.ts.map +1 -0
  229. package/dist/internal/WebhookDestination.js +170 -0
  230. package/dist/internal/WebhookDestination.js.map +1 -0
  231. package/dist/internal/Webhooks.d.ts +433 -0
  232. package/dist/internal/Webhooks.d.ts.map +1 -0
  233. package/dist/internal/Webhooks.js +489 -0
  234. package/dist/internal/Webhooks.js.map +1 -0
  235. package/dist/internal/webhookDestinations/betterStack.d.ts +26 -0
  236. package/dist/internal/webhookDestinations/betterStack.d.ts.map +1 -0
  237. package/dist/internal/webhookDestinations/betterStack.js +76 -0
  238. package/dist/internal/webhookDestinations/betterStack.js.map +1 -0
  239. package/dist/internal/webhookDestinations/slack.d.ts +59 -0
  240. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -0
  241. package/dist/internal/webhookDestinations/slack.js +422 -0
  242. package/dist/internal/webhookDestinations/slack.js.map +1 -0
  243. package/dist/internal/webhookDestinations/url.d.ts +17 -0
  244. package/dist/internal/webhookDestinations/url.d.ts.map +1 -0
  245. package/dist/internal/webhookDestinations/url.js +130 -0
  246. package/dist/internal/webhookDestinations/url.js.map +1 -0
  247. package/dist/openrpc.json +5302 -0
  248. package/package.json +46 -4
  249. package/seeds/31318/icons/0x20c0000000000000000000000000000000000000.svg +1 -0
  250. package/seeds/31318/icons/0x20c0000000000000000000000000000000000001.svg +1 -0
  251. package/seeds/31318/icons/0x20c0000000000000000000000000000000000002.svg +1 -0
  252. package/seeds/31318/icons/0x20c0000000000000000000000000000000000003.svg +1 -0
  253. package/seeds/31318/verified-tokens.json +30 -0
  254. package/seeds/4217/icons/0x20c0000000000000000000000000000000000000.svg +25 -0
  255. package/seeds/4217/icons/0x20c000000000000000000000048c8f36df1c9a4a.svg +1 -0
  256. package/seeds/4217/icons/0x20c0000000000000000000000520792dcccccccc.svg +1 -0
  257. package/seeds/4217/icons/0x20c0000000000000000000000a6da882d075a4c3.svg +4 -0
  258. package/seeds/4217/icons/0x20c000000000000000000000111111111e910f0f.svg +30 -0
  259. package/seeds/4217/icons/0x20c00000000000000000000014f22ca97301eb73.svg +1 -0
  260. package/seeds/4217/icons/0x20c0000000000000000000001621e21f71cf12fb.svg +1 -0
  261. package/seeds/4217/icons/0x20c0000000000000000000002f52d5cc21a3207b.svg +1 -0
  262. package/seeds/4217/icons/0x20c0000000000000000000003158081efd85bfc2.svg +11 -0
  263. package/seeds/4217/icons/0x20c0000000000000000000003554d28269e0f3c2.svg +1 -0
  264. package/seeds/4217/icons/0x20c000000000000000000000383a23bacb546ab9.svg +1 -0
  265. package/seeds/4217/icons/0x20c00000000000000000000042109aef2f8b28e1.png +0 -0
  266. package/seeds/4217/icons/0x20c0000000000000000000005c0bac7cef389a11.svg +1 -0
  267. package/seeds/4217/icons/0x20c0000000000000000000006fd9a167923ba194.png +0 -0
  268. package/seeds/4217/icons/0x20c0000000000000000000007f7ba549dd0251b9.svg +1 -0
  269. package/seeds/4217/icons/0x20c0000000000000000000008191667423f70e67.svg +5 -0
  270. package/seeds/4217/icons/0x20c0000000000000000000008ee4fcff88888888.svg +1 -0
  271. package/seeds/4217/icons/0x20c0000000000000000000009a4a4b17e0dc6651.svg +1 -0
  272. package/seeds/4217/icons/0x20c000000000000000000000ab02d39df30bd17e.svg +1 -0
  273. package/seeds/4217/icons/0x20c000000000000000000000ae247a1130450f09.svg +1 -0
  274. package/seeds/4217/icons/0x20c000000000000000000000aeed2ec36a54d0e5.svg +1 -0
  275. package/seeds/4217/icons/0x20c000000000000000000000b9537d11c60e8b50.svg +1 -0
  276. package/seeds/4217/icons/0x20c000000000000000000000bd95bfb69fbe6ce3.svg +1 -0
  277. package/seeds/4217/icons/0x20c000000000000000000000c412ec89d0c08be5.svg +1 -0
  278. package/seeds/4217/icons/0x20c000000000000000000000f047dd7018e50367.png +0 -0
  279. package/seeds/4217/verified-tokens.json +177 -0
  280. package/seeds/42431/icons/0x20c0000000000000000000000000000000000000.svg +25 -0
  281. package/seeds/42431/icons/0x20c0000000000000000000000000000000000001.svg +1 -0
  282. package/seeds/42431/icons/0x20c0000000000000000000000000000000000002.svg +1 -0
  283. package/seeds/42431/icons/0x20c0000000000000000000000000000000000003.svg +1 -0
  284. package/seeds/42431/icons/0x20c0000000000000000000009e8d7eb59b783726.svg +1 -0
  285. package/seeds/42431/icons/0x20c000000000000000000000d72572838bbee59c.svg +1 -0
  286. package/seeds/42431/verified-tokens.json +44 -0
  287. package/seeds/openrpc/README.md +27 -0
  288. package/seeds/openrpc/execution-apis.json +8989 -0
  289. package/src/ApiKey.test.ts +91 -0
  290. package/src/ApiKey.ts +122 -0
  291. package/src/ApiKeySource.test-d.ts +11 -0
  292. package/src/ApiKeySource.test.ts +295 -0
  293. package/src/ApiKeySource.ts +303 -0
  294. package/src/App.test-d.ts +38 -0
  295. package/src/App.test.ts +65927 -0
  296. package/src/App.ts +855 -0
  297. package/src/Assets.ts +58 -0
  298. package/src/Auth.ts +1 -0
  299. package/src/Cli.test.ts +81 -0
  300. package/src/Cli.ts +38 -0
  301. package/src/Client.test-d.ts +1438 -0
  302. package/src/Client.test.ts +134 -0
  303. package/src/Client.ts +45 -0
  304. package/src/Metrics.ts +154 -0
  305. package/src/Scope.ts +50 -0
  306. package/src/Webhooks.test.ts +49 -0
  307. package/src/Webhooks.ts +172 -0
  308. package/src/admin/Access.test.ts +130 -0
  309. package/src/admin/Access.ts +87 -0
  310. package/src/admin/App.test.ts +225 -0
  311. package/src/admin/App.ts +216 -0
  312. package/src/admin/apps/api-keys.test.ts +156 -0
  313. package/src/admin/apps/api-keys.ts +157 -0
  314. package/src/admin/apps/scopes.test.ts +52 -0
  315. package/src/admin/apps/scopes.ts +47 -0
  316. package/src/admin/apps/verified-tokens.test.ts +415 -0
  317. package/src/admin/apps/verified-tokens.ts +566 -0
  318. package/src/admin/index.ts +2 -0
  319. package/src/admin/ui/plugin.ts +135 -0
  320. package/src/admin/ui/src/components/Checkbox.tsx +22 -0
  321. package/src/admin/ui/src/components/Dialog.tsx +32 -0
  322. package/src/admin/ui/src/components/MobileProfile.tsx +31 -0
  323. package/src/admin/ui/src/components/Page.tsx +53 -0
  324. package/src/admin/ui/src/components/TempoLogo.tsx +37 -0
  325. package/src/admin/ui/src/fonts/Pilat-Demi.woff2 +0 -0
  326. package/src/admin/ui/src/fonts/Pilat-Regular.woff2 +0 -0
  327. package/src/admin/ui/src/lib/api-keys.ts +63 -0
  328. package/src/admin/ui/src/lib/client.ts +15 -0
  329. package/src/admin/ui/src/lib/config.ts +57 -0
  330. package/src/admin/ui/src/lib/query-client.ts +26 -0
  331. package/src/admin/ui/src/lib/scopes.ts +25 -0
  332. package/src/admin/ui/src/lib/verified-tokens.ts +89 -0
  333. package/src/admin/ui/src/lib/wagmi.ts +18 -0
  334. package/src/admin/ui/src/routeTree.gen.ts +104 -0
  335. package/src/admin/ui/src/router.tsx +25 -0
  336. package/src/admin/ui/src/routes/__root.tsx +219 -0
  337. package/src/admin/ui/src/routes/api-keys.tsx +329 -0
  338. package/src/admin/ui/src/routes/index.tsx +7 -0
  339. package/src/admin/ui/src/routes/verified-tokens.tsx +331 -0
  340. package/src/admin/ui/src/styles.css +20 -0
  341. package/src/admin/ui/tsconfig.json +16 -0
  342. package/src/admin/ui/vite.config.ts +29 -0
  343. package/src/admin/ui.generated.ts +60 -0
  344. package/src/apps/activities.test.ts +1020 -0
  345. package/src/apps/activities.ts +3934 -0
  346. package/src/apps/addresses.ts +24 -0
  347. package/src/apps/balances.test.ts +274 -0
  348. package/src/apps/balances.ts +533 -0
  349. package/src/apps/blocks.test.ts +385 -0
  350. package/src/apps/blocks.ts +896 -0
  351. package/src/apps/coingecko.test.ts +218 -0
  352. package/src/apps/coingecko.ts +1383 -0
  353. package/src/apps/exchanges.test.ts +958 -0
  354. package/src/apps/exchanges.ts +4773 -0
  355. package/src/apps/fee-amm.test.ts +321 -0
  356. package/src/apps/fee-amm.ts +1121 -0
  357. package/src/apps/indexer.test.ts +153 -0
  358. package/src/apps/indexer.ts +330 -0
  359. package/src/apps/receipts.test.ts +285 -0
  360. package/src/apps/receipts.ts +1193 -0
  361. package/src/apps/rpc.test.ts +302 -0
  362. package/src/apps/rpc.ts +222 -0
  363. package/src/apps/tokenlist.test.ts +80 -0
  364. package/src/apps/tokenlist.ts +207 -0
  365. package/src/apps/tokens.test.ts +1062 -0
  366. package/src/apps/tokens.ts +2292 -0
  367. package/src/apps/transactions.test.ts +408 -0
  368. package/src/apps/transactions.ts +1363 -0
  369. package/src/apps/transfers.test.ts +371 -0
  370. package/src/apps/transfers.ts +1116 -0
  371. package/src/apps/verified-tokens.test.ts +114 -0
  372. package/src/apps/verified-tokens.ts +295 -0
  373. package/src/apps/webhooks.test.ts +1937 -0
  374. package/src/apps/webhooks.ts +2926 -0
  375. package/src/cloudflare.ts +55 -0
  376. package/src/index.ts +15 -0
  377. package/src/internal/Auth.test.ts +980 -0
  378. package/src/internal/Auth.ts +1012 -0
  379. package/src/internal/Cache.test.ts +240 -0
  380. package/src/internal/Cache.ts +262 -0
  381. package/src/internal/Cursor.test.ts +100 -0
  382. package/src/internal/Cursor.ts +149 -0
  383. package/src/internal/EdgeCache.test.ts +234 -0
  384. package/src/internal/EdgeCache.ts +224 -0
  385. package/src/internal/Errors.ts +14 -0
  386. package/src/internal/Log.test.ts +244 -0
  387. package/src/internal/Log.ts +216 -0
  388. package/src/internal/MetricSink.ts +220 -0
  389. package/src/internal/Mpp.test.ts +64 -0
  390. package/src/internal/Mpp.ts +141 -0
  391. package/src/internal/OpenApi.fonts.ts +38 -0
  392. package/src/internal/OpenApi.logo.ts +18 -0
  393. package/src/internal/OpenApi.ts +488 -0
  394. package/src/internal/Path.test.ts +14 -0
  395. package/src/internal/Path.ts +15 -0
  396. package/src/internal/RateLimit.test.ts +93 -0
  397. package/src/internal/RateLimit.ts +93 -0
  398. package/src/internal/Response.ts +131 -0
  399. package/src/internal/Schema.test.ts +34 -0
  400. package/src/internal/Schema.ts +523 -0
  401. package/src/internal/Store.test.ts +545 -0
  402. package/src/internal/Store.ts +526 -0
  403. package/src/internal/Tidx.local.test.ts +33 -0
  404. package/src/internal/Tidx.test.ts +294 -0
  405. package/src/internal/Tidx.ts +238 -0
  406. package/src/internal/Timing.test.ts +22 -0
  407. package/src/internal/Timing.ts +62 -0
  408. package/src/internal/Ttl.test.ts +18 -0
  409. package/src/internal/Ttl.ts +59 -0
  410. package/src/internal/Value.ts +114 -0
  411. package/src/internal/VerifiedTokens.test.ts +333 -0
  412. package/src/internal/VerifiedTokens.ts +645 -0
  413. package/src/internal/Viem.test.ts +115 -0
  414. package/src/internal/Viem.ts +165 -0
  415. package/src/internal/WebhookDestination.test.ts +648 -0
  416. package/src/internal/WebhookDestination.ts +331 -0
  417. package/src/internal/Webhooks.test.ts +668 -0
  418. package/src/internal/Webhooks.ts +940 -0
  419. package/src/internal/webhookDestinations/betterStack.ts +91 -0
  420. package/src/internal/webhookDestinations/slack.ts +496 -0
  421. package/src/internal/webhookDestinations/url.ts +128 -0
  422. package/src/openrpc.json +5302 -0
@@ -0,0 +1,1438 @@
1
+ import { type Context } from 'hono';
2
+ import { Hex } from 'ox';
3
+ import * as z from 'zod/mini';
4
+ import type * as App from '../App.js';
5
+ import * as Response from '../internal/Response.js';
6
+ import * as Schema from '../internal/Schema.js';
7
+ /** Zod schemas owned by the receipt handlers. */
8
+ export declare namespace schema {
9
+ /** One event log emitted by a transaction (RPC format). */
10
+ const Log: z.ZodMiniObject<{
11
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
12
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
13
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
14
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
15
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
16
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
17
+ removed: z.ZodMiniBoolean<boolean>;
18
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
19
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
20
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
21
+ }, z.core.$loose>;
22
+ /** The verbatim JSON-RPC payloads, surfaced under each resource's `rpc` field. */
23
+ namespace Rpc {
24
+ /** A JSON-RPC transaction receipt, passed through verbatim. */
25
+ const Receipt: z.ZodMiniObject<{
26
+ blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
27
+ blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
28
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
29
+ blockNumber: z.ZodMiniTemplateLiteral<`0x${string}`>;
30
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
31
+ contractAddress: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
32
+ cumulativeGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
33
+ effectiveGasPrice: z.ZodMiniTemplateLiteral<`0x${string}`>;
34
+ feePayer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
35
+ feeToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
36
+ from: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
37
+ gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
38
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
39
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
40
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
41
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
42
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
43
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
44
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
45
+ removed: z.ZodMiniBoolean<boolean>;
46
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
47
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
48
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
49
+ }, z.core.$loose>>;
50
+ logsBloom: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
51
+ root: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
52
+ status: z.ZodMiniTemplateLiteral<`0x${string}`>;
53
+ to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
54
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
55
+ transactionIndex: z.ZodMiniTemplateLiteral<`0x${string}`>;
56
+ type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
57
+ }, z.core.$loose>;
58
+ }
59
+ /**
60
+ * Metadata for a receipt: the verbatim JSON-RPC receipt (always present) plus
61
+ * resources embedded on demand via `include`.
62
+ */
63
+ const ReceiptMeta: z.ZodMiniObject<{
64
+ feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
65
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
66
+ admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
67
+ currency: z.ZodMiniString<string>;
68
+ createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
69
+ decimals: z.ZodMiniNumber<number>;
70
+ holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
71
+ id: z.ZodMiniString<string>;
72
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
73
+ name: z.ZodMiniString<string>;
74
+ quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
75
+ symbol: z.ZodMiniString<string>;
76
+ totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
77
+ transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
78
+ count: z.ZodMiniNumber<number>;
79
+ firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
80
+ lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
81
+ }, z.core.$strip>>;
82
+ verified: z.ZodMiniBoolean<boolean>;
83
+ }, z.core.$strip>>>;
84
+ rpc: z.ZodMiniObject<{
85
+ blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
86
+ blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
87
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
88
+ blockNumber: z.ZodMiniTemplateLiteral<`0x${string}`>;
89
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
90
+ contractAddress: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
91
+ cumulativeGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
92
+ effectiveGasPrice: z.ZodMiniTemplateLiteral<`0x${string}`>;
93
+ feePayer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
94
+ feeToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
95
+ from: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
96
+ gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
97
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
98
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
99
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
100
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
101
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
102
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
103
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
104
+ removed: z.ZodMiniBoolean<boolean>;
105
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
106
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
107
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
108
+ }, z.core.$loose>>;
109
+ logsBloom: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
110
+ root: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
111
+ status: z.ZodMiniTemplateLiteral<`0x${string}`>;
112
+ to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
113
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
114
+ transactionIndex: z.ZodMiniTemplateLiteral<`0x${string}`>;
115
+ type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
116
+ }, z.core.$loose>;
117
+ }, z.core.$strip>;
118
+ /**
119
+ * A humanized transaction receipt: decoded `status`/`type`, plain-number gas
120
+ * and block fields, and decimal-string fee/price values. The raw event logs
121
+ * are surfaced verbatim under `logs`, and the full JSON-RPC receipt under
122
+ * `meta.rpc`.
123
+ */
124
+ const Receipt: z.ZodMiniObject<{
125
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
126
+ blockNumber: z.ZodMiniNumber<number>;
127
+ contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
128
+ cumulativeGasUsed: z.ZodMiniNumber<number>;
129
+ effectiveGasPrice: z.ZodMiniString<string>;
130
+ feeAmount: z.ZodMiniString<string>;
131
+ feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
132
+ feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
133
+ gasUsed: z.ZodMiniNumber<number>;
134
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
135
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
136
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
137
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
138
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
139
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
140
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
141
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
142
+ removed: z.ZodMiniBoolean<boolean>;
143
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
144
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
145
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
146
+ }, z.core.$loose>>;
147
+ meta: z.ZodMiniObject<{
148
+ feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
149
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
150
+ admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
151
+ currency: z.ZodMiniString<string>;
152
+ createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
153
+ decimals: z.ZodMiniNumber<number>;
154
+ holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
155
+ id: z.ZodMiniString<string>;
156
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
157
+ name: z.ZodMiniString<string>;
158
+ quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
159
+ symbol: z.ZodMiniString<string>;
160
+ totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
161
+ transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
162
+ count: z.ZodMiniNumber<number>;
163
+ firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
164
+ lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
165
+ }, z.core.$strip>>;
166
+ verified: z.ZodMiniBoolean<boolean>;
167
+ }, z.core.$strip>>>;
168
+ rpc: z.ZodMiniObject<{
169
+ blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
170
+ blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
171
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
172
+ blockNumber: z.ZodMiniTemplateLiteral<`0x${string}`>;
173
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
174
+ contractAddress: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
175
+ cumulativeGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
176
+ effectiveGasPrice: z.ZodMiniTemplateLiteral<`0x${string}`>;
177
+ feePayer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
178
+ feeToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
179
+ from: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
180
+ gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
181
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
182
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
183
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
184
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
185
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
186
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
187
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
188
+ removed: z.ZodMiniBoolean<boolean>;
189
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
190
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
191
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
192
+ }, z.core.$loose>>;
193
+ logsBloom: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
194
+ root: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
195
+ status: z.ZodMiniTemplateLiteral<`0x${string}`>;
196
+ to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
197
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
198
+ transactionIndex: z.ZodMiniTemplateLiteral<`0x${string}`>;
199
+ type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
200
+ }, z.core.$loose>;
201
+ }, z.core.$strip>;
202
+ recipient: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
203
+ sender: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
204
+ status: z.ZodMiniEnum<{
205
+ reverted: "reverted";
206
+ success: "success";
207
+ }>;
208
+ timestamp: z.ZodMiniNullable<z.ZodMiniISODateTime>;
209
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
210
+ transactionIndex: z.ZodMiniNumber<number>;
211
+ type: z.ZodMiniLazy<z.ZodMiniEnum<{
212
+ eip1559: "eip1559";
213
+ eip2930: "eip2930";
214
+ eip4844: "eip4844";
215
+ eip7702: "eip7702";
216
+ legacy: "legacy";
217
+ tempo: "tempo";
218
+ unknown: "unknown";
219
+ }>>;
220
+ }, z.core.$strip>;
221
+ /** Schemas for the getReceipt operation. */
222
+ namespace getReceipt {
223
+ /** Path parameters for receipt requests. */
224
+ const Params: z.ZodMiniObject<{
225
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
226
+ }, z.core.$strip>;
227
+ /** Optional related resource that callers opt into via `include`. */
228
+ const Include: z.ZodMiniEnum<{
229
+ feeToken: "feeToken";
230
+ }>;
231
+ /**
232
+ * Parses a comma-separated `include` query value into a list of optional
233
+ * resources to embed. Extra lookups (e.g. fee-token metadata) only run when
234
+ * explicitly requested, keeping the base receipt response fast.
235
+ */
236
+ const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
237
+ feeToken: "feeToken";
238
+ }>>>;
239
+ /** Query parameters for receipt requests. */
240
+ const Query: z.ZodMiniObject<{
241
+ chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
242
+ mainnet: "mainnet";
243
+ testnet: "testnet";
244
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
245
+ include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
246
+ feeToken: "feeToken";
247
+ }>>>;
248
+ }, z.core.$strict>;
249
+ /** A humanized receipt, with the verbatim JSON-RPC payload under `meta.rpc`. */
250
+ const Response: z.ZodMiniObject<{
251
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
252
+ blockNumber: z.ZodMiniNumber<number>;
253
+ contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
254
+ cumulativeGasUsed: z.ZodMiniNumber<number>;
255
+ effectiveGasPrice: z.ZodMiniString<string>;
256
+ feeAmount: z.ZodMiniString<string>;
257
+ feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
258
+ feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
259
+ gasUsed: z.ZodMiniNumber<number>;
260
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
261
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
262
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
263
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
264
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
265
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
266
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
267
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
268
+ removed: z.ZodMiniBoolean<boolean>;
269
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
270
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
271
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
272
+ }, z.core.$loose>>;
273
+ meta: z.ZodMiniObject<{
274
+ feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
275
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
276
+ admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
277
+ currency: z.ZodMiniString<string>;
278
+ createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
279
+ decimals: z.ZodMiniNumber<number>;
280
+ holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
281
+ id: z.ZodMiniString<string>;
282
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
283
+ name: z.ZodMiniString<string>;
284
+ quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
285
+ symbol: z.ZodMiniString<string>;
286
+ totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
287
+ transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
288
+ count: z.ZodMiniNumber<number>;
289
+ firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
290
+ lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
291
+ }, z.core.$strip>>;
292
+ verified: z.ZodMiniBoolean<boolean>;
293
+ }, z.core.$strip>>>;
294
+ rpc: z.ZodMiniObject<{
295
+ blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
296
+ blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
297
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
298
+ blockNumber: z.ZodMiniTemplateLiteral<`0x${string}`>;
299
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
300
+ contractAddress: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
301
+ cumulativeGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
302
+ effectiveGasPrice: z.ZodMiniTemplateLiteral<`0x${string}`>;
303
+ feePayer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
304
+ feeToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
305
+ from: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
306
+ gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
307
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
308
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
309
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
310
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
311
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
312
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
313
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
314
+ removed: z.ZodMiniBoolean<boolean>;
315
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
316
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
317
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
318
+ }, z.core.$loose>>;
319
+ logsBloom: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
320
+ root: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
321
+ status: z.ZodMiniTemplateLiteral<`0x${string}`>;
322
+ to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
323
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
324
+ transactionIndex: z.ZodMiniTemplateLiteral<`0x${string}`>;
325
+ type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
326
+ }, z.core.$loose>;
327
+ }, z.core.$strip>;
328
+ recipient: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
329
+ sender: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
330
+ status: z.ZodMiniEnum<{
331
+ reverted: "reverted";
332
+ success: "success";
333
+ }>;
334
+ timestamp: z.ZodMiniNullable<z.ZodMiniISODateTime>;
335
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
336
+ transactionIndex: z.ZodMiniNumber<number>;
337
+ type: z.ZodMiniLazy<z.ZodMiniEnum<{
338
+ eip1559: "eip1559";
339
+ eip2930: "eip2930";
340
+ eip4844: "eip4844";
341
+ eip7702: "eip7702";
342
+ legacy: "legacy";
343
+ tempo: "tempo";
344
+ unknown: "unknown";
345
+ }>>;
346
+ }, z.core.$strip>;
347
+ }
348
+ /** Schemas for the getReceipts (list) operation. */
349
+ namespace getReceipts {
350
+ /**
351
+ * Optional resources for the receipt list: the per-row `feeToken` embed
352
+ * plus the response-wide capped `totalCount`. The detail route keeps its
353
+ * own `feeToken`-only {@link getReceipt.Include}.
354
+ */
355
+ const Include: z.ZodMiniEnum<{
356
+ feeToken: "feeToken";
357
+ totalCount: "totalCount";
358
+ }>;
359
+ /** Parses the comma-separated `include` value for the receipt list. */
360
+ const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
361
+ feeToken: "feeToken";
362
+ totalCount: "totalCount";
363
+ }>>>;
364
+ /** Query parameters for receipt list requests. */
365
+ const Query: z.ZodMiniObject<{
366
+ address: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
367
+ 'blockNumber.from': z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
368
+ 'blockNumber.to': z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
369
+ chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
370
+ mainnet: "mainnet";
371
+ testnet: "testnet";
372
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
373
+ cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
374
+ feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
375
+ feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
376
+ include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
377
+ feeToken: "feeToken";
378
+ totalCount: "totalCount";
379
+ }>>>;
380
+ limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
381
+ order: z.ZodMiniDefault<z.ZodMiniEnum<{
382
+ asc: "asc";
383
+ desc: "desc";
384
+ }>>;
385
+ page: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
386
+ recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
387
+ sender: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
388
+ status: z.ZodMiniOptional<z.ZodMiniEnum<{
389
+ reverted: "reverted";
390
+ success: "success";
391
+ }>>;
392
+ 'timestamp.from': z.ZodMiniOptional<z.ZodMiniISODateTime>;
393
+ 'timestamp.to': z.ZodMiniOptional<z.ZodMiniISODateTime>;
394
+ }, z.core.$strict>;
395
+ /**
396
+ * Page of receipts. Each item reuses the humanized receipt returned by
397
+ * `GET /transactions/:transactionHash/receipt`, so the list and detail endpoints expose one
398
+ * identical shape. Indexed list rows are reconstructed from the indexer,
399
+ * which stores neither the block hash nor the event logs, so those fields are
400
+ * `null`/empty in the list `meta.rpc` payload.
401
+ */
402
+ const Response: z.ZodMiniObject<{
403
+ data: z.ZodMiniArray<z.ZodMiniObject<{
404
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
405
+ blockNumber: z.ZodMiniNumber<number>;
406
+ contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
407
+ cumulativeGasUsed: z.ZodMiniNumber<number>;
408
+ effectiveGasPrice: z.ZodMiniString<string>;
409
+ feeAmount: z.ZodMiniString<string>;
410
+ feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
411
+ feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
412
+ gasUsed: z.ZodMiniNumber<number>;
413
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
414
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
415
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
416
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
417
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
418
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
419
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
420
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
421
+ removed: z.ZodMiniBoolean<boolean>;
422
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
423
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
424
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
425
+ }, z.core.$loose>>;
426
+ meta: z.ZodMiniObject<{
427
+ feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
428
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
429
+ admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
430
+ currency: z.ZodMiniString<string>;
431
+ createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
432
+ decimals: z.ZodMiniNumber<number>;
433
+ holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
434
+ id: z.ZodMiniString<string>;
435
+ logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
436
+ name: z.ZodMiniString<string>;
437
+ quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
438
+ symbol: z.ZodMiniString<string>;
439
+ totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
440
+ transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
441
+ count: z.ZodMiniNumber<number>;
442
+ firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
443
+ lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
444
+ }, z.core.$strip>>;
445
+ verified: z.ZodMiniBoolean<boolean>;
446
+ }, z.core.$strip>>>;
447
+ rpc: z.ZodMiniObject<{
448
+ blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
449
+ blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
450
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
451
+ blockNumber: z.ZodMiniTemplateLiteral<`0x${string}`>;
452
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
453
+ contractAddress: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
454
+ cumulativeGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
455
+ effectiveGasPrice: z.ZodMiniTemplateLiteral<`0x${string}`>;
456
+ feePayer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
457
+ feeToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>>;
458
+ from: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
459
+ gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
460
+ logs: z.ZodMiniArray<z.ZodMiniObject<{
461
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
462
+ blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
463
+ blockNumber: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
464
+ blockTimestamp: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
465
+ data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
466
+ logIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
467
+ removed: z.ZodMiniBoolean<boolean>;
468
+ topics: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
469
+ transactionHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
470
+ transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
471
+ }, z.core.$loose>>;
472
+ logsBloom: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
473
+ root: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>>;
474
+ status: z.ZodMiniTemplateLiteral<`0x${string}`>;
475
+ to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
476
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
477
+ transactionIndex: z.ZodMiniTemplateLiteral<`0x${string}`>;
478
+ type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
479
+ }, z.core.$loose>;
480
+ }, z.core.$strip>;
481
+ recipient: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
482
+ sender: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
483
+ status: z.ZodMiniEnum<{
484
+ reverted: "reverted";
485
+ success: "success";
486
+ }>;
487
+ timestamp: z.ZodMiniNullable<z.ZodMiniISODateTime>;
488
+ transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
489
+ transactionIndex: z.ZodMiniNumber<number>;
490
+ type: z.ZodMiniLazy<z.ZodMiniEnum<{
491
+ eip1559: "eip1559";
492
+ eip2930: "eip2930";
493
+ eip4844: "eip4844";
494
+ eip7702: "eip7702";
495
+ legacy: "legacy";
496
+ tempo: "tempo";
497
+ unknown: "unknown";
498
+ }>>;
499
+ }, z.core.$strip>>;
500
+ meta: z.ZodMiniOptional<z.ZodMiniObject<{
501
+ totalCountCapped: z.ZodMiniBoolean<boolean>;
502
+ totalCount: z.ZodMiniNumber<number>;
503
+ }, z.core.$strip>>;
504
+ nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
505
+ }, z.core.$strip>;
506
+ }
507
+ }
508
+ /** Creates receipt handlers. */
509
+ export declare function receipts(): import("hono/hono-base").HonoBase<App.Environment, {
510
+ "/receipts": {
511
+ $get: {
512
+ output: null;
513
+ outputFormat: "body";
514
+ status: 402;
515
+ input: {
516
+ query?: {
517
+ address?: string | string[];
518
+ 'blockNumber.from'?: string | string[];
519
+ 'blockNumber.to'?: string | string[];
520
+ chainId?: string | string[];
521
+ cursor?: string | string[];
522
+ feePayer?: string | string[];
523
+ feeToken?: string | string[];
524
+ include?: string | string[];
525
+ limit?: string | string[];
526
+ order?: string | string[];
527
+ page?: string | string[];
528
+ recipient?: string | string[];
529
+ sender?: string | string[];
530
+ status?: string | string[];
531
+ 'timestamp.from'?: string | string[];
532
+ 'timestamp.to'?: string | string[];
533
+ } | undefined;
534
+ };
535
+ } | {
536
+ output: {
537
+ error: {
538
+ code: "upstream_error";
539
+ details?: readonly Response.error.Detail[] | undefined;
540
+ message: string;
541
+ };
542
+ requestId: string;
543
+ };
544
+ outputFormat: "json";
545
+ status: 502;
546
+ input: {
547
+ query?: {
548
+ address?: string | string[];
549
+ 'blockNumber.from'?: string | string[];
550
+ 'blockNumber.to'?: string | string[];
551
+ chainId?: string | string[];
552
+ cursor?: string | string[];
553
+ feePayer?: string | string[];
554
+ feeToken?: string | string[];
555
+ include?: string | string[];
556
+ limit?: string | string[];
557
+ order?: string | string[];
558
+ page?: string | string[];
559
+ recipient?: string | string[];
560
+ sender?: string | string[];
561
+ status?: string | string[];
562
+ 'timestamp.from'?: string | string[];
563
+ 'timestamp.to'?: string | string[];
564
+ } | undefined;
565
+ };
566
+ } | {
567
+ output: {
568
+ error: {
569
+ code: "api_key_malformed";
570
+ details?: readonly Response.error.Detail[] | undefined;
571
+ message: string;
572
+ };
573
+ requestId: string;
574
+ };
575
+ outputFormat: "json";
576
+ status: 400;
577
+ input: {
578
+ query?: {
579
+ address?: string | string[];
580
+ 'blockNumber.from'?: string | string[];
581
+ 'blockNumber.to'?: string | string[];
582
+ chainId?: string | string[];
583
+ cursor?: string | string[];
584
+ feePayer?: string | string[];
585
+ feeToken?: string | string[];
586
+ include?: string | string[];
587
+ limit?: string | string[];
588
+ order?: string | string[];
589
+ page?: string | string[];
590
+ recipient?: string | string[];
591
+ sender?: string | string[];
592
+ status?: string | string[];
593
+ 'timestamp.from'?: string | string[];
594
+ 'timestamp.to'?: string | string[];
595
+ } | undefined;
596
+ };
597
+ } | {
598
+ output: {
599
+ error: {
600
+ code: "api_key_invalid" | "api_key_missing";
601
+ details?: readonly Response.error.Detail[] | undefined;
602
+ message: string;
603
+ };
604
+ requestId: string;
605
+ };
606
+ outputFormat: "json";
607
+ status: 401;
608
+ input: {
609
+ query?: {
610
+ address?: string | string[];
611
+ 'blockNumber.from'?: string | string[];
612
+ 'blockNumber.to'?: string | string[];
613
+ chainId?: string | string[];
614
+ cursor?: string | string[];
615
+ feePayer?: string | string[];
616
+ feeToken?: string | string[];
617
+ include?: string | string[];
618
+ limit?: string | string[];
619
+ order?: string | string[];
620
+ page?: string | string[];
621
+ recipient?: string | string[];
622
+ sender?: string | string[];
623
+ status?: string | string[];
624
+ 'timestamp.from'?: string | string[];
625
+ 'timestamp.to'?: string | string[];
626
+ } | undefined;
627
+ };
628
+ } | {
629
+ output: {
630
+ error: {
631
+ code: "api_key_forbidden";
632
+ details?: readonly Response.error.Detail[] | undefined;
633
+ message: string;
634
+ };
635
+ requestId: string;
636
+ };
637
+ outputFormat: "json";
638
+ status: 403;
639
+ input: {
640
+ query?: {
641
+ address?: string | string[];
642
+ 'blockNumber.from'?: string | string[];
643
+ 'blockNumber.to'?: string | string[];
644
+ chainId?: string | string[];
645
+ cursor?: string | string[];
646
+ feePayer?: string | string[];
647
+ feeToken?: string | string[];
648
+ include?: string | string[];
649
+ limit?: string | string[];
650
+ order?: string | string[];
651
+ page?: string | string[];
652
+ recipient?: string | string[];
653
+ sender?: string | string[];
654
+ status?: string | string[];
655
+ 'timestamp.from'?: string | string[];
656
+ 'timestamp.to'?: string | string[];
657
+ } | undefined;
658
+ };
659
+ } | {
660
+ output: {
661
+ error: {
662
+ code: "payment_required" | "rate_limit_exceeded";
663
+ details?: readonly Response.error.Detail[] | undefined;
664
+ message: string;
665
+ };
666
+ requestId: string;
667
+ };
668
+ outputFormat: "json";
669
+ status: 429;
670
+ input: {
671
+ query?: {
672
+ address?: string | string[];
673
+ 'blockNumber.from'?: string | string[];
674
+ 'blockNumber.to'?: string | string[];
675
+ chainId?: string | string[];
676
+ cursor?: string | string[];
677
+ feePayer?: string | string[];
678
+ feeToken?: string | string[];
679
+ include?: string | string[];
680
+ limit?: string | string[];
681
+ order?: string | string[];
682
+ page?: string | string[];
683
+ recipient?: string | string[];
684
+ sender?: string | string[];
685
+ status?: string | string[];
686
+ 'timestamp.from'?: string | string[];
687
+ 'timestamp.to'?: string | string[];
688
+ } | undefined;
689
+ };
690
+ } | {
691
+ output: {
692
+ error: {
693
+ code: "query_invalid";
694
+ details?: readonly Response.error.Detail[] | undefined;
695
+ message: string;
696
+ };
697
+ requestId: string;
698
+ };
699
+ outputFormat: "json";
700
+ status: 400;
701
+ input: {
702
+ query?: {
703
+ address?: string | string[];
704
+ 'blockNumber.from'?: string | string[];
705
+ 'blockNumber.to'?: string | string[];
706
+ chainId?: string | string[];
707
+ cursor?: string | string[];
708
+ feePayer?: string | string[];
709
+ feeToken?: string | string[];
710
+ include?: string | string[];
711
+ limit?: string | string[];
712
+ order?: string | string[];
713
+ page?: string | string[];
714
+ recipient?: string | string[];
715
+ sender?: string | string[];
716
+ status?: string | string[];
717
+ 'timestamp.from'?: string | string[];
718
+ 'timestamp.to'?: string | string[];
719
+ } | undefined;
720
+ };
721
+ } | {
722
+ output: {
723
+ data: {
724
+ blockHash: `0x${string}` | null;
725
+ blockNumber: number;
726
+ contractAddress: `0x${string}` | null;
727
+ cumulativeGasUsed: number;
728
+ effectiveGasPrice: string;
729
+ feeAmount: string;
730
+ feePayer?: `0x${string}` | undefined;
731
+ feeToken?: `0x${string}` | undefined;
732
+ gasUsed: number;
733
+ id: `0x${string}`;
734
+ logs: {
735
+ [x: string]: import("hono/utils/types").JSONValue;
736
+ address: `0x${string}`;
737
+ blockHash: `0x${string}` | null;
738
+ blockNumber: `0x${string}` | null;
739
+ blockTimestamp?: `0x${string}` | null | undefined;
740
+ data: `0x${string}`;
741
+ logIndex: `0x${string}` | null;
742
+ removed: boolean;
743
+ topics: `0x${string}`[];
744
+ transactionHash: `0x${string}` | null;
745
+ transactionIndex: `0x${string}` | null;
746
+ }[];
747
+ meta: {
748
+ feeToken?: {
749
+ address: `0x${string}`;
750
+ admin?: `0x${string}` | undefined;
751
+ currency: string;
752
+ createdAt?: string | undefined;
753
+ decimals: number;
754
+ holderCount?: number | undefined;
755
+ id: string;
756
+ logoUri?: string | undefined;
757
+ name: string;
758
+ quoteToken?: `0x${string}` | undefined;
759
+ symbol: string;
760
+ totalSupply?: string | undefined;
761
+ transferStats?: {
762
+ count: number;
763
+ firstAt: string | null;
764
+ lastAt: string | null;
765
+ } | undefined;
766
+ verified: boolean;
767
+ } | undefined;
768
+ rpc: {
769
+ [x: string]: import("hono/utils/types").JSONValue;
770
+ blobGasPrice?: `0x${string}` | undefined;
771
+ blobGasUsed?: `0x${string}` | undefined;
772
+ blockHash: `0x${string}` | null;
773
+ blockNumber: `0x${string}`;
774
+ blockTimestamp?: `0x${string}` | null | undefined;
775
+ contractAddress?: `0x${string}` | null | undefined;
776
+ cumulativeGasUsed: `0x${string}`;
777
+ effectiveGasPrice: `0x${string}`;
778
+ feePayer?: `0x${string}` | null | undefined;
779
+ feeToken?: `0x${string}` | null | undefined;
780
+ from: `0x${string}`;
781
+ gasUsed: `0x${string}`;
782
+ logs: {
783
+ [x: string]: import("hono/utils/types").JSONValue;
784
+ address: `0x${string}`;
785
+ blockHash: `0x${string}` | null;
786
+ blockNumber: `0x${string}` | null;
787
+ blockTimestamp?: `0x${string}` | null | undefined;
788
+ data: `0x${string}`;
789
+ logIndex: `0x${string}` | null;
790
+ removed: boolean;
791
+ topics: `0x${string}`[];
792
+ transactionHash: `0x${string}` | null;
793
+ transactionIndex: `0x${string}` | null;
794
+ }[];
795
+ logsBloom?: `0x${string}` | undefined;
796
+ root?: `0x${string}` | undefined;
797
+ status: `0x${string}`;
798
+ to: `0x${string}` | null;
799
+ transactionHash: `0x${string}`;
800
+ transactionIndex: `0x${string}`;
801
+ type: `0x${string}`;
802
+ };
803
+ };
804
+ recipient: `0x${string}` | null;
805
+ sender: `0x${string}`;
806
+ status: "reverted" | "success";
807
+ timestamp: string | null;
808
+ transactionHash: `0x${string}`;
809
+ transactionIndex: number;
810
+ type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
811
+ }[];
812
+ meta?: {
813
+ totalCountCapped: boolean;
814
+ totalCount: number;
815
+ } | undefined;
816
+ nextCursor: string | null;
817
+ };
818
+ outputFormat: "json";
819
+ status: 200;
820
+ input: {
821
+ query?: {
822
+ address?: string | string[];
823
+ 'blockNumber.from'?: string | string[];
824
+ 'blockNumber.to'?: string | string[];
825
+ chainId?: string | string[];
826
+ cursor?: string | string[];
827
+ feePayer?: string | string[];
828
+ feeToken?: string | string[];
829
+ include?: string | string[];
830
+ limit?: string | string[];
831
+ order?: string | string[];
832
+ page?: string | string[];
833
+ recipient?: string | string[];
834
+ sender?: string | string[];
835
+ status?: string | string[];
836
+ 'timestamp.from'?: string | string[];
837
+ 'timestamp.to'?: string | string[];
838
+ } | undefined;
839
+ };
840
+ };
841
+ };
842
+ } & {
843
+ "/:transactionHash/receipt": {
844
+ $get: {
845
+ output: null;
846
+ outputFormat: "body";
847
+ status: 402;
848
+ input: {
849
+ param: {
850
+ transactionHash: `0x${string}`;
851
+ };
852
+ } & {
853
+ query?: {
854
+ chainId?: string | string[];
855
+ include?: string | string[];
856
+ } | undefined;
857
+ };
858
+ } | {
859
+ output: {
860
+ error: {
861
+ code: "upstream_error";
862
+ details?: readonly Response.error.Detail[] | undefined;
863
+ message: string;
864
+ };
865
+ requestId: string;
866
+ };
867
+ outputFormat: "json";
868
+ status: 502;
869
+ input: {
870
+ param: {
871
+ transactionHash: `0x${string}`;
872
+ };
873
+ } & {
874
+ query?: {
875
+ chainId?: string | string[];
876
+ include?: string | string[];
877
+ } | undefined;
878
+ };
879
+ } | {
880
+ output: {
881
+ error: {
882
+ code: "api_key_malformed";
883
+ details?: readonly Response.error.Detail[] | undefined;
884
+ message: string;
885
+ };
886
+ requestId: string;
887
+ };
888
+ outputFormat: "json";
889
+ status: 400;
890
+ input: {
891
+ param: {
892
+ transactionHash: `0x${string}`;
893
+ };
894
+ } & {
895
+ query?: {
896
+ chainId?: string | string[];
897
+ include?: string | string[];
898
+ } | undefined;
899
+ };
900
+ } | {
901
+ output: {
902
+ error: {
903
+ code: "api_key_invalid" | "api_key_missing";
904
+ details?: readonly Response.error.Detail[] | undefined;
905
+ message: string;
906
+ };
907
+ requestId: string;
908
+ };
909
+ outputFormat: "json";
910
+ status: 401;
911
+ input: {
912
+ param: {
913
+ transactionHash: `0x${string}`;
914
+ };
915
+ } & {
916
+ query?: {
917
+ chainId?: string | string[];
918
+ include?: string | string[];
919
+ } | undefined;
920
+ };
921
+ } | {
922
+ output: {
923
+ error: {
924
+ code: "api_key_forbidden";
925
+ details?: readonly Response.error.Detail[] | undefined;
926
+ message: string;
927
+ };
928
+ requestId: string;
929
+ };
930
+ outputFormat: "json";
931
+ status: 403;
932
+ input: {
933
+ param: {
934
+ transactionHash: `0x${string}`;
935
+ };
936
+ } & {
937
+ query?: {
938
+ chainId?: string | string[];
939
+ include?: string | string[];
940
+ } | undefined;
941
+ };
942
+ } | {
943
+ output: {
944
+ error: {
945
+ code: "payment_required" | "rate_limit_exceeded";
946
+ details?: readonly Response.error.Detail[] | undefined;
947
+ message: string;
948
+ };
949
+ requestId: string;
950
+ };
951
+ outputFormat: "json";
952
+ status: 429;
953
+ input: {
954
+ param: {
955
+ transactionHash: `0x${string}`;
956
+ };
957
+ } & {
958
+ query?: {
959
+ chainId?: string | string[];
960
+ include?: string | string[];
961
+ } | undefined;
962
+ };
963
+ } | {
964
+ output: {
965
+ error: {
966
+ code: "query_invalid";
967
+ details?: readonly Response.error.Detail[] | undefined;
968
+ message: string;
969
+ };
970
+ requestId: string;
971
+ };
972
+ outputFormat: "json";
973
+ status: 400;
974
+ input: {
975
+ param: {
976
+ transactionHash: `0x${string}`;
977
+ };
978
+ } & {
979
+ query?: {
980
+ chainId?: string | string[];
981
+ include?: string | string[];
982
+ } | undefined;
983
+ };
984
+ } | {
985
+ output: {
986
+ error: {
987
+ code: "transaction_invalid";
988
+ details?: readonly Response.error.Detail[] | undefined;
989
+ message: string;
990
+ };
991
+ requestId: string;
992
+ };
993
+ outputFormat: "json";
994
+ status: 400;
995
+ input: {
996
+ param: {
997
+ transactionHash: `0x${string}`;
998
+ };
999
+ } & {
1000
+ query?: {
1001
+ chainId?: string | string[];
1002
+ include?: string | string[];
1003
+ } | undefined;
1004
+ };
1005
+ } | {
1006
+ output: {
1007
+ error: {
1008
+ code: "receipt_not_found";
1009
+ details?: readonly Response.error.Detail[] | undefined;
1010
+ message: string;
1011
+ };
1012
+ requestId: string;
1013
+ };
1014
+ outputFormat: "json";
1015
+ status: 404;
1016
+ input: {
1017
+ param: {
1018
+ transactionHash: `0x${string}`;
1019
+ };
1020
+ } & {
1021
+ query?: {
1022
+ chainId?: string | string[];
1023
+ include?: string | string[];
1024
+ } | undefined;
1025
+ };
1026
+ } | {
1027
+ output: {
1028
+ blockHash: `0x${string}` | null;
1029
+ blockNumber: number;
1030
+ contractAddress: `0x${string}` | null;
1031
+ cumulativeGasUsed: number;
1032
+ effectiveGasPrice: string;
1033
+ feeAmount: string;
1034
+ feePayer?: `0x${string}` | undefined;
1035
+ feeToken?: `0x${string}` | undefined;
1036
+ gasUsed: number;
1037
+ id: `0x${string}`;
1038
+ logs: {
1039
+ [x: string]: import("hono/utils/types").JSONValue;
1040
+ address: `0x${string}`;
1041
+ blockHash: `0x${string}` | null;
1042
+ blockNumber: `0x${string}` | null;
1043
+ blockTimestamp?: `0x${string}` | null | undefined;
1044
+ data: `0x${string}`;
1045
+ logIndex: `0x${string}` | null;
1046
+ removed: boolean;
1047
+ topics: `0x${string}`[];
1048
+ transactionHash: `0x${string}` | null;
1049
+ transactionIndex: `0x${string}` | null;
1050
+ }[];
1051
+ meta: {
1052
+ feeToken?: {
1053
+ address: `0x${string}`;
1054
+ admin?: `0x${string}` | undefined;
1055
+ currency: string;
1056
+ createdAt?: string | undefined;
1057
+ decimals: number;
1058
+ holderCount?: number | undefined;
1059
+ id: string;
1060
+ logoUri?: string | undefined;
1061
+ name: string;
1062
+ quoteToken?: `0x${string}` | undefined;
1063
+ symbol: string;
1064
+ totalSupply?: string | undefined;
1065
+ transferStats?: {
1066
+ count: number;
1067
+ firstAt: string | null;
1068
+ lastAt: string | null;
1069
+ } | undefined;
1070
+ verified: boolean;
1071
+ } | undefined;
1072
+ rpc: {
1073
+ [x: string]: import("hono/utils/types").JSONValue;
1074
+ blobGasPrice?: `0x${string}` | undefined;
1075
+ blobGasUsed?: `0x${string}` | undefined;
1076
+ blockHash: `0x${string}` | null;
1077
+ blockNumber: `0x${string}`;
1078
+ blockTimestamp?: `0x${string}` | null | undefined;
1079
+ contractAddress?: `0x${string}` | null | undefined;
1080
+ cumulativeGasUsed: `0x${string}`;
1081
+ effectiveGasPrice: `0x${string}`;
1082
+ feePayer?: `0x${string}` | null | undefined;
1083
+ feeToken?: `0x${string}` | null | undefined;
1084
+ from: `0x${string}`;
1085
+ gasUsed: `0x${string}`;
1086
+ logs: {
1087
+ [x: string]: import("hono/utils/types").JSONValue;
1088
+ address: `0x${string}`;
1089
+ blockHash: `0x${string}` | null;
1090
+ blockNumber: `0x${string}` | null;
1091
+ blockTimestamp?: `0x${string}` | null | undefined;
1092
+ data: `0x${string}`;
1093
+ logIndex: `0x${string}` | null;
1094
+ removed: boolean;
1095
+ topics: `0x${string}`[];
1096
+ transactionHash: `0x${string}` | null;
1097
+ transactionIndex: `0x${string}` | null;
1098
+ }[];
1099
+ logsBloom?: `0x${string}` | undefined;
1100
+ root?: `0x${string}` | undefined;
1101
+ status: `0x${string}`;
1102
+ to: `0x${string}` | null;
1103
+ transactionHash: `0x${string}`;
1104
+ transactionIndex: `0x${string}`;
1105
+ type: `0x${string}`;
1106
+ };
1107
+ };
1108
+ recipient: `0x${string}` | null;
1109
+ sender: `0x${string}`;
1110
+ status: "reverted" | "success";
1111
+ timestamp: string | null;
1112
+ transactionHash: `0x${string}`;
1113
+ transactionIndex: number;
1114
+ type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
1115
+ };
1116
+ outputFormat: "json";
1117
+ status: 200;
1118
+ input: {
1119
+ param: {
1120
+ transactionHash: `0x${string}`;
1121
+ };
1122
+ } & {
1123
+ query?: {
1124
+ chainId?: string | string[];
1125
+ include?: string | string[];
1126
+ } | undefined;
1127
+ };
1128
+ };
1129
+ };
1130
+ }, "/", "/:transactionHash/receipt">;
1131
+ /**
1132
+ * Lists humanized receipts and embeds opt-in `include` resources (currently
1133
+ * `feeToken`).
1134
+ */
1135
+ export declare function listReceipts(c: Context<App.Environment>, options: listReceipts.Options): Promise<{
1136
+ data: {
1137
+ blockHash: `0x${string}` | null;
1138
+ blockNumber: number;
1139
+ contractAddress: `0x${string}` | null;
1140
+ cumulativeGasUsed: number;
1141
+ effectiveGasPrice: string;
1142
+ feeAmount: string;
1143
+ feePayer?: `0x${string}` | undefined;
1144
+ feeToken?: `0x${string}` | undefined;
1145
+ gasUsed: number;
1146
+ id: `0x${string}`;
1147
+ logs: {
1148
+ [x: string]: unknown;
1149
+ address: `0x${string}`;
1150
+ blockHash: `0x${string}` | null;
1151
+ blockNumber: `0x${string}` | null;
1152
+ blockTimestamp?: `0x${string}` | null | undefined;
1153
+ data: `0x${string}`;
1154
+ logIndex: `0x${string}` | null;
1155
+ removed: boolean;
1156
+ topics: `0x${string}`[];
1157
+ transactionHash: `0x${string}` | null;
1158
+ transactionIndex: `0x${string}` | null;
1159
+ }[];
1160
+ meta: {
1161
+ feeToken?: {
1162
+ address: `0x${string}`;
1163
+ admin?: `0x${string}` | undefined;
1164
+ currency: string;
1165
+ createdAt?: string | undefined;
1166
+ decimals: number;
1167
+ holderCount?: number | undefined;
1168
+ id: string;
1169
+ logoUri?: string | undefined;
1170
+ name: string;
1171
+ quoteToken?: `0x${string}` | undefined;
1172
+ symbol: string;
1173
+ totalSupply?: string | undefined;
1174
+ transferStats?: {
1175
+ count: number;
1176
+ firstAt: string | null;
1177
+ lastAt: string | null;
1178
+ } | undefined;
1179
+ verified: boolean;
1180
+ } | undefined;
1181
+ rpc: {
1182
+ [x: string]: unknown;
1183
+ blobGasPrice?: `0x${string}` | undefined;
1184
+ blobGasUsed?: `0x${string}` | undefined;
1185
+ blockHash: `0x${string}` | null;
1186
+ blockNumber: `0x${string}`;
1187
+ blockTimestamp?: `0x${string}` | null | undefined;
1188
+ contractAddress?: `0x${string}` | null | undefined;
1189
+ cumulativeGasUsed: `0x${string}`;
1190
+ effectiveGasPrice: `0x${string}`;
1191
+ feePayer?: `0x${string}` | null | undefined;
1192
+ feeToken?: `0x${string}` | null | undefined;
1193
+ from: `0x${string}`;
1194
+ gasUsed: `0x${string}`;
1195
+ logs: {
1196
+ [x: string]: unknown;
1197
+ address: `0x${string}`;
1198
+ blockHash: `0x${string}` | null;
1199
+ blockNumber: `0x${string}` | null;
1200
+ blockTimestamp?: `0x${string}` | null | undefined;
1201
+ data: `0x${string}`;
1202
+ logIndex: `0x${string}` | null;
1203
+ removed: boolean;
1204
+ topics: `0x${string}`[];
1205
+ transactionHash: `0x${string}` | null;
1206
+ transactionIndex: `0x${string}` | null;
1207
+ }[];
1208
+ logsBloom?: `0x${string}` | undefined;
1209
+ root?: `0x${string}` | undefined;
1210
+ status: `0x${string}`;
1211
+ to: `0x${string}` | null;
1212
+ transactionHash: `0x${string}`;
1213
+ transactionIndex: `0x${string}`;
1214
+ type: `0x${string}`;
1215
+ };
1216
+ };
1217
+ recipient: `0x${string}` | null;
1218
+ sender: `0x${string}`;
1219
+ status: "reverted" | "success";
1220
+ timestamp: string | null;
1221
+ transactionHash: `0x${string}`;
1222
+ transactionIndex: number;
1223
+ type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
1224
+ }[];
1225
+ nextCursor: string | null;
1226
+ }>;
1227
+ export declare namespace listReceipts {
1228
+ type Options = getReceipts.Options & {
1229
+ /** Optional related resources to embed (e.g. `feeToken`). */
1230
+ include: readonly z.output<typeof schema.getReceipt.Include>[];
1231
+ };
1232
+ }
1233
+ export declare function getReceipts(c: Context<App.Environment>, options: getReceipts.Options): Promise<{
1234
+ data: {
1235
+ blockHash: `0x${string}` | null;
1236
+ blockNumber: number;
1237
+ contractAddress: `0x${string}` | null;
1238
+ cumulativeGasUsed: number;
1239
+ effectiveGasPrice: string;
1240
+ feeAmount: string;
1241
+ feePayer?: `0x${string}` | undefined;
1242
+ feeToken?: `0x${string}` | undefined;
1243
+ gasUsed: number;
1244
+ id: `0x${string}`;
1245
+ logs: {
1246
+ [x: string]: unknown;
1247
+ address: `0x${string}`;
1248
+ blockHash: `0x${string}` | null;
1249
+ blockNumber: `0x${string}` | null;
1250
+ blockTimestamp?: `0x${string}` | null | undefined;
1251
+ data: `0x${string}`;
1252
+ logIndex: `0x${string}` | null;
1253
+ removed: boolean;
1254
+ topics: `0x${string}`[];
1255
+ transactionHash: `0x${string}` | null;
1256
+ transactionIndex: `0x${string}` | null;
1257
+ }[];
1258
+ meta: {
1259
+ feeToken?: {
1260
+ address: `0x${string}`;
1261
+ admin?: `0x${string}` | undefined;
1262
+ currency: string;
1263
+ createdAt?: string | undefined;
1264
+ decimals: number;
1265
+ holderCount?: number | undefined;
1266
+ id: string;
1267
+ logoUri?: string | undefined;
1268
+ name: string;
1269
+ quoteToken?: `0x${string}` | undefined;
1270
+ symbol: string;
1271
+ totalSupply?: string | undefined;
1272
+ transferStats?: {
1273
+ count: number;
1274
+ firstAt: string | null;
1275
+ lastAt: string | null;
1276
+ } | undefined;
1277
+ verified: boolean;
1278
+ } | undefined;
1279
+ rpc: {
1280
+ [x: string]: unknown;
1281
+ blobGasPrice?: `0x${string}` | undefined;
1282
+ blobGasUsed?: `0x${string}` | undefined;
1283
+ blockHash: `0x${string}` | null;
1284
+ blockNumber: `0x${string}`;
1285
+ blockTimestamp?: `0x${string}` | null | undefined;
1286
+ contractAddress?: `0x${string}` | null | undefined;
1287
+ cumulativeGasUsed: `0x${string}`;
1288
+ effectiveGasPrice: `0x${string}`;
1289
+ feePayer?: `0x${string}` | null | undefined;
1290
+ feeToken?: `0x${string}` | null | undefined;
1291
+ from: `0x${string}`;
1292
+ gasUsed: `0x${string}`;
1293
+ logs: {
1294
+ [x: string]: unknown;
1295
+ address: `0x${string}`;
1296
+ blockHash: `0x${string}` | null;
1297
+ blockNumber: `0x${string}` | null;
1298
+ blockTimestamp?: `0x${string}` | null | undefined;
1299
+ data: `0x${string}`;
1300
+ logIndex: `0x${string}` | null;
1301
+ removed: boolean;
1302
+ topics: `0x${string}`[];
1303
+ transactionHash: `0x${string}` | null;
1304
+ transactionIndex: `0x${string}` | null;
1305
+ }[];
1306
+ logsBloom?: `0x${string}` | undefined;
1307
+ root?: `0x${string}` | undefined;
1308
+ status: `0x${string}`;
1309
+ to: `0x${string}` | null;
1310
+ transactionHash: `0x${string}`;
1311
+ transactionIndex: `0x${string}`;
1312
+ type: `0x${string}`;
1313
+ };
1314
+ };
1315
+ recipient: `0x${string}` | null;
1316
+ sender: `0x${string}`;
1317
+ status: "reverted" | "success";
1318
+ timestamp: string | null;
1319
+ transactionHash: `0x${string}`;
1320
+ transactionIndex: number;
1321
+ type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
1322
+ }[];
1323
+ nextCursor: string | null;
1324
+ }>;
1325
+ export declare namespace getReceipts {
1326
+ type Options = {
1327
+ address?: z.output<typeof Schema.Address> | undefined;
1328
+ chainId: z.output<typeof Schema.ChainId>;
1329
+ /** Opaque keyset cursor anchoring the page; omit for the head page. */
1330
+ cursor?: string | undefined;
1331
+ feePayer?: z.output<typeof Schema.Address> | undefined;
1332
+ feeToken?: z.output<typeof Schema.Address> | undefined;
1333
+ fromBlock?: number | undefined;
1334
+ fromTimestamp?: string | undefined;
1335
+ limit: number;
1336
+ /** 1-indexed page number (positional pagination; exclusive with `cursor`). */
1337
+ page?: number | undefined;
1338
+ order: 'asc' | 'desc';
1339
+ recipient?: z.output<typeof Schema.Address> | undefined;
1340
+ sender?: z.output<typeof Schema.Address> | undefined;
1341
+ /** Only include receipts whose execution status matches. */
1342
+ status?: 'reverted' | 'success' | undefined;
1343
+ toBlock?: number | undefined;
1344
+ toTimestamp?: string | undefined;
1345
+ };
1346
+ }
1347
+ /**
1348
+ * Capped total count of receipts matching the same filters as the page. The
1349
+ * address scope reuses the page's `UNION` workaround (`receipts` indexes `from`
1350
+ * but not `to`, so the `to` side resolves hashes via the `txs` index), counting
1351
+ * the deduped keyset so self-receipts (`from = to`) aren't double-counted.
1352
+ * `totalCountCapped: true` is a lower bound — at least {@link Schema.countCap} matches.
1353
+ */
1354
+ export declare function countReceipts(c: Context<App.Environment>, options: countReceipts.Options): Promise<z.output<typeof Schema.CountMeta>>;
1355
+ export declare namespace countReceipts {
1356
+ /** Filters for {@link countReceipts}: the page filters minus pagination. */
1357
+ type Options = Pick<getReceipts.Options, 'address' | 'chainId' | 'feePayer' | 'feeToken' | 'fromBlock' | 'fromTimestamp' | 'recipient' | 'sender' | 'status' | 'toBlock' | 'toTimestamp'>;
1358
+ }
1359
+ /**
1360
+ * Resolves humanized receipts — including their event logs — for a page of
1361
+ * transactions, keyed by lowercased transaction hash. Rows without a receipt
1362
+ * (pending, or not yet indexed) are simply absent from the map.
1363
+ *
1364
+ * Receipt rows come from the indexed `receipts` table (skipped when the caller
1365
+ * already paged receipts via the `status` path) and event logs from the raw
1366
+ * `logs` table, both fetched once for the whole page. No `Store.memoize` here:
1367
+ * the route-level response cache (`Cache.response`) already absorbs repeated
1368
+ * requests for the same page.
1369
+ */
1370
+ export declare function embedReceipts(c: Context<App.Environment>, options: embedReceipts.Options): Promise<Map<string, z.output<typeof schema.Receipt>>>;
1371
+ export declare namespace embedReceipts {
1372
+ /** Options for {@link embedReceipts}. */
1373
+ type Options = {
1374
+ /** Target chain id. */
1375
+ chainId: z.output<typeof Schema.ChainId>;
1376
+ /**
1377
+ * Pre-fetched humanized receipts for the page (the `status`-filtered
1378
+ * transactions path). When provided, the receipts query is skipped and only
1379
+ * the page's event logs are fetched and reattached.
1380
+ */
1381
+ receipts?: readonly z.output<typeof schema.Receipt>[] | undefined;
1382
+ /**
1383
+ * The page's humanized transaction rows. Typed structurally (rather than as
1384
+ * the transactions schema output) so this module never touches the
1385
+ * transaction schemas eagerly across the import cycle.
1386
+ */
1387
+ rows: readonly {
1388
+ /** Block number, or null if pending (pending rows have no receipt). */
1389
+ blockNumber: number | null;
1390
+ /** Fee-token preference declared on the transaction. */
1391
+ feeToken?: Hex.Hex | undefined;
1392
+ /** Transaction hash. */
1393
+ hash: string;
1394
+ /** Verbatim RPC payload carrying the raw `type` byte. */
1395
+ meta: {
1396
+ rpc: {
1397
+ type: Hex.Hex;
1398
+ };
1399
+ };
1400
+ }[];
1401
+ };
1402
+ }
1403
+ /**
1404
+ * Humanizes a JSON-RPC transaction receipt: decodes `status`/`type`, converts
1405
+ * hex quantities to decimal strings and block fields to numbers, and derives the
1406
+ * block `timestamp` from the top-level `blockTimestamp` (present when
1407
+ * reconstructed from the index) or the (shared) per-log timestamp — `null` when
1408
+ * neither is available. The verbatim payload is preserved under `meta.rpc` and
1409
+ * the raw logs under `logs`. Shared by the receipt detail (RPC source) and list
1410
+ * (reconstructed from the indexer) endpoints, so both expose an identical shape.
1411
+ */
1412
+ export declare function humanizeReceipt(rpc: z.output<typeof schema.Rpc.Receipt>): z.output<typeof schema.Receipt>;
1413
+ /**
1414
+ * Re-encodes a TIDX `receipts` row (joined to `txs`) into the JSON-RPC receipt
1415
+ * shape, which becomes the `rpc` payload the list endpoint humanizes through the
1416
+ * same path as the detail endpoint. Numeric columns become `0x` quantities;
1417
+ * fields the indexer does not store — the block hash, logs bloom, and event logs
1418
+ * — are null/empty since the `receipts` table records neither.
1419
+ */
1420
+ export declare function toRpcReceipt(row: Record<string, unknown>): {
1421
+ blockHash: null;
1422
+ blockNumber: `0x${string}` | undefined;
1423
+ blockTimestamp: `0x${string}` | undefined;
1424
+ contractAddress: string | null;
1425
+ cumulativeGasUsed: `0x${string}` | undefined;
1426
+ effectiveGasPrice: `0x${string}` | undefined;
1427
+ feePayer: string | undefined;
1428
+ feeToken: string | undefined;
1429
+ from: unknown;
1430
+ gasUsed: `0x${string}` | undefined;
1431
+ logs: never[];
1432
+ status: `0x${string}` | undefined;
1433
+ to: string | null;
1434
+ transactionHash: unknown;
1435
+ transactionIndex: `0x${string}` | undefined;
1436
+ type: `0x${string}` | undefined;
1437
+ };
1438
+ //# sourceMappingURL=receipts.d.ts.map