tapimo 0.0.2 → 0.1.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 (265) hide show
  1. package/README.md +11 -2
  2. package/dist/ApiKey.d.ts +12 -11
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +10 -12
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +139 -0
  7. package/dist/ApiKeys.d.ts.map +1 -0
  8. package/dist/ApiKeys.js +166 -0
  9. package/dist/ApiKeys.js.map +1 -0
  10. package/dist/App.d.ts +920 -910
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +36 -12
  13. package/dist/App.js.map +1 -1
  14. package/dist/Handler.d.ts +86 -0
  15. package/dist/Handler.d.ts.map +1 -0
  16. package/dist/Handler.js +83 -0
  17. package/dist/Handler.js.map +1 -0
  18. package/dist/Scope.d.ts +4 -1
  19. package/dist/Scope.d.ts.map +1 -1
  20. package/dist/Scope.js +5 -1
  21. package/dist/Scope.js.map +1 -1
  22. package/dist/Webhooks.d.ts +3 -5
  23. package/dist/Webhooks.d.ts.map +1 -1
  24. package/dist/Webhooks.js +9 -2
  25. package/dist/Webhooks.js.map +1 -1
  26. package/dist/admin/Access.d.ts +1 -3
  27. package/dist/admin/Access.d.ts.map +1 -1
  28. package/dist/admin/Access.js +1 -3
  29. package/dist/admin/Access.js.map +1 -1
  30. package/dist/admin/App.d.ts +98 -209
  31. package/dist/admin/App.d.ts.map +1 -1
  32. package/dist/admin/App.js +2 -4
  33. package/dist/admin/App.js.map +1 -1
  34. package/dist/admin/apps/api-keys.d.ts +7 -5
  35. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  36. package/dist/admin/apps/api-keys.js +8 -9
  37. package/dist/admin/apps/api-keys.js.map +1 -1
  38. package/dist/admin/apps/scopes.d.ts +3 -0
  39. package/dist/admin/apps/scopes.d.ts.map +1 -1
  40. package/dist/admin/apps/verified-tokens.d.ts +101 -215
  41. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  42. package/dist/admin/apps/verified-tokens.js +17 -38
  43. package/dist/admin/apps/verified-tokens.js.map +1 -1
  44. package/dist/admin/ui.generated.d.ts +1 -1
  45. package/dist/admin/ui.generated.js +1 -1
  46. package/dist/apps/balances.d.ts +2 -2
  47. package/dist/apps/receipts.d.ts +43 -43
  48. package/dist/apps/tokens.d.ts +454 -454
  49. package/dist/apps/transactions.d.ts +43 -43
  50. package/dist/apps/transfers.d.ts +29 -29
  51. package/dist/apps/webhooks.d.ts +5 -2
  52. package/dist/apps/webhooks.d.ts.map +1 -1
  53. package/dist/apps/webhooks.js +38 -34
  54. package/dist/apps/webhooks.js.map +1 -1
  55. package/dist/{Cli.d.ts → cli/Cli.d.ts} +13 -2
  56. package/dist/cli/Cli.d.ts.map +1 -0
  57. package/dist/cli/Cli.js +19 -0
  58. package/dist/cli/Cli.js.map +1 -0
  59. package/dist/cli/bin.d.ts +3 -0
  60. package/dist/cli/bin.d.ts.map +1 -0
  61. package/dist/cli/bin.js +4 -0
  62. package/dist/cli/bin.js.map +1 -0
  63. package/dist/cli/commands/admin.d.ts +15 -0
  64. package/dist/cli/commands/admin.d.ts.map +1 -0
  65. package/dist/cli/commands/admin.js +60 -0
  66. package/dist/cli/commands/admin.js.map +1 -0
  67. package/dist/cloudflare.d.ts +7 -0
  68. package/dist/cloudflare.d.ts.map +1 -1
  69. package/dist/cloudflare.js +9 -0
  70. package/dist/cloudflare.js.map +1 -1
  71. package/dist/db/Db.d.ts +103 -0
  72. package/dist/db/Db.d.ts.map +1 -0
  73. package/dist/db/Db.js +274 -0
  74. package/dist/db/Db.js.map +1 -0
  75. package/dist/db/Schema.d.ts +88 -0
  76. package/dist/db/Schema.d.ts.map +1 -0
  77. package/dist/db/Schema.js +130 -0
  78. package/dist/db/Schema.js.map +1 -0
  79. package/dist/db/tables/organizations.d.ts +79 -0
  80. package/dist/db/tables/organizations.d.ts.map +1 -0
  81. package/dist/db/tables/organizations.js +81 -0
  82. package/dist/db/tables/organizations.js.map +1 -0
  83. package/dist/db/tables/verifiedTokens.d.ts +53 -0
  84. package/dist/db/tables/verifiedTokens.d.ts.map +1 -0
  85. package/dist/db/tables/verifiedTokens.js +74 -0
  86. package/dist/db/tables/verifiedTokens.js.map +1 -0
  87. package/dist/db/tables/webhookDeliveries.d.ts +71 -0
  88. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -0
  89. package/dist/db/tables/webhookDeliveries.js +119 -0
  90. package/dist/db/tables/webhookDeliveries.js.map +1 -0
  91. package/dist/db/tables/webhookSubscriptions.d.ts +158 -0
  92. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -0
  93. package/dist/db/tables/webhookSubscriptions.js +272 -0
  94. package/dist/db/tables/webhookSubscriptions.js.map +1 -0
  95. package/dist/handlers/internal/executionError.d.ts +25 -0
  96. package/dist/handlers/internal/executionError.d.ts.map +1 -0
  97. package/dist/handlers/internal/executionError.js +184 -0
  98. package/dist/handlers/internal/executionError.js.map +1 -0
  99. package/dist/handlers/internal/multisig.d.ts +237 -0
  100. package/dist/handlers/internal/multisig.d.ts.map +1 -0
  101. package/dist/handlers/internal/multisig.js +567 -0
  102. package/dist/handlers/internal/multisig.js.map +1 -0
  103. package/dist/handlers/internal/requestListener.d.ts +124 -0
  104. package/dist/handlers/internal/requestListener.d.ts.map +1 -0
  105. package/dist/handlers/internal/requestListener.js +173 -0
  106. package/dist/handlers/internal/requestListener.js.map +1 -0
  107. package/dist/handlers/internal/sponsorship.d.ts +83 -0
  108. package/dist/handlers/internal/sponsorship.d.ts.map +1 -0
  109. package/dist/handlers/internal/sponsorship.js +103 -0
  110. package/dist/handlers/internal/sponsorship.js.map +1 -0
  111. package/dist/handlers/internal/types.d.ts +284 -0
  112. package/dist/handlers/internal/types.d.ts.map +1 -0
  113. package/dist/handlers/internal/types.js +2 -0
  114. package/dist/handlers/internal/types.js.map +1 -0
  115. package/dist/handlers/internal/utils.d.ts +34 -0
  116. package/dist/handlers/internal/utils.d.ts.map +1 -0
  117. package/dist/handlers/internal/utils.js +131 -0
  118. package/dist/handlers/internal/utils.js.map +1 -0
  119. package/dist/handlers/relay.d.ts +119 -0
  120. package/dist/handlers/relay.d.ts.map +1 -0
  121. package/dist/handlers/relay.js +1264 -0
  122. package/dist/handlers/relay.js.map +1 -0
  123. package/dist/index.d.ts +4 -2
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/index.js +4 -2
  126. package/dist/index.js.map +1 -1
  127. package/dist/internal/Auth.d.ts +16 -10
  128. package/dist/internal/Auth.d.ts.map +1 -1
  129. package/dist/internal/Auth.js +72 -12
  130. package/dist/internal/Auth.js.map +1 -1
  131. package/dist/internal/RpcSchema.d.ts +10 -0
  132. package/dist/internal/RpcSchema.d.ts.map +1 -0
  133. package/dist/internal/RpcSchema.js +2 -0
  134. package/dist/internal/RpcSchema.js.map +1 -0
  135. package/dist/internal/Store.d.ts +42 -3
  136. package/dist/internal/Store.d.ts.map +1 -1
  137. package/dist/internal/Store.js +65 -3
  138. package/dist/internal/Store.js.map +1 -1
  139. package/dist/internal/VerifiedTokens.d.ts +15 -34
  140. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  141. package/dist/internal/VerifiedTokens.js +115 -159
  142. package/dist/internal/VerifiedTokens.js.map +1 -1
  143. package/dist/internal/Webhooks.d.ts +49 -35
  144. package/dist/internal/Webhooks.d.ts.map +1 -1
  145. package/dist/internal/Webhooks.js +92 -205
  146. package/dist/internal/Webhooks.js.map +1 -1
  147. package/package.json +7 -2
  148. package/src/ApiKey.test.ts +3 -3
  149. package/src/ApiKey.ts +10 -12
  150. package/src/ApiKeys.test.ts +175 -0
  151. package/src/ApiKeys.ts +205 -0
  152. package/src/App.test-d.ts +1 -1
  153. package/src/App.test.ts +10768 -351
  154. package/src/App.ts +79 -36
  155. package/src/Client.test-d.ts +1 -1
  156. package/src/Handler.ts +154 -0
  157. package/src/Scope.ts +5 -1
  158. package/src/Webhooks.test.ts +8 -7
  159. package/src/Webhooks.ts +11 -5
  160. package/src/admin/Access.ts +1 -3
  161. package/src/admin/App.ts +19 -24
  162. package/src/admin/apps/api-keys.test.ts +19 -18
  163. package/src/admin/apps/api-keys.ts +8 -9
  164. package/src/admin/apps/scopes.test.ts +4 -0
  165. package/src/admin/apps/verified-tokens.test.ts +3 -30
  166. package/src/admin/apps/verified-tokens.ts +17 -36
  167. package/src/admin/ui.generated.ts +1 -1
  168. package/src/apps/balances.test.ts +4 -3
  169. package/src/apps/blocks.test.ts +1 -1
  170. package/src/apps/exchanges.test.ts +1 -1
  171. package/src/apps/indexer.test.ts +1 -1
  172. package/src/apps/receipts.test.ts +1 -1
  173. package/src/apps/rpc.test.ts +100 -10
  174. package/src/apps/tokenlist.test.ts +5 -7
  175. package/src/apps/tokens.test.ts +4 -3
  176. package/src/apps/transactions.test.ts +1 -1
  177. package/src/apps/transfers.test.ts +1 -1
  178. package/src/apps/verified-tokens.test.ts +24 -12
  179. package/src/apps/webhooks.test.ts +130 -143
  180. package/src/apps/webhooks.ts +45 -47
  181. package/src/{Cli.test.ts → cli/Cli.test.ts} +10 -9
  182. package/src/{Cli.ts → cli/Cli.ts} +16 -9
  183. package/src/cli/bin.ts +4 -0
  184. package/src/cli/commands/admin.test.ts +71 -0
  185. package/src/cli/commands/admin.ts +60 -0
  186. package/src/cloudflare.ts +10 -0
  187. package/src/db/Db.test.ts +84 -0
  188. package/src/db/Db.ts +383 -0
  189. package/src/db/Schema.ts +164 -0
  190. package/src/db/tables/organizations.test.ts +124 -0
  191. package/src/db/tables/organizations.ts +127 -0
  192. package/src/db/tables/verifiedTokens.ts +111 -0
  193. package/src/db/tables/webhookDeliveries.ts +159 -0
  194. package/src/db/tables/webhookSubscriptions.ts +358 -0
  195. package/src/handlers/internal/executionError.ts +205 -0
  196. package/src/handlers/internal/multisig.localnet.test.ts +146 -0
  197. package/src/handlers/internal/multisig.test.ts +744 -0
  198. package/src/handlers/internal/multisig.ts +858 -0
  199. package/src/handlers/internal/relay.localnet.test.ts +2035 -0
  200. package/src/handlers/internal/requestListener.ts +273 -0
  201. package/src/handlers/internal/sponsorship.ts +186 -0
  202. package/src/handlers/internal/types.ts +378 -0
  203. package/src/handlers/internal/utils.ts +153 -0
  204. package/src/handlers/relay.ts +1605 -0
  205. package/src/index.ts +4 -2
  206. package/src/internal/Auth.test.ts +21 -21
  207. package/src/internal/Auth.ts +92 -19
  208. package/src/internal/RateLimit.test.ts +1 -1
  209. package/src/internal/RpcSchema.ts +10 -0
  210. package/src/internal/Store.test.ts +98 -10
  211. package/src/internal/Store.ts +112 -6
  212. package/src/internal/VerifiedTokens.test.ts +99 -115
  213. package/src/internal/VerifiedTokens.ts +123 -175
  214. package/src/internal/Webhooks.test.ts +107 -107
  215. package/src/internal/Webhooks.ts +102 -220
  216. package/dist/ApiKeySource.d.ts +0 -166
  217. package/dist/ApiKeySource.d.ts.map +0 -1
  218. package/dist/ApiKeySource.js +0 -234
  219. package/dist/ApiKeySource.js.map +0 -1
  220. package/dist/Cli.d.ts.map +0 -1
  221. package/dist/Cli.js +0 -13
  222. package/dist/Cli.js.map +0 -1
  223. package/seeds/31318/icons/0x20c0000000000000000000000000000000000000.svg +0 -1
  224. package/seeds/31318/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  225. package/seeds/31318/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  226. package/seeds/31318/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  227. package/seeds/31318/verified-tokens.json +0 -30
  228. package/seeds/4217/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  229. package/seeds/4217/icons/0x20c000000000000000000000048c8f36df1c9a4a.svg +0 -1
  230. package/seeds/4217/icons/0x20c0000000000000000000000520792dcccccccc.svg +0 -1
  231. package/seeds/4217/icons/0x20c0000000000000000000000a6da882d075a4c3.svg +0 -4
  232. package/seeds/4217/icons/0x20c000000000000000000000111111111e910f0f.svg +0 -30
  233. package/seeds/4217/icons/0x20c00000000000000000000014f22ca97301eb73.svg +0 -1
  234. package/seeds/4217/icons/0x20c0000000000000000000001621e21f71cf12fb.svg +0 -1
  235. package/seeds/4217/icons/0x20c0000000000000000000002f52d5cc21a3207b.svg +0 -1
  236. package/seeds/4217/icons/0x20c0000000000000000000003158081efd85bfc2.svg +0 -11
  237. package/seeds/4217/icons/0x20c0000000000000000000003554d28269e0f3c2.svg +0 -1
  238. package/seeds/4217/icons/0x20c000000000000000000000383a23bacb546ab9.svg +0 -1
  239. package/seeds/4217/icons/0x20c00000000000000000000042109aef2f8b28e1.png +0 -0
  240. package/seeds/4217/icons/0x20c0000000000000000000005c0bac7cef389a11.svg +0 -1
  241. package/seeds/4217/icons/0x20c0000000000000000000006fd9a167923ba194.png +0 -0
  242. package/seeds/4217/icons/0x20c0000000000000000000007f7ba549dd0251b9.svg +0 -1
  243. package/seeds/4217/icons/0x20c0000000000000000000008191667423f70e67.svg +0 -5
  244. package/seeds/4217/icons/0x20c0000000000000000000008ee4fcff88888888.svg +0 -1
  245. package/seeds/4217/icons/0x20c0000000000000000000009a4a4b17e0dc6651.svg +0 -1
  246. package/seeds/4217/icons/0x20c000000000000000000000ab02d39df30bd17e.svg +0 -1
  247. package/seeds/4217/icons/0x20c000000000000000000000ae247a1130450f09.svg +0 -1
  248. package/seeds/4217/icons/0x20c000000000000000000000aeed2ec36a54d0e5.svg +0 -1
  249. package/seeds/4217/icons/0x20c000000000000000000000b9537d11c60e8b50.svg +0 -1
  250. package/seeds/4217/icons/0x20c000000000000000000000bd95bfb69fbe6ce3.svg +0 -1
  251. package/seeds/4217/icons/0x20c000000000000000000000c412ec89d0c08be5.svg +0 -1
  252. package/seeds/4217/icons/0x20c000000000000000000000f047dd7018e50367.png +0 -0
  253. package/seeds/4217/verified-tokens.json +0 -177
  254. package/seeds/42431/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  255. package/seeds/42431/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  256. package/seeds/42431/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  257. package/seeds/42431/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  258. package/seeds/42431/icons/0x20c0000000000000000000009e8d7eb59b783726.svg +0 -1
  259. package/seeds/42431/icons/0x20c000000000000000000000d72572838bbee59c.svg +0 -1
  260. package/seeds/42431/verified-tokens.json +0 -44
  261. package/seeds/openrpc/README.md +0 -27
  262. package/seeds/openrpc/execution-apis.json +0 -8989
  263. package/src/ApiKeySource.test-d.ts +0 -11
  264. package/src/ApiKeySource.test.ts +0 -295
  265. package/src/ApiKeySource.ts +0 -303
