tapimo 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/App.d.ts +34 -18
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/admin/apps/verified-tokens.d.ts +117 -117
  4. package/dist/apps/data/App.d.ts +3217 -3217
  5. package/dist/apps/data/FundingQuoteProviders.d.ts +32 -0
  6. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  7. package/dist/apps/data/FundingQuoteProviders.js +134 -1
  8. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  9. package/dist/apps/data/routes/addresses.d.ts +206 -206
  10. package/dist/apps/data/routes/balances.d.ts +46 -46
  11. package/dist/apps/data/routes/coingecko.d.ts +169 -169
  12. package/dist/apps/data/routes/funding.d.ts +8 -2
  13. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  14. package/dist/apps/data/routes/funding.js +4 -4
  15. package/dist/apps/data/routes/funding.js.map +1 -1
  16. package/dist/apps/data/routes/indexer.d.ts +34 -34
  17. package/dist/apps/data/routes/receipts.d.ts +228 -228
  18. package/dist/apps/data/routes/rpc.d.ts +31 -31
  19. package/dist/apps/data/routes/transfers.d.ts +8 -15
  20. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  21. package/dist/apps/data/routes/transfers.js +21 -27
  22. package/dist/apps/data/routes/transfers.js.map +1 -1
  23. package/dist/apps/data/routes/webhooks.d.ts +35 -35
  24. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  25. package/dist/apps/data/routes/webhooks.js +176 -42
  26. package/dist/apps/data/routes/webhooks.js.map +1 -1
  27. package/dist/apps/management/App.d.ts +982 -966
  28. package/dist/apps/management/App.d.ts.map +1 -1
  29. package/dist/apps/management/Billing.d.ts.map +1 -1
  30. package/dist/apps/management/Billing.js +5 -4
  31. package/dist/apps/management/Billing.js.map +1 -1
  32. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  33. package/dist/apps/management/routes/billing.js +1 -1
  34. package/dist/apps/management/routes/billing.js.map +1 -1
  35. package/dist/apps/management/routes/invitations.d.ts +121 -121
  36. package/dist/apps/management/routes/invite-links.d.ts +174 -174
  37. package/dist/apps/management/routes/orgs.d.ts +102 -86
  38. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  39. package/dist/apps/management/routes/orgs.js +18 -1
  40. package/dist/apps/management/routes/orgs.js.map +1 -1
  41. package/dist/apps/management/routes/projects.d.ts +124 -124
  42. package/dist/apps/relay/Sponsorships.d.ts +3 -0
  43. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  44. package/dist/apps/relay/Sponsorships.js +15 -1
  45. package/dist/apps/relay/Sponsorships.js.map +1 -1
  46. package/dist/db/Db.d.ts.map +1 -1
  47. package/dist/db/Db.js +4 -0
  48. package/dist/db/Db.js.map +1 -1
  49. package/dist/db/Schema.js +1 -1
  50. package/dist/db/Schema.js.map +1 -1
  51. package/dist/db/tables/organizations.d.ts +6 -0
  52. package/dist/db/tables/organizations.d.ts.map +1 -1
  53. package/dist/db/tables/organizations.js +26 -0
  54. package/dist/db/tables/organizations.js.map +1 -1
  55. package/dist/db/tables/requestUsage.d.ts +2 -11
  56. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  57. package/dist/db/tables/requestUsage.js +1 -20
  58. package/dist/db/tables/requestUsage.js.map +1 -1
  59. package/dist/db/tables/sponsoredTransactions.d.ts +2 -1
  60. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  61. package/dist/db/tables/sponsoredTransactions.js +46 -8
  62. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  63. package/dist/internal/Auth.d.ts +4 -0
  64. package/dist/internal/Auth.d.ts.map +1 -1
  65. package/dist/internal/Auth.js +7 -8
  66. package/dist/internal/Auth.js.map +1 -1
  67. package/dist/internal/Cache.d.ts.map +1 -1
  68. package/dist/internal/Cache.js +9 -1
  69. package/dist/internal/Cache.js.map +1 -1
  70. package/dist/internal/EdgeCache.d.ts.map +1 -1
  71. package/dist/internal/EdgeCache.js +12 -3
  72. package/dist/internal/EdgeCache.js.map +1 -1
  73. package/dist/internal/FundingQuotes.d.ts +16 -10
  74. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  75. package/dist/internal/FundingQuotes.js +9 -0
  76. package/dist/internal/FundingQuotes.js.map +1 -1
  77. package/dist/internal/RateLimit.d.ts +2 -0
  78. package/dist/internal/RateLimit.d.ts.map +1 -1
  79. package/dist/internal/RateLimit.js +4 -4
  80. package/dist/internal/RateLimit.js.map +1 -1
  81. package/package.json +6 -1
  82. package/src/App.test.ts +2 -2
  83. package/src/Client.test-d.ts +28 -2
  84. package/src/apps/data/FundingQuoteProviders.test.ts +184 -0
  85. package/src/apps/data/FundingQuoteProviders.ts +185 -1
  86. package/src/apps/data/routes/funding.test.ts +7 -0
  87. package/src/apps/data/routes/funding.ts +4 -4
  88. package/src/apps/data/routes/tokens.test.ts +54 -0
  89. package/src/apps/data/routes/transfers.test.ts +73 -1
  90. package/src/apps/data/routes/transfers.ts +24 -30
  91. package/src/apps/data/routes/webhooks.test.ts +203 -0
  92. package/src/apps/data/routes/webhooks.ts +191 -54
  93. package/src/apps/management/Billing.test.ts +50 -1
  94. package/src/apps/management/Billing.ts +5 -4
  95. package/src/apps/management/routes/billing.ts +6 -1
  96. package/src/apps/management/routes/orgs.ts +19 -1
  97. package/src/apps/relay/Sponsorships.ts +24 -1
  98. package/src/db/Db.ts +4 -0
  99. package/src/db/Schema.ts +1 -1
  100. package/src/db/tables/organizations.test.ts +30 -0
  101. package/src/db/tables/organizations.ts +28 -0
  102. package/src/db/tables/requestUsage.ts +3 -23
  103. package/src/db/tables/sponsoredTransactions.test.ts +41 -0
  104. package/src/db/tables/sponsoredTransactions.ts +46 -7
  105. package/src/internal/Auth.test.ts +63 -10
  106. package/src/internal/Auth.ts +11 -9
  107. package/src/internal/Cache.test.ts +19 -0
  108. package/src/internal/Cache.ts +13 -1
  109. package/src/internal/EdgeCache.test.ts +40 -0
  110. package/src/internal/EdgeCache.ts +11 -3
  111. package/src/internal/FundingQuotes.test.ts +33 -0
  112. package/src/internal/FundingQuotes.ts +9 -0
  113. package/src/internal/RateLimit.test.ts +12 -0
  114. package/src/internal/RateLimit.ts +4 -4
