-
Notifications
You must be signed in to change notification settings - Fork 598
feat!: AztecNode.findLeavesIndexes returning block info
#12890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
29ce74b
d6ca8c0
b619b81
8c04169
1008496
fe425d8
a84b0bb
c7be688
f213a66
efab8c4
a980fb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,6 @@ import { | |
| type L2BlockSource, | ||
| L2BlockSourceEvents, | ||
| type L2Tips, | ||
| type NullifierWithBlockSource, | ||
| } from '@aztec/stdlib/block'; | ||
| import { | ||
| type ContractClassPublic, | ||
|
|
@@ -67,11 +66,7 @@ import type { PublishedL2Block } from './structs/published.js'; | |
| /** | ||
| * Helper interface to combine all sources this archiver implementation provides. | ||
| */ | ||
| export type ArchiveSource = L2BlockSource & | ||
| L2LogsSource & | ||
| ContractDataSource & | ||
| L1ToL2MessageSource & | ||
| NullifierWithBlockSource; | ||
| export type ArchiveSource = L2BlockSource & L2LogsSource & ContractDataSource & L1ToL2MessageSource; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nullifier store was nuked and with that the Archiver interface was changed. |
||
|
|
||
| /** | ||
| * Pulls L2 blocks in a non-blocking manner and provides interface for their retrieval. | ||
|
|
@@ -734,17 +729,6 @@ export class Archiver extends EventEmitter implements ArchiveSource, Traceable { | |
| return this.store.getLogsByTags(tags); | ||
| } | ||
|
|
||
| /** | ||
| * Returns the provided nullifier indexes scoped to the block | ||
| * they were first included in, or undefined if they're not present in the tree | ||
| * @param blockNumber Max block number to search for the nullifiers | ||
| * @param nullifiers Nullifiers to get | ||
| * @returns The block scoped indexes of the provided nullifiers, or undefined if the nullifier doesn't exist in the tree | ||
| */ | ||
| findNullifiersIndexesWithBlock(blockNumber: number, nullifiers: Fr[]): Promise<(InBlock<bigint> | undefined)[]> { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| return this.store.findNullifiersIndexesWithBlock(blockNumber, nullifiers); | ||
| } | ||
|
|
||
| /** | ||
| * Gets public logs based on the provided filter. | ||
| * @param filter - The filter to apply to the logs. | ||
|
|
@@ -883,8 +867,6 @@ class ArchiverStoreHelper | |
| ArchiverDataStore, | ||
| | 'addLogs' | ||
| | 'deleteLogs' | ||
| | 'addNullifiers' | ||
| | 'deleteNullifiers' | ||
| | 'addContractClasses' | ||
| | 'deleteContractClasses' | ||
| | 'addContractInstances' | ||
|
|
@@ -1050,7 +1032,6 @@ class ArchiverStoreHelper | |
| ]) | ||
| ).every(Boolean); | ||
| }), | ||
| this.store.addNullifiers(blocks.map(block => block.block)), | ||
| this.store.addBlocks(blocks), | ||
| ]); | ||
|
|
||
|
|
@@ -1117,9 +1098,6 @@ class ArchiverStoreHelper | |
| getLogsByTags(tags: Fr[]): Promise<TxScopedL2Log[][]> { | ||
| return this.store.getLogsByTags(tags); | ||
| } | ||
| findNullifiersIndexesWithBlock(blockNumber: number, nullifiers: Fr[]): Promise<(InBlock<bigint> | undefined)[]> { | ||
| return this.store.findNullifiersIndexesWithBlock(blockNumber, nullifiers); | ||
| } | ||
| getPublicLogs(filter: LogFilter): Promise<GetPublicLogsResponse> { | ||
| return this.store.getPublicLogs(filter); | ||
| } | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below are just formatting-related changes.