Skip to content

Commit d775e97

Browse files
feat: register new health monitoring and batch optimizer routes
Integrated new endpoints into the route registry: - Health monitoring: /system/health/detailed - Batch optimizer: /transaction/batch/* endpoints Routes are properly organized within the transaction section for logical grouping and discoverability.
1 parent 3423e93 commit d775e97

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/server/routes/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ import { getAllRelayers } from "./relayer/get-all";
9393
import { revokeRelayer } from "./relayer/revoke";
9494
import { updateRelayer } from "./relayer/update";
9595
import { healthCheck } from "./system/health";
96+
import { healthDetailed } from "./system/health-detailed";
9697
import { queueStatus } from "./system/queue";
9798
import { getTransactionLogs } from "./transaction/blockchain/get-logs";
9899
import { getTransactionReceipt } from "./transaction/blockchain/get-receipt";
@@ -124,6 +125,8 @@ import { getAllWalletSubscriptionsRoute } from "./wallet-subscriptions/get-all";
124125
import { addWalletSubscriptionRoute } from "./wallet-subscriptions/add";
125126
import { updateWalletSubscriptionRoute } from "./wallet-subscriptions/update";
126127
import { deleteWalletSubscriptionRoute } from "./wallet-subscriptions/delete";
128+
import { healthDetailed } from "./system/health-detailed";
129+
import { estimateBatchTransactions, executeBatchTransactions, getBatchStatus } from "./transaction/batch-optimizer";
127130

128131
export async function withRoutes(fastify: FastifyInstance) {
129132
// Backend Wallets
@@ -254,6 +257,11 @@ export async function withRoutes(fastify: FastifyInstance) {
254257
await fastify.register(getTransactionReceipt);
255258
await fastify.register(getUserOpReceipt);
256259
await fastify.register(getTransactionLogs);
260+
261+
// Transaction Batch Optimizer - Smart batching with cost optimization
262+
await fastify.register(estimateBatchTransactions);
263+
await fastify.register(executeBatchTransactions);
264+
await fastify.register(getBatchStatus);
257265

258266
// Extensions
259267
await fastify.register(accountFactoryRoutes);
@@ -267,6 +275,7 @@ export async function withRoutes(fastify: FastifyInstance) {
267275
// These should be hidden by default
268276
await fastify.register(home);
269277
await fastify.register(healthCheck);
278+
await fastify.register(healthDetailed);
270279
await fastify.register(queueStatus);
271280

272281
// Contract Subscriptions

0 commit comments

Comments
 (0)