tapimo 0.0.0 → 0.0.1

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 +118 -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 +613 -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 +274 -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 +2008 -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 +922 -0
  378. package/src/internal/Auth.ts +1007 -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 +461 -0
  402. package/src/internal/Store.ts +507 -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 +164 -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,1053 @@
1
+ import * as z from 'zod/mini';
2
+ import type * as App from '../App.js';
3
+ import * as Response from '../internal/Response.js';
4
+ /** Zod schemas owned by the CoinGecko/GeckoTerminal compatibility adapter. */
5
+ export declare namespace schema {
6
+ /**
7
+ * A 20-byte hex address that preserves case. Unlike `Schema.Address` (which
8
+ * lowercases on output), the GeckoTerminal contract returns EIP-55
9
+ * checksummed addresses, so response bodies keep the checksum produced by
10
+ * `Address.checksum`.
11
+ */
12
+ const ChecksummedAddress: z.ZodMiniString<string>;
13
+ /**
14
+ * Path `chainId`. Unlike the rest of Tempo API (where `chainId` is an optional
15
+ * query parameter defaulting from app composition), GeckoTerminal templates a
16
+ * per-network base URL, so the chain is addressed positionally here.
17
+ */
18
+ const ChainIdParam: z.ZodMiniObject<{
19
+ chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
20
+ mainnet: "mainnet";
21
+ testnet: "testnet";
22
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
23
+ }, z.core.$strip>;
24
+ /** Indexed-block tip exposed to GeckoTerminal. */
25
+ const Block: z.ZodMiniObject<{
26
+ blockNumber: z.ZodMiniNumber<number>;
27
+ blockTimestamp: z.ZodMiniNumber<number>;
28
+ }, z.core.$strip>;
29
+ /** `GET /:chainId/latest-block` response. */
30
+ const LatestBlockResponse: z.ZodMiniObject<{
31
+ block: z.ZodMiniObject<{
32
+ blockNumber: z.ZodMiniNumber<number>;
33
+ blockTimestamp: z.ZodMiniNumber<number>;
34
+ }, z.core.$strip>;
35
+ }, z.core.$strip>;
36
+ /** Path parameters addressing a single asset. */
37
+ const AssetParams: z.ZodMiniObject<{
38
+ chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
39
+ mainnet: "mainnet";
40
+ testnet: "testnet";
41
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
42
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
43
+ }, z.core.$strip>;
44
+ /** A TIP-20 asset in GeckoTerminal shape. */
45
+ const Asset: z.ZodMiniObject<{
46
+ id: z.ZodMiniString<string>;
47
+ name: z.ZodMiniString<string>;
48
+ symbol: z.ZodMiniString<string>;
49
+ decimals: z.ZodMiniNumber<number>;
50
+ totalSupply: z.ZodMiniString<string>;
51
+ }, z.core.$strip>;
52
+ /** `GET /:chainId/assets/:address` response. */
53
+ const AssetResponse: z.ZodMiniObject<{
54
+ asset: z.ZodMiniObject<{
55
+ id: z.ZodMiniString<string>;
56
+ name: z.ZodMiniString<string>;
57
+ symbol: z.ZodMiniString<string>;
58
+ decimals: z.ZodMiniNumber<number>;
59
+ totalSupply: z.ZodMiniString<string>;
60
+ }, z.core.$strip>;
61
+ }, z.core.$strip>;
62
+ /** A pair-side token (asset plus checksummed address). */
63
+ const PairToken: z.ZodMiniObject<{
64
+ address: z.ZodMiniString<string>;
65
+ name: z.ZodMiniString<string>;
66
+ symbol: z.ZodMiniString<string>;
67
+ decimals: z.ZodMiniNumber<number>;
68
+ totalSupply: z.ZodMiniString<string>;
69
+ }, z.core.$strip>;
70
+ /** A GeckoTerminal trading pair. */
71
+ const Pair: z.ZodMiniObject<{
72
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
73
+ dexKey: z.ZodMiniString<string>;
74
+ asset0Id: z.ZodMiniString<string>;
75
+ asset1Id: z.ZodMiniString<string>;
76
+ token0: z.ZodMiniObject<{
77
+ address: z.ZodMiniString<string>;
78
+ name: z.ZodMiniString<string>;
79
+ symbol: z.ZodMiniString<string>;
80
+ decimals: z.ZodMiniNumber<number>;
81
+ totalSupply: z.ZodMiniString<string>;
82
+ }, z.core.$strip>;
83
+ token1: z.ZodMiniObject<{
84
+ address: z.ZodMiniString<string>;
85
+ name: z.ZodMiniString<string>;
86
+ symbol: z.ZodMiniString<string>;
87
+ decimals: z.ZodMiniNumber<number>;
88
+ totalSupply: z.ZodMiniString<string>;
89
+ }, z.core.$strip>;
90
+ reserve0: z.ZodMiniString<string>;
91
+ reserve1: z.ZodMiniString<string>;
92
+ createdAtBlockNumber: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
93
+ createdAtBlockTimestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
94
+ createdAtTxnId: z.ZodMiniOptional<z.ZodMiniString<string>>;
95
+ }, z.core.$strip>;
96
+ /** `GET /:chainId/pairs` response. */
97
+ const PairsResponse: z.ZodMiniObject<{
98
+ pairs: z.ZodMiniArray<z.ZodMiniObject<{
99
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
100
+ dexKey: z.ZodMiniString<string>;
101
+ asset0Id: z.ZodMiniString<string>;
102
+ asset1Id: z.ZodMiniString<string>;
103
+ token0: z.ZodMiniObject<{
104
+ address: z.ZodMiniString<string>;
105
+ name: z.ZodMiniString<string>;
106
+ symbol: z.ZodMiniString<string>;
107
+ decimals: z.ZodMiniNumber<number>;
108
+ totalSupply: z.ZodMiniString<string>;
109
+ }, z.core.$strip>;
110
+ token1: z.ZodMiniObject<{
111
+ address: z.ZodMiniString<string>;
112
+ name: z.ZodMiniString<string>;
113
+ symbol: z.ZodMiniString<string>;
114
+ decimals: z.ZodMiniNumber<number>;
115
+ totalSupply: z.ZodMiniString<string>;
116
+ }, z.core.$strip>;
117
+ reserve0: z.ZodMiniString<string>;
118
+ reserve1: z.ZodMiniString<string>;
119
+ createdAtBlockNumber: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
120
+ createdAtBlockTimestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
121
+ createdAtTxnId: z.ZodMiniOptional<z.ZodMiniString<string>>;
122
+ }, z.core.$strip>>;
123
+ }, z.core.$strip>;
124
+ /** `GET /:chainId/pairs/:pairId` response. */
125
+ const PairResponse: z.ZodMiniObject<{
126
+ pair: z.ZodMiniObject<{
127
+ id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
128
+ dexKey: z.ZodMiniString<string>;
129
+ asset0Id: z.ZodMiniString<string>;
130
+ asset1Id: z.ZodMiniString<string>;
131
+ token0: z.ZodMiniObject<{
132
+ address: z.ZodMiniString<string>;
133
+ name: z.ZodMiniString<string>;
134
+ symbol: z.ZodMiniString<string>;
135
+ decimals: z.ZodMiniNumber<number>;
136
+ totalSupply: z.ZodMiniString<string>;
137
+ }, z.core.$strip>;
138
+ token1: z.ZodMiniObject<{
139
+ address: z.ZodMiniString<string>;
140
+ name: z.ZodMiniString<string>;
141
+ symbol: z.ZodMiniString<string>;
142
+ decimals: z.ZodMiniNumber<number>;
143
+ totalSupply: z.ZodMiniString<string>;
144
+ }, z.core.$strip>;
145
+ reserve0: z.ZodMiniString<string>;
146
+ reserve1: z.ZodMiniString<string>;
147
+ createdAtBlockNumber: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
148
+ createdAtBlockTimestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
149
+ createdAtTxnId: z.ZodMiniOptional<z.ZodMiniString<string>>;
150
+ }, z.core.$strip>;
151
+ }, z.core.$strip>;
152
+ /** Path parameters addressing a single pair. */
153
+ const PairParams: z.ZodMiniObject<{
154
+ chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
155
+ mainnet: "mainnet";
156
+ testnet: "testnet";
157
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
158
+ pairId: z.ZodMiniString<string>;
159
+ }, z.core.$strip>;
160
+ /** `GET /:chainId/pairs` query parameters. */
161
+ const PairsQuery: z.ZodMiniObject<{
162
+ limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
163
+ }, z.core.$strip>;
164
+ /** `GET /:chainId/events` query parameters. */
165
+ const EventsQuery: z.ZodMiniObject<{
166
+ fromBlock: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
167
+ toBlock: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
168
+ }, z.core.$strip>;
169
+ /** A GeckoTerminal swap event (one per `OrderFilled`). */
170
+ const SwapEvent: z.ZodMiniObject<{
171
+ block: z.ZodMiniObject<{
172
+ blockNumber: z.ZodMiniNumber<number>;
173
+ blockTimestamp: z.ZodMiniNumber<number>;
174
+ }, z.core.$strip>;
175
+ eventType: z.ZodMiniLiteral<"swap">;
176
+ txnId: z.ZodMiniString<string>;
177
+ txnIndex: z.ZodMiniNumber<number>;
178
+ eventIndex: z.ZodMiniNumber<number>;
179
+ maker: z.ZodMiniString<string>;
180
+ pairId: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
181
+ asset0In: z.ZodMiniOptional<z.ZodMiniString<string>>;
182
+ asset1In: z.ZodMiniOptional<z.ZodMiniString<string>>;
183
+ asset0Out: z.ZodMiniOptional<z.ZodMiniString<string>>;
184
+ asset1Out: z.ZodMiniOptional<z.ZodMiniString<string>>;
185
+ priceNative: z.ZodMiniString<string>;
186
+ reserves: z.ZodMiniObject<{
187
+ asset0: z.ZodMiniString<string>;
188
+ asset1: z.ZodMiniString<string>;
189
+ }, z.core.$strip>;
190
+ }, z.core.$strip>;
191
+ /** `GET /:chainId/events` response. */
192
+ const EventsResponse: z.ZodMiniObject<{
193
+ events: z.ZodMiniArray<z.ZodMiniObject<{
194
+ block: z.ZodMiniObject<{
195
+ blockNumber: z.ZodMiniNumber<number>;
196
+ blockTimestamp: z.ZodMiniNumber<number>;
197
+ }, z.core.$strip>;
198
+ eventType: z.ZodMiniLiteral<"swap">;
199
+ txnId: z.ZodMiniString<string>;
200
+ txnIndex: z.ZodMiniNumber<number>;
201
+ eventIndex: z.ZodMiniNumber<number>;
202
+ maker: z.ZodMiniString<string>;
203
+ pairId: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
204
+ asset0In: z.ZodMiniOptional<z.ZodMiniString<string>>;
205
+ asset1In: z.ZodMiniOptional<z.ZodMiniString<string>>;
206
+ asset0Out: z.ZodMiniOptional<z.ZodMiniString<string>>;
207
+ asset1Out: z.ZodMiniOptional<z.ZodMiniString<string>>;
208
+ priceNative: z.ZodMiniString<string>;
209
+ reserves: z.ZodMiniObject<{
210
+ asset0: z.ZodMiniString<string>;
211
+ asset1: z.ZodMiniString<string>;
212
+ }, z.core.$strip>;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$strip>;
215
+ }
216
+ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Environment, {
217
+ "/:chainId/latest-block": {
218
+ $get: {
219
+ output: null;
220
+ outputFormat: "body";
221
+ status: 402;
222
+ input: {
223
+ param: {
224
+ chainId: string;
225
+ };
226
+ };
227
+ } | {
228
+ output: {
229
+ error: {
230
+ code: "api_key_malformed";
231
+ details?: readonly Response.error.Detail[] | undefined;
232
+ message: string;
233
+ };
234
+ requestId: string;
235
+ };
236
+ outputFormat: "json";
237
+ status: 400;
238
+ input: {
239
+ param: {
240
+ chainId: string;
241
+ };
242
+ };
243
+ } | {
244
+ output: {
245
+ error: {
246
+ code: "api_key_invalid" | "api_key_missing";
247
+ details?: readonly Response.error.Detail[] | undefined;
248
+ message: string;
249
+ };
250
+ requestId: string;
251
+ };
252
+ outputFormat: "json";
253
+ status: 401;
254
+ input: {
255
+ param: {
256
+ chainId: string;
257
+ };
258
+ };
259
+ } | {
260
+ output: {
261
+ error: {
262
+ code: "api_key_forbidden";
263
+ details?: readonly Response.error.Detail[] | undefined;
264
+ message: string;
265
+ };
266
+ requestId: string;
267
+ };
268
+ outputFormat: "json";
269
+ status: 403;
270
+ input: {
271
+ param: {
272
+ chainId: string;
273
+ };
274
+ };
275
+ } | {
276
+ output: {
277
+ error: {
278
+ code: "payment_required" | "rate_limit_exceeded";
279
+ details?: readonly Response.error.Detail[] | undefined;
280
+ message: string;
281
+ };
282
+ requestId: string;
283
+ };
284
+ outputFormat: "json";
285
+ status: 429;
286
+ input: {
287
+ param: {
288
+ chainId: string;
289
+ };
290
+ };
291
+ } | {
292
+ output: {
293
+ error: {
294
+ code: "upstream_error";
295
+ details?: readonly Response.error.Detail[] | undefined;
296
+ message: string;
297
+ };
298
+ requestId: string;
299
+ };
300
+ outputFormat: "json";
301
+ status: 502;
302
+ input: {
303
+ param: {
304
+ chainId: string;
305
+ };
306
+ };
307
+ } | {
308
+ output: {
309
+ error: {
310
+ code: "chain_id_invalid";
311
+ details?: readonly Response.error.Detail[] | undefined;
312
+ message: string;
313
+ };
314
+ requestId: string;
315
+ };
316
+ outputFormat: "json";
317
+ status: 400;
318
+ input: {
319
+ param: {
320
+ chainId: string;
321
+ };
322
+ };
323
+ } | {
324
+ output: {
325
+ error: {
326
+ code: "not_found";
327
+ details?: readonly Response.error.Detail[] | undefined;
328
+ message: string;
329
+ };
330
+ requestId: string;
331
+ };
332
+ outputFormat: "json";
333
+ status: 404;
334
+ input: {
335
+ param: {
336
+ chainId: string;
337
+ };
338
+ };
339
+ } | {
340
+ output: {
341
+ block: {
342
+ blockNumber: number;
343
+ blockTimestamp: number;
344
+ };
345
+ };
346
+ outputFormat: "json";
347
+ status: 200;
348
+ input: {
349
+ param: {
350
+ chainId: string;
351
+ };
352
+ };
353
+ };
354
+ };
355
+ } & {
356
+ "/:chainId/assets/:address": {
357
+ $get: {
358
+ output: null;
359
+ outputFormat: "body";
360
+ status: 402;
361
+ input: {
362
+ param: {
363
+ chainId: string;
364
+ address: string;
365
+ };
366
+ };
367
+ } | {
368
+ output: {
369
+ error: {
370
+ code: "api_key_malformed";
371
+ details?: readonly Response.error.Detail[] | undefined;
372
+ message: string;
373
+ };
374
+ requestId: string;
375
+ };
376
+ outputFormat: "json";
377
+ status: 400;
378
+ input: {
379
+ param: {
380
+ chainId: string;
381
+ address: string;
382
+ };
383
+ };
384
+ } | {
385
+ output: {
386
+ error: {
387
+ code: "api_key_invalid" | "api_key_missing";
388
+ details?: readonly Response.error.Detail[] | undefined;
389
+ message: string;
390
+ };
391
+ requestId: string;
392
+ };
393
+ outputFormat: "json";
394
+ status: 401;
395
+ input: {
396
+ param: {
397
+ chainId: string;
398
+ address: string;
399
+ };
400
+ };
401
+ } | {
402
+ output: {
403
+ error: {
404
+ code: "api_key_forbidden";
405
+ details?: readonly Response.error.Detail[] | undefined;
406
+ message: string;
407
+ };
408
+ requestId: string;
409
+ };
410
+ outputFormat: "json";
411
+ status: 403;
412
+ input: {
413
+ param: {
414
+ chainId: string;
415
+ address: string;
416
+ };
417
+ };
418
+ } | {
419
+ output: {
420
+ error: {
421
+ code: "payment_required" | "rate_limit_exceeded";
422
+ details?: readonly Response.error.Detail[] | undefined;
423
+ message: string;
424
+ };
425
+ requestId: string;
426
+ };
427
+ outputFormat: "json";
428
+ status: 429;
429
+ input: {
430
+ param: {
431
+ chainId: string;
432
+ address: string;
433
+ };
434
+ };
435
+ } | {
436
+ output: {
437
+ error: {
438
+ code: "address_invalid";
439
+ details?: readonly Response.error.Detail[] | undefined;
440
+ message: string;
441
+ };
442
+ requestId: string;
443
+ };
444
+ outputFormat: "json";
445
+ status: 400;
446
+ input: {
447
+ param: {
448
+ chainId: string;
449
+ address: string;
450
+ };
451
+ };
452
+ } | {
453
+ output: {
454
+ error: {
455
+ code: "upstream_error";
456
+ details?: readonly Response.error.Detail[] | undefined;
457
+ message: string;
458
+ };
459
+ requestId: string;
460
+ };
461
+ outputFormat: "json";
462
+ status: 502;
463
+ input: {
464
+ param: {
465
+ chainId: string;
466
+ address: string;
467
+ };
468
+ };
469
+ } | {
470
+ output: {
471
+ error: {
472
+ code: "not_found";
473
+ details?: readonly Response.error.Detail[] | undefined;
474
+ message: string;
475
+ };
476
+ requestId: string;
477
+ };
478
+ outputFormat: "json";
479
+ status: 404;
480
+ input: {
481
+ param: {
482
+ chainId: string;
483
+ address: string;
484
+ };
485
+ };
486
+ } | {
487
+ output: {
488
+ asset: {
489
+ id: string;
490
+ name: string;
491
+ symbol: string;
492
+ decimals: number;
493
+ totalSupply: string;
494
+ };
495
+ };
496
+ outputFormat: "json";
497
+ status: 200;
498
+ input: {
499
+ param: {
500
+ chainId: string;
501
+ address: string;
502
+ };
503
+ };
504
+ };
505
+ };
506
+ } & {
507
+ "/:chainId/pairs": {
508
+ $get: {
509
+ output: null;
510
+ outputFormat: "body";
511
+ status: 402;
512
+ input: {
513
+ param: {
514
+ chainId: string;
515
+ };
516
+ } & {
517
+ query?: {
518
+ limit?: string | string[];
519
+ } | undefined;
520
+ };
521
+ } | {
522
+ output: {
523
+ error: {
524
+ code: "api_key_malformed";
525
+ details?: readonly Response.error.Detail[] | undefined;
526
+ message: string;
527
+ };
528
+ requestId: string;
529
+ };
530
+ outputFormat: "json";
531
+ status: 400;
532
+ input: {
533
+ param: {
534
+ chainId: string;
535
+ };
536
+ } & {
537
+ query?: {
538
+ limit?: string | string[];
539
+ } | undefined;
540
+ };
541
+ } | {
542
+ output: {
543
+ error: {
544
+ code: "api_key_invalid" | "api_key_missing";
545
+ details?: readonly Response.error.Detail[] | undefined;
546
+ message: string;
547
+ };
548
+ requestId: string;
549
+ };
550
+ outputFormat: "json";
551
+ status: 401;
552
+ input: {
553
+ param: {
554
+ chainId: string;
555
+ };
556
+ } & {
557
+ query?: {
558
+ limit?: string | string[];
559
+ } | undefined;
560
+ };
561
+ } | {
562
+ output: {
563
+ error: {
564
+ code: "api_key_forbidden";
565
+ details?: readonly Response.error.Detail[] | undefined;
566
+ message: string;
567
+ };
568
+ requestId: string;
569
+ };
570
+ outputFormat: "json";
571
+ status: 403;
572
+ input: {
573
+ param: {
574
+ chainId: string;
575
+ };
576
+ } & {
577
+ query?: {
578
+ limit?: string | string[];
579
+ } | undefined;
580
+ };
581
+ } | {
582
+ output: {
583
+ error: {
584
+ code: "payment_required" | "rate_limit_exceeded";
585
+ details?: readonly Response.error.Detail[] | undefined;
586
+ message: string;
587
+ };
588
+ requestId: string;
589
+ };
590
+ outputFormat: "json";
591
+ status: 429;
592
+ input: {
593
+ param: {
594
+ chainId: string;
595
+ };
596
+ } & {
597
+ query?: {
598
+ limit?: string | string[];
599
+ } | undefined;
600
+ };
601
+ } | {
602
+ output: {
603
+ error: {
604
+ code: "query_invalid";
605
+ details?: readonly Response.error.Detail[] | undefined;
606
+ message: string;
607
+ };
608
+ requestId: string;
609
+ };
610
+ outputFormat: "json";
611
+ status: 400;
612
+ input: {
613
+ param: {
614
+ chainId: string;
615
+ };
616
+ } & {
617
+ query?: {
618
+ limit?: string | string[];
619
+ } | undefined;
620
+ };
621
+ } | {
622
+ output: {
623
+ error: {
624
+ code: "upstream_error";
625
+ details?: readonly Response.error.Detail[] | undefined;
626
+ message: string;
627
+ };
628
+ requestId: string;
629
+ };
630
+ outputFormat: "json";
631
+ status: 502;
632
+ input: {
633
+ param: {
634
+ chainId: string;
635
+ };
636
+ } & {
637
+ query?: {
638
+ limit?: string | string[];
639
+ } | undefined;
640
+ };
641
+ } | {
642
+ output: {
643
+ pairs: {
644
+ id: `0x${string}`;
645
+ dexKey: string;
646
+ asset0Id: string;
647
+ asset1Id: string;
648
+ token0: {
649
+ address: string;
650
+ name: string;
651
+ symbol: string;
652
+ decimals: number;
653
+ totalSupply: string;
654
+ };
655
+ token1: {
656
+ address: string;
657
+ name: string;
658
+ symbol: string;
659
+ decimals: number;
660
+ totalSupply: string;
661
+ };
662
+ reserve0: string;
663
+ reserve1: string;
664
+ createdAtBlockNumber?: number | undefined;
665
+ createdAtBlockTimestamp?: number | undefined;
666
+ createdAtTxnId?: string | undefined;
667
+ }[];
668
+ };
669
+ outputFormat: "json";
670
+ status: 200;
671
+ input: {
672
+ param: {
673
+ chainId: string;
674
+ };
675
+ } & {
676
+ query?: {
677
+ limit?: string | string[];
678
+ } | undefined;
679
+ };
680
+ };
681
+ };
682
+ } & {
683
+ "/:chainId/pairs/:pairId": {
684
+ $get: {
685
+ output: null;
686
+ outputFormat: "body";
687
+ status: 402;
688
+ input: {
689
+ param: {
690
+ chainId: string;
691
+ pairId: string;
692
+ };
693
+ };
694
+ } | {
695
+ output: {
696
+ error: {
697
+ code: "api_key_malformed";
698
+ details?: readonly Response.error.Detail[] | undefined;
699
+ message: string;
700
+ };
701
+ requestId: string;
702
+ };
703
+ outputFormat: "json";
704
+ status: 400;
705
+ input: {
706
+ param: {
707
+ chainId: string;
708
+ pairId: string;
709
+ };
710
+ };
711
+ } | {
712
+ output: {
713
+ error: {
714
+ code: "api_key_invalid" | "api_key_missing";
715
+ details?: readonly Response.error.Detail[] | undefined;
716
+ message: string;
717
+ };
718
+ requestId: string;
719
+ };
720
+ outputFormat: "json";
721
+ status: 401;
722
+ input: {
723
+ param: {
724
+ chainId: string;
725
+ pairId: string;
726
+ };
727
+ };
728
+ } | {
729
+ output: {
730
+ error: {
731
+ code: "api_key_forbidden";
732
+ details?: readonly Response.error.Detail[] | undefined;
733
+ message: string;
734
+ };
735
+ requestId: string;
736
+ };
737
+ outputFormat: "json";
738
+ status: 403;
739
+ input: {
740
+ param: {
741
+ chainId: string;
742
+ pairId: string;
743
+ };
744
+ };
745
+ } | {
746
+ output: {
747
+ error: {
748
+ code: "payment_required" | "rate_limit_exceeded";
749
+ details?: readonly Response.error.Detail[] | undefined;
750
+ message: string;
751
+ };
752
+ requestId: string;
753
+ };
754
+ outputFormat: "json";
755
+ status: 429;
756
+ input: {
757
+ param: {
758
+ chainId: string;
759
+ pairId: string;
760
+ };
761
+ };
762
+ } | {
763
+ output: {
764
+ error: {
765
+ code: "upstream_error";
766
+ details?: readonly Response.error.Detail[] | undefined;
767
+ message: string;
768
+ };
769
+ requestId: string;
770
+ };
771
+ outputFormat: "json";
772
+ status: 502;
773
+ input: {
774
+ param: {
775
+ chainId: string;
776
+ pairId: string;
777
+ };
778
+ };
779
+ } | {
780
+ output: {
781
+ error: {
782
+ code: "not_found";
783
+ details?: readonly Response.error.Detail[] | undefined;
784
+ message: string;
785
+ };
786
+ requestId: string;
787
+ };
788
+ outputFormat: "json";
789
+ status: 404;
790
+ input: {
791
+ param: {
792
+ chainId: string;
793
+ pairId: string;
794
+ };
795
+ };
796
+ } | {
797
+ output: {
798
+ error: {
799
+ code: "pair_id_invalid";
800
+ details?: readonly Response.error.Detail[] | undefined;
801
+ message: string;
802
+ };
803
+ requestId: string;
804
+ };
805
+ outputFormat: "json";
806
+ status: 400;
807
+ input: {
808
+ param: {
809
+ chainId: string;
810
+ pairId: string;
811
+ };
812
+ };
813
+ } | {
814
+ output: {
815
+ pair: {
816
+ id: `0x${string}`;
817
+ dexKey: string;
818
+ asset0Id: string;
819
+ asset1Id: string;
820
+ token0: {
821
+ address: string;
822
+ name: string;
823
+ symbol: string;
824
+ decimals: number;
825
+ totalSupply: string;
826
+ };
827
+ token1: {
828
+ address: string;
829
+ name: string;
830
+ symbol: string;
831
+ decimals: number;
832
+ totalSupply: string;
833
+ };
834
+ reserve0: string;
835
+ reserve1: string;
836
+ createdAtBlockNumber?: number | undefined;
837
+ createdAtBlockTimestamp?: number | undefined;
838
+ createdAtTxnId?: string | undefined;
839
+ };
840
+ };
841
+ outputFormat: "json";
842
+ status: 200;
843
+ input: {
844
+ param: {
845
+ chainId: string;
846
+ pairId: string;
847
+ };
848
+ };
849
+ };
850
+ };
851
+ } & {
852
+ "/:chainId/events": {
853
+ $get: {
854
+ output: null;
855
+ outputFormat: "body";
856
+ status: 402;
857
+ input: {
858
+ param: {
859
+ chainId: string;
860
+ };
861
+ } & {
862
+ query?: {
863
+ fromBlock?: string | string[];
864
+ toBlock?: string | string[];
865
+ } | undefined;
866
+ };
867
+ } | {
868
+ output: {
869
+ error: {
870
+ code: "api_key_malformed";
871
+ details?: readonly Response.error.Detail[] | undefined;
872
+ message: string;
873
+ };
874
+ requestId: string;
875
+ };
876
+ outputFormat: "json";
877
+ status: 400;
878
+ input: {
879
+ param: {
880
+ chainId: string;
881
+ };
882
+ } & {
883
+ query?: {
884
+ fromBlock?: string | string[];
885
+ toBlock?: string | string[];
886
+ } | undefined;
887
+ };
888
+ } | {
889
+ output: {
890
+ error: {
891
+ code: "api_key_invalid" | "api_key_missing";
892
+ details?: readonly Response.error.Detail[] | undefined;
893
+ message: string;
894
+ };
895
+ requestId: string;
896
+ };
897
+ outputFormat: "json";
898
+ status: 401;
899
+ input: {
900
+ param: {
901
+ chainId: string;
902
+ };
903
+ } & {
904
+ query?: {
905
+ fromBlock?: string | string[];
906
+ toBlock?: string | string[];
907
+ } | undefined;
908
+ };
909
+ } | {
910
+ output: {
911
+ error: {
912
+ code: "api_key_forbidden";
913
+ details?: readonly Response.error.Detail[] | undefined;
914
+ message: string;
915
+ };
916
+ requestId: string;
917
+ };
918
+ outputFormat: "json";
919
+ status: 403;
920
+ input: {
921
+ param: {
922
+ chainId: string;
923
+ };
924
+ } & {
925
+ query?: {
926
+ fromBlock?: string | string[];
927
+ toBlock?: string | string[];
928
+ } | undefined;
929
+ };
930
+ } | {
931
+ output: {
932
+ error: {
933
+ code: "payment_required" | "rate_limit_exceeded";
934
+ details?: readonly Response.error.Detail[] | undefined;
935
+ message: string;
936
+ };
937
+ requestId: string;
938
+ };
939
+ outputFormat: "json";
940
+ status: 429;
941
+ input: {
942
+ param: {
943
+ chainId: string;
944
+ };
945
+ } & {
946
+ query?: {
947
+ fromBlock?: string | string[];
948
+ toBlock?: string | string[];
949
+ } | undefined;
950
+ };
951
+ } | {
952
+ output: {
953
+ error: {
954
+ code: "query_invalid";
955
+ details?: readonly Response.error.Detail[] | undefined;
956
+ message: string;
957
+ };
958
+ requestId: string;
959
+ };
960
+ outputFormat: "json";
961
+ status: 400;
962
+ input: {
963
+ param: {
964
+ chainId: string;
965
+ };
966
+ } & {
967
+ query?: {
968
+ fromBlock?: string | string[];
969
+ toBlock?: string | string[];
970
+ } | undefined;
971
+ };
972
+ } | {
973
+ output: {
974
+ error: {
975
+ code: "upstream_error";
976
+ details?: readonly Response.error.Detail[] | undefined;
977
+ message: string;
978
+ };
979
+ requestId: string;
980
+ };
981
+ outputFormat: "json";
982
+ status: 502;
983
+ input: {
984
+ param: {
985
+ chainId: string;
986
+ };
987
+ } & {
988
+ query?: {
989
+ fromBlock?: string | string[];
990
+ toBlock?: string | string[];
991
+ } | undefined;
992
+ };
993
+ } | {
994
+ output: {
995
+ error: {
996
+ code: "not_found";
997
+ details?: readonly Response.error.Detail[] | undefined;
998
+ message: string;
999
+ };
1000
+ requestId: string;
1001
+ };
1002
+ outputFormat: "json";
1003
+ status: 404;
1004
+ input: {
1005
+ param: {
1006
+ chainId: string;
1007
+ };
1008
+ } & {
1009
+ query?: {
1010
+ fromBlock?: string | string[];
1011
+ toBlock?: string | string[];
1012
+ } | undefined;
1013
+ };
1014
+ } | {
1015
+ output: {
1016
+ events: {
1017
+ block: {
1018
+ blockNumber: number;
1019
+ blockTimestamp: number;
1020
+ };
1021
+ eventType: "swap";
1022
+ txnId: string;
1023
+ txnIndex: number;
1024
+ eventIndex: number;
1025
+ maker: string;
1026
+ pairId: `0x${string}`;
1027
+ asset0In?: string | undefined;
1028
+ asset1In?: string | undefined;
1029
+ asset0Out?: string | undefined;
1030
+ asset1Out?: string | undefined;
1031
+ priceNative: string;
1032
+ reserves: {
1033
+ asset0: string;
1034
+ asset1: string;
1035
+ };
1036
+ }[];
1037
+ };
1038
+ outputFormat: "json";
1039
+ status: 200;
1040
+ input: {
1041
+ param: {
1042
+ chainId: string;
1043
+ };
1044
+ } & {
1045
+ query?: {
1046
+ fromBlock?: string | string[];
1047
+ toBlock?: string | string[];
1048
+ } | undefined;
1049
+ };
1050
+ };
1051
+ };
1052
+ }, "/", "/:chainId/events">;
1053
+ //# sourceMappingURL=coingecko.d.ts.map