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