@@ -185,9 +185,9 @@ export declare namespace schema {
185
185
  }
186
186
  }
187
187
  /**
188
- * Management routes for the curated verified-token list, backed by the request's
189
- * `verifiedTokens` store; all `404` when no store is configured. Mutations accept
190
- * an optional `If-Match` precondition (`412` on mismatch).
188
+ * Management routes for the curated verified-token list, backed by the app
189
+ * database (snapshot rows). Mutations accept an optional `If-Match`
190
+ * precondition (`412` on mismatch).
191
191
  *
192
192
  * - `POST /` creates a token (`409` on a duplicate address or symbol).
193
193
  * - `PUT /` replaces a chain's entire list (seed/rollback).
@@ -198,22 +198,6 @@ export declare namespace schema {
198
198
  export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.Environment, {
199
199
  "/": {
200
200
  $get: {
201
- output: {
202
- error: {
203
- code: "verified_tokens_not_enabled";
204
- details?: readonly Response.error.Detail[] | undefined;
205
- message: string;
206
- };
207
- requestId: string;
208
- };
209
- outputFormat: "json";
210
- status: 404;
211
- input: {
212
- query: {
213
- chainId: string | string[];
214
- };
215
- };
216
- } | {
217
201
  output: {
218
202
  data: {
219
203
  address: `0x${string}`;
@@ -240,14 +224,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
240
224
  $post: {
241
225
  output: {
242
226
  error: {
243
- code: string;
227
+ code: "assets_not_enabled";
244
228
  details?: readonly Response.error.Detail[] | undefined;
245
229
  message: string;
246
230
  };
247
231
  requestId: string;
248
232
  };
249
233
  outputFormat: "json";
250
- status: 400 | 413 | 415;
234
+ status: 404;
251
235
  input: {
252
236
  json: {
253
237
  address: `0x${string}`;
@@ -263,14 +247,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
263
247
  } | {
264
248
  output: {
265
249
  error: {
266
- code: "upstream_error";
250
+ code: "verified_token_not_found";
267
251
  details?: readonly Response.error.Detail[] | undefined;
268
252
  message: string;
269
253
  };
270
254
  requestId: string;
271
255
  };
272
256
  outputFormat: "json";
273
- status: 502;
257
+ status: 404;
274
258
  input: {
275
259
  json: {
276
260
  address: `0x${string}`;
@@ -286,14 +270,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
286
270
  } | {
287
271
  output: {
288
272
  error: {
289
- code: "verified_tokens_not_enabled";
273
+ code: "duplicate_address";
290
274
  details?: readonly Response.error.Detail[] | undefined;
291
275
  message: string;
292
276
  };
293
277
  requestId: string;
294
278
  };
295
279
  outputFormat: "json";
296
- status: 404;
280
+ status: 409;
297
281
  input: {
298
282
  json: {
299
283
  address: `0x${string}`;
@@ -309,14 +293,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
309
293
  } | {
310
294
  output: {
311
295
  error: {
312
- code: "assets_not_enabled";
296
+ code: "duplicate_symbol";
313
297
  details?: readonly Response.error.Detail[] | undefined;
314
298
  message: string;
315
299
  };
316
300
  requestId: string;
317
301
  };
318
302
  outputFormat: "json";
319
- status: 404;
303
+ status: 409;
320
304
  input: {
321
305
  json: {
322
306
  address: `0x${string}`;
@@ -331,19 +315,15 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
331
315
  };
332
316
  } | {
333
317
  output: {
334
- data: {
335
- address: `0x${string}`;
336
- currency: string;
337
- decimals: number;
338
- logoUri?: string | undefined;
339
- name: string;
340
- symbol: string;
341
- id: string;
318
+ error: {
319
+ code: "version_mismatch";
320
+ details?: readonly Response.error.Detail[] | undefined;
321
+ message: string;
342
322
  };
343
- version: string;
323
+ requestId: string;
344
324
  };
345
325
  outputFormat: "json";
346
- status: import("hono/utils/http-status").ContentfulStatusCode;
326
+ status: 412;
347
327
  input: {
348
328
  json: {
349
329
  address: `0x${string}`;
@@ -359,14 +339,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
359
339
  } | {
360
340
  output: {
361
341
  error: {
362
- code: "duplicate_address";
342
+ code: "upstream_error";
363
343
  details?: readonly Response.error.Detail[] | undefined;
364
344
  message: string;
365
345
  };
366
346
  requestId: string;
367
347
  };
368
348
  outputFormat: "json";
369
- status: 409;
349
+ status: 502;
370
350
  input: {
371
351
  json: {
372
352
  address: `0x${string}`;
@@ -381,38 +361,19 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
381
361
  };
382
362
  } | {
383
363
  output: {
384
- error: {
385
- code: "duplicate_symbol";
386
- details?: readonly Response.error.Detail[] | undefined;
387
- message: string;
388
- };
389
- requestId: string;
390
- };
391
- outputFormat: "json";
392
- status: 409;
393
- input: {
394
- json: {
364
+ data: {
395
365
  address: `0x${string}`;
396
366
  currency: string;
397
367
  decimals: number;
398
368
  logoUri?: string | undefined;
399
369
  name: string;
400
370
  symbol: string;
401
- chainId: unknown;
402
- logo?: string | undefined;
403
- };
404
- };
405
- } | {
406
- output: {
407
- error: {
408
- code: "verified_token_not_found";
409
- details?: readonly Response.error.Detail[] | undefined;
410
- message: string;
371
+ id: string;
411
372
  };
412
- requestId: string;
373
+ version: string;
413
374
  };
414
375
  outputFormat: "json";
415
- status: 404;
376
+ status: import("hono/utils/http-status").ContentfulStatusCode;
416
377
  input: {
417
378
  json: {
418
379
  address: `0x${string}`;
@@ -428,14 +389,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
428
389
  } | {
429
390
  output: {
430
391
  error: {
431
- code: "version_mismatch";
392
+ code: string;
432
393
  details?: readonly Response.error.Detail[] | undefined;
433
394
  message: string;
434
395
  };
435
396
  requestId: string;
436
397
  };
437
398
  outputFormat: "json";
438
- status: 412;
399
+ status: 400 | 413 | 415;
439
400
  input: {
440
401
  json: {
441
402
  address: `0x${string}`;
@@ -455,61 +416,7 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
455
416
  $put: {
456
417
  output: {
457
418
  error: {
458
- code: string;
459
- details?: readonly Response.error.Detail[] | undefined;
460
- message: string;
461
- };
462
- requestId: string;
463
- };
464
- outputFormat: "json";
465
- status: 400 | 413 | 415;
466
- input: {
467
- query: {
468
- chainId: string | string[];
469
- };
470
- } & {
471
- json: {
472
- tokens: {
473
- address: `0x${string}`;
474
- currency: string;
475
- decimals: number;
476
- logoUri?: string | undefined;
477
- name: string;
478
- symbol: string;
479
- }[];
480
- };
481
- };
482
- } | {
483
- output: {
484
- error: {
485
- code: "upstream_error";
486
- details?: readonly Response.error.Detail[] | undefined;
487
- message: string;
488
- };
489
- requestId: string;
490
- };
491
- outputFormat: "json";
492
- status: 502;
493
- input: {
494
- query: {
495
- chainId: string | string[];
496
- };
497
- } & {
498
- json: {
499
- tokens: {
500
- address: `0x${string}`;
501
- currency: string;
502
- decimals: number;
503
- logoUri?: string | undefined;
504
- name: string;
505
- symbol: string;
506
- }[];
507
- };
508
- };
509
- } | {
510
- output: {
511
- error: {
512
- code: "verified_tokens_not_enabled";
419
+ code: "verified_token_not_found";
513
420
  details?: readonly Response.error.Detail[] | undefined;
514
421
  message: string;
515
422
  };
@@ -590,14 +497,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
590
497
  } | {
591
498
  output: {
592
499
  error: {
593
- code: "verified_token_not_found";
500
+ code: "version_mismatch";
594
501
  details?: readonly Response.error.Detail[] | undefined;
595
502
  message: string;
596
503
  };
597
504
  requestId: string;
598
505
  };
599
506
  outputFormat: "json";
600
- status: 404;
507
+ status: 412;
601
508
  input: {
602
509
  query: {
603
510
  chainId: string | string[];
@@ -617,14 +524,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
617
524
  } | {
618
525
  output: {
619
526
  error: {
620
- code: "version_mismatch";
527
+ code: "upstream_error";
621
528
  details?: readonly Response.error.Detail[] | undefined;
622
529
  message: string;
623
530
  };
624
531
  requestId: string;
625
532
  };
626
533
  outputFormat: "json";
627
- status: 412;
534
+ status: 502;
628
535
  input: {
629
536
  query: {
630
537
  chainId: string | string[];
@@ -672,11 +579,7 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
672
579
  }[];
673
580
  };
674
581
  };
675
- };
676
- };
677
- } & {
678
- "/:address": {
679
- $patch: {
582
+ } | {
680
583
  output: {
681
584
  error: {
682
585
  code: string;
@@ -688,33 +591,36 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
688
591
  outputFormat: "json";
689
592
  status: 400 | 413 | 415;
690
593
  input: {
691
- param: {
692
- address: `0x${string}`;
693
- };
694
- } & {
695
594
  query: {
696
595
  chainId: string | string[];
697
596
  };
698
597
  } & {
699
598
  json: {
700
- currency?: string | undefined;
701
- decimals?: number | undefined;
702
- logoUri?: string | undefined;
703
- name?: string | undefined;
704
- symbol?: string | undefined;
599
+ tokens: {
600
+ address: `0x${string}`;
601
+ currency: string;
602
+ decimals: number;
603
+ logoUri?: string | undefined;
604
+ name: string;
605
+ symbol: string;
606
+ }[];
705
607
  };
706
608
  };
707
- } | {
609
+ };
610
+ };
611
+ } & {
612
+ "/:address": {
613
+ $patch: {
708
614
  output: {
709
615
  error: {
710
- code: "upstream_error";
616
+ code: "verified_token_not_found";
711
617
  details?: readonly Response.error.Detail[] | undefined;
712
618
  message: string;
713
619
  };
714
620
  requestId: string;
715
621
  };
716
622
  outputFormat: "json";
717
- status: 502;
623
+ status: 404;
718
624
  input: {
719
625
  param: {
720
626
  address: `0x${string}`;
@@ -735,14 +641,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
735
641
  } | {
736
642
  output: {
737
643
  error: {
738
- code: "verified_tokens_not_enabled";
644
+ code: "duplicate_address";
739
645
  details?: readonly Response.error.Detail[] | undefined;
740
646
  message: string;
741
647
  };
742
648
  requestId: string;
743
649
  };
744
650
  outputFormat: "json";
745
- status: 404;
651
+ status: 409;
746
652
  input: {
747
653
  param: {
748
654
  address: `0x${string}`;
@@ -762,19 +668,15 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
762
668
  };
763
669
  } | {
764
670
  output: {
765
- data: {
766
- address: `0x${string}`;
767
- currency: string;
768
- decimals: number;
769
- logoUri?: string | undefined;
770
- name: string;
771
- symbol: string;
772
- id: string;
671
+ error: {
672
+ code: "duplicate_symbol";
673
+ details?: readonly Response.error.Detail[] | undefined;
674
+ message: string;
773
675
  };
774
- version: string;
676
+ requestId: string;
775
677
  };
776
678
  outputFormat: "json";
777
- status: import("hono/utils/http-status").ContentfulStatusCode;
679
+ status: 409;
778
680
  input: {
779
681
  param: {
780
682
  address: `0x${string}`;
@@ -795,14 +697,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
795
697
  } | {
796
698
  output: {
797
699
  error: {
798
- code: "duplicate_address";
700
+ code: "version_mismatch";
799
701
  details?: readonly Response.error.Detail[] | undefined;
800
702
  message: string;
801
703
  };
802
704
  requestId: string;
803
705
  };
804
706
  outputFormat: "json";
805
- status: 409;
707
+ status: 412;
806
708
  input: {
807
709
  param: {
808
710
  address: `0x${string}`;
@@ -823,14 +725,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
823
725
  } | {
824
726
  output: {
825
727
  error: {
826
- code: "duplicate_symbol";
728
+ code: "upstream_error";
827
729
  details?: readonly Response.error.Detail[] | undefined;
828
730
  message: string;
829
731
  };
830
732
  requestId: string;
831
733
  };
832
734
  outputFormat: "json";
833
- status: 409;
735
+ status: 502;
834
736
  input: {
835
737
  param: {
836
738
  address: `0x${string}`;
@@ -850,15 +752,19 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
850
752
  };
851
753
  } | {
852
754
  output: {
853
- error: {
854
- code: "verified_token_not_found";
855
- details?: readonly Response.error.Detail[] | undefined;
856
- message: string;
755
+ data: {
756
+ address: `0x${string}`;
757
+ currency: string;
758
+ decimals: number;
759
+ logoUri?: string | undefined;
760
+ name: string;
761
+ symbol: string;
762
+ id: string;
857
763
  };
858
- requestId: string;
764
+ version: string;
859
765
  };
860
766
  outputFormat: "json";
861
- status: 404;
767
+ status: import("hono/utils/http-status").ContentfulStatusCode;
862
768
  input: {
863
769
  param: {
864
770
  address: `0x${string}`;
@@ -879,14 +785,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
879
785
  } | {
880
786
  output: {
881
787
  error: {
882
- code: "version_mismatch";
788
+ code: string;
883
789
  details?: readonly Response.error.Detail[] | undefined;
884
790
  message: string;
885
791
  };
886
792
  requestId: string;
887
793
  };
888
794
  outputFormat: "json";
889
- status: 412;
795
+ status: 400 | 413 | 415;
890
796
  input: {
891
797
  param: {
892
798
  address: `0x${string}`;
@@ -911,14 +817,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
911
817
  $delete: {
912
818
  output: {
913
819
  error: {
914
- code: string;
820
+ code: "verified_token_not_found";
915
821
  details?: readonly Response.error.Detail[] | undefined;
916
822
  message: string;
917
823
  };
918
824
  requestId: string;
919
825
  };
920
826
  outputFormat: "json";
921
- status: 400 | 413 | 415;
827
+ status: 404;
922
828
  input: {
923
829
  param: {
924
830
  address: `0x${string}`;
@@ -931,14 +837,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
931
837
  } | {
932
838
  output: {
933
839
  error: {
934
- code: "upstream_error";
840
+ code: "duplicate_address";
935
841
  details?: readonly Response.error.Detail[] | undefined;
936
842
  message: string;
937
843
  };
938
844
  requestId: string;
939
845
  };
940
846
  outputFormat: "json";
941
- status: 502;
847
+ status: 409;
942
848
  input: {
943
849
  param: {
944
850
  address: `0x${string}`;
@@ -951,14 +857,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
951
857
  } | {
952
858
  output: {
953
859
  error: {
954
- code: "verified_tokens_not_enabled";
860
+ code: "duplicate_symbol";
955
861
  details?: readonly Response.error.Detail[] | undefined;
956
862
  message: string;
957
863
  };
958
864
  requestId: string;
959
865
  };
960
866
  outputFormat: "json";
961
- status: 404;
867
+ status: 409;
962
868
  input: {
963
869
  param: {
964
870
  address: `0x${string}`;
@@ -971,14 +877,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
971
877
  } | {
972
878
  output: {
973
879
  error: {
974
- code: "duplicate_address";
880
+ code: "version_mismatch";
975
881
  details?: readonly Response.error.Detail[] | undefined;
976
882
  message: string;
977
883
  };
978
884
  requestId: string;
979
885
  };
980
886
  outputFormat: "json";
981
- status: 409;
887
+ status: 412;
982
888
  input: {
983
889
  param: {
984
890
  address: `0x${string}`;
@@ -991,14 +897,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
991
897
  } | {
992
898
  output: {
993
899
  error: {
994
- code: "duplicate_symbol";
900
+ code: "upstream_error";
995
901
  details?: readonly Response.error.Detail[] | undefined;
996
902
  message: string;
997
903
  };
998
904
  requestId: string;
999
905
  };
1000
906
  outputFormat: "json";
1001
- status: 409;
907
+ status: 502;
1002
908
  input: {
1003
909
  param: {
1004
910
  address: `0x${string}`;
@@ -1010,15 +916,10 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
1010
916
  };
1011
917
  } | {
1012
918
  output: {
1013
- error: {
1014
- code: "verified_token_not_found";
1015
- details?: readonly Response.error.Detail[] | undefined;
1016
- message: string;
1017
- };
1018
- requestId: string;
919
+ version: string;
1019
920
  };
1020
921
  outputFormat: "json";
1021
- status: 404;
922
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1022
923
  input: {
1023
924
  param: {
1024
925
  address: `0x${string}`;
@@ -1031,29 +932,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
1031
932
  } | {
1032
933
  output: {
1033
934
  error: {
1034
- code: "version_mismatch";
935
+ code: string;
1035
936
  details?: readonly Response.error.Detail[] | undefined;
1036
937
  message: string;
1037
938
  };
1038
939
  requestId: string;
1039
940
  };
1040
941
  outputFormat: "json";
1041
- status: 412;
1042
- input: {
1043
- param: {
1044
- address: `0x${string}`;
1045
- };
1046
- } & {
1047
- query: {
1048
- chainId: string | string[];
1049
- };
1050
- };
1051
- } | {
1052
- output: {
1053
- version: string;
1054
- };
1055
- outputFormat: "json";
1056
- status: import("hono/utils/http-status").ContentfulStatusCode;
942
+ status: 400 | 413 | 415;
1057
943
  input: {
1058
944
  param: {
1059
945
  address: `0x${string}`;
@@ -1068,19 +954,6 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
1068
954
  } & {
1069
955
  "/:address/logo": {
1070
956
  $get: {
1071
- output: ArrayBuffer;
1072
- outputFormat: "body";
1073
- status: import("hono/utils/http-status").ContentfulStatusCode;
1074
- input: {
1075
- param: {
1076
- address: `0x${string}`;
1077
- };
1078
- } & {
1079
- query: {
1080
- chainId: string | string[];
1081
- };
1082
- };
1083
- } | {
1084
957
  output: {
1085
958
  error: {
1086
959
  code: "logo_not_found";
@@ -1100,6 +973,19 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
1100
973
  chainId: string | string[];
1101
974
  };
1102
975
  };
976
+ } | {
977
+ output: ArrayBuffer;
978
+ outputFormat: "body";
979
+ status: import("hono/utils/http-status").ContentfulStatusCode;
980
+ input: {
981
+ param: {
982
+ address: `0x${string}`;
983
+ };
984
+ } & {
985
+ query: {
986
+ chainId: string | string[];
987
+ };
988
+ };
1103
989
  };
1104
990
  };
1105
991
  } & {
@@ -1147,14 +1033,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
1147
1033
  } | {
1148
1034
  output: {
1149
1035
  error: {
1150
- code: "unsupported_media_type";
1036
+ code: "payload_too_large";
1151
1037
  details?: readonly Response.error.Detail[] | undefined;
1152
1038
  message: string;
1153
1039
  };
1154
1040
  requestId: string;
1155
1041
  };
1156
1042
  outputFormat: "json";
1157
- status: 415;
1043
+ status: 413;
1158
1044
  input: {
1159
1045
  param: {
1160
1046
  address: `0x${string}`;
@@ -1167,14 +1053,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
1167
1053
  } | {
1168
1054
  output: {
1169
1055
  error: {
1170
- code: "payload_too_large";
1056
+ code: "unsupported_media_type";
1171
1057
  details?: readonly Response.error.Detail[] | undefined;
1172
1058
  message: string;
1173
1059
  };
1174
1060
  requestId: string;
1175
1061
  };
1176
1062
  outputFormat: "json";
1177
- status: 413;
1063
+ status: 415;
1178
1064
  input: {
1179
1065
  param: {
1180
1066
  address: `0x${string}`;