tapimo 0.10.2 → 0.11.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.
- package/dist/App.d.ts +3412 -1968
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js.map +1 -1
- package/dist/Webhooks.d.ts +0 -75
- package/dist/Webhooks.d.ts.map +1 -1
- package/dist/Webhooks.js +1 -143
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/App.d.ts +74 -74
- package/dist/admin/apps/api-keys.d.ts +4 -4
- package/dist/admin/apps/earn-vaults.d.ts +1 -1
- package/dist/admin/apps/organizations.d.ts +3 -3
- package/dist/admin/apps/verified-tokens.d.ts +74 -74
- package/dist/apps/data/App.d.ts +3618 -2954
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +5 -2
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +1 -1
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +55 -27
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +343 -343
- package/dist/apps/data/routes/balances.d.ts +11 -11
- package/dist/apps/data/routes/blocks.d.ts +5 -5
- package/dist/apps/data/routes/coingecko.d.ts +176 -176
- package/dist/apps/data/routes/earn.d.ts +4 -4
- package/dist/apps/data/routes/exchanges.d.ts +4 -4
- package/dist/apps/data/routes/fee-amm.d.ts +26 -26
- package/dist/apps/data/routes/indexer.d.ts +34 -34
- package/dist/apps/data/routes/receipts.d.ts +236 -236
- package/dist/apps/data/routes/tokenlist.d.ts +12 -12
- package/dist/apps/data/routes/tokens.d.ts +3 -3
- package/dist/apps/data/routes/transactions.d.ts +1 -1
- package/dist/apps/data/routes/transfers.d.ts +13 -13
- package/dist/apps/data/routes/valuation.d.ts +21 -21
- package/dist/apps/data/routes/verified-tokens.d.ts +5 -5
- package/dist/apps/data/routes/webhooks.d.ts +1011 -151
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +124 -737
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zones.d.ts +31 -31
- package/dist/apps/funding/routes/deposit-addresses.d.ts +2 -2
- package/dist/apps/funding/routes/providers.d.ts +13 -13
- package/dist/apps/funding/routes/transfers.d.ts +33 -33
- package/dist/apps/management/App.d.ts +793 -16
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +50 -50
- package/dist/apps/management/routes/faucet.d.ts +31 -31
- package/dist/apps/management/routes/invite-links.d.ts +42 -42
- package/dist/apps/management/routes/members.d.ts +79 -79
- package/dist/apps/management/routes/projects.d.ts +40 -40
- package/dist/apps/management/routes/usage.d.ts +80 -80
- package/dist/apps/management/routes/webhooks.d.ts +1031 -59
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/management/routes/webhooks.js +27 -4
- package/dist/apps/management/routes/webhooks.js.map +1 -1
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +21 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +7 -1
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +9 -0
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/webhookQueueEvents.d.ts +3 -1
- package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
- package/dist/db/tables/webhookQueueEvents.js +4 -0
- package/dist/db/tables/webhookQueueEvents.js.map +1 -1
- package/dist/db/tables/webhookSubscriptions.d.ts +33 -69
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +63 -100
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/internal/MetricSink.d.ts +35 -125
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +50 -121
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/Schema.d.ts +3 -1
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +4 -2
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/WebhookTransfer.d.ts +1 -55
- package/dist/internal/WebhookTransfer.d.ts.map +1 -1
- package/dist/internal/WebhookTransfer.js +1 -239
- package/dist/internal/WebhookTransfer.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +83 -44
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +87 -73
- package/dist/internal/Webhooks.js.map +1 -1
- package/dist/internal/funding/DepositWebhook.d.ts +25 -0
- package/dist/internal/funding/DepositWebhook.d.ts.map +1 -0
- package/dist/internal/funding/DepositWebhook.js +74 -0
- package/dist/internal/funding/DepositWebhook.js.map +1 -0
- package/dist/internal/funding/Reconciliation.d.ts +6 -0
- package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
- package/dist/internal/funding/Reconciliation.js +42 -10
- package/dist/internal/funding/Reconciliation.js.map +1 -1
- package/dist/internal/funding/index.d.ts +1 -0
- package/dist/internal/funding/index.d.ts.map +1 -1
- package/dist/internal/funding/index.js +1 -0
- package/dist/internal/funding/index.js.map +1 -1
- package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
- package/dist/internal/webhookDestinations/slack.js +16 -0
- package/dist/internal/webhookDestinations/slack.js.map +1 -1
- package/package.json +1 -1
- package/src/App.ts +3 -0
- package/src/Client.test-d.ts +22 -1
- package/src/Webhooks.ts +1 -220
- package/src/apps/data/App.ts +8 -2
- package/src/apps/data/routes/activities.test.ts +107 -11
- package/src/apps/data/routes/activities.ts +64 -32
- package/src/apps/data/routes/webhooks.test.ts +179 -1497
- package/src/apps/data/routes/webhooks.ts +150 -974
- package/src/apps/management/routes/webhooks.test.ts +79 -1
- package/src/apps/management/routes/webhooks.ts +40 -4
- package/src/db/Db.test.ts +1 -5
- package/src/db/Db.ts +23 -0
- package/src/db/Schema.ts +13 -0
- package/src/db/tables/organizations.test.ts +5 -2
- package/src/db/tables/webhookQueueEvents.ts +7 -1
- package/src/db/tables/webhookSubscriptions.ts +89 -138
- package/src/internal/MetricSink.test.ts +41 -373
- package/src/internal/MetricSink.ts +92 -273
- package/src/internal/Schema.test.ts +18 -0
- package/src/internal/Schema.ts +13 -2
- package/src/internal/WebhookTransfer.ts +1 -351
- package/src/internal/Webhooks.test.ts +102 -139
- package/src/internal/Webhooks.ts +175 -106
- package/src/internal/funding/DepositWebhook.test.ts +131 -0
- package/src/internal/funding/DepositWebhook.ts +101 -0
- package/src/internal/funding/Reconciliation.test.ts +14 -0
- package/src/internal/funding/Reconciliation.ts +161 -86
- package/src/internal/funding/index.test.ts +1 -0
- package/src/internal/funding/index.ts +1 -0
- package/src/internal/webhookDestinations/slack.ts +15 -0
- package/src/Webhooks.bench.ts +0 -714
- package/src/Webhooks.memory.bench.ts +0 -250
- package/src/Webhooks.test.ts +0 -146
|
@@ -217,9 +217,14 @@ 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
|
-
|
|
222
|
-
|
|
220
|
+
output: {
|
|
221
|
+
block: {
|
|
222
|
+
blockNumber: number;
|
|
223
|
+
blockTimestamp: number;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
outputFormat: "json";
|
|
227
|
+
status: 200;
|
|
223
228
|
input: {
|
|
224
229
|
param: {
|
|
225
230
|
chainId: string;
|
|
@@ -244,14 +249,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
244
249
|
} | {
|
|
245
250
|
output: {
|
|
246
251
|
error: {
|
|
247
|
-
code: "
|
|
252
|
+
code: "chain_id_invalid";
|
|
248
253
|
details?: readonly Response.error.Detail[] | undefined;
|
|
249
254
|
message: string;
|
|
250
255
|
};
|
|
251
256
|
requestId: string;
|
|
252
257
|
};
|
|
253
258
|
outputFormat: "json";
|
|
254
|
-
status:
|
|
259
|
+
status: 400;
|
|
255
260
|
input: {
|
|
256
261
|
param: {
|
|
257
262
|
chainId: string;
|
|
@@ -260,30 +265,23 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
260
265
|
} | {
|
|
261
266
|
output: {
|
|
262
267
|
error: {
|
|
263
|
-
code: "
|
|
268
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
264
269
|
details?: readonly Response.error.Detail[] | undefined;
|
|
265
270
|
message: string;
|
|
266
271
|
};
|
|
267
272
|
requestId: string;
|
|
268
273
|
};
|
|
269
274
|
outputFormat: "json";
|
|
270
|
-
status:
|
|
275
|
+
status: 401;
|
|
271
276
|
input: {
|
|
272
277
|
param: {
|
|
273
278
|
chainId: string;
|
|
274
279
|
};
|
|
275
280
|
};
|
|
276
281
|
} | {
|
|
277
|
-
output:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
281
|
-
message: string;
|
|
282
|
-
};
|
|
283
|
-
requestId: string;
|
|
284
|
-
};
|
|
285
|
-
outputFormat: "json";
|
|
286
|
-
status: 429;
|
|
282
|
+
output: null;
|
|
283
|
+
outputFormat: "body";
|
|
284
|
+
status: 402;
|
|
287
285
|
input: {
|
|
288
286
|
param: {
|
|
289
287
|
chainId: string;
|
|
@@ -292,14 +290,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
292
290
|
} | {
|
|
293
291
|
output: {
|
|
294
292
|
error: {
|
|
295
|
-
code: "
|
|
293
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
296
294
|
details?: readonly Response.error.Detail[] | undefined;
|
|
297
295
|
message: string;
|
|
298
296
|
};
|
|
299
297
|
requestId: string;
|
|
300
298
|
};
|
|
301
299
|
outputFormat: "json";
|
|
302
|
-
status:
|
|
300
|
+
status: 403;
|
|
303
301
|
input: {
|
|
304
302
|
param: {
|
|
305
303
|
chainId: string;
|
|
@@ -308,14 +306,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
308
306
|
} | {
|
|
309
307
|
output: {
|
|
310
308
|
error: {
|
|
311
|
-
code: "
|
|
309
|
+
code: "not_found";
|
|
312
310
|
details?: readonly Response.error.Detail[] | undefined;
|
|
313
311
|
message: string;
|
|
314
312
|
};
|
|
315
313
|
requestId: string;
|
|
316
314
|
};
|
|
317
315
|
outputFormat: "json";
|
|
318
|
-
status:
|
|
316
|
+
status: 404;
|
|
319
317
|
input: {
|
|
320
318
|
param: {
|
|
321
319
|
chainId: string;
|
|
@@ -324,14 +322,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
324
322
|
} | {
|
|
325
323
|
output: {
|
|
326
324
|
error: {
|
|
327
|
-
code: "
|
|
325
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
328
326
|
details?: readonly Response.error.Detail[] | undefined;
|
|
329
327
|
message: string;
|
|
330
328
|
};
|
|
331
329
|
requestId: string;
|
|
332
330
|
};
|
|
333
331
|
outputFormat: "json";
|
|
334
|
-
status:
|
|
332
|
+
status: 429;
|
|
335
333
|
input: {
|
|
336
334
|
param: {
|
|
337
335
|
chainId: string;
|
|
@@ -339,13 +337,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
339
337
|
};
|
|
340
338
|
} | {
|
|
341
339
|
output: {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
340
|
+
error: {
|
|
341
|
+
code: "upstream_error";
|
|
342
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
343
|
+
message: string;
|
|
345
344
|
};
|
|
345
|
+
requestId: string;
|
|
346
346
|
};
|
|
347
347
|
outputFormat: "json";
|
|
348
|
-
status:
|
|
348
|
+
status: 502;
|
|
349
349
|
input: {
|
|
350
350
|
param: {
|
|
351
351
|
chainId: string;
|
|
@@ -356,9 +356,17 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
356
356
|
} & {
|
|
357
357
|
"/gecko/:chainId/assets/:address": {
|
|
358
358
|
$get: {
|
|
359
|
-
output:
|
|
360
|
-
|
|
361
|
-
|
|
359
|
+
output: {
|
|
360
|
+
asset: {
|
|
361
|
+
id: string;
|
|
362
|
+
name: string;
|
|
363
|
+
symbol: string;
|
|
364
|
+
decimals: number;
|
|
365
|
+
totalSupply: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
outputFormat: "json";
|
|
369
|
+
status: 200;
|
|
362
370
|
input: {
|
|
363
371
|
param: {
|
|
364
372
|
chainId: string;
|
|
@@ -385,14 +393,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
385
393
|
} | {
|
|
386
394
|
output: {
|
|
387
395
|
error: {
|
|
388
|
-
code: "
|
|
396
|
+
code: "address_invalid";
|
|
389
397
|
details?: readonly Response.error.Detail[] | undefined;
|
|
390
398
|
message: string;
|
|
391
399
|
};
|
|
392
400
|
requestId: string;
|
|
393
401
|
};
|
|
394
402
|
outputFormat: "json";
|
|
395
|
-
status:
|
|
403
|
+
status: 400;
|
|
396
404
|
input: {
|
|
397
405
|
param: {
|
|
398
406
|
chainId: string;
|
|
@@ -402,14 +410,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
402
410
|
} | {
|
|
403
411
|
output: {
|
|
404
412
|
error: {
|
|
405
|
-
code: "
|
|
413
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
406
414
|
details?: readonly Response.error.Detail[] | undefined;
|
|
407
415
|
message: string;
|
|
408
416
|
};
|
|
409
417
|
requestId: string;
|
|
410
418
|
};
|
|
411
419
|
outputFormat: "json";
|
|
412
|
-
status:
|
|
420
|
+
status: 401;
|
|
413
421
|
input: {
|
|
414
422
|
param: {
|
|
415
423
|
chainId: string;
|
|
@@ -417,16 +425,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
417
425
|
};
|
|
418
426
|
};
|
|
419
427
|
} | {
|
|
420
|
-
output:
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
424
|
-
message: string;
|
|
425
|
-
};
|
|
426
|
-
requestId: string;
|
|
427
|
-
};
|
|
428
|
-
outputFormat: "json";
|
|
429
|
-
status: 429;
|
|
428
|
+
output: null;
|
|
429
|
+
outputFormat: "body";
|
|
430
|
+
status: 402;
|
|
430
431
|
input: {
|
|
431
432
|
param: {
|
|
432
433
|
chainId: string;
|
|
@@ -436,14 +437,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
436
437
|
} | {
|
|
437
438
|
output: {
|
|
438
439
|
error: {
|
|
439
|
-
code: "
|
|
440
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
440
441
|
details?: readonly Response.error.Detail[] | undefined;
|
|
441
442
|
message: string;
|
|
442
443
|
};
|
|
443
444
|
requestId: string;
|
|
444
445
|
};
|
|
445
446
|
outputFormat: "json";
|
|
446
|
-
status:
|
|
447
|
+
status: 403;
|
|
447
448
|
input: {
|
|
448
449
|
param: {
|
|
449
450
|
chainId: string;
|
|
@@ -453,14 +454,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
453
454
|
} | {
|
|
454
455
|
output: {
|
|
455
456
|
error: {
|
|
456
|
-
code: "
|
|
457
|
+
code: "not_found";
|
|
457
458
|
details?: readonly Response.error.Detail[] | undefined;
|
|
458
459
|
message: string;
|
|
459
460
|
};
|
|
460
461
|
requestId: string;
|
|
461
462
|
};
|
|
462
463
|
outputFormat: "json";
|
|
463
|
-
status:
|
|
464
|
+
status: 404;
|
|
464
465
|
input: {
|
|
465
466
|
param: {
|
|
466
467
|
chainId: string;
|
|
@@ -470,14 +471,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
470
471
|
} | {
|
|
471
472
|
output: {
|
|
472
473
|
error: {
|
|
473
|
-
code: "
|
|
474
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
474
475
|
details?: readonly Response.error.Detail[] | undefined;
|
|
475
476
|
message: string;
|
|
476
477
|
};
|
|
477
478
|
requestId: string;
|
|
478
479
|
};
|
|
479
480
|
outputFormat: "json";
|
|
480
|
-
status:
|
|
481
|
+
status: 429;
|
|
481
482
|
input: {
|
|
482
483
|
param: {
|
|
483
484
|
chainId: string;
|
|
@@ -486,16 +487,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
486
487
|
};
|
|
487
488
|
} | {
|
|
488
489
|
output: {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
decimals: number;
|
|
494
|
-
totalSupply: string;
|
|
490
|
+
error: {
|
|
491
|
+
code: "upstream_error";
|
|
492
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
493
|
+
message: string;
|
|
495
494
|
};
|
|
495
|
+
requestId: string;
|
|
496
496
|
};
|
|
497
497
|
outputFormat: "json";
|
|
498
|
-
status:
|
|
498
|
+
status: 502;
|
|
499
499
|
input: {
|
|
500
500
|
param: {
|
|
501
501
|
chainId: string;
|
|
@@ -507,9 +507,35 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
507
507
|
} & {
|
|
508
508
|
"/gecko/:chainId/pairs": {
|
|
509
509
|
$get: {
|
|
510
|
-
output:
|
|
511
|
-
|
|
512
|
-
|
|
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;
|
|
513
539
|
input: {
|
|
514
540
|
param: {
|
|
515
541
|
chainId: string;
|
|
@@ -542,14 +568,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
542
568
|
} | {
|
|
543
569
|
output: {
|
|
544
570
|
error: {
|
|
545
|
-
code: "
|
|
571
|
+
code: "query_invalid";
|
|
546
572
|
details?: readonly Response.error.Detail[] | undefined;
|
|
547
573
|
message: string;
|
|
548
574
|
};
|
|
549
575
|
requestId: string;
|
|
550
576
|
};
|
|
551
577
|
outputFormat: "json";
|
|
552
|
-
status:
|
|
578
|
+
status: 400;
|
|
553
579
|
input: {
|
|
554
580
|
param: {
|
|
555
581
|
chainId: string;
|
|
@@ -562,14 +588,27 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
562
588
|
} | {
|
|
563
589
|
output: {
|
|
564
590
|
error: {
|
|
565
|
-
code: "
|
|
591
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
566
592
|
details?: readonly Response.error.Detail[] | undefined;
|
|
567
593
|
message: string;
|
|
568
594
|
};
|
|
569
595
|
requestId: string;
|
|
570
596
|
};
|
|
571
597
|
outputFormat: "json";
|
|
572
|
-
status:
|
|
598
|
+
status: 401;
|
|
599
|
+
input: {
|
|
600
|
+
param: {
|
|
601
|
+
chainId: string;
|
|
602
|
+
};
|
|
603
|
+
} & {
|
|
604
|
+
query?: {
|
|
605
|
+
limit?: string | string[];
|
|
606
|
+
} | undefined;
|
|
607
|
+
};
|
|
608
|
+
} | {
|
|
609
|
+
output: null;
|
|
610
|
+
outputFormat: "body";
|
|
611
|
+
status: 402;
|
|
573
612
|
input: {
|
|
574
613
|
param: {
|
|
575
614
|
chainId: string;
|
|
@@ -582,14 +621,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
582
621
|
} | {
|
|
583
622
|
output: {
|
|
584
623
|
error: {
|
|
585
|
-
code: "
|
|
624
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
586
625
|
details?: readonly Response.error.Detail[] | undefined;
|
|
587
626
|
message: string;
|
|
588
627
|
};
|
|
589
628
|
requestId: string;
|
|
590
629
|
};
|
|
591
630
|
outputFormat: "json";
|
|
592
|
-
status:
|
|
631
|
+
status: 403;
|
|
593
632
|
input: {
|
|
594
633
|
param: {
|
|
595
634
|
chainId: string;
|
|
@@ -602,14 +641,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
602
641
|
} | {
|
|
603
642
|
output: {
|
|
604
643
|
error: {
|
|
605
|
-
code: "
|
|
644
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
606
645
|
details?: readonly Response.error.Detail[] | undefined;
|
|
607
646
|
message: string;
|
|
608
647
|
};
|
|
609
648
|
requestId: string;
|
|
610
649
|
};
|
|
611
650
|
outputFormat: "json";
|
|
612
|
-
status:
|
|
651
|
+
status: 429;
|
|
613
652
|
input: {
|
|
614
653
|
param: {
|
|
615
654
|
chainId: string;
|
|
@@ -639,9 +678,13 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
639
678
|
limit?: string | string[];
|
|
640
679
|
} | undefined;
|
|
641
680
|
};
|
|
642
|
-
}
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
} & {
|
|
684
|
+
"/gecko/:chainId/pairs/:pairId": {
|
|
685
|
+
$get: {
|
|
643
686
|
output: {
|
|
644
|
-
|
|
687
|
+
pair: {
|
|
645
688
|
id: `0x${string}`;
|
|
646
689
|
dexKey: string;
|
|
647
690
|
asset0Id: string;
|
|
@@ -665,27 +708,10 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
665
708
|
createdAtBlockNumber?: number | undefined;
|
|
666
709
|
createdAtBlockTimestamp?: number | undefined;
|
|
667
710
|
createdAtTxnId?: string | undefined;
|
|
668
|
-
}
|
|
711
|
+
};
|
|
669
712
|
};
|
|
670
713
|
outputFormat: "json";
|
|
671
714
|
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;
|
|
689
715
|
input: {
|
|
690
716
|
param: {
|
|
691
717
|
chainId: string;
|
|
@@ -712,14 +738,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
712
738
|
} | {
|
|
713
739
|
output: {
|
|
714
740
|
error: {
|
|
715
|
-
code: "
|
|
741
|
+
code: "pair_id_invalid";
|
|
716
742
|
details?: readonly Response.error.Detail[] | undefined;
|
|
717
743
|
message: string;
|
|
718
744
|
};
|
|
719
745
|
requestId: string;
|
|
720
746
|
};
|
|
721
747
|
outputFormat: "json";
|
|
722
|
-
status:
|
|
748
|
+
status: 400;
|
|
723
749
|
input: {
|
|
724
750
|
param: {
|
|
725
751
|
chainId: string;
|
|
@@ -729,14 +755,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
729
755
|
} | {
|
|
730
756
|
output: {
|
|
731
757
|
error: {
|
|
732
|
-
code: "
|
|
758
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
733
759
|
details?: readonly Response.error.Detail[] | undefined;
|
|
734
760
|
message: string;
|
|
735
761
|
};
|
|
736
762
|
requestId: string;
|
|
737
763
|
};
|
|
738
764
|
outputFormat: "json";
|
|
739
|
-
status:
|
|
765
|
+
status: 401;
|
|
740
766
|
input: {
|
|
741
767
|
param: {
|
|
742
768
|
chainId: string;
|
|
@@ -744,16 +770,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
744
770
|
};
|
|
745
771
|
};
|
|
746
772
|
} | {
|
|
747
|
-
output:
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
751
|
-
message: string;
|
|
752
|
-
};
|
|
753
|
-
requestId: string;
|
|
754
|
-
};
|
|
755
|
-
outputFormat: "json";
|
|
756
|
-
status: 429;
|
|
773
|
+
output: null;
|
|
774
|
+
outputFormat: "body";
|
|
775
|
+
status: 402;
|
|
757
776
|
input: {
|
|
758
777
|
param: {
|
|
759
778
|
chainId: string;
|
|
@@ -763,14 +782,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
763
782
|
} | {
|
|
764
783
|
output: {
|
|
765
784
|
error: {
|
|
766
|
-
code: "
|
|
785
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
767
786
|
details?: readonly Response.error.Detail[] | undefined;
|
|
768
787
|
message: string;
|
|
769
788
|
};
|
|
770
789
|
requestId: string;
|
|
771
790
|
};
|
|
772
791
|
outputFormat: "json";
|
|
773
|
-
status:
|
|
792
|
+
status: 403;
|
|
774
793
|
input: {
|
|
775
794
|
param: {
|
|
776
795
|
chainId: string;
|
|
@@ -797,14 +816,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
797
816
|
} | {
|
|
798
817
|
output: {
|
|
799
818
|
error: {
|
|
800
|
-
code: "
|
|
819
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
801
820
|
details?: readonly Response.error.Detail[] | undefined;
|
|
802
821
|
message: string;
|
|
803
822
|
};
|
|
804
823
|
requestId: string;
|
|
805
824
|
};
|
|
806
825
|
outputFormat: "json";
|
|
807
|
-
status:
|
|
826
|
+
status: 429;
|
|
808
827
|
input: {
|
|
809
828
|
param: {
|
|
810
829
|
chainId: string;
|
|
@@ -813,34 +832,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
813
832
|
};
|
|
814
833
|
} | {
|
|
815
834
|
output: {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
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;
|
|
835
|
+
error: {
|
|
836
|
+
code: "upstream_error";
|
|
837
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
838
|
+
message: string;
|
|
840
839
|
};
|
|
840
|
+
requestId: string;
|
|
841
841
|
};
|
|
842
842
|
outputFormat: "json";
|
|
843
|
-
status:
|
|
843
|
+
status: 502;
|
|
844
844
|
input: {
|
|
845
845
|
param: {
|
|
846
846
|
chainId: string;
|
|
@@ -852,9 +852,31 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
852
852
|
} & {
|
|
853
853
|
"/gecko/:chainId/events": {
|
|
854
854
|
$get: {
|
|
855
|
-
output:
|
|
856
|
-
|
|
857
|
-
|
|
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;
|
|
858
880
|
input: {
|
|
859
881
|
param: {
|
|
860
882
|
chainId: string;
|
|
@@ -889,14 +911,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
889
911
|
} | {
|
|
890
912
|
output: {
|
|
891
913
|
error: {
|
|
892
|
-
code: "
|
|
914
|
+
code: "query_invalid";
|
|
893
915
|
details?: readonly Response.error.Detail[] | undefined;
|
|
894
916
|
message: string;
|
|
895
917
|
};
|
|
896
918
|
requestId: string;
|
|
897
919
|
};
|
|
898
920
|
outputFormat: "json";
|
|
899
|
-
status:
|
|
921
|
+
status: 400;
|
|
900
922
|
input: {
|
|
901
923
|
param: {
|
|
902
924
|
chainId: string;
|
|
@@ -910,14 +932,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
910
932
|
} | {
|
|
911
933
|
output: {
|
|
912
934
|
error: {
|
|
913
|
-
code: "
|
|
935
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
914
936
|
details?: readonly Response.error.Detail[] | undefined;
|
|
915
937
|
message: string;
|
|
916
938
|
};
|
|
917
939
|
requestId: string;
|
|
918
940
|
};
|
|
919
941
|
outputFormat: "json";
|
|
920
|
-
status:
|
|
942
|
+
status: 401;
|
|
921
943
|
input: {
|
|
922
944
|
param: {
|
|
923
945
|
chainId: string;
|
|
@@ -929,16 +951,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
929
951
|
} | undefined;
|
|
930
952
|
};
|
|
931
953
|
} | {
|
|
932
|
-
output:
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
936
|
-
message: string;
|
|
937
|
-
};
|
|
938
|
-
requestId: string;
|
|
939
|
-
};
|
|
940
|
-
outputFormat: "json";
|
|
941
|
-
status: 429;
|
|
954
|
+
output: null;
|
|
955
|
+
outputFormat: "body";
|
|
956
|
+
status: 402;
|
|
942
957
|
input: {
|
|
943
958
|
param: {
|
|
944
959
|
chainId: string;
|
|
@@ -952,14 +967,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
952
967
|
} | {
|
|
953
968
|
output: {
|
|
954
969
|
error: {
|
|
955
|
-
code: "
|
|
970
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
956
971
|
details?: readonly Response.error.Detail[] | undefined;
|
|
957
972
|
message: string;
|
|
958
973
|
};
|
|
959
974
|
requestId: string;
|
|
960
975
|
};
|
|
961
976
|
outputFormat: "json";
|
|
962
|
-
status:
|
|
977
|
+
status: 403;
|
|
963
978
|
input: {
|
|
964
979
|
param: {
|
|
965
980
|
chainId: string;
|
|
@@ -973,14 +988,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
973
988
|
} | {
|
|
974
989
|
output: {
|
|
975
990
|
error: {
|
|
976
|
-
code: "
|
|
991
|
+
code: "not_found";
|
|
977
992
|
details?: readonly Response.error.Detail[] | undefined;
|
|
978
993
|
message: string;
|
|
979
994
|
};
|
|
980
995
|
requestId: string;
|
|
981
996
|
};
|
|
982
997
|
outputFormat: "json";
|
|
983
|
-
status:
|
|
998
|
+
status: 404;
|
|
984
999
|
input: {
|
|
985
1000
|
param: {
|
|
986
1001
|
chainId: string;
|
|
@@ -994,14 +1009,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
994
1009
|
} | {
|
|
995
1010
|
output: {
|
|
996
1011
|
error: {
|
|
997
|
-
code: "
|
|
1012
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
998
1013
|
details?: readonly Response.error.Detail[] | undefined;
|
|
999
1014
|
message: string;
|
|
1000
1015
|
};
|
|
1001
1016
|
requestId: string;
|
|
1002
1017
|
};
|
|
1003
1018
|
outputFormat: "json";
|
|
1004
|
-
status:
|
|
1019
|
+
status: 429;
|
|
1005
1020
|
input: {
|
|
1006
1021
|
param: {
|
|
1007
1022
|
chainId: string;
|
|
@@ -1014,30 +1029,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1014
1029
|
};
|
|
1015
1030
|
} | {
|
|
1016
1031
|
output: {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
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
|
-
}[];
|
|
1032
|
+
error: {
|
|
1033
|
+
code: "upstream_error";
|
|
1034
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1035
|
+
message: string;
|
|
1036
|
+
};
|
|
1037
|
+
requestId: string;
|
|
1038
1038
|
};
|
|
1039
1039
|
outputFormat: "json";
|
|
1040
|
-
status:
|
|
1040
|
+
status: 502;
|
|
1041
1041
|
input: {
|
|
1042
1042
|
param: {
|
|
1043
1043
|
chainId: string;
|