tapimo 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/README.md +13 -5
  2. package/dist/ApiKey.d.ts +2 -2
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +2 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +85 -11
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +218 -56
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +12543 -13912
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +4 -5
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +12 -20
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +20 -36
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +871 -828
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/App.js +14 -26
  21. package/dist/admin/App.js.map +1 -1
  22. package/dist/admin/apps/api-keys.d.ts +93 -186
  23. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.js +3 -5
  25. package/dist/admin/apps/api-keys.js.map +1 -1
  26. package/dist/admin/apps/audit-logs.d.ts +18 -18
  27. package/dist/admin/apps/audit-logs.js +1 -1
  28. package/dist/admin/apps/audit-logs.js.map +1 -1
  29. package/dist/admin/apps/earn-vaults.d.ts +27 -27
  30. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  31. package/dist/admin/apps/earn-vaults.js +11 -5
  32. package/dist/admin/apps/earn-vaults.js.map +1 -1
  33. package/dist/admin/apps/organizations.d.ts +17 -17
  34. package/dist/admin/apps/prop-amms.d.ts +4 -4
  35. package/dist/admin/apps/routes-support.js +1 -38
  36. package/dist/admin/apps/routes-support.js.map +1 -1
  37. package/dist/admin/apps/routes.d.ts +153 -153
  38. package/dist/admin/apps/sentinel.d.ts +4 -4
  39. package/dist/admin/apps/verified-tokens.d.ts +24 -24
  40. package/dist/admin/apps/zone-delegation-requests.d.ts +332 -0
  41. package/dist/admin/apps/zone-delegation-requests.d.ts.map +1 -0
  42. package/dist/admin/apps/zone-delegation-requests.js +200 -0
  43. package/dist/admin/apps/zone-delegation-requests.js.map +1 -0
  44. package/dist/admin/apps/zone-delegations.d.ts +512 -52
  45. package/dist/admin/apps/zone-delegations.d.ts.map +1 -1
  46. package/dist/admin/apps/zone-delegations.js +134 -44
  47. package/dist/admin/apps/zone-delegations.js.map +1 -1
  48. package/dist/admin/index.d.ts +1 -1
  49. package/dist/admin/index.d.ts.map +1 -1
  50. package/dist/admin/index.js +1 -1
  51. package/dist/admin/index.js.map +1 -1
  52. package/dist/admin/ui.generated.d.ts +1 -1
  53. package/dist/admin/ui.generated.d.ts.map +1 -1
  54. package/dist/admin/ui.generated.js +341 -397
  55. package/dist/admin/ui.generated.js.map +1 -1
  56. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  57. package/dist/analytics/tables/requestEvents.js +4 -2
  58. package/dist/analytics/tables/requestEvents.js.map +1 -1
  59. package/dist/apps/data/App.d.ts +11932 -13214
  60. package/dist/apps/data/App.d.ts.map +1 -1
  61. package/dist/apps/data/App.js +32 -13
  62. package/dist/apps/data/App.js.map +1 -1
  63. package/dist/apps/data/ZoneSelection.d.ts +1 -1
  64. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  65. package/dist/apps/data/ZoneSelection.js +2 -2
  66. package/dist/apps/data/ZoneSelection.js.map +1 -1
  67. package/dist/apps/data/routes/activities.d.ts +60 -27
  68. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  69. package/dist/apps/data/routes/activities.js +91 -16
  70. package/dist/apps/data/routes/activities.js.map +1 -1
  71. package/dist/apps/data/routes/addresses.d.ts +893 -875
  72. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  73. package/dist/apps/data/routes/balances.d.ts +36 -36
  74. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  75. package/dist/apps/data/routes/balances.js +3 -1
  76. package/dist/apps/data/routes/balances.js.map +1 -1
  77. package/dist/apps/data/routes/blocks.d.ts +40 -40
  78. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  79. package/dist/apps/data/routes/blocks.js +3 -7
  80. package/dist/apps/data/routes/blocks.js.map +1 -1
  81. package/dist/apps/data/routes/coingecko.d.ts +236 -236
  82. package/dist/apps/data/routes/earn-transactions.d.ts +14 -14
  83. package/dist/apps/data/routes/earn.d.ts +261 -1445
  84. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  85. package/dist/apps/data/routes/earn.js +64 -490
  86. package/dist/apps/data/routes/earn.js.map +1 -1
  87. package/dist/apps/data/routes/exchanges.d.ts +144 -144
  88. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  89. package/dist/apps/data/routes/exchanges.js +5 -15
  90. package/dist/apps/data/routes/exchanges.js.map +1 -1
  91. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  92. package/dist/apps/data/routes/fee-amm.js +3 -9
  93. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  94. package/dist/apps/data/routes/indexer.d.ts +13 -13
  95. package/dist/apps/data/routes/receipts.d.ts +53 -53
  96. package/dist/apps/data/routes/receipts.js +1 -1
  97. package/dist/apps/data/routes/receipts.js.map +1 -1
  98. package/dist/apps/data/routes/rpc.d.ts +52 -0
  99. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  100. package/dist/apps/data/routes/rpc.js +19 -18
  101. package/dist/apps/data/routes/rpc.js.map +1 -1
  102. package/dist/apps/data/routes/tokenlist.d.ts +14 -14
  103. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  104. package/dist/apps/data/routes/tokenlist.js +1 -3
  105. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  106. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  107. package/dist/apps/data/routes/tokens.js +7 -5
  108. package/dist/apps/data/routes/tokens.js.map +1 -1
  109. package/dist/apps/data/routes/transactions.d.ts +281 -281
  110. package/dist/apps/data/routes/transactions.js +3 -3
  111. package/dist/apps/data/routes/transactions.js.map +1 -1
  112. package/dist/apps/data/routes/transfers.d.ts +12 -12
  113. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  114. package/dist/apps/data/routes/transfers.js +1 -3
  115. package/dist/apps/data/routes/transfers.js.map +1 -1
  116. package/dist/apps/data/routes/valuation.d.ts +30 -30
  117. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  118. package/dist/apps/data/routes/valuation.js +1 -3
  119. package/dist/apps/data/routes/valuation.js.map +1 -1
  120. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  121. package/dist/apps/data/routes/webhooks.d.ts +102 -102
  122. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  123. package/dist/apps/data/routes/webhooks.js +9 -23
  124. package/dist/apps/data/routes/webhooks.js.map +1 -1
  125. package/dist/apps/data/routes/zone-deposits.d.ts +16 -16
  126. package/dist/apps/data/routes/zone-withdrawals.d.ts +31 -31
  127. package/dist/apps/data/routes/zones.d.ts +28 -28
  128. package/dist/apps/management/App.d.ts +18 -102
  129. package/dist/apps/management/App.d.ts.map +1 -1
  130. package/dist/apps/management/App.js +1 -1
  131. package/dist/apps/management/App.js.map +1 -1
  132. package/dist/apps/management/routes/api-keys.d.ts +253 -339
  133. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  134. package/dist/apps/management/routes/api-keys.js +25 -11
  135. package/dist/apps/management/routes/api-keys.js.map +1 -1
  136. package/dist/apps/management/routes/billing.d.ts +92 -92
  137. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  138. package/dist/apps/management/routes/billing.js +5 -13
  139. package/dist/apps/management/routes/billing.js.map +1 -1
  140. package/dist/apps/management/routes/cli.d.ts.map +1 -1
  141. package/dist/apps/management/routes/cli.js +3 -9
  142. package/dist/apps/management/routes/cli.js.map +1 -1
  143. package/dist/apps/management/routes/faucet.d.ts +16 -16
  144. package/dist/apps/management/routes/fee-payer-usage.d.ts +38 -38
  145. package/dist/apps/management/routes/fee-payer-usage.d.ts.map +1 -1
  146. package/dist/apps/management/routes/fee-payer-usage.js +2 -4
  147. package/dist/apps/management/routes/fee-payer-usage.js.map +1 -1
  148. package/dist/apps/management/routes/invitations.d.ts +52 -52
  149. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  150. package/dist/apps/management/routes/invitations.js +4 -12
  151. package/dist/apps/management/routes/invitations.js.map +1 -1
  152. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  153. package/dist/apps/management/routes/invite-links.js +6 -14
  154. package/dist/apps/management/routes/invite-links.js.map +1 -1
  155. package/dist/apps/management/routes/me.d.ts +6 -6
  156. package/dist/apps/management/routes/me.d.ts.map +1 -1
  157. package/dist/apps/management/routes/me.js +3 -7
  158. package/dist/apps/management/routes/me.js.map +1 -1
  159. package/dist/apps/management/routes/members.d.ts +84 -84
  160. package/dist/apps/management/routes/members.d.ts.map +1 -1
  161. package/dist/apps/management/routes/members.js +2 -4
  162. package/dist/apps/management/routes/members.js.map +1 -1
  163. package/dist/apps/management/routes/orgs.d.ts +44 -44
  164. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  165. package/dist/apps/management/routes/orgs.js +2 -6
  166. package/dist/apps/management/routes/orgs.js.map +1 -1
  167. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  168. package/dist/apps/management/routes/projects.js +2 -6
  169. package/dist/apps/management/routes/projects.js.map +1 -1
  170. package/dist/apps/management/routes/route-usage.d.ts +34 -34
  171. package/dist/apps/management/routes/route-usage.d.ts.map +1 -1
  172. package/dist/apps/management/routes/route-usage.js +2 -4
  173. package/dist/apps/management/routes/route-usage.js.map +1 -1
  174. package/dist/apps/management/routes/routes-access-requests.d.ts +120 -91
  175. package/dist/apps/management/routes/routes-access-requests.d.ts.map +1 -1
  176. package/dist/apps/management/routes/routes-access-requests.js +49 -9
  177. package/dist/apps/management/routes/routes-access-requests.js.map +1 -1
  178. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  179. package/dist/apps/management/routes/usage.js +8 -16
  180. package/dist/apps/management/routes/usage.js.map +1 -1
  181. package/dist/apps/management/routes/verified-token-requests.d.ts +39 -39
  182. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  183. package/dist/apps/management/routes/verified-token-requests.js +3 -7
  184. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  185. package/dist/apps/management/routes/webhooks.d.ts +2089 -2089
  186. package/dist/apps/management/routes/zone-delegations.d.ts +14 -17
  187. package/dist/apps/management/routes/zone-delegations.d.ts.map +1 -1
  188. package/dist/apps/management/routes/zone-delegations.js +1 -6
  189. package/dist/apps/management/routes/zone-delegations.js.map +1 -1
  190. package/dist/apps/mpp/App.d.ts +44 -44
  191. package/dist/apps/mpp/App.js +3 -3
  192. package/dist/apps/mpp/App.js.map +1 -1
  193. package/dist/apps/mpp/internal/Adapter.js +1 -1
  194. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  195. package/dist/apps/mpp/internal/Error.d.ts.map +1 -1
  196. package/dist/apps/mpp/internal/Error.js +1 -0
  197. package/dist/apps/mpp/internal/Error.js.map +1 -1
  198. package/dist/apps/mpp/internal/Policy.d.ts +5 -1
  199. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  200. package/dist/apps/mpp/internal/Policy.js +35 -13
  201. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  202. package/dist/apps/relay/App.d.ts +2 -2
  203. package/dist/apps/relay/App.d.ts.map +1 -1
  204. package/dist/apps/relay/App.js +25 -16
  205. package/dist/apps/relay/App.js.map +1 -1
  206. package/dist/apps/routes/App.d.ts +311 -311
  207. package/dist/apps/routes/routes/deposit-addresses.d.ts +1099 -1099
  208. package/dist/apps/routes/routes/list.d.ts +74 -74
  209. package/dist/apps/routes/routes/transfers.d.ts +94 -94
  210. package/dist/cli/ApiKeys.d.ts +19 -26
  211. package/dist/cli/ApiKeys.d.ts.map +1 -1
  212. package/dist/db/Db.d.ts +3 -3
  213. package/dist/db/Db.d.ts.map +1 -1
  214. package/dist/db/Db.js +27 -0
  215. package/dist/db/Db.js.map +1 -1
  216. package/dist/db/Schema.d.ts +28 -62
  217. package/dist/db/Schema.d.ts.map +1 -1
  218. package/dist/db/Schema.js +18 -18
  219. package/dist/db/Schema.js.map +1 -1
  220. package/dist/db/tables/rewardRuns.d.ts +21 -0
  221. package/dist/db/tables/rewardRuns.d.ts.map +1 -1
  222. package/dist/db/tables/rewardRuns.js +19 -0
  223. package/dist/db/tables/rewardRuns.js.map +1 -1
  224. package/dist/db/tables/routesAccessRequests.d.ts +13 -0
  225. package/dist/db/tables/routesAccessRequests.d.ts.map +1 -1
  226. package/dist/db/tables/routesAccessRequests.js +12 -0
  227. package/dist/db/tables/routesAccessRequests.js.map +1 -1
  228. package/dist/db/tables/zoneDelegationRequests.d.ts +165 -0
  229. package/dist/db/tables/zoneDelegationRequests.d.ts.map +1 -0
  230. package/dist/db/tables/{zoneKeyRequests.js → zoneDelegationRequests.js} +43 -42
  231. package/dist/db/tables/zoneDelegationRequests.js.map +1 -0
  232. package/dist/db/tables/zoneDelegations.d.ts +11 -5
  233. package/dist/db/tables/zoneDelegations.d.ts.map +1 -1
  234. package/dist/db/tables/zoneDelegations.js +21 -3
  235. package/dist/db/tables/zoneDelegations.js.map +1 -1
  236. package/dist/handlers/internal/accounts.d.ts +7 -0
  237. package/dist/handlers/internal/accounts.d.ts.map +1 -0
  238. package/dist/handlers/internal/{multisig.js → accounts.js} +10 -10
  239. package/dist/handlers/internal/{multisig.js.map → accounts.js.map} +1 -1
  240. package/dist/handlers/internal/sponsorship.js +17 -17
  241. package/dist/handlers/internal/sponsorship.js.map +1 -1
  242. package/dist/handlers/relay.d.ts +6 -6
  243. package/dist/handlers/relay.d.ts.map +1 -1
  244. package/dist/handlers/relay.js +15 -15
  245. package/dist/handlers/relay.js.map +1 -1
  246. package/dist/internal/Auth.d.ts.map +1 -1
  247. package/dist/internal/Auth.js +4 -8
  248. package/dist/internal/Auth.js.map +1 -1
  249. package/dist/internal/EarnRates.d.ts.map +1 -1
  250. package/dist/internal/EarnRates.js +1 -3
  251. package/dist/internal/EarnRates.js.map +1 -1
  252. package/dist/internal/EarnVaults.js +2 -2
  253. package/dist/internal/Log.d.ts +2 -4
  254. package/dist/internal/Log.d.ts.map +1 -1
  255. package/dist/internal/Log.js +0 -3
  256. package/dist/internal/Log.js.map +1 -1
  257. package/dist/internal/Response.d.ts +1 -1
  258. package/dist/internal/Response.d.ts.map +1 -1
  259. package/dist/internal/Response.js +0 -3
  260. package/dist/internal/Response.js.map +1 -1
  261. package/dist/internal/Schema.d.ts +11 -0
  262. package/dist/internal/Schema.d.ts.map +1 -1
  263. package/dist/internal/Schema.js +24 -1
  264. package/dist/internal/Schema.js.map +1 -1
  265. package/dist/internal/ZoneAccess.d.ts +70 -35
  266. package/dist/internal/ZoneAccess.d.ts.map +1 -1
  267. package/dist/internal/ZoneAccess.js +312 -131
  268. package/dist/internal/ZoneAccess.js.map +1 -1
  269. package/dist/internal/ZoneDelegation.d.ts +7 -19
  270. package/dist/internal/ZoneDelegation.d.ts.map +1 -1
  271. package/dist/internal/ZoneDelegation.js +8 -29
  272. package/dist/internal/ZoneDelegation.js.map +1 -1
  273. package/dist/internal/{ZoneKeyApproval.d.ts → ZoneDelegationApproval.d.ts} +3 -5
  274. package/dist/internal/ZoneDelegationApproval.d.ts.map +1 -0
  275. package/dist/internal/ZoneDelegationApproval.js +16 -0
  276. package/dist/internal/ZoneDelegationApproval.js.map +1 -0
  277. package/dist/internal/ZoneKeyRewrite.d.ts +98 -0
  278. package/dist/internal/ZoneKeyRewrite.d.ts.map +1 -0
  279. package/dist/internal/ZoneKeyRewrite.js +151 -0
  280. package/dist/internal/ZoneKeyRewrite.js.map +1 -0
  281. package/dist/internal/rewards/Campaigns.d.ts +2 -0
  282. package/dist/internal/rewards/Campaigns.d.ts.map +1 -1
  283. package/dist/internal/rewards/Campaigns.js.map +1 -1
  284. package/dist/internal/rewards/Distributions.d.ts.map +1 -1
  285. package/dist/internal/rewards/Distributions.js +2 -6
  286. package/dist/internal/rewards/Distributions.js.map +1 -1
  287. package/dist/internal/rewards/Monitor.d.ts +4 -1
  288. package/dist/internal/rewards/Monitor.d.ts.map +1 -1
  289. package/dist/internal/rewards/Monitor.js +19 -2
  290. package/dist/internal/rewards/Monitor.js.map +1 -1
  291. package/dist/internal/rewards/Runner.d.ts.map +1 -1
  292. package/dist/internal/rewards/Runner.js +9 -1
  293. package/dist/internal/rewards/Runner.js.map +1 -1
  294. package/dist/internal/routes/Action.d.ts.map +1 -1
  295. package/dist/internal/routes/Action.js +2 -3
  296. package/dist/internal/routes/Action.js.map +1 -1
  297. package/dist/internal/routes/Deposit.d.ts.map +1 -1
  298. package/dist/internal/routes/Deposit.js +2 -6
  299. package/dist/internal/routes/Deposit.js.map +1 -1
  300. package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
  301. package/dist/internal/routes/DepositAddress.js +4 -10
  302. package/dist/internal/routes/DepositAddress.js.map +1 -1
  303. package/dist/internal/routes/Policy.d.ts.map +1 -1
  304. package/dist/internal/routes/Policy.js +2 -1
  305. package/dist/internal/routes/Policy.js.map +1 -1
  306. package/dist/internal/routes/Provider.js +8 -8
  307. package/dist/internal/routes/Provider.js.map +1 -1
  308. package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
  309. package/dist/internal/routes/Reconciliation.js +3 -2
  310. package/dist/internal/routes/Reconciliation.js.map +1 -1
  311. package/dist/internal/routes/Transfer.d.ts.map +1 -1
  312. package/dist/internal/routes/Transfer.js +4 -12
  313. package/dist/internal/routes/Transfer.js.map +1 -1
  314. package/dist/internal/routes/UniversalDepositAddress.d.ts.map +1 -1
  315. package/dist/internal/routes/UniversalDepositAddress.js +3 -6
  316. package/dist/internal/routes/UniversalDepositAddress.js.map +1 -1
  317. package/dist/internal/routes/providers/SquidOrder.d.ts.map +1 -1
  318. package/dist/internal/routes/providers/SquidOrder.js +3 -2
  319. package/dist/internal/routes/providers/SquidOrder.js.map +1 -1
  320. package/dist/internal/routes/providers/relay.d.ts.map +1 -1
  321. package/dist/internal/routes/providers/relay.js +4 -3
  322. package/dist/internal/routes/providers/relay.js.map +1 -1
  323. package/package.json +20 -5
  324. package/src/ApiKey.ts +2 -2
  325. package/src/ApiKeys.test.ts +284 -51
  326. package/src/ApiKeys.ts +297 -64
  327. package/src/App.ts +4 -5
  328. package/src/Client.test-d.ts +33 -126
  329. package/src/Scope.test.ts +26 -45
  330. package/src/Scope.ts +24 -37
  331. package/src/admin/App.test.ts +51 -4
  332. package/src/admin/App.ts +25 -33
  333. package/src/admin/Mcp.test.ts +2 -1
  334. package/src/admin/apps/api-keys.test.ts +90 -20
  335. package/src/admin/apps/api-keys.ts +5 -8
  336. package/src/admin/apps/audit-logs.ts +1 -1
  337. package/src/admin/apps/earn-vaults.test.ts +19 -19
  338. package/src/admin/apps/earn-vaults.ts +11 -5
  339. package/src/admin/apps/routes-support.test.ts +254 -3
  340. package/src/admin/apps/routes-support.ts +1 -44
  341. package/src/admin/apps/scopes.test.ts +3 -3
  342. package/src/admin/apps/zone-delegation-requests.test.ts +246 -0
  343. package/src/admin/apps/zone-delegation-requests.ts +240 -0
  344. package/src/admin/apps/zone-delegations.test.ts +218 -58
  345. package/src/admin/apps/zone-delegations.ts +146 -46
  346. package/src/admin/index.ts +1 -1
  347. package/src/admin/ui/src/components/ApiKeyForm.tsx +4 -3
  348. package/src/admin/ui/src/lib/config.ts +3 -3
  349. package/src/admin/ui/src/lib/query-client.ts +1 -1
  350. package/src/admin/ui/src/lib/review-queues.ts +10 -10
  351. package/src/admin/ui/src/lib/routes-setup.test.ts +1 -2
  352. package/src/admin/ui/src/lib/routes-setup.ts +3 -5
  353. package/src/admin/ui/src/lib/scopes.test.ts +3 -6
  354. package/src/admin/ui/src/lib/scopes.ts +2 -9
  355. package/src/admin/ui/src/lib/{zone-key-requests.ts → zone-delegation-requests.ts} +27 -31
  356. package/src/admin/ui/src/routeTree.gen.ts +17 -17
  357. package/src/admin/ui/src/routes/__root.tsx +1 -1
  358. package/src/admin/ui/src/routes/api-keys.tsx +2 -15
  359. package/src/admin/ui/src/routes/audit-logs.tsx +2 -2
  360. package/src/admin/ui/src/routes/index.tsx +11 -11
  361. package/src/admin/ui/src/routes/organizations.tsx +3 -1
  362. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +3 -1
  363. package/src/admin/ui/src/routes/organizations_.$orgId_.setup.tsx +1 -3
  364. package/src/admin/ui/src/routes/{zone-key-requests.tsx → zone-delegation-requests.tsx} +228 -172
  365. package/src/admin/ui/vite.config.ts +14 -1
  366. package/src/admin/ui.generated.ts +412 -583
  367. package/src/analytics/tables/requestEvents.test.ts +13 -3
  368. package/src/analytics/tables/requestEvents.ts +4 -3
  369. package/src/apps/data/App.test.ts +72 -35
  370. package/src/apps/data/App.ts +29 -13
  371. package/src/apps/data/ZoneSelection.test.ts +53 -70
  372. package/src/apps/data/ZoneSelection.ts +2 -2
  373. package/src/apps/data/routes/activities.test.ts +140 -6
  374. package/src/apps/data/routes/activities.ts +124 -18
  375. package/src/apps/data/routes/balances.ts +5 -1
  376. package/src/apps/data/routes/blocks.ts +9 -13
  377. package/src/apps/data/routes/earn-transactions.local.test.ts +6 -1
  378. package/src/apps/data/routes/earn-transactions.test.ts +7 -3
  379. package/src/apps/data/routes/earn.bench.ts +0 -14
  380. package/src/apps/data/routes/earn.discovery.test.ts +4 -39
  381. package/src/apps/data/routes/earn.local.test.ts +27 -34
  382. package/src/apps/data/routes/earn.test.ts +172 -490
  383. package/src/apps/data/routes/earn.ts +103 -652
  384. package/src/apps/data/routes/exchanges.ts +20 -30
  385. package/src/apps/data/routes/fee-amm.ts +12 -18
  386. package/src/apps/data/routes/indexer.test.ts +14 -12
  387. package/src/apps/data/routes/receipts.ts +1 -1
  388. package/src/apps/data/routes/rpc.test.ts +23 -18
  389. package/src/apps/data/routes/rpc.ts +21 -21
  390. package/src/apps/data/routes/rpc.zone.test.ts +60 -6
  391. package/src/apps/data/routes/tokenlist.ts +4 -6
  392. package/src/apps/data/routes/tokens.test.ts +20 -0
  393. package/src/apps/data/routes/tokens.ts +10 -5
  394. package/src/apps/data/routes/transactions.ts +3 -3
  395. package/src/apps/data/routes/transfers.ts +4 -6
  396. package/src/apps/data/routes/valuation.test.ts +2 -4
  397. package/src/apps/data/routes/valuation.ts +4 -6
  398. package/src/apps/data/routes/webhooks.test.ts +1 -5
  399. package/src/apps/data/routes/webhooks.ts +30 -44
  400. package/src/apps/data/routes/zones.test.ts +35 -19
  401. package/src/apps/management/App.ts +3 -1
  402. package/src/apps/management/routes/api-keys.test.ts +112 -22
  403. package/src/apps/management/routes/api-keys.ts +30 -15
  404. package/src/apps/management/routes/billing.ts +17 -25
  405. package/src/apps/management/routes/cli.ts +12 -18
  406. package/src/apps/management/routes/fee-payer-usage.ts +5 -4
  407. package/src/apps/management/routes/invitations.ts +16 -21
  408. package/src/apps/management/routes/invite-links.ts +18 -26
  409. package/src/apps/management/routes/me.ts +9 -13
  410. package/src/apps/management/routes/members.ts +5 -7
  411. package/src/apps/management/routes/orgs.ts +8 -12
  412. package/src/apps/management/routes/projects.ts +8 -12
  413. package/src/apps/management/routes/route-usage.ts +5 -4
  414. package/src/apps/management/routes/routes-access-requests.test.ts +64 -2
  415. package/src/apps/management/routes/routes-access-requests.ts +99 -15
  416. package/src/apps/management/routes/scopes.test.ts +3 -3
  417. package/src/apps/management/routes/usage.ts +20 -28
  418. package/src/apps/management/routes/verified-token-requests.ts +9 -13
  419. package/src/apps/management/routes/zone-delegations.test.ts +3 -5
  420. package/src/apps/management/routes/zone-delegations.ts +4 -9
  421. package/src/apps/mpp/App.ts +3 -3
  422. package/src/apps/mpp/Mpp.zone.test.ts +49 -18
  423. package/src/apps/mpp/internal/Adapter.ts +1 -1
  424. package/src/apps/mpp/internal/Error.test.ts +3 -0
  425. package/src/apps/mpp/internal/Error.ts +1 -0
  426. package/src/apps/mpp/internal/Policy.test.ts +9 -8
  427. package/src/apps/mpp/internal/Policy.ts +37 -14
  428. package/src/apps/relay/App.sandbox.test.ts +15 -14
  429. package/src/apps/relay/App.test.ts +120 -61
  430. package/src/apps/relay/App.ts +28 -18
  431. package/src/apps/relay/App.zone-billing.test.ts +9 -4
  432. package/src/apps/routes/App.test.ts +21 -22
  433. package/src/db/Db.ts +34 -3
  434. package/src/db/Schema.ts +26 -26
  435. package/src/db/tables/rewardRuns.ts +39 -0
  436. package/src/db/tables/routesAccessRequests.test.ts +65 -0
  437. package/src/db/tables/routesAccessRequests.ts +25 -0
  438. package/src/db/tables/{zoneKeyRequests.test.ts → zoneDelegationRequests.test.ts} +36 -77
  439. package/src/db/tables/{zoneKeyRequests.ts → zoneDelegationRequests.ts} +69 -52
  440. package/src/db/tables/zoneDelegations.test.ts +5 -6
  441. package/src/db/tables/zoneDelegations.ts +25 -8
  442. package/src/handlers/internal/{multisig.store.test.ts → accounts.store.test.ts} +16 -16
  443. package/src/handlers/internal/{multisig.test.ts → accounts.test.ts} +85 -82
  444. package/src/handlers/internal/{multisig.ts → accounts.ts} +9 -9
  445. package/src/handlers/internal/sponsorship.ts +20 -20
  446. package/src/handlers/relay.test.ts +48 -46
  447. package/src/handlers/relay.ts +26 -26
  448. package/src/internal/Auth.test.ts +6 -2
  449. package/src/internal/Auth.ts +4 -10
  450. package/src/internal/EarnRates.ts +4 -6
  451. package/src/internal/EarnVaults.ts +2 -2
  452. package/src/internal/Log.test-d.ts +1 -0
  453. package/src/internal/Log.test.ts +4 -6
  454. package/src/internal/Log.ts +2 -6
  455. package/src/internal/Response.ts +0 -3
  456. package/src/internal/Schema.test.ts +42 -0
  457. package/src/internal/Schema.ts +36 -1
  458. package/src/internal/ZoneAccess.test.ts +515 -312
  459. package/src/internal/ZoneAccess.ts +410 -158
  460. package/src/internal/ZoneDelegation.test.ts +1 -41
  461. package/src/internal/ZoneDelegation.ts +10 -48
  462. package/src/internal/ZoneDelegationApproval.test.ts +22 -0
  463. package/src/internal/{ZoneKeyApproval.ts → ZoneDelegationApproval.ts} +4 -11
  464. package/src/internal/ZoneKeyRewrite.ts +231 -0
  465. package/src/internal/rewards/Campaigns.ts +2 -0
  466. package/src/internal/rewards/Distributions.ts +8 -12
  467. package/src/internal/rewards/Monitor.test.ts +64 -0
  468. package/src/internal/rewards/Monitor.ts +27 -4
  469. package/src/internal/rewards/Runner.ts +9 -1
  470. package/src/internal/routes/Action.ts +5 -6
  471. package/src/internal/routes/Deposit.ts +8 -12
  472. package/src/internal/routes/DepositAddress.ts +13 -19
  473. package/src/internal/routes/Policy.ts +2 -1
  474. package/src/internal/routes/Provider.ts +8 -8
  475. package/src/internal/routes/Reconciliation.ts +3 -2
  476. package/src/internal/routes/Transfer.ts +16 -24
  477. package/src/internal/routes/UniversalDepositAddress.ts +9 -12
  478. package/src/internal/routes/providers/SquidOrder.ts +3 -2
  479. package/src/internal/routes/providers/relay.ts +4 -3
  480. package/dist/admin/apps/zone-key-requests.d.ts +0 -406
  481. package/dist/admin/apps/zone-key-requests.d.ts.map +0 -1
  482. package/dist/admin/apps/zone-key-requests.js +0 -183
  483. package/dist/admin/apps/zone-key-requests.js.map +0 -1
  484. package/dist/db/tables/zoneKeyRequests.d.ts +0 -289
  485. package/dist/db/tables/zoneKeyRequests.d.ts.map +0 -1
  486. package/dist/db/tables/zoneKeyRequests.js.map +0 -1
  487. package/dist/handlers/internal/multisig.d.ts +0 -7
  488. package/dist/handlers/internal/multisig.d.ts.map +0 -1
  489. package/dist/internal/ZoneKeyApproval.d.ts.map +0 -1
  490. package/dist/internal/ZoneKeyApproval.js +0 -21
  491. package/dist/internal/ZoneKeyApproval.js.map +0 -1
  492. package/src/admin/apps/zone-key-requests.test.ts +0 -272
  493. package/src/admin/apps/zone-key-requests.ts +0 -231
  494. package/src/internal/ZoneKeyApproval.test.ts +0 -46
