Skip to content

Commit

Permalink
rename simply block builder
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari committed Aug 24, 2023
1 parent 393f1b0 commit 5bbf6aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ export interface GlobalVariableBuilder {
}

/**
* Simple implementation of a builder that uses the minimum time possible for the global variables.
* Simple test implementation of a builder that uses the minimum time possible for the global variables.
* Also uses a "hack" to make use of the warp cheatcode that manipulates time on Aztec.
*/
export class SimpleGlobalVariableBuilder implements GlobalVariableBuilder {
private log = createDebugLogger('aztec:sequencer:simple_global_variable_builder');
export class SimpleTestGlobalVariableBuilder implements GlobalVariableBuilder {
private log = createDebugLogger('aztec:sequencer:simple_test_global_variable_builder');
constructor(private readonly reader: L1GlobalReader) {}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { GlobalReaderConfig } from './config.js';
import { GlobalVariableBuilder, SimpleGlobalVariableBuilder } from './global_builder.js';
import { GlobalVariableBuilder, SimpleTestGlobalVariableBuilder } from './global_builder.js';
import { ViemReader } from './viem-reader.js';

export { SimpleGlobalVariableBuilder } from './global_builder.js';
export { SimpleTestGlobalVariableBuilder as SimpleGlobalVariableBuilder } from './global_builder.js';
export { GlobalReaderConfig } from './config.js';

/**
Expand All @@ -11,5 +11,5 @@ export { GlobalReaderConfig } from './config.js';
* @returns A new instance of the global variable builder.
*/
export function getGlobalVariableBuilder(config: GlobalReaderConfig): GlobalVariableBuilder {
return new SimpleGlobalVariableBuilder(new ViemReader(config));
return new SimpleTestGlobalVariableBuilder(new ViemReader(config));
}

0 comments on commit 5bbf6aa

Please sign in to comment.