@@ -338,29 +338,16 @@ export interface AztecNode
338338 getContractClassLogs ( filter : LogFilter ) : Promise < GetContractClassLogsResponse > ;
339339
340340 /**
341- * Gets all private logs that match any of the received tags (i.e. logs with their first field equal to a SiloedTag).
342- * @param tags - The SiloedTags to filter the logs by.
343- * @param logsPerTag - How many logs to return per tag. Default 10 logs are returned for each tag
344- * @returns For each received tag, an array of matching private logs and metadata (e.g. tx hash) is returned. An empty
345- * array implies no logs match that tag. There can be multiple logs for 1 tag because tag reuse can happen
346- * --> e.g. when sending a note from multiple unsynched devices.
341+ * Gets all private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
342+ * array implies no logs match that tag.
347343 */
348- getPrivateLogsByTags ( tags : SiloedTag [ ] , logsPerTag ?: number ) : Promise < TxScopedL2Log [ ] [ ] > ;
344+ getPrivateLogsByTags ( tags : SiloedTag [ ] ) : Promise < TxScopedL2Log [ ] [ ] > ;
349345
350346 /**
351- * Gets all public logs that match any of the received tags from the specified contract (i.e. logs with their first field equal to a Tag).
352- * @param contractAddress - The contract that emitted the public logs.
353- * @param tags - The Tags to filter the logs by.
354- * @param logsPerTag - How many logs to return per tag. Default 10 logs are returned for each tag
355- * @returns For each received tag, an array of matching public logs and metadata (e.g. tx hash) is returned. An empty
356- * array implies no logs match that tag. There can be multiple logs for 1 tag because tag reuse can happen
357- * --> e.g. when sending a note from multiple unsynched devices.
347+ * Gets all public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
348+ * logs is returned. An empty array implies no logs match that tag.
358349 */
359- getPublicLogsByTagsFromContract (
360- contractAddress : AztecAddress ,
361- tags : Tag [ ] ,
362- logsPerTag ?: number ,
363- ) : Promise < TxScopedL2Log [ ] [ ] > ;
350+ getPublicLogsByTagsFromContract ( contractAddress : AztecAddress , tags : Tag [ ] ) : Promise < TxScopedL2Log [ ] [ ] > ;
364351
365352 /**
366353 * Method to submit a transaction to the p2p pool.
@@ -496,7 +483,6 @@ export interface AztecNode
496483 getAllowedPublicSetup ( ) : Promise < AllowedElement [ ] > ;
497484}
498485
499- export const MAX_LOGS_PER_TAG = 10 ;
500486const MAX_SIGNATURES_PER_REGISTER_CALL = 100 ;
501487const MAX_SIGNATURE_LEN = 10000 ;
502488
@@ -618,19 +604,12 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
618604
619605 getPrivateLogsByTags : z
620606 . function ( )
621- . args (
622- z . array ( SiloedTag . schema ) . max ( MAX_RPC_LEN ) ,
623- optional ( z . number ( ) . gte ( 1 ) . lte ( MAX_LOGS_PER_TAG ) . default ( MAX_LOGS_PER_TAG ) ) ,
624- )
607+ . args ( z . array ( SiloedTag . schema ) . max ( MAX_RPC_LEN ) )
625608 . returns ( z . array ( z . array ( TxScopedL2Log . schema ) ) ) ,
626609
627610 getPublicLogsByTagsFromContract : z
628611 . function ( )
629- . args (
630- schemas . AztecAddress ,
631- z . array ( Tag . schema ) . max ( MAX_RPC_LEN ) ,
632- optional ( z . number ( ) . gte ( 1 ) . lte ( MAX_LOGS_PER_TAG ) . default ( MAX_LOGS_PER_TAG ) ) ,
633- )
612+ . args ( schemas . AztecAddress , z . array ( Tag . schema ) . max ( MAX_RPC_LEN ) )
634613 . returns ( z . array ( z . array ( TxScopedL2Log . schema ) ) ) ,
635614
636615 sendTx : z . function ( ) . args ( Tx . schema ) . returns ( z . void ( ) ) ,
0 commit comments