@@ -225,14 +225,9 @@ export declare namespace schema {
225
225
  export declare function coingecko(): import("hono/hono-base").HonoBase<App.Environment, {
226
226
  "/gecko/:chainId/latest-block": {
227
227
  $get: {
228
- output: {
229
- block: {
230
- blockNumber: number;
231
- blockTimestamp: number;
232
- };
233
- };
234
- outputFormat: "json";
235
- status: 200;
228
+ output: null;
229
+ outputFormat: "body";
230
+ status: 402;
236
231
  input: {
237
232
  param: {
238
233
  chainId: string;
@@ -257,14 +252,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
257
252
  } | {
258
253
  output: {
259
254
  error: {
260
- code: "chain_id_invalid";
255
+ code: "api_key_invalid" | "api_key_missing";
261
256
  details?: readonly Response.error.Detail[] | undefined;
262
257
  message: string;
263
258
  };
264
259
  requestId: string;
265
260
  };
266
261
  outputFormat: "json";
267
- status: 400;
262
+ status: 401;
268
263
  input: {
269
264
  param: {
270
265
  chainId: string;
@@ -273,23 +268,30 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
273
268
  } | {
274
269
  output: {
275
270
  error: {
276
- code: "api_key_invalid" | "api_key_missing";
271
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
277
272
  details?: readonly Response.error.Detail[] | undefined;
278
273
  message: string;
279
274
  };
280
275
  requestId: string;
281
276
  };
282
277
  outputFormat: "json";
283
- status: 401;
278
+ status: 403;
284
279
  input: {
285
280
  param: {
286
281
  chainId: string;
287
282
  };
288
283
  };
289
284
  } | {
290
- output: null;
291
- outputFormat: "body";
292
- status: 402;
285
+ output: {
286
+ error: {
287
+ code: "payment_required" | "rate_limit_exceeded";
288
+ details?: readonly Response.error.Detail[] | undefined;
289
+ message: string;
290
+ };
291
+ requestId: string;
292
+ };
293
+ outputFormat: "json";
294
+ status: 429;
293
295
  input: {
294
296
  param: {
295
297
  chainId: string;
@@ -298,14 +300,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
298
300
  } | {
299
301
  output: {
300
302
  error: {
301
- code: "api_key_forbidden" | "api_key_ip_forbidden";
303
+ code: "upstream_error";
302
304
  details?: readonly Response.error.Detail[] | undefined;
303
305
  message: string;
304
306
  };
305
307
  requestId: string;
306
308
  };
307
309
  outputFormat: "json";
308
- status: 403;
310
+ status: 502;
309
311
  input: {
310
312
  param: {
311
313
  chainId: string;
@@ -314,14 +316,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
314
316
  } | {
315
317
  output: {
316
318
  error: {
317
- code: "not_found";
319
+ code: "chain_id_invalid";
318
320
  details?: readonly Response.error.Detail[] | undefined;
319
321
  message: string;
320
322
  };
321
323
  requestId: string;
322
324
  };
323
325
  outputFormat: "json";
324
- status: 404;
326
+ status: 400;
325
327
  input: {
326
328
  param: {
327
329
  chainId: string;
@@ -330,14 +332,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
330
332
  } | {
331
333
  output: {
332
334
  error: {
333
- code: "payment_required" | "rate_limit_exceeded";
335
+ code: "not_found";
334
336
  details?: readonly Response.error.Detail[] | undefined;
335
337
  message: string;
336
338
  };
337
339
  requestId: string;
338
340
  };
339
341
  outputFormat: "json";
340
- status: 429;
342
+ status: 404;
341
343
  input: {
342
344
  param: {
343
345
  chainId: string;
@@ -345,15 +347,13 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
345
347
  };
346
348
  } | {
347
349
  output: {
348
- error: {
349
- code: "upstream_error";
350
- details?: readonly Response.error.Detail[] | undefined;
351
- message: string;
350
+ block: {
351
+ blockNumber: number;
352
+ blockTimestamp: number;
352
353
  };
353
- requestId: string;
354
354
  };
355
355
  outputFormat: "json";
356
- status: 502;
356
+ status: 200;
357
357
  input: {
358
358
  param: {
359
359
  chainId: string;
@@ -364,17 +364,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
364
364
  } & {
365
365
  "/gecko/:chainId/asset": {
366
366
  $get: {
367
- output: {
368
- asset: {
369
- id: string;
370
- name: string;
371
- symbol: string;
372
- decimals: number;
373
- totalSupply: string;
374
- };
375
- };
376
- outputFormat: "json";
377
- status: 200;
367
+ output: null;
368
+ outputFormat: "body";
369
+ status: 402;
378
370
  input: {
379
371
  param: {
380
372
  chainId: string;
@@ -407,14 +399,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
407
399
  } | {
408
400
  output: {
409
401
  error: {
410
- code: "address_invalid";
402
+ code: "api_key_invalid" | "api_key_missing";
411
403
  details?: readonly Response.error.Detail[] | undefined;
412
404
  message: string;
413
405
  };
414
406
  requestId: string;
415
407
  };
416
408
  outputFormat: "json";
417
- status: 400;
409
+ status: 401;
418
410
  input: {
419
411
  param: {
420
412
  chainId: string;
@@ -427,27 +419,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
427
419
  } | {
428
420
  output: {
429
421
  error: {
430
- code: "api_key_invalid" | "api_key_missing";
422
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
431
423
  details?: readonly Response.error.Detail[] | undefined;
432
424
  message: string;
433
425
  };
434
426
  requestId: string;
435
427
  };
436
428
  outputFormat: "json";
437
- status: 401;
438
- input: {
439
- param: {
440
- chainId: string;
441
- };
442
- } & {
443
- query: {
444
- id: `0x${string}`;
445
- };
446
- };
447
- } | {
448
- output: null;
449
- outputFormat: "body";
450
- status: 402;
429
+ status: 403;
451
430
  input: {
452
431
  param: {
453
432
  chainId: string;
@@ -460,14 +439,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
460
439
  } | {
461
440
  output: {
462
441
  error: {
463
- code: "api_key_forbidden" | "api_key_ip_forbidden";
442
+ code: "payment_required" | "rate_limit_exceeded";
464
443
  details?: readonly Response.error.Detail[] | undefined;
465
444
  message: string;
466
445
  };
467
446
  requestId: string;
468
447
  };
469
448
  outputFormat: "json";
470
- status: 403;
449
+ status: 429;
471
450
  input: {
472
451
  param: {
473
452
  chainId: string;
@@ -480,14 +459,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
480
459
  } | {
481
460
  output: {
482
461
  error: {
483
- code: "not_found";
462
+ code: "upstream_error";
484
463
  details?: readonly Response.error.Detail[] | undefined;
485
464
  message: string;
486
465
  };
487
466
  requestId: string;
488
467
  };
489
468
  outputFormat: "json";
490
- status: 404;
469
+ status: 502;
491
470
  input: {
492
471
  param: {
493
472
  chainId: string;
@@ -500,14 +479,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
500
479
  } | {
501
480
  output: {
502
481
  error: {
503
- code: "payment_required" | "rate_limit_exceeded";
482
+ code: "address_invalid";
504
483
  details?: readonly Response.error.Detail[] | undefined;
505
484
  message: string;
506
485
  };
507
486
  requestId: string;
508
487
  };
509
488
  outputFormat: "json";
510
- status: 429;
489
+ status: 400;
511
490
  input: {
512
491
  param: {
513
492
  chainId: string;
@@ -520,14 +499,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
520
499
  } | {
521
500
  output: {
522
501
  error: {
523
- code: "upstream_error";
502
+ code: "not_found";
524
503
  details?: readonly Response.error.Detail[] | undefined;
525
504
  message: string;
526
505
  };
527
506
  requestId: string;
528
507
  };
529
508
  outputFormat: "json";
530
- status: 502;
509
+ status: 404;
531
510
  input: {
532
511
  param: {
533
512
  chainId: string;
@@ -537,11 +516,7 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
537
516
  id: `0x${string}`;
538
517
  };
539
518
  };
540
- };
541
- };
542
- } & {
543
- "/gecko/:chainId/assets/:address": {
544
- $get: {
519
+ } | {
545
520
  output: {
546
521
  asset: {
547
522
  id: string;
@@ -553,6 +528,23 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
553
528
  };
554
529
  outputFormat: "json";
555
530
  status: 200;
531
+ input: {
532
+ param: {
533
+ chainId: string;
534
+ };
535
+ } & {
536
+ query: {
537
+ id: `0x${string}`;
538
+ };
539
+ };
540
+ };
541
+ };
542
+ } & {
543
+ "/gecko/:chainId/assets/:address": {
544
+ $get: {
545
+ output: null;
546
+ outputFormat: "body";
547
+ status: 402;
556
548
  input: {
557
549
  param: {
558
550
  chainId: string;
@@ -579,14 +571,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
579
571
  } | {
580
572
  output: {
581
573
  error: {
582
- code: "address_invalid";
574
+ code: "api_key_invalid" | "api_key_missing";
583
575
  details?: readonly Response.error.Detail[] | undefined;
584
576
  message: string;
585
577
  };
586
578
  requestId: string;
587
579
  };
588
580
  outputFormat: "json";
589
- status: 400;
581
+ status: 401;
590
582
  input: {
591
583
  param: {
592
584
  chainId: string;
@@ -596,14 +588,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
596
588
  } | {
597
589
  output: {
598
590
  error: {
599
- code: "api_key_invalid" | "api_key_missing";
591
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
600
592
  details?: readonly Response.error.Detail[] | undefined;
601
593
  message: string;
602
594
  };
603
595
  requestId: string;
604
596
  };
605
597
  outputFormat: "json";
606
- status: 401;
598
+ status: 403;
607
599
  input: {
608
600
  param: {
609
601
  chainId: string;
@@ -611,9 +603,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
611
603
  };
612
604
  };
613
605
  } | {
614
- output: null;
615
- outputFormat: "body";
616
- status: 402;
606
+ output: {
607
+ error: {
608
+ code: "payment_required" | "rate_limit_exceeded";
609
+ details?: readonly Response.error.Detail[] | undefined;
610
+ message: string;
611
+ };
612
+ requestId: string;
613
+ };
614
+ outputFormat: "json";
615
+ status: 429;
617
616
  input: {
618
617
  param: {
619
618
  chainId: string;
@@ -623,14 +622,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
623
622
  } | {
624
623
  output: {
625
624
  error: {
626
- code: "api_key_forbidden" | "api_key_ip_forbidden";
625
+ code: "upstream_error";
627
626
  details?: readonly Response.error.Detail[] | undefined;
628
627
  message: string;
629
628
  };
630
629
  requestId: string;
631
630
  };
632
631
  outputFormat: "json";
633
- status: 403;
632
+ status: 502;
634
633
  input: {
635
634
  param: {
636
635
  chainId: string;
@@ -640,14 +639,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
640
639
  } | {
641
640
  output: {
642
641
  error: {
643
- code: "not_found";
642
+ code: "address_invalid";
644
643
  details?: readonly Response.error.Detail[] | undefined;
645
644
  message: string;
646
645
  };
647
646
  requestId: string;
648
647
  };
649
648
  outputFormat: "json";
650
- status: 404;
649
+ status: 400;
651
650
  input: {
652
651
  param: {
653
652
  chainId: string;
@@ -657,14 +656,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
657
656
  } | {
658
657
  output: {
659
658
  error: {
660
- code: "payment_required" | "rate_limit_exceeded";
659
+ code: "not_found";
661
660
  details?: readonly Response.error.Detail[] | undefined;
662
661
  message: string;
663
662
  };
664
663
  requestId: string;
665
664
  };
666
665
  outputFormat: "json";
667
- status: 429;
666
+ status: 404;
668
667
  input: {
669
668
  param: {
670
669
  chainId: string;
@@ -673,15 +672,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
673
672
  };
674
673
  } | {
675
674
  output: {
676
- error: {
677
- code: "upstream_error";
678
- details?: readonly Response.error.Detail[] | undefined;
679
- message: string;
675
+ asset: {
676
+ id: string;
677
+ name: string;
678
+ symbol: string;
679
+ decimals: number;
680
+ totalSupply: string;
680
681
  };
681
- requestId: string;
682
682
  };
683
683
  outputFormat: "json";
684
- status: 502;
684
+ status: 200;
685
685
  input: {
686
686
  param: {
687
687
  chainId: string;
@@ -693,35 +693,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
693
693
  } & {
694
694
  "/gecko/:chainId/pairs": {
695
695
  $get: {
696
- output: {
697
- pairs: {
698
- id: `0x${string}`;
699
- dexKey: string;
700
- asset0Id: string;
701
- asset1Id: string;
702
- token0: {
703
- address: string;
704
- name: string;
705
- symbol: string;
706
- decimals: number;
707
- totalSupply: string;
708
- };
709
- token1: {
710
- address: string;
711
- name: string;
712
- symbol: string;
713
- decimals: number;
714
- totalSupply: string;
715
- };
716
- reserve0: string;
717
- reserve1: string;
718
- createdAtBlockNumber?: number | undefined;
719
- createdAtBlockTimestamp?: number | undefined;
720
- createdAtTxnId?: string | undefined;
721
- }[];
722
- };
723
- outputFormat: "json";
724
- status: 200;
696
+ output: null;
697
+ outputFormat: "body";
698
+ status: 402;
725
699
  input: {
726
700
  param: {
727
701
  chainId: string;
@@ -754,14 +728,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
754
728
  } | {
755
729
  output: {
756
730
  error: {
757
- code: "query_invalid";
731
+ code: "api_key_invalid" | "api_key_missing";
758
732
  details?: readonly Response.error.Detail[] | undefined;
759
733
  message: string;
760
734
  };
761
735
  requestId: string;
762
736
  };
763
737
  outputFormat: "json";
764
- status: 400;
738
+ status: 401;
765
739
  input: {
766
740
  param: {
767
741
  chainId: string;
@@ -774,27 +748,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
774
748
  } | {
775
749
  output: {
776
750
  error: {
777
- code: "api_key_invalid" | "api_key_missing";
751
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
778
752
  details?: readonly Response.error.Detail[] | undefined;
779
753
  message: string;
780
754
  };
781
755
  requestId: string;
782
756
  };
783
757
  outputFormat: "json";
784
- status: 401;
785
- input: {
786
- param: {
787
- chainId: string;
788
- };
789
- } & {
790
- query?: {
791
- limit?: string | string[];
792
- } | undefined;
793
- };
794
- } | {
795
- output: null;
796
- outputFormat: "body";
797
- status: 402;
758
+ status: 403;
798
759
  input: {
799
760
  param: {
800
761
  chainId: string;
@@ -807,14 +768,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
807
768
  } | {
808
769
  output: {
809
770
  error: {
810
- code: "api_key_forbidden" | "api_key_ip_forbidden";
771
+ code: "payment_required" | "rate_limit_exceeded";
811
772
  details?: readonly Response.error.Detail[] | undefined;
812
773
  message: string;
813
774
  };
814
775
  requestId: string;
815
776
  };
816
777
  outputFormat: "json";
817
- status: 403;
778
+ status: 429;
818
779
  input: {
819
780
  param: {
820
781
  chainId: string;
@@ -827,14 +788,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
827
788
  } | {
828
789
  output: {
829
790
  error: {
830
- code: "payment_required" | "rate_limit_exceeded";
791
+ code: "query_invalid";
831
792
  details?: readonly Response.error.Detail[] | undefined;
832
793
  message: string;
833
794
  };
834
795
  requestId: string;
835
796
  };
836
797
  outputFormat: "json";
837
- status: 429;
798
+ status: 400;
838
799
  input: {
839
800
  param: {
840
801
  chainId: string;
@@ -864,13 +825,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
864
825
  limit?: string | string[];
865
826
  } | undefined;
866
827
  };
867
- };
868
- };
869
- } & {
870
- "/gecko/:chainId/pair": {
871
- $get: {
828
+ } | {
872
829
  output: {
873
- pair: {
830
+ pairs: {
874
831
  id: `0x${string}`;
875
832
  dexKey: string;
876
833
  asset0Id: string;
@@ -894,10 +851,27 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
894
851
  createdAtBlockNumber?: number | undefined;
895
852
  createdAtBlockTimestamp?: number | undefined;
896
853
  createdAtTxnId?: string | undefined;
897
- };
854
+ }[];
898
855
  };
899
856
  outputFormat: "json";
900
857
  status: 200;
858
+ input: {
859
+ param: {
860
+ chainId: string;
861
+ };
862
+ } & {
863
+ query?: {
864
+ limit?: string | string[];
865
+ } | undefined;
866
+ };
867
+ };
868
+ };
869
+ } & {
870
+ "/gecko/:chainId/pair": {
871
+ $get: {
872
+ output: null;
873
+ outputFormat: "body";
874
+ status: 402;
901
875
  input: {
902
876
  param: {
903
877
  chainId: string;
@@ -930,14 +904,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
930
904
  } | {
931
905
  output: {
932
906
  error: {
933
- code: "pair_id_invalid";
907
+ code: "api_key_invalid" | "api_key_missing";
934
908
  details?: readonly Response.error.Detail[] | undefined;
935
909
  message: string;
936
910
  };
937
911
  requestId: string;
938
912
  };
939
913
  outputFormat: "json";
940
- status: 400;
914
+ status: 401;
941
915
  input: {
942
916
  param: {
943
917
  chainId: string;
@@ -950,27 +924,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
950
924
  } | {
951
925
  output: {
952
926
  error: {
953
- code: "api_key_invalid" | "api_key_missing";
927
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
954
928
  details?: readonly Response.error.Detail[] | undefined;
955
929
  message: string;
956
930
  };
957
931
  requestId: string;
958
932
  };
959
933
  outputFormat: "json";
960
- status: 401;
961
- input: {
962
- param: {
963
- chainId: string;
964
- };
965
- } & {
966
- query: {
967
- id: string;
968
- };
969
- };
970
- } | {
971
- output: null;
972
- outputFormat: "body";
973
- status: 402;
934
+ status: 403;
974
935
  input: {
975
936
  param: {
976
937
  chainId: string;
@@ -983,14 +944,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
983
944
  } | {
984
945
  output: {
985
946
  error: {
986
- code: "api_key_forbidden" | "api_key_ip_forbidden";
947
+ code: "payment_required" | "rate_limit_exceeded";
987
948
  details?: readonly Response.error.Detail[] | undefined;
988
949
  message: string;
989
950
  };
990
951
  requestId: string;
991
952
  };
992
953
  outputFormat: "json";
993
- status: 403;
954
+ status: 429;
994
955
  input: {
995
956
  param: {
996
957
  chainId: string;
@@ -1003,14 +964,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1003
964
  } | {
1004
965
  output: {
1005
966
  error: {
1006
- code: "not_found";
967
+ code: "upstream_error";
1007
968
  details?: readonly Response.error.Detail[] | undefined;
1008
969
  message: string;
1009
970
  };
1010
971
  requestId: string;
1011
972
  };
1012
973
  outputFormat: "json";
1013
- status: 404;
974
+ status: 502;
1014
975
  input: {
1015
976
  param: {
1016
977
  chainId: string;
@@ -1023,14 +984,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1023
984
  } | {
1024
985
  output: {
1025
986
  error: {
1026
- code: "payment_required" | "rate_limit_exceeded";
987
+ code: "not_found";
1027
988
  details?: readonly Response.error.Detail[] | undefined;
1028
989
  message: string;
1029
990
  };
1030
991
  requestId: string;
1031
992
  };
1032
993
  outputFormat: "json";
1033
- status: 429;
994
+ status: 404;
1034
995
  input: {
1035
996
  param: {
1036
997
  chainId: string;
@@ -1043,14 +1004,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1043
1004
  } | {
1044
1005
  output: {
1045
1006
  error: {
1046
- code: "upstream_error";
1007
+ code: "pair_id_invalid";
1047
1008
  details?: readonly Response.error.Detail[] | undefined;
1048
1009
  message: string;
1049
1010
  };
1050
1011
  requestId: string;
1051
1012
  };
1052
1013
  outputFormat: "json";
1053
- status: 502;
1014
+ status: 400;
1054
1015
  input: {
1055
1016
  param: {
1056
1017
  chainId: string;
@@ -1060,11 +1021,7 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1060
1021
  id: string;
1061
1022
  };
1062
1023
  };
1063
- };
1064
- };
1065
- } & {
1066
- "/gecko/:chainId/pairs/:pairId": {
1067
- $get: {
1024
+ } | {
1068
1025
  output: {
1069
1026
  pair: {
1070
1027
  id: `0x${string}`;
@@ -1094,6 +1051,23 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1094
1051
  };
1095
1052
  outputFormat: "json";
1096
1053
  status: 200;
1054
+ input: {
1055
+ param: {
1056
+ chainId: string;
1057
+ };
1058
+ } & {
1059
+ query: {
1060
+ id: string;
1061
+ };
1062
+ };
1063
+ };
1064
+ };
1065
+ } & {
1066
+ "/gecko/:chainId/pairs/:pairId": {
1067
+ $get: {
1068
+ output: null;
1069
+ outputFormat: "body";
1070
+ status: 402;
1097
1071
  input: {
1098
1072
  param: {
1099
1073
  chainId: string;
@@ -1120,14 +1094,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1120
1094
  } | {
1121
1095
  output: {
1122
1096
  error: {
1123
- code: "pair_id_invalid";
1097
+ code: "api_key_invalid" | "api_key_missing";
1124
1098
  details?: readonly Response.error.Detail[] | undefined;
1125
1099
  message: string;
1126
1100
  };
1127
1101
  requestId: string;
1128
1102
  };
1129
1103
  outputFormat: "json";
1130
- status: 400;
1104
+ status: 401;
1131
1105
  input: {
1132
1106
  param: {
1133
1107
  chainId: string;
@@ -1137,14 +1111,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1137
1111
  } | {
1138
1112
  output: {
1139
1113
  error: {
1140
- code: "api_key_invalid" | "api_key_missing";
1114
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1141
1115
  details?: readonly Response.error.Detail[] | undefined;
1142
1116
  message: string;
1143
1117
  };
1144
1118
  requestId: string;
1145
1119
  };
1146
1120
  outputFormat: "json";
1147
- status: 401;
1121
+ status: 403;
1148
1122
  input: {
1149
1123
  param: {
1150
1124
  chainId: string;
@@ -1152,9 +1126,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1152
1126
  };
1153
1127
  };
1154
1128
  } | {
1155
- output: null;
1156
- outputFormat: "body";
1157
- status: 402;
1129
+ output: {
1130
+ error: {
1131
+ code: "payment_required" | "rate_limit_exceeded";
1132
+ details?: readonly Response.error.Detail[] | undefined;
1133
+ message: string;
1134
+ };
1135
+ requestId: string;
1136
+ };
1137
+ outputFormat: "json";
1138
+ status: 429;
1158
1139
  input: {
1159
1140
  param: {
1160
1141
  chainId: string;
@@ -1164,14 +1145,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1164
1145
  } | {
1165
1146
  output: {
1166
1147
  error: {
1167
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1148
+ code: "upstream_error";
1168
1149
  details?: readonly Response.error.Detail[] | undefined;
1169
1150
  message: string;
1170
1151
  };
1171
1152
  requestId: string;
1172
1153
  };
1173
1154
  outputFormat: "json";
1174
- status: 403;
1155
+ status: 502;
1175
1156
  input: {
1176
1157
  param: {
1177
1158
  chainId: string;
@@ -1198,14 +1179,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1198
1179
  } | {
1199
1180
  output: {
1200
1181
  error: {
1201
- code: "payment_required" | "rate_limit_exceeded";
1182
+ code: "pair_id_invalid";
1202
1183
  details?: readonly Response.error.Detail[] | undefined;
1203
1184
  message: string;
1204
1185
  };
1205
1186
  requestId: string;
1206
1187
  };
1207
1188
  outputFormat: "json";
1208
- status: 429;
1189
+ status: 400;
1209
1190
  input: {
1210
1191
  param: {
1211
1192
  chainId: string;
@@ -1214,15 +1195,34 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1214
1195
  };
1215
1196
  } | {
1216
1197
  output: {
1217
- error: {
1218
- code: "upstream_error";
1219
- details?: readonly Response.error.Detail[] | undefined;
1220
- message: string;
1198
+ pair: {
1199
+ id: `0x${string}`;
1200
+ dexKey: string;
1201
+ asset0Id: string;
1202
+ asset1Id: string;
1203
+ token0: {
1204
+ address: string;
1205
+ name: string;
1206
+ symbol: string;
1207
+ decimals: number;
1208
+ totalSupply: string;
1209
+ };
1210
+ token1: {
1211
+ address: string;
1212
+ name: string;
1213
+ symbol: string;
1214
+ decimals: number;
1215
+ totalSupply: string;
1216
+ };
1217
+ reserve0: string;
1218
+ reserve1: string;
1219
+ createdAtBlockNumber?: number | undefined;
1220
+ createdAtBlockTimestamp?: number | undefined;
1221
+ createdAtTxnId?: string | undefined;
1221
1222
  };
1222
- requestId: string;
1223
1223
  };
1224
1224
  outputFormat: "json";
1225
- status: 502;
1225
+ status: 200;
1226
1226
  input: {
1227
1227
  param: {
1228
1228
  chainId: string;
@@ -1234,31 +1234,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1234
1234
  } & {
1235
1235
  "/gecko/:chainId/events": {
1236
1236
  $get: {
1237
- output: {
1238
- events: {
1239
- block: {
1240
- blockNumber: number;
1241
- blockTimestamp: number;
1242
- };
1243
- eventType: "swap";
1244
- txnId: string;
1245
- txnIndex: number;
1246
- eventIndex: number;
1247
- maker: string;
1248
- pairId: `0x${string}`;
1249
- asset0In?: string | undefined;
1250
- asset1In?: string | undefined;
1251
- asset0Out?: string | undefined;
1252
- asset1Out?: string | undefined;
1253
- priceNative: string;
1254
- reserves: {
1255
- asset0: string;
1256
- asset1: string;
1257
- };
1258
- }[];
1259
- };
1260
- outputFormat: "json";
1261
- status: 200;
1237
+ output: null;
1238
+ outputFormat: "body";
1239
+ status: 402;
1262
1240
  input: {
1263
1241
  param: {
1264
1242
  chainId: string;
@@ -1293,14 +1271,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1293
1271
  } | {
1294
1272
  output: {
1295
1273
  error: {
1296
- code: "query_invalid";
1274
+ code: "api_key_invalid" | "api_key_missing";
1297
1275
  details?: readonly Response.error.Detail[] | undefined;
1298
1276
  message: string;
1299
1277
  };
1300
1278
  requestId: string;
1301
1279
  };
1302
1280
  outputFormat: "json";
1303
- status: 400;
1281
+ status: 401;
1304
1282
  input: {
1305
1283
  param: {
1306
1284
  chainId: string;
@@ -1314,14 +1292,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1314
1292
  } | {
1315
1293
  output: {
1316
1294
  error: {
1317
- code: "block_range_too_dense";
1295
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1318
1296
  details?: readonly Response.error.Detail[] | undefined;
1319
1297
  message: string;
1320
1298
  };
1321
1299
  requestId: string;
1322
1300
  };
1323
1301
  outputFormat: "json";
1324
- status: 400;
1302
+ status: 403;
1325
1303
  input: {
1326
1304
  param: {
1327
1305
  chainId: string;
@@ -1335,14 +1313,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1335
1313
  } | {
1336
1314
  output: {
1337
1315
  error: {
1338
- code: "api_key_invalid" | "api_key_missing";
1316
+ code: "payment_required" | "rate_limit_exceeded";
1339
1317
  details?: readonly Response.error.Detail[] | undefined;
1340
1318
  message: string;
1341
1319
  };
1342
1320
  requestId: string;
1343
1321
  };
1344
1322
  outputFormat: "json";
1345
- status: 401;
1323
+ status: 429;
1346
1324
  input: {
1347
1325
  param: {
1348
1326
  chainId: string;
@@ -1354,9 +1332,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1354
1332
  } | undefined;
1355
1333
  };
1356
1334
  } | {
1357
- output: null;
1358
- outputFormat: "body";
1359
- status: 402;
1335
+ output: {
1336
+ error: {
1337
+ code: "query_invalid";
1338
+ details?: readonly Response.error.Detail[] | undefined;
1339
+ message: string;
1340
+ };
1341
+ requestId: string;
1342
+ };
1343
+ outputFormat: "json";
1344
+ status: 400;
1360
1345
  input: {
1361
1346
  param: {
1362
1347
  chainId: string;
@@ -1370,14 +1355,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1370
1355
  } | {
1371
1356
  output: {
1372
1357
  error: {
1373
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1358
+ code: "upstream_error";
1374
1359
  details?: readonly Response.error.Detail[] | undefined;
1375
1360
  message: string;
1376
1361
  };
1377
1362
  requestId: string;
1378
1363
  };
1379
1364
  outputFormat: "json";
1380
- status: 403;
1365
+ status: 502;
1381
1366
  input: {
1382
1367
  param: {
1383
1368
  chainId: string;
@@ -1411,15 +1396,30 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1411
1396
  };
1412
1397
  } | {
1413
1398
  output: {
1414
- error: {
1415
- code: "payment_required" | "rate_limit_exceeded";
1416
- details?: readonly Response.error.Detail[] | undefined;
1417
- message: string;
1418
- };
1419
- requestId: string;
1399
+ events: {
1400
+ block: {
1401
+ blockNumber: number;
1402
+ blockTimestamp: number;
1403
+ };
1404
+ eventType: "swap";
1405
+ txnId: string;
1406
+ txnIndex: number;
1407
+ eventIndex: number;
1408
+ maker: string;
1409
+ pairId: `0x${string}`;
1410
+ asset0In?: string | undefined;
1411
+ asset1In?: string | undefined;
1412
+ asset0Out?: string | undefined;
1413
+ asset1Out?: string | undefined;
1414
+ priceNative: string;
1415
+ reserves: {
1416
+ asset0: string;
1417
+ asset1: string;
1418
+ };
1419
+ }[];
1420
1420
  };
1421
1421
  outputFormat: "json";
1422
- status: 429;
1422
+ status: 200;
1423
1423
  input: {
1424
1424
  param: {
1425
1425
  chainId: string;
@@ -1433,14 +1433,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1433
1433
  } | {
1434
1434
  output: {
1435
1435
  error: {
1436
- code: "upstream_error";
1436
+ code: "block_range_too_dense";
1437
1437
  details?: readonly Response.error.Detail[] | undefined;
1438
1438
  message: string;
1439
1439
  };
1440
1440
  requestId: string;
1441
1441
  };
1442
1442
  outputFormat: "json";
1443
- status: 502;
1443
+ status: 400;
1444
1444
  input: {
1445
1445
  param: {
1446
1446
  chainId: string;