Skip to content

Commit 0ef3f38

Browse files
authored
config/transactions updates (#410)
1 parent 163ce8c commit 0ef3f38

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/server/routes/configuration/transactions/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes";
44
import { getConfig } from "../../../../utils/cache/getConfig";
55
import { standardResponseSchema } from "../../../schemas/sharedApiSchemas";
66

7-
export const ReplySchema = Type.Object({
7+
const ReplySchema = Type.Object({
88
result: Type.Object({
99
minTxsToProcess: Type.Number(),
1010
maxTxsToProcess: Type.Number(),

src/server/routes/configuration/transactions/update.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { StatusCodes } from "http-status-codes";
44
import { updateConfiguration } from "../../../../db/configuration/updateConfiguration";
55
import { getConfig } from "../../../../utils/cache/getConfig";
66
import { standardResponseSchema } from "../../../schemas/sharedApiSchemas";
7-
import { ReplySchema } from "./get";
87

98
const BodySchema = Type.Partial(
109
Type.Object({
@@ -20,6 +19,20 @@ const BodySchema = Type.Partial(
2019
}),
2120
);
2221

22+
const ReplySchema = Type.Object({
23+
result: Type.Object({
24+
minTxsToProcess: Type.Number(),
25+
maxTxsToProcess: Type.Number(),
26+
minedTxListenerCronSchedule: Type.Union([Type.String(), Type.Null()]),
27+
maxTxsToUpdate: Type.Number(),
28+
retryTxListenerCronSchedule: Type.Union([Type.String(), Type.Null()]),
29+
minEllapsedBlocksBeforeRetry: Type.Number(),
30+
maxFeePerGasForRetries: Type.String(),
31+
maxPriorityFeePerGasForRetries: Type.String(),
32+
maxRetriesPerTx: Type.Number(),
33+
}),
34+
});
35+
2336
export async function updateTransactionConfiguration(fastify: FastifyInstance) {
2437
fastify.route<{
2538
Body: Static<typeof BodySchema>;

0 commit comments

Comments
 (0)