@@ -64,7 +64,15 @@ import {
6464} from '@aztec/stdlib/epoch-helpers' ;
6565import type { GetContractClassLogsResponse , GetPublicLogsResponse } from '@aztec/stdlib/interfaces/client' ;
6666import type { L2LogsSource } from '@aztec/stdlib/interfaces/server' ;
67- import { ContractClassLog , type LogFilter , type PrivateLog , type PublicLog , TxScopedL2Log } from '@aztec/stdlib/logs' ;
67+ import {
68+ ContractClassLog ,
69+ type LogFilter ,
70+ type PrivateLog ,
71+ type PublicLog ,
72+ type SiloedTag ,
73+ Tag ,
74+ TxScopedL2Log ,
75+ } from '@aztec/stdlib/logs' ;
6876import { type L1ToL2MessageSource , computeInHashFromL1ToL2Messages } from '@aztec/stdlib/messaging' ;
6977import type { CheckpointHeader } from '@aztec/stdlib/rollup' ;
7078import { type BlockHeader , type IndexedTxEffect , TxHash , TxReceipt } from '@aztec/stdlib/tx' ;
@@ -1407,14 +1415,16 @@ export class Archiver
14071415 return this . store . getSettledTxReceipt ( txHash ) ;
14081416 }
14091417
1410- /**
1411- * Gets all logs that match any of the received tags (i.e. logs with their first field equal to a tag).
1412- * @param tags - The tags to filter the logs by.
1413- * @returns For each received tag, an array of matching logs is returned. An empty array implies no logs match
1414- * that tag.
1415- */
1416- getLogsByTags ( tags : Fr [ ] ) : Promise < TxScopedL2Log [ ] [ ] > {
1417- return this . store . getLogsByTags ( tags ) ;
1418+ getPrivateLogsByTags ( tags : SiloedTag [ ] , logsPerTag ?: number ) : Promise < TxScopedL2Log [ ] [ ] > {
1419+ return this . store . getPrivateLogsByTags ( tags , logsPerTag ) ;
1420+ }
1421+
1422+ getPublicLogsByTagsFromContract (
1423+ contractAddress : AztecAddress ,
1424+ tags : Tag [ ] ,
1425+ logsPerTag ?: number ,
1426+ ) : Promise < TxScopedL2Log [ ] [ ] > {
1427+ return this . store . getPublicLogsByTagsFromContract ( contractAddress , tags , logsPerTag ) ;
14181428 }
14191429
14201430 /**
@@ -2072,8 +2082,15 @@ export class ArchiverStoreHelper
20722082 getL1ToL2MessageIndex ( l1ToL2Message : Fr ) : Promise < bigint | undefined > {
20732083 return this . store . getL1ToL2MessageIndex ( l1ToL2Message ) ;
20742084 }
2075- getLogsByTags ( tags : Fr [ ] , logsPerTag ?: number ) : Promise < TxScopedL2Log [ ] [ ] > {
2076- return this . store . getLogsByTags ( tags , logsPerTag ) ;
2085+ getPrivateLogsByTags ( tags : SiloedTag [ ] , logsPerTag ?: number ) : Promise < TxScopedL2Log [ ] [ ] > {
2086+ return this . store . getPrivateLogsByTags ( tags , logsPerTag ) ;
2087+ }
2088+ getPublicLogsByTagsFromContract (
2089+ contractAddress : AztecAddress ,
2090+ tags : Tag [ ] ,
2091+ logsPerTag ?: number ,
2092+ ) : Promise < TxScopedL2Log [ ] [ ] > {
2093+ return this . store . getPublicLogsByTagsFromContract ( contractAddress , tags , logsPerTag ) ;
20772094 }
20782095 getPublicLogs ( filter : LogFilter ) : Promise < GetPublicLogsResponse > {
20792096 return this . store . getPublicLogs ( filter ) ;
0 commit comments