@@ -29,22 +29,18 @@ const bodySchema = Type.Object({
29
29
examples : [ "https://example.com/webhook" ] ,
30
30
} ) ,
31
31
) ,
32
- processEventLogs : Type . Optional (
33
- Type . Boolean ( {
34
- description : "If true, parse event logs for this contract." ,
35
- } ) ,
36
- ) ,
32
+ processEventLogs : Type . Boolean ( {
33
+ description : "If true, parse event logs for this contract." ,
34
+ } ) ,
37
35
filterEvents : Type . Optional (
38
36
Type . Array ( Type . String ( ) , {
39
37
description :
40
38
"A case-sensitive list of event log names to parse. If empty, parse all event logs." ,
41
39
} ) ,
42
40
) ,
43
- processTransactionReceipts : Type . Optional (
44
- Type . Boolean ( {
45
- description : "If true, parse transaction receipts for this contract." ,
46
- } ) ,
47
- ) ,
41
+ processTransactionReceipts : Type . Boolean ( {
42
+ description : "If true, parse transaction receipts for this contract." ,
43
+ } ) ,
48
44
} ) ;
49
45
50
46
const responseSchema = Type . Object ( {
@@ -83,9 +79,9 @@ export async function addContractSubscription(fastify: FastifyInstance) {
83
79
chain,
84
80
contractAddress,
85
81
webhookUrl,
86
- processEventLogs = true ,
82
+ processEventLogs,
87
83
filterEvents = [ ] ,
88
- processTransactionReceipts = true ,
84
+ processTransactionReceipts,
89
85
} = request . body ;
90
86
91
87
const chainId = await getChainIdFromChain ( chain ) ;
0 commit comments