@@ -217,14 +217,9 @@ export declare namespace schema {
217
217
  export declare function coingecko(): import("hono/hono-base").HonoBase<App.Environment, {
218
218
  "/gecko/:chainId/latest-block": {
219
219
  $get: {
220
- output: {
221
- block: {
222
- blockNumber: number;
223
- blockTimestamp: number;
224
- };
225
- };
226
- outputFormat: "json";
227
- status: 200;
220
+ output: null;
221
+ outputFormat: "body";
222
+ status: 402;
228
223
  input: {
229
224
  param: {
230
225
  chainId: string;
@@ -233,14 +228,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
233
228
  } | {
234
229
  output: {
235
230
  error: {
236
- code: "api_key_malformed";
231
+ code: "upstream_error";
237
232
  details?: readonly Response.error.Detail[] | undefined;
238
233
  message: string;
239
234
  };
240
235
  requestId: string;
241
236
  };
242
237
  outputFormat: "json";
243
- status: 400;
238
+ status: 502;
244
239
  input: {
245
240
  param: {
246
241
  chainId: string;
@@ -249,7 +244,7 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
249
244
  } | {
250
245
  output: {
251
246
  error: {
252
- code: "chain_id_invalid";
247
+ code: "api_key_malformed";
253
248
  details?: readonly Response.error.Detail[] | undefined;
254
249
  message: string;
255
250
  };
@@ -278,15 +273,6 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
278
273
  chainId: string;
279
274
  };
280
275
  };
281
- } | {
282
- output: null;
283
- outputFormat: "body";
284
- status: 402;
285
- input: {
286
- param: {
287
- chainId: string;
288
- };
289
- };
290
276
  } | {
291
277
  output: {
292
278
  error: {
@@ -306,14 +292,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
306
292
  } | {
307
293
  output: {
308
294
  error: {
309
- code: "not_found";
295
+ code: "payment_required" | "rate_limit_exceeded";
310
296
  details?: readonly Response.error.Detail[] | undefined;
311
297
  message: string;
312
298
  };
313
299
  requestId: string;
314
300
  };
315
301
  outputFormat: "json";
316
- status: 404;
302
+ status: 429;
317
303
  input: {
318
304
  param: {
319
305
  chainId: string;
@@ -322,14 +308,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
322
308
  } | {
323
309
  output: {
324
310
  error: {
325
- code: "payment_required" | "rate_limit_exceeded";
311
+ code: "chain_id_invalid";
326
312
  details?: readonly Response.error.Detail[] | undefined;
327
313
  message: string;
328
314
  };
329
315
  requestId: string;
330
316
  };
331
317
  outputFormat: "json";
332
- status: 429;
318
+ status: 400;
333
319
  input: {
334
320
  param: {
335
321
  chainId: string;
@@ -338,35 +324,41 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
338
324
  } | {
339
325
  output: {
340
326
  error: {
341
- code: "upstream_error";
327
+ code: "not_found";
342
328
  details?: readonly Response.error.Detail[] | undefined;
343
329
  message: string;
344
330
  };
345
331
  requestId: string;
346
332
  };
347
333
  outputFormat: "json";
348
- status: 502;
334
+ status: 404;
349
335
  input: {
350
336
  param: {
351
337
  chainId: string;
352
338
  };
353
339
  };
354
- };
355
- };
356
- } & {
357
- "/gecko/:chainId/assets/:address": {
358
- $get: {
340
+ } | {
359
341
  output: {
360
- asset: {
361
- id: string;
362
- name: string;
363
- symbol: string;
364
- decimals: number;
365
- totalSupply: string;
342
+ block: {
343
+ blockNumber: number;
344
+ blockTimestamp: number;
366
345
  };
367
346
  };
368
347
  outputFormat: "json";
369
348
  status: 200;
349
+ input: {
350
+ param: {
351
+ chainId: string;
352
+ };
353
+ };
354
+ };
355
+ };
356
+ } & {
357
+ "/gecko/:chainId/assets/:address": {
358
+ $get: {
359
+ output: null;
360
+ outputFormat: "body";
361
+ status: 402;
370
362
  input: {
371
363
  param: {
372
364
  chainId: string;
@@ -376,14 +368,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
376
368
  } | {
377
369
  output: {
378
370
  error: {
379
- code: "api_key_malformed";
371
+ code: "upstream_error";
380
372
  details?: readonly Response.error.Detail[] | undefined;
381
373
  message: string;
382
374
  };
383
375
  requestId: string;
384
376
  };
385
377
  outputFormat: "json";
386
- status: 400;
378
+ status: 502;
387
379
  input: {
388
380
  param: {
389
381
  chainId: string;
@@ -393,7 +385,7 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
393
385
  } | {
394
386
  output: {
395
387
  error: {
396
- code: "address_invalid";
388
+ code: "api_key_malformed";
397
389
  details?: readonly Response.error.Detail[] | undefined;
398
390
  message: string;
399
391
  };
@@ -425,9 +417,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
425
417
  };
426
418
  };
427
419
  } | {
428
- output: null;
429
- outputFormat: "body";
430
- status: 402;
420
+ output: {
421
+ error: {
422
+ code: "api_key_forbidden";
423
+ details?: readonly Response.error.Detail[] | undefined;
424
+ message: string;
425
+ };
426
+ requestId: string;
427
+ };
428
+ outputFormat: "json";
429
+ status: 403;
431
430
  input: {
432
431
  param: {
433
432
  chainId: string;
@@ -437,14 +436,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
437
436
  } | {
438
437
  output: {
439
438
  error: {
440
- code: "api_key_forbidden";
439
+ code: "payment_required" | "rate_limit_exceeded";
441
440
  details?: readonly Response.error.Detail[] | undefined;
442
441
  message: string;
443
442
  };
444
443
  requestId: string;
445
444
  };
446
445
  outputFormat: "json";
447
- status: 403;
446
+ status: 429;
448
447
  input: {
449
448
  param: {
450
449
  chainId: string;
@@ -454,14 +453,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
454
453
  } | {
455
454
  output: {
456
455
  error: {
457
- code: "not_found";
456
+ code: "address_invalid";
458
457
  details?: readonly Response.error.Detail[] | undefined;
459
458
  message: string;
460
459
  };
461
460
  requestId: string;
462
461
  };
463
462
  outputFormat: "json";
464
- status: 404;
463
+ status: 400;
465
464
  input: {
466
465
  param: {
467
466
  chainId: string;
@@ -471,14 +470,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
471
470
  } | {
472
471
  output: {
473
472
  error: {
474
- code: "payment_required" | "rate_limit_exceeded";
473
+ code: "not_found";
475
474
  details?: readonly Response.error.Detail[] | undefined;
476
475
  message: string;
477
476
  };
478
477
  requestId: string;
479
478
  };
480
479
  outputFormat: "json";
481
- status: 429;
480
+ status: 404;
482
481
  input: {
483
482
  param: {
484
483
  chainId: string;
@@ -487,15 +486,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
487
486
  };
488
487
  } | {
489
488
  output: {
490
- error: {
491
- code: "upstream_error";
492
- details?: readonly Response.error.Detail[] | undefined;
493
- message: string;
489
+ asset: {
490
+ id: string;
491
+ name: string;
492
+ symbol: string;
493
+ decimals: number;
494
+ totalSupply: string;
494
495
  };
495
- requestId: string;
496
496
  };
497
497
  outputFormat: "json";
498
- status: 502;
498
+ status: 200;
499
499
  input: {
500
500
  param: {
501
501
  chainId: string;
@@ -507,35 +507,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
507
507
  } & {
508
508
  "/gecko/:chainId/pairs": {
509
509
  $get: {
510
- output: {
511
- pairs: {
512
- id: `0x${string}`;
513
- dexKey: string;
514
- asset0Id: string;
515
- asset1Id: string;
516
- token0: {
517
- address: string;
518
- name: string;
519
- symbol: string;
520
- decimals: number;
521
- totalSupply: string;
522
- };
523
- token1: {
524
- address: string;
525
- name: string;
526
- symbol: string;
527
- decimals: number;
528
- totalSupply: string;
529
- };
530
- reserve0: string;
531
- reserve1: string;
532
- createdAtBlockNumber?: number | undefined;
533
- createdAtBlockTimestamp?: number | undefined;
534
- createdAtTxnId?: string | undefined;
535
- }[];
536
- };
537
- outputFormat: "json";
538
- status: 200;
510
+ output: null;
511
+ outputFormat: "body";
512
+ status: 402;
539
513
  input: {
540
514
  param: {
541
515
  chainId: string;
@@ -548,14 +522,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
548
522
  } | {
549
523
  output: {
550
524
  error: {
551
- code: "api_key_malformed";
525
+ code: "upstream_error";
552
526
  details?: readonly Response.error.Detail[] | undefined;
553
527
  message: string;
554
528
  };
555
529
  requestId: string;
556
530
  };
557
531
  outputFormat: "json";
558
- status: 400;
532
+ status: 502;
559
533
  input: {
560
534
  param: {
561
535
  chainId: string;
@@ -568,7 +542,7 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
568
542
  } | {
569
543
  output: {
570
544
  error: {
571
- code: "query_invalid";
545
+ code: "api_key_malformed";
572
546
  details?: readonly Response.error.Detail[] | undefined;
573
547
  message: string;
574
548
  };
@@ -605,19 +579,6 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
605
579
  limit?: string | string[];
606
580
  } | undefined;
607
581
  };
608
- } | {
609
- output: null;
610
- outputFormat: "body";
611
- status: 402;
612
- input: {
613
- param: {
614
- chainId: string;
615
- };
616
- } & {
617
- query?: {
618
- limit?: string | string[];
619
- } | undefined;
620
- };
621
582
  } | {
622
583
  output: {
623
584
  error: {
@@ -661,14 +622,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
661
622
  } | {
662
623
  output: {
663
624
  error: {
664
- code: "upstream_error";
625
+ code: "query_invalid";
665
626
  details?: readonly Response.error.Detail[] | undefined;
666
627
  message: string;
667
628
  };
668
629
  requestId: string;
669
630
  };
670
631
  outputFormat: "json";
671
- status: 502;
632
+ status: 400;
672
633
  input: {
673
634
  param: {
674
635
  chainId: string;
@@ -678,13 +639,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
678
639
  limit?: string | string[];
679
640
  } | undefined;
680
641
  };
681
- };
682
- };
683
- } & {
684
- "/gecko/:chainId/pairs/:pairId": {
685
- $get: {
642
+ } | {
686
643
  output: {
687
- pair: {
644
+ pairs: {
688
645
  id: `0x${string}`;
689
646
  dexKey: string;
690
647
  asset0Id: string;
@@ -708,10 +665,27 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
708
665
  createdAtBlockNumber?: number | undefined;
709
666
  createdAtBlockTimestamp?: number | undefined;
710
667
  createdAtTxnId?: string | undefined;
711
- };
668
+ }[];
712
669
  };
713
670
  outputFormat: "json";
714
671
  status: 200;
672
+ input: {
673
+ param: {
674
+ chainId: string;
675
+ };
676
+ } & {
677
+ query?: {
678
+ limit?: string | string[];
679
+ } | undefined;
680
+ };
681
+ };
682
+ };
683
+ } & {
684
+ "/gecko/:chainId/pairs/:pairId": {
685
+ $get: {
686
+ output: null;
687
+ outputFormat: "body";
688
+ status: 402;
715
689
  input: {
716
690
  param: {
717
691
  chainId: string;
@@ -721,14 +695,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
721
695
  } | {
722
696
  output: {
723
697
  error: {
724
- code: "api_key_malformed";
698
+ code: "upstream_error";
725
699
  details?: readonly Response.error.Detail[] | undefined;
726
700
  message: string;
727
701
  };
728
702
  requestId: string;
729
703
  };
730
704
  outputFormat: "json";
731
- status: 400;
705
+ status: 502;
732
706
  input: {
733
707
  param: {
734
708
  chainId: string;
@@ -738,7 +712,7 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
738
712
  } | {
739
713
  output: {
740
714
  error: {
741
- code: "pair_id_invalid";
715
+ code: "api_key_malformed";
742
716
  details?: readonly Response.error.Detail[] | undefined;
743
717
  message: string;
744
718
  };
@@ -770,9 +744,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
770
744
  };
771
745
  };
772
746
  } | {
773
- output: null;
774
- outputFormat: "body";
775
- status: 402;
747
+ output: {
748
+ error: {
749
+ code: "api_key_forbidden";
750
+ details?: readonly Response.error.Detail[] | undefined;
751
+ message: string;
752
+ };
753
+ requestId: string;
754
+ };
755
+ outputFormat: "json";
756
+ status: 403;
776
757
  input: {
777
758
  param: {
778
759
  chainId: string;
@@ -782,14 +763,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
782
763
  } | {
783
764
  output: {
784
765
  error: {
785
- code: "api_key_forbidden";
766
+ code: "payment_required" | "rate_limit_exceeded";
786
767
  details?: readonly Response.error.Detail[] | undefined;
787
768
  message: string;
788
769
  };
789
770
  requestId: string;
790
771
  };
791
772
  outputFormat: "json";
792
- status: 403;
773
+ status: 429;
793
774
  input: {
794
775
  param: {
795
776
  chainId: string;
@@ -816,14 +797,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
816
797
  } | {
817
798
  output: {
818
799
  error: {
819
- code: "payment_required" | "rate_limit_exceeded";
800
+ code: "pair_id_invalid";
820
801
  details?: readonly Response.error.Detail[] | undefined;
821
802
  message: string;
822
803
  };
823
804
  requestId: string;
824
805
  };
825
806
  outputFormat: "json";
826
- status: 429;
807
+ status: 400;
827
808
  input: {
828
809
  param: {
829
810
  chainId: string;
@@ -832,15 +813,34 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
832
813
  };
833
814
  } | {
834
815
  output: {
835
- error: {
836
- code: "upstream_error";
837
- details?: readonly Response.error.Detail[] | undefined;
838
- message: string;
816
+ pair: {
817
+ id: `0x${string}`;
818
+ dexKey: string;
819
+ asset0Id: string;
820
+ asset1Id: string;
821
+ token0: {
822
+ address: string;
823
+ name: string;
824
+ symbol: string;
825
+ decimals: number;
826
+ totalSupply: string;
827
+ };
828
+ token1: {
829
+ address: string;
830
+ name: string;
831
+ symbol: string;
832
+ decimals: number;
833
+ totalSupply: string;
834
+ };
835
+ reserve0: string;
836
+ reserve1: string;
837
+ createdAtBlockNumber?: number | undefined;
838
+ createdAtBlockTimestamp?: number | undefined;
839
+ createdAtTxnId?: string | undefined;
839
840
  };
840
- requestId: string;
841
841
  };
842
842
  outputFormat: "json";
843
- status: 502;
843
+ status: 200;
844
844
  input: {
845
845
  param: {
846
846
  chainId: string;
@@ -852,31 +852,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
852
852
  } & {
853
853
  "/gecko/:chainId/events": {
854
854
  $get: {
855
- output: {
856
- events: {
857
- block: {
858
- blockNumber: number;
859
- blockTimestamp: number;
860
- };
861
- eventType: "swap";
862
- txnId: string;
863
- txnIndex: number;
864
- eventIndex: number;
865
- maker: string;
866
- pairId: `0x${string}`;
867
- asset0In?: string | undefined;
868
- asset1In?: string | undefined;
869
- asset0Out?: string | undefined;
870
- asset1Out?: string | undefined;
871
- priceNative: string;
872
- reserves: {
873
- asset0: string;
874
- asset1: string;
875
- };
876
- }[];
877
- };
878
- outputFormat: "json";
879
- status: 200;
855
+ output: null;
856
+ outputFormat: "body";
857
+ status: 402;
880
858
  input: {
881
859
  param: {
882
860
  chainId: string;
@@ -890,14 +868,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
890
868
  } | {
891
869
  output: {
892
870
  error: {
893
- code: "api_key_malformed";
871
+ code: "upstream_error";
894
872
  details?: readonly Response.error.Detail[] | undefined;
895
873
  message: string;
896
874
  };
897
875
  requestId: string;
898
876
  };
899
877
  outputFormat: "json";
900
- status: 400;
878
+ status: 502;
901
879
  input: {
902
880
  param: {
903
881
  chainId: string;
@@ -911,7 +889,7 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
911
889
  } | {
912
890
  output: {
913
891
  error: {
914
- code: "query_invalid";
892
+ code: "api_key_malformed";
915
893
  details?: readonly Response.error.Detail[] | undefined;
916
894
  message: string;
917
895
  };
@@ -951,9 +929,16 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
951
929
  } | undefined;
952
930
  };
953
931
  } | {
954
- output: null;
955
- outputFormat: "body";
956
- status: 402;
932
+ output: {
933
+ error: {
934
+ code: "api_key_forbidden";
935
+ details?: readonly Response.error.Detail[] | undefined;
936
+ message: string;
937
+ };
938
+ requestId: string;
939
+ };
940
+ outputFormat: "json";
941
+ status: 403;
957
942
  input: {
958
943
  param: {
959
944
  chainId: string;
@@ -967,14 +952,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
967
952
  } | {
968
953
  output: {
969
954
  error: {
970
- code: "api_key_forbidden";
955
+ code: "payment_required" | "rate_limit_exceeded";
971
956
  details?: readonly Response.error.Detail[] | undefined;
972
957
  message: string;
973
958
  };
974
959
  requestId: string;
975
960
  };
976
961
  outputFormat: "json";
977
- status: 403;
962
+ status: 429;
978
963
  input: {
979
964
  param: {
980
965
  chainId: string;
@@ -988,14 +973,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
988
973
  } | {
989
974
  output: {
990
975
  error: {
991
- code: "not_found";
976
+ code: "query_invalid";
992
977
  details?: readonly Response.error.Detail[] | undefined;
993
978
  message: string;
994
979
  };
995
980
  requestId: string;
996
981
  };
997
982
  outputFormat: "json";
998
- status: 404;
983
+ status: 400;
999
984
  input: {
1000
985
  param: {
1001
986
  chainId: string;
@@ -1009,14 +994,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1009
994
  } | {
1010
995
  output: {
1011
996
  error: {
1012
- code: "payment_required" | "rate_limit_exceeded";
997
+ code: "not_found";
1013
998
  details?: readonly Response.error.Detail[] | undefined;
1014
999
  message: string;
1015
1000
  };
1016
1001
  requestId: string;
1017
1002
  };
1018
1003
  outputFormat: "json";
1019
- status: 429;
1004
+ status: 404;
1020
1005
  input: {
1021
1006
  param: {
1022
1007
  chainId: string;
@@ -1029,15 +1014,30 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1029
1014
  };
1030
1015
  } | {
1031
1016
  output: {
1032
- error: {
1033
- code: "upstream_error";
1034
- details?: readonly Response.error.Detail[] | undefined;
1035
- message: string;
1036
- };
1037
- requestId: string;
1017
+ events: {
1018
+ block: {
1019
+ blockNumber: number;
1020
+ blockTimestamp: number;
1021
+ };
1022
+ eventType: "swap";
1023
+ txnId: string;
1024
+ txnIndex: number;
1025
+ eventIndex: number;
1026
+ maker: string;
1027
+ pairId: `0x${string}`;
1028
+ asset0In?: string | undefined;
1029
+ asset1In?: string | undefined;
1030
+ asset0Out?: string | undefined;
1031
+ asset1Out?: string | undefined;
1032
+ priceNative: string;
1033
+ reserves: {
1034
+ asset0: string;
1035
+ asset1: string;
1036
+ };
1037
+ }[];
1038
1038
  };
1039
1039
  outputFormat: "json";
1040
- status: 502;
1040
+ status: 200;
1041
1041
  input: {
1042
1042
  param: {
1043
1043
  chainId: string;