tapimo 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/admin/App.d.ts +123 -123
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.js +13 -13
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/apps/balances.d.ts +43 -43
- package/dist/apps/coingecko.d.ts +176 -176
- package/dist/apps/coingecko.js +1 -1
- package/dist/apps/coingecko.js.map +1 -1
- package/dist/apps/tokenlist.d.ts +36 -36
- package/dist/internal/Auth.js +6 -1
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Store.js +22 -5
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Viem.d.ts +81 -7
- package/dist/internal/Viem.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/App.test.ts +1 -1
- package/src/admin/ui.generated.ts +13 -13
- package/src/apps/coingecko.ts +1 -1
- package/src/apps/indexer.test.ts +1 -1
- package/src/apps/webhooks.test.ts +1 -1
- package/src/internal/Auth.test.ts +59 -1
- package/src/internal/Auth.ts +6 -1
- package/src/internal/Store.test.ts +84 -0
- package/src/internal/Store.ts +24 -5
- package/src/internal/Viem.ts +2 -1
package/dist/apps/coingecko.d.ts
CHANGED
|
@@ -216,9 +216,14 @@ export declare namespace schema {
|
|
|
216
216
|
export declare function coingecko(): import("hono/hono-base").HonoBase<App.Environment, {
|
|
217
217
|
"/:chainId/latest-block": {
|
|
218
218
|
$get: {
|
|
219
|
-
output:
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
output: {
|
|
220
|
+
block: {
|
|
221
|
+
blockNumber: number;
|
|
222
|
+
blockTimestamp: number;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
outputFormat: "json";
|
|
226
|
+
status: 200;
|
|
222
227
|
input: {
|
|
223
228
|
param: {
|
|
224
229
|
chainId: string;
|
|
@@ -243,14 +248,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
243
248
|
} | {
|
|
244
249
|
output: {
|
|
245
250
|
error: {
|
|
246
|
-
code: "
|
|
251
|
+
code: "chain_id_invalid";
|
|
247
252
|
details?: readonly Response.error.Detail[] | undefined;
|
|
248
253
|
message: string;
|
|
249
254
|
};
|
|
250
255
|
requestId: string;
|
|
251
256
|
};
|
|
252
257
|
outputFormat: "json";
|
|
253
|
-
status:
|
|
258
|
+
status: 400;
|
|
254
259
|
input: {
|
|
255
260
|
param: {
|
|
256
261
|
chainId: string;
|
|
@@ -259,30 +264,23 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
259
264
|
} | {
|
|
260
265
|
output: {
|
|
261
266
|
error: {
|
|
262
|
-
code: "
|
|
267
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
263
268
|
details?: readonly Response.error.Detail[] | undefined;
|
|
264
269
|
message: string;
|
|
265
270
|
};
|
|
266
271
|
requestId: string;
|
|
267
272
|
};
|
|
268
273
|
outputFormat: "json";
|
|
269
|
-
status:
|
|
274
|
+
status: 401;
|
|
270
275
|
input: {
|
|
271
276
|
param: {
|
|
272
277
|
chainId: string;
|
|
273
278
|
};
|
|
274
279
|
};
|
|
275
280
|
} | {
|
|
276
|
-
output:
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
280
|
-
message: string;
|
|
281
|
-
};
|
|
282
|
-
requestId: string;
|
|
283
|
-
};
|
|
284
|
-
outputFormat: "json";
|
|
285
|
-
status: 429;
|
|
281
|
+
output: null;
|
|
282
|
+
outputFormat: "body";
|
|
283
|
+
status: 402;
|
|
286
284
|
input: {
|
|
287
285
|
param: {
|
|
288
286
|
chainId: string;
|
|
@@ -291,14 +289,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
291
289
|
} | {
|
|
292
290
|
output: {
|
|
293
291
|
error: {
|
|
294
|
-
code: "
|
|
292
|
+
code: "api_key_forbidden";
|
|
295
293
|
details?: readonly Response.error.Detail[] | undefined;
|
|
296
294
|
message: string;
|
|
297
295
|
};
|
|
298
296
|
requestId: string;
|
|
299
297
|
};
|
|
300
298
|
outputFormat: "json";
|
|
301
|
-
status:
|
|
299
|
+
status: 403;
|
|
302
300
|
input: {
|
|
303
301
|
param: {
|
|
304
302
|
chainId: string;
|
|
@@ -307,14 +305,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
307
305
|
} | {
|
|
308
306
|
output: {
|
|
309
307
|
error: {
|
|
310
|
-
code: "
|
|
308
|
+
code: "not_found";
|
|
311
309
|
details?: readonly Response.error.Detail[] | undefined;
|
|
312
310
|
message: string;
|
|
313
311
|
};
|
|
314
312
|
requestId: string;
|
|
315
313
|
};
|
|
316
314
|
outputFormat: "json";
|
|
317
|
-
status:
|
|
315
|
+
status: 404;
|
|
318
316
|
input: {
|
|
319
317
|
param: {
|
|
320
318
|
chainId: string;
|
|
@@ -323,14 +321,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
323
321
|
} | {
|
|
324
322
|
output: {
|
|
325
323
|
error: {
|
|
326
|
-
code: "
|
|
324
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
327
325
|
details?: readonly Response.error.Detail[] | undefined;
|
|
328
326
|
message: string;
|
|
329
327
|
};
|
|
330
328
|
requestId: string;
|
|
331
329
|
};
|
|
332
330
|
outputFormat: "json";
|
|
333
|
-
status:
|
|
331
|
+
status: 429;
|
|
334
332
|
input: {
|
|
335
333
|
param: {
|
|
336
334
|
chainId: string;
|
|
@@ -338,13 +336,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
338
336
|
};
|
|
339
337
|
} | {
|
|
340
338
|
output: {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
339
|
+
error: {
|
|
340
|
+
code: "upstream_error";
|
|
341
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
342
|
+
message: string;
|
|
344
343
|
};
|
|
344
|
+
requestId: string;
|
|
345
345
|
};
|
|
346
346
|
outputFormat: "json";
|
|
347
|
-
status:
|
|
347
|
+
status: 502;
|
|
348
348
|
input: {
|
|
349
349
|
param: {
|
|
350
350
|
chainId: string;
|
|
@@ -355,9 +355,17 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
355
355
|
} & {
|
|
356
356
|
"/:chainId/assets/:address": {
|
|
357
357
|
$get: {
|
|
358
|
-
output:
|
|
359
|
-
|
|
360
|
-
|
|
358
|
+
output: {
|
|
359
|
+
asset: {
|
|
360
|
+
id: string;
|
|
361
|
+
name: string;
|
|
362
|
+
symbol: string;
|
|
363
|
+
decimals: number;
|
|
364
|
+
totalSupply: string;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
outputFormat: "json";
|
|
368
|
+
status: 200;
|
|
361
369
|
input: {
|
|
362
370
|
param: {
|
|
363
371
|
chainId: string;
|
|
@@ -384,14 +392,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
384
392
|
} | {
|
|
385
393
|
output: {
|
|
386
394
|
error: {
|
|
387
|
-
code: "
|
|
395
|
+
code: "address_invalid";
|
|
388
396
|
details?: readonly Response.error.Detail[] | undefined;
|
|
389
397
|
message: string;
|
|
390
398
|
};
|
|
391
399
|
requestId: string;
|
|
392
400
|
};
|
|
393
401
|
outputFormat: "json";
|
|
394
|
-
status:
|
|
402
|
+
status: 400;
|
|
395
403
|
input: {
|
|
396
404
|
param: {
|
|
397
405
|
chainId: string;
|
|
@@ -401,14 +409,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
401
409
|
} | {
|
|
402
410
|
output: {
|
|
403
411
|
error: {
|
|
404
|
-
code: "
|
|
412
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
405
413
|
details?: readonly Response.error.Detail[] | undefined;
|
|
406
414
|
message: string;
|
|
407
415
|
};
|
|
408
416
|
requestId: string;
|
|
409
417
|
};
|
|
410
418
|
outputFormat: "json";
|
|
411
|
-
status:
|
|
419
|
+
status: 401;
|
|
412
420
|
input: {
|
|
413
421
|
param: {
|
|
414
422
|
chainId: string;
|
|
@@ -416,16 +424,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
416
424
|
};
|
|
417
425
|
};
|
|
418
426
|
} | {
|
|
419
|
-
output:
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
423
|
-
message: string;
|
|
424
|
-
};
|
|
425
|
-
requestId: string;
|
|
426
|
-
};
|
|
427
|
-
outputFormat: "json";
|
|
428
|
-
status: 429;
|
|
427
|
+
output: null;
|
|
428
|
+
outputFormat: "body";
|
|
429
|
+
status: 402;
|
|
429
430
|
input: {
|
|
430
431
|
param: {
|
|
431
432
|
chainId: string;
|
|
@@ -435,14 +436,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
435
436
|
} | {
|
|
436
437
|
output: {
|
|
437
438
|
error: {
|
|
438
|
-
code: "
|
|
439
|
+
code: "api_key_forbidden";
|
|
439
440
|
details?: readonly Response.error.Detail[] | undefined;
|
|
440
441
|
message: string;
|
|
441
442
|
};
|
|
442
443
|
requestId: string;
|
|
443
444
|
};
|
|
444
445
|
outputFormat: "json";
|
|
445
|
-
status:
|
|
446
|
+
status: 403;
|
|
446
447
|
input: {
|
|
447
448
|
param: {
|
|
448
449
|
chainId: string;
|
|
@@ -452,14 +453,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
452
453
|
} | {
|
|
453
454
|
output: {
|
|
454
455
|
error: {
|
|
455
|
-
code: "
|
|
456
|
+
code: "not_found";
|
|
456
457
|
details?: readonly Response.error.Detail[] | undefined;
|
|
457
458
|
message: string;
|
|
458
459
|
};
|
|
459
460
|
requestId: string;
|
|
460
461
|
};
|
|
461
462
|
outputFormat: "json";
|
|
462
|
-
status:
|
|
463
|
+
status: 404;
|
|
463
464
|
input: {
|
|
464
465
|
param: {
|
|
465
466
|
chainId: string;
|
|
@@ -469,14 +470,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
469
470
|
} | {
|
|
470
471
|
output: {
|
|
471
472
|
error: {
|
|
472
|
-
code: "
|
|
473
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
473
474
|
details?: readonly Response.error.Detail[] | undefined;
|
|
474
475
|
message: string;
|
|
475
476
|
};
|
|
476
477
|
requestId: string;
|
|
477
478
|
};
|
|
478
479
|
outputFormat: "json";
|
|
479
|
-
status:
|
|
480
|
+
status: 429;
|
|
480
481
|
input: {
|
|
481
482
|
param: {
|
|
482
483
|
chainId: string;
|
|
@@ -485,16 +486,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
485
486
|
};
|
|
486
487
|
} | {
|
|
487
488
|
output: {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
decimals: number;
|
|
493
|
-
totalSupply: string;
|
|
489
|
+
error: {
|
|
490
|
+
code: "upstream_error";
|
|
491
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
492
|
+
message: string;
|
|
494
493
|
};
|
|
494
|
+
requestId: string;
|
|
495
495
|
};
|
|
496
496
|
outputFormat: "json";
|
|
497
|
-
status:
|
|
497
|
+
status: 502;
|
|
498
498
|
input: {
|
|
499
499
|
param: {
|
|
500
500
|
chainId: string;
|
|
@@ -506,9 +506,35 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
506
506
|
} & {
|
|
507
507
|
"/:chainId/pairs": {
|
|
508
508
|
$get: {
|
|
509
|
-
output:
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
output: {
|
|
510
|
+
pairs: {
|
|
511
|
+
id: `0x${string}`;
|
|
512
|
+
dexKey: string;
|
|
513
|
+
asset0Id: string;
|
|
514
|
+
asset1Id: string;
|
|
515
|
+
token0: {
|
|
516
|
+
address: string;
|
|
517
|
+
name: string;
|
|
518
|
+
symbol: string;
|
|
519
|
+
decimals: number;
|
|
520
|
+
totalSupply: string;
|
|
521
|
+
};
|
|
522
|
+
token1: {
|
|
523
|
+
address: string;
|
|
524
|
+
name: string;
|
|
525
|
+
symbol: string;
|
|
526
|
+
decimals: number;
|
|
527
|
+
totalSupply: string;
|
|
528
|
+
};
|
|
529
|
+
reserve0: string;
|
|
530
|
+
reserve1: string;
|
|
531
|
+
createdAtBlockNumber?: number | undefined;
|
|
532
|
+
createdAtBlockTimestamp?: number | undefined;
|
|
533
|
+
createdAtTxnId?: string | undefined;
|
|
534
|
+
}[];
|
|
535
|
+
};
|
|
536
|
+
outputFormat: "json";
|
|
537
|
+
status: 200;
|
|
512
538
|
input: {
|
|
513
539
|
param: {
|
|
514
540
|
chainId: string;
|
|
@@ -541,14 +567,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
541
567
|
} | {
|
|
542
568
|
output: {
|
|
543
569
|
error: {
|
|
544
|
-
code: "
|
|
570
|
+
code: "query_invalid";
|
|
545
571
|
details?: readonly Response.error.Detail[] | undefined;
|
|
546
572
|
message: string;
|
|
547
573
|
};
|
|
548
574
|
requestId: string;
|
|
549
575
|
};
|
|
550
576
|
outputFormat: "json";
|
|
551
|
-
status:
|
|
577
|
+
status: 400;
|
|
552
578
|
input: {
|
|
553
579
|
param: {
|
|
554
580
|
chainId: string;
|
|
@@ -561,14 +587,27 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
561
587
|
} | {
|
|
562
588
|
output: {
|
|
563
589
|
error: {
|
|
564
|
-
code: "
|
|
590
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
565
591
|
details?: readonly Response.error.Detail[] | undefined;
|
|
566
592
|
message: string;
|
|
567
593
|
};
|
|
568
594
|
requestId: string;
|
|
569
595
|
};
|
|
570
596
|
outputFormat: "json";
|
|
571
|
-
status:
|
|
597
|
+
status: 401;
|
|
598
|
+
input: {
|
|
599
|
+
param: {
|
|
600
|
+
chainId: string;
|
|
601
|
+
};
|
|
602
|
+
} & {
|
|
603
|
+
query?: {
|
|
604
|
+
limit?: string | string[];
|
|
605
|
+
} | undefined;
|
|
606
|
+
};
|
|
607
|
+
} | {
|
|
608
|
+
output: null;
|
|
609
|
+
outputFormat: "body";
|
|
610
|
+
status: 402;
|
|
572
611
|
input: {
|
|
573
612
|
param: {
|
|
574
613
|
chainId: string;
|
|
@@ -581,14 +620,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
581
620
|
} | {
|
|
582
621
|
output: {
|
|
583
622
|
error: {
|
|
584
|
-
code: "
|
|
623
|
+
code: "api_key_forbidden";
|
|
585
624
|
details?: readonly Response.error.Detail[] | undefined;
|
|
586
625
|
message: string;
|
|
587
626
|
};
|
|
588
627
|
requestId: string;
|
|
589
628
|
};
|
|
590
629
|
outputFormat: "json";
|
|
591
|
-
status:
|
|
630
|
+
status: 403;
|
|
592
631
|
input: {
|
|
593
632
|
param: {
|
|
594
633
|
chainId: string;
|
|
@@ -601,14 +640,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
601
640
|
} | {
|
|
602
641
|
output: {
|
|
603
642
|
error: {
|
|
604
|
-
code: "
|
|
643
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
605
644
|
details?: readonly Response.error.Detail[] | undefined;
|
|
606
645
|
message: string;
|
|
607
646
|
};
|
|
608
647
|
requestId: string;
|
|
609
648
|
};
|
|
610
649
|
outputFormat: "json";
|
|
611
|
-
status:
|
|
650
|
+
status: 429;
|
|
612
651
|
input: {
|
|
613
652
|
param: {
|
|
614
653
|
chainId: string;
|
|
@@ -638,9 +677,13 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
638
677
|
limit?: string | string[];
|
|
639
678
|
} | undefined;
|
|
640
679
|
};
|
|
641
|
-
}
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
} & {
|
|
683
|
+
"/:chainId/pairs/:pairId": {
|
|
684
|
+
$get: {
|
|
642
685
|
output: {
|
|
643
|
-
|
|
686
|
+
pair: {
|
|
644
687
|
id: `0x${string}`;
|
|
645
688
|
dexKey: string;
|
|
646
689
|
asset0Id: string;
|
|
@@ -664,27 +707,10 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
664
707
|
createdAtBlockNumber?: number | undefined;
|
|
665
708
|
createdAtBlockTimestamp?: number | undefined;
|
|
666
709
|
createdAtTxnId?: string | undefined;
|
|
667
|
-
}
|
|
710
|
+
};
|
|
668
711
|
};
|
|
669
712
|
outputFormat: "json";
|
|
670
713
|
status: 200;
|
|
671
|
-
input: {
|
|
672
|
-
param: {
|
|
673
|
-
chainId: string;
|
|
674
|
-
};
|
|
675
|
-
} & {
|
|
676
|
-
query?: {
|
|
677
|
-
limit?: string | string[];
|
|
678
|
-
} | undefined;
|
|
679
|
-
};
|
|
680
|
-
};
|
|
681
|
-
};
|
|
682
|
-
} & {
|
|
683
|
-
"/:chainId/pairs/:pairId": {
|
|
684
|
-
$get: {
|
|
685
|
-
output: null;
|
|
686
|
-
outputFormat: "body";
|
|
687
|
-
status: 402;
|
|
688
714
|
input: {
|
|
689
715
|
param: {
|
|
690
716
|
chainId: string;
|
|
@@ -711,14 +737,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
711
737
|
} | {
|
|
712
738
|
output: {
|
|
713
739
|
error: {
|
|
714
|
-
code: "
|
|
740
|
+
code: "pair_id_invalid";
|
|
715
741
|
details?: readonly Response.error.Detail[] | undefined;
|
|
716
742
|
message: string;
|
|
717
743
|
};
|
|
718
744
|
requestId: string;
|
|
719
745
|
};
|
|
720
746
|
outputFormat: "json";
|
|
721
|
-
status:
|
|
747
|
+
status: 400;
|
|
722
748
|
input: {
|
|
723
749
|
param: {
|
|
724
750
|
chainId: string;
|
|
@@ -728,14 +754,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
728
754
|
} | {
|
|
729
755
|
output: {
|
|
730
756
|
error: {
|
|
731
|
-
code: "
|
|
757
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
732
758
|
details?: readonly Response.error.Detail[] | undefined;
|
|
733
759
|
message: string;
|
|
734
760
|
};
|
|
735
761
|
requestId: string;
|
|
736
762
|
};
|
|
737
763
|
outputFormat: "json";
|
|
738
|
-
status:
|
|
764
|
+
status: 401;
|
|
739
765
|
input: {
|
|
740
766
|
param: {
|
|
741
767
|
chainId: string;
|
|
@@ -743,16 +769,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
743
769
|
};
|
|
744
770
|
};
|
|
745
771
|
} | {
|
|
746
|
-
output:
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
750
|
-
message: string;
|
|
751
|
-
};
|
|
752
|
-
requestId: string;
|
|
753
|
-
};
|
|
754
|
-
outputFormat: "json";
|
|
755
|
-
status: 429;
|
|
772
|
+
output: null;
|
|
773
|
+
outputFormat: "body";
|
|
774
|
+
status: 402;
|
|
756
775
|
input: {
|
|
757
776
|
param: {
|
|
758
777
|
chainId: string;
|
|
@@ -762,14 +781,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
762
781
|
} | {
|
|
763
782
|
output: {
|
|
764
783
|
error: {
|
|
765
|
-
code: "
|
|
784
|
+
code: "api_key_forbidden";
|
|
766
785
|
details?: readonly Response.error.Detail[] | undefined;
|
|
767
786
|
message: string;
|
|
768
787
|
};
|
|
769
788
|
requestId: string;
|
|
770
789
|
};
|
|
771
790
|
outputFormat: "json";
|
|
772
|
-
status:
|
|
791
|
+
status: 403;
|
|
773
792
|
input: {
|
|
774
793
|
param: {
|
|
775
794
|
chainId: string;
|
|
@@ -796,14 +815,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
796
815
|
} | {
|
|
797
816
|
output: {
|
|
798
817
|
error: {
|
|
799
|
-
code: "
|
|
818
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
800
819
|
details?: readonly Response.error.Detail[] | undefined;
|
|
801
820
|
message: string;
|
|
802
821
|
};
|
|
803
822
|
requestId: string;
|
|
804
823
|
};
|
|
805
824
|
outputFormat: "json";
|
|
806
|
-
status:
|
|
825
|
+
status: 429;
|
|
807
826
|
input: {
|
|
808
827
|
param: {
|
|
809
828
|
chainId: string;
|
|
@@ -812,34 +831,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
812
831
|
};
|
|
813
832
|
} | {
|
|
814
833
|
output: {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
asset1Id: string;
|
|
820
|
-
token0: {
|
|
821
|
-
address: string;
|
|
822
|
-
name: string;
|
|
823
|
-
symbol: string;
|
|
824
|
-
decimals: number;
|
|
825
|
-
totalSupply: string;
|
|
826
|
-
};
|
|
827
|
-
token1: {
|
|
828
|
-
address: string;
|
|
829
|
-
name: string;
|
|
830
|
-
symbol: string;
|
|
831
|
-
decimals: number;
|
|
832
|
-
totalSupply: string;
|
|
833
|
-
};
|
|
834
|
-
reserve0: string;
|
|
835
|
-
reserve1: string;
|
|
836
|
-
createdAtBlockNumber?: number | undefined;
|
|
837
|
-
createdAtBlockTimestamp?: number | undefined;
|
|
838
|
-
createdAtTxnId?: string | undefined;
|
|
834
|
+
error: {
|
|
835
|
+
code: "upstream_error";
|
|
836
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
837
|
+
message: string;
|
|
839
838
|
};
|
|
839
|
+
requestId: string;
|
|
840
840
|
};
|
|
841
841
|
outputFormat: "json";
|
|
842
|
-
status:
|
|
842
|
+
status: 502;
|
|
843
843
|
input: {
|
|
844
844
|
param: {
|
|
845
845
|
chainId: string;
|
|
@@ -851,9 +851,31 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
851
851
|
} & {
|
|
852
852
|
"/:chainId/events": {
|
|
853
853
|
$get: {
|
|
854
|
-
output:
|
|
855
|
-
|
|
856
|
-
|
|
854
|
+
output: {
|
|
855
|
+
events: {
|
|
856
|
+
block: {
|
|
857
|
+
blockNumber: number;
|
|
858
|
+
blockTimestamp: number;
|
|
859
|
+
};
|
|
860
|
+
eventType: "swap";
|
|
861
|
+
txnId: string;
|
|
862
|
+
txnIndex: number;
|
|
863
|
+
eventIndex: number;
|
|
864
|
+
maker: string;
|
|
865
|
+
pairId: `0x${string}`;
|
|
866
|
+
asset0In?: string | undefined;
|
|
867
|
+
asset1In?: string | undefined;
|
|
868
|
+
asset0Out?: string | undefined;
|
|
869
|
+
asset1Out?: string | undefined;
|
|
870
|
+
priceNative: string;
|
|
871
|
+
reserves: {
|
|
872
|
+
asset0: string;
|
|
873
|
+
asset1: string;
|
|
874
|
+
};
|
|
875
|
+
}[];
|
|
876
|
+
};
|
|
877
|
+
outputFormat: "json";
|
|
878
|
+
status: 200;
|
|
857
879
|
input: {
|
|
858
880
|
param: {
|
|
859
881
|
chainId: string;
|
|
@@ -888,14 +910,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
888
910
|
} | {
|
|
889
911
|
output: {
|
|
890
912
|
error: {
|
|
891
|
-
code: "
|
|
913
|
+
code: "query_invalid";
|
|
892
914
|
details?: readonly Response.error.Detail[] | undefined;
|
|
893
915
|
message: string;
|
|
894
916
|
};
|
|
895
917
|
requestId: string;
|
|
896
918
|
};
|
|
897
919
|
outputFormat: "json";
|
|
898
|
-
status:
|
|
920
|
+
status: 400;
|
|
899
921
|
input: {
|
|
900
922
|
param: {
|
|
901
923
|
chainId: string;
|
|
@@ -909,14 +931,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
909
931
|
} | {
|
|
910
932
|
output: {
|
|
911
933
|
error: {
|
|
912
|
-
code: "
|
|
934
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
913
935
|
details?: readonly Response.error.Detail[] | undefined;
|
|
914
936
|
message: string;
|
|
915
937
|
};
|
|
916
938
|
requestId: string;
|
|
917
939
|
};
|
|
918
940
|
outputFormat: "json";
|
|
919
|
-
status:
|
|
941
|
+
status: 401;
|
|
920
942
|
input: {
|
|
921
943
|
param: {
|
|
922
944
|
chainId: string;
|
|
@@ -928,16 +950,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
928
950
|
} | undefined;
|
|
929
951
|
};
|
|
930
952
|
} | {
|
|
931
|
-
output:
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
935
|
-
message: string;
|
|
936
|
-
};
|
|
937
|
-
requestId: string;
|
|
938
|
-
};
|
|
939
|
-
outputFormat: "json";
|
|
940
|
-
status: 429;
|
|
953
|
+
output: null;
|
|
954
|
+
outputFormat: "body";
|
|
955
|
+
status: 402;
|
|
941
956
|
input: {
|
|
942
957
|
param: {
|
|
943
958
|
chainId: string;
|
|
@@ -951,14 +966,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
951
966
|
} | {
|
|
952
967
|
output: {
|
|
953
968
|
error: {
|
|
954
|
-
code: "
|
|
969
|
+
code: "api_key_forbidden";
|
|
955
970
|
details?: readonly Response.error.Detail[] | undefined;
|
|
956
971
|
message: string;
|
|
957
972
|
};
|
|
958
973
|
requestId: string;
|
|
959
974
|
};
|
|
960
975
|
outputFormat: "json";
|
|
961
|
-
status:
|
|
976
|
+
status: 403;
|
|
962
977
|
input: {
|
|
963
978
|
param: {
|
|
964
979
|
chainId: string;
|
|
@@ -972,14 +987,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
972
987
|
} | {
|
|
973
988
|
output: {
|
|
974
989
|
error: {
|
|
975
|
-
code: "
|
|
990
|
+
code: "not_found";
|
|
976
991
|
details?: readonly Response.error.Detail[] | undefined;
|
|
977
992
|
message: string;
|
|
978
993
|
};
|
|
979
994
|
requestId: string;
|
|
980
995
|
};
|
|
981
996
|
outputFormat: "json";
|
|
982
|
-
status:
|
|
997
|
+
status: 404;
|
|
983
998
|
input: {
|
|
984
999
|
param: {
|
|
985
1000
|
chainId: string;
|
|
@@ -993,14 +1008,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
993
1008
|
} | {
|
|
994
1009
|
output: {
|
|
995
1010
|
error: {
|
|
996
|
-
code: "
|
|
1011
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
997
1012
|
details?: readonly Response.error.Detail[] | undefined;
|
|
998
1013
|
message: string;
|
|
999
1014
|
};
|
|
1000
1015
|
requestId: string;
|
|
1001
1016
|
};
|
|
1002
1017
|
outputFormat: "json";
|
|
1003
|
-
status:
|
|
1018
|
+
status: 429;
|
|
1004
1019
|
input: {
|
|
1005
1020
|
param: {
|
|
1006
1021
|
chainId: string;
|
|
@@ -1013,30 +1028,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1013
1028
|
};
|
|
1014
1029
|
} | {
|
|
1015
1030
|
output: {
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
txnId: string;
|
|
1023
|
-
txnIndex: number;
|
|
1024
|
-
eventIndex: number;
|
|
1025
|
-
maker: string;
|
|
1026
|
-
pairId: `0x${string}`;
|
|
1027
|
-
asset0In?: string | undefined;
|
|
1028
|
-
asset1In?: string | undefined;
|
|
1029
|
-
asset0Out?: string | undefined;
|
|
1030
|
-
asset1Out?: string | undefined;
|
|
1031
|
-
priceNative: string;
|
|
1032
|
-
reserves: {
|
|
1033
|
-
asset0: string;
|
|
1034
|
-
asset1: string;
|
|
1035
|
-
};
|
|
1036
|
-
}[];
|
|
1031
|
+
error: {
|
|
1032
|
+
code: "upstream_error";
|
|
1033
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1034
|
+
message: string;
|
|
1035
|
+
};
|
|
1036
|
+
requestId: string;
|
|
1037
1037
|
};
|
|
1038
1038
|
outputFormat: "json";
|
|
1039
|
-
status:
|
|
1039
|
+
status: 502;
|
|
1040
1040
|
input: {
|
|
1041
1041
|
param: {
|
|
1042
1042
|
chainId: string;
|