@@ -4,7 +4,6 @@ import { StatusCodes } from "http-status-codes";
4
4
import { updateConfiguration } from "../../../../db/configuration/updateConfiguration" ;
5
5
import { getConfig } from "../../../../utils/cache/getConfig" ;
6
6
import { standardResponseSchema } from "../../../schemas/sharedApiSchemas" ;
7
- import { ReplySchema } from "./get" ;
8
7
9
8
const BodySchema = Type . Partial (
10
9
Type . Object ( {
@@ -20,6 +19,20 @@ const BodySchema = Type.Partial(
20
19
} ) ,
21
20
) ;
22
21
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
+
23
36
export async function updateTransactionConfiguration ( fastify : FastifyInstance ) {
24
37
fastify . route < {
25
38
Body : Static < typeof BodySchema > ;
0 commit comments