Skip to content
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

refactor: use config object to make phase manager less noisy #8586

Merged
merged 80 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
b51e908
feat: cleanup publisher
LHerskind Aug 22, 2024
da2eb7a
refactor: get rid of timetraveler from l1-publisher
LHerskind Aug 28, 2024
3388966
feat: revert if timestamp in future
LHerskind Aug 28, 2024
13a60a3
feat: including txhashes explicitly in the rollup attestations
Maddiaa0 Aug 29, 2024
86026f2
temp
Maddiaa0 Aug 30, 2024
f3eac5b
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Aug 30, 2024
fc7a04a
temp
Maddiaa0 Aug 30, 2024
9eed298
temp
Maddiaa0 Sep 2, 2024
cc09455
temp
Maddiaa0 Sep 2, 2024
06f950f
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Sep 2, 2024
4727cd9
temp: get passing with txhash payloads
Maddiaa0 Sep 3, 2024
b4c2a46
fix: make sure transactions are available in the tx pool
Maddiaa0 Sep 5, 2024
4a8d178
chore: remove logs
Maddiaa0 Sep 5, 2024
b4324fc
fmt
Maddiaa0 Sep 5, 2024
052641a
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Sep 5, 2024
a803a94
🪿
Maddiaa0 Sep 5, 2024
164c117
chore: validator tests
Maddiaa0 Sep 6, 2024
27da59d
Add timeouts to individual reqresp connections
Maddiaa0 Sep 6, 2024
9e7d2d8
fix
Maddiaa0 Sep 6, 2024
3c8e1b9
chore: include tests for specific error messages
Maddiaa0 Sep 6, 2024
9a738e5
fmt
Maddiaa0 Sep 6, 2024
c10260c
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Sep 6, 2024
045af5a
clean
Maddiaa0 Sep 6, 2024
73d26ec
🧹
Maddiaa0 Sep 6, 2024
d358228
chore: fix sequencing tests
Maddiaa0 Sep 7, 2024
4b31953
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Sep 7, 2024
2f82a8f
Merge branch 'md/check-tx-requests-before-signing' into md/09-06-add_…
Maddiaa0 Sep 7, 2024
f673593
fmt
Maddiaa0 Sep 7, 2024
a15ab17
fmt
Maddiaa0 Sep 7, 2024
2e3f80b
fmt solidity
Maddiaa0 Sep 7, 2024
ae2a05e
Merge branch 'md/check-tx-requests-before-signing' into md/09-06-add_…
Maddiaa0 Sep 7, 2024
5734006
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Sep 7, 2024
1bde1fe
fix: test hash
Maddiaa0 Sep 8, 2024
c775b26
Merge branch 'md/check-tx-requests-before-signing' into md/09-06-add_…
Maddiaa0 Sep 8, 2024
7a50a2b
exp: adjust test nodes
Maddiaa0 Sep 8, 2024
72f98bd
Merge branch 'md/check-tx-requests-before-signing' into md/09-06-add_…
Maddiaa0 Sep 8, 2024
998f38c
chore: add reqresp configuration values to p2p config
Maddiaa0 Sep 8, 2024
1c2b151
fix: use abi.encode vs encodePacked
Maddiaa0 Sep 11, 2024
e6e7f6b
fix
Maddiaa0 Sep 11, 2024
6f417fc
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Sep 11, 2024
cde6283
fix: merge fix
Maddiaa0 Sep 11, 2024
8290c99
fmt
Maddiaa0 Sep 11, 2024
b13ca93
Merge branch 'md/check-tx-requests-before-signing' into md/09-06-add_…
Maddiaa0 Sep 11, 2024
1452017
Merge branch 'master' into md/check-tx-requests-before-signing
Maddiaa0 Sep 11, 2024
120c9a3
Merge branch 'md/check-tx-requests-before-signing' into md/09-06-add_…
Maddiaa0 Sep 11, 2024
b189270
feat: initial rate limiter impl
Maddiaa0 Sep 11, 2024
9b90fe1
Merge branch 'master' into md/09-06-add_timeouts_to_individual_reqres…
Maddiaa0 Sep 11, 2024
b7d815f
Merge branch 'md/09-06-add_timeouts_to_individual_reqresp_connections…
Maddiaa0 Sep 11, 2024
97a6a14
feat: tests + documentation
Maddiaa0 Sep 11, 2024
0e22558
test: add to reqresp.test.ts
Maddiaa0 Sep 11, 2024
b464dcf
Merge branch 'master' into md/add-rate-limits-to-reqresp-peers
Maddiaa0 Sep 11, 2024
d0da214
fix: add todo pr number
Maddiaa0 Sep 11, 2024
2b46268
feat: introduce new light signer
Maddiaa0 Sep 12, 2024
65d009a
chore: migrations
Maddiaa0 Sep 12, 2024
69aa4a0
chore: proliferate
Maddiaa0 Sep 12, 2024
d109853
chore: remove signature lib from leonidas
Maddiaa0 Sep 12, 2024
d3cf4b8
fmt
Maddiaa0 Sep 12, 2024
dc06395
Merge branch 'master' into md/replace-viem-in-validator
Maddiaa0 Sep 13, 2024
d762096
fmt + fix test
Maddiaa0 Sep 13, 2024
afb46ca
fmt
Maddiaa0 Sep 13, 2024
37929f5
document secp256 helpers
Maddiaa0 Sep 13, 2024
1cb6687
clean
Maddiaa0 Sep 13, 2024
62b7c72
clean
Maddiaa0 Sep 13, 2024
421470e
fix: validator pk validation
Maddiaa0 Sep 16, 2024
f0f87a4
fix: reinstante eip712
Maddiaa0 Sep 16, 2024
40303d0
Merge branch 'master' into md/replace-viem-in-validator
Maddiaa0 Sep 16, 2024
7a33bef
refactor: remove multiple public dbs
Maddiaa0 Sep 16, 2024
9ec4fb1
fix
Maddiaa0 Sep 16, 2024
6f35ee8
fix
Maddiaa0 Sep 16, 2024
2e80f83
chore: make phase manager less noisy
Maddiaa0 Sep 16, 2024
e81590c
Merge branch 'master' into md/remove-multiple-dbs-in-public
Maddiaa0 Sep 18, 2024
d2b4d82
fix: add public naming
Maddiaa0 Sep 18, 2024
36c5e24
Merge branch 'md/remove-multiple-dbs-in-public' into md/cleanup-phase…
Maddiaa0 Sep 18, 2024
89ce60b
Merge branch 'master' into md/remove-multiple-dbs-in-public
Maddiaa0 Sep 19, 2024
d826cf1
fmt
Maddiaa0 Sep 19, 2024
c50d967
fmt
Maddiaa0 Sep 19, 2024
a892a4b
Merge branch 'md/remove-multiple-dbs-in-public' into md/cleanup-phase…
Maddiaa0 Sep 19, 2024
11a7329
Merge branch 'master' into md/remove-multiple-dbs-in-public
Maddiaa0 Sep 19, 2024
b132f36
Merge branch 'md/remove-multiple-dbs-in-public' into md/cleanup-phase…
Maddiaa0 Sep 19, 2024
084e678
Merge branch 'master' into md/cleanup-phase-manager
Maddiaa0 Sep 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 31 additions & 10 deletions yarn-project/simulator/src/public/abstract_phase_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import {
import {
type PublicExecutionResult,
type PublicExecutor,
type WorldStateDB,
accumulateReturnValues,
isPublicExecutionResult,
} from '@aztec/simulator';
Expand Down Expand Up @@ -139,19 +140,39 @@ export type PhaseResult = {
gasUsed?: Gas;
};

export interface PhaseConfig {
db: MerkleTreeOperations;
publicExecutor: PublicExecutor;
publicKernel: PublicKernelCircuitSimulator;
globalVariables: GlobalVariables;
historicalHeader: Header;
worldStateDB: WorldStateDB;
phase?: PublicKernelType;
}

export abstract class AbstractPhaseManager {
protected hintsBuilder: HintsBuilder;
protected log: DebugLogger;
constructor(
protected db: MerkleTreeOperations,
protected publicExecutor: PublicExecutor,
protected publicKernel: PublicKernelCircuitSimulator,
protected globalVariables: GlobalVariables,
protected historicalHeader: Header,
public phase: PublicKernelType,
) {
this.hintsBuilder = new HintsBuilder(db);
this.log = createDebugLogger(`aztec:sequencer:${phase}`);

protected db: MerkleTreeOperations;
protected publicExecutor: PublicExecutor;
protected publicKernel: PublicKernelCircuitSimulator;
protected globalVariables: GlobalVariables;
protected historicalHeader: Header;
protected worldStateDB: WorldStateDB;
public phase: PublicKernelType;

constructor(config: PhaseConfig) {
this.db = config.db;
this.publicExecutor = config.publicExecutor;
this.publicKernel = config.publicKernel;
this.globalVariables = config.globalVariables;
this.historicalHeader = config.historicalHeader;
this.worldStateDB = config.worldStateDB;
this.phase = config.phase ?? PublicKernelType.SETUP;

this.hintsBuilder = new HintsBuilder(this.db);
this.log = createDebugLogger(`aztec:sequencer:${this.phase}`);
}

/**
Expand Down
20 changes: 4 additions & 16 deletions yarn-project/simulator/src/public/app_logic_phase_manager.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
import { PublicKernelType, type PublicProvingRequest, type Tx } from '@aztec/circuit-types';
import { type GlobalVariables, type Header, type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
import { type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
import { type ProtocolArtifact } from '@aztec/noir-protocol-circuits-types';
import { type PublicExecutor } from '@aztec/simulator';
import { type MerkleTreeOperations } from '@aztec/world-state';

import { AbstractPhaseManager, makeAvmProvingRequest } from './abstract_phase_manager.js';
import { type WorldStateDB } from './public_db_sources.js';
import { type PublicKernelCircuitSimulator } from './public_kernel_circuit_simulator.js';
import { AbstractPhaseManager, type PhaseConfig, makeAvmProvingRequest } from './abstract_phase_manager.js';

/**
* The phase manager responsible for performing the fee preparation phase.
*/
export class AppLogicPhaseManager extends AbstractPhaseManager {
constructor(
db: MerkleTreeOperations,
publicExecutor: PublicExecutor,
publicKernel: PublicKernelCircuitSimulator,
globalVariables: GlobalVariables,
historicalHeader: Header,
protected worldStateDB: WorldStateDB,
phase: PublicKernelType = PublicKernelType.APP_LOGIC,
) {
super(db, publicExecutor, publicKernel, globalVariables, historicalHeader, phase);
constructor(config: PhaseConfig, public override phase: PublicKernelType = PublicKernelType.APP_LOGIC) {
super(config);
}

override async handle(
Expand Down
65 changes: 10 additions & 55 deletions yarn-project/simulator/src/public/phase_manager_factory.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { PublicKernelType, type Tx } from '@aztec/circuit-types';
import { type GlobalVariables, type Header, type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
import { type PublicExecutor } from '@aztec/simulator';
import { type MerkleTreeOperations } from '@aztec/world-state';
import { type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';

import { type AbstractPhaseManager } from './abstract_phase_manager.js';
import { type AbstractPhaseManager, type PhaseConfig } from './abstract_phase_manager.js';
import { AppLogicPhaseManager } from './app_logic_phase_manager.js';
import { type WorldStateDB } from './public_db_sources.js';
import { type PublicKernelCircuitSimulator } from './public_kernel_circuit_simulator.js';
import { SetupPhaseManager } from './setup_phase_manager.js';
import { TailPhaseManager } from './tail_phase_manager.js';
import { TeardownPhaseManager } from './teardown_phase_manager.js';
Expand All @@ -24,36 +20,14 @@ export class CannotTransitionToSetupError extends Error {
}

export class PhaseManagerFactory {
public static phaseFromTx(
tx: Tx,
db: MerkleTreeOperations,
publicExecutor: PublicExecutor,
publicKernel: PublicKernelCircuitSimulator,
globalVariables: GlobalVariables,
historicalHeader: Header,
worldStateDB: WorldStateDB,
): AbstractPhaseManager | undefined {
public static phaseFromTx(tx: Tx, config: PhaseConfig): AbstractPhaseManager | undefined {
const data = tx.data.forPublic!;
if (data.needsSetup) {
return new SetupPhaseManager(db, publicExecutor, publicKernel, globalVariables, historicalHeader, worldStateDB);
return new SetupPhaseManager(config);
} else if (data.needsAppLogic) {
return new AppLogicPhaseManager(
db,
publicExecutor,
publicKernel,
globalVariables,
historicalHeader,
worldStateDB,
);
return new AppLogicPhaseManager(config);
} else if (data.needsTeardown) {
return new TeardownPhaseManager(
db,
publicExecutor,
publicKernel,
globalVariables,
historicalHeader,
worldStateDB,
);
return new TeardownPhaseManager(config);
} else {
return undefined;
}
Expand All @@ -62,41 +36,22 @@ export class PhaseManagerFactory {
public static phaseFromOutput(
output: PublicKernelCircuitPublicInputs,
currentPhaseManager: AbstractPhaseManager,
db: MerkleTreeOperations,
publicExecutor: PublicExecutor,
publicKernel: PublicKernelCircuitSimulator,
globalVariables: GlobalVariables,
historicalHeader: Header,
worldStateDB: WorldStateDB,
config: PhaseConfig,
): AbstractPhaseManager | undefined {
if (output.needsSetup) {
throw new CannotTransitionToSetupError();
} else if (output.needsAppLogic) {
if (currentPhaseManager.phase === PublicKernelType.APP_LOGIC) {
throw new PhaseDidNotChangeError(currentPhaseManager.phase);
}
return new AppLogicPhaseManager(
db,
publicExecutor,
publicKernel,
globalVariables,
historicalHeader,
worldStateDB,
);
return new AppLogicPhaseManager(config);
} else if (output.needsTeardown) {
if (currentPhaseManager.phase === PublicKernelType.TEARDOWN) {
throw new PhaseDidNotChangeError(currentPhaseManager.phase);
}
return new TeardownPhaseManager(
db,
publicExecutor,
publicKernel,
globalVariables,
historicalHeader,
worldStateDB,
);
return new TeardownPhaseManager(config);
} else if (currentPhaseManager.phase !== PublicKernelType.TAIL) {
return new TailPhaseManager(db, publicExecutor, publicKernel, globalVariables, historicalHeader, worldStateDB);
return new TailPhaseManager(config);
} else {
return undefined;
}
Expand Down
38 changes: 18 additions & 20 deletions yarn-project/simulator/src/public/public_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { Attributes, type TelemetryClient, type Tracer, trackSpan } from '@aztec
import { type ContractDataSource } from '@aztec/types/contracts';
import { type MerkleTreeOperations } from '@aztec/world-state';

import { type AbstractPhaseManager } from './abstract_phase_manager.js';
import { type AbstractPhaseManager, type PhaseConfig } from './abstract_phase_manager.js';
import { PhaseManagerFactory } from './phase_manager_factory.js';
import { WorldStateDB } from './public_db_sources.js';
import { RealPublicKernelCircuitSimulator } from './public_kernel.js';
Expand Down Expand Up @@ -229,15 +229,16 @@ export class PublicProcessor {
const timer = new Timer();
let returnValues: NestedProcessReturnValues[] = [];
const publicProvingRequests: PublicProvingRequest[] = [];
let phase: AbstractPhaseManager | undefined = PhaseManagerFactory.phaseFromTx(
tx,
this.db,
this.publicExecutor,
this.publicKernel,
this.globalVariables,
this.historicalHeader,
this.worldStateDB,
);

const phaseManagerConfig: PhaseConfig = {
db: this.db,
publicExecutor: this.publicExecutor,
publicKernel: this.publicKernel,
globalVariables: this.globalVariables,
historicalHeader: this.historicalHeader,
worldStateDB: this.worldStateDB,
};
let phase: AbstractPhaseManager | undefined = PhaseManagerFactory.phaseFromTx(tx, phaseManagerConfig);
this.log.debug(`Beginning processing in phase ${phase?.phase} for tx ${tx.getTxHash()}`);

let publicKernelPublicInput = tx.data.toPublicKernelCircuitPublicInputs();
Expand Down Expand Up @@ -266,16 +267,13 @@ export class PublicProcessor {
lastKernelArtifact = output.lastKernelArtifact;
finalKernelOutput = output.finalKernelOutput;
revertReason ??= output.revertReason;
phase = PhaseManagerFactory.phaseFromOutput(
publicKernelPublicInput,
phase,
this.db,
this.publicExecutor,
this.publicKernel,
this.globalVariables,
this.historicalHeader,
this.worldStateDB,
);

// Update the phase manager config with the current phase
const phaseConfig = {
...phaseManagerConfig,
phase: phase.phase,
};
phase = PhaseManagerFactory.phaseFromOutput(publicKernelPublicInput, phase, phaseConfig);
}

if (!finalKernelOutput) {
Expand Down
13 changes: 8 additions & 5 deletions yarn-project/simulator/src/public/setup_phase_manager.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { type TreeInfo, mockTx } from '@aztec/circuit-types';
import { PublicKernelType, type TreeInfo, mockTx } from '@aztec/circuit-types';
import { GlobalVariables, Header } from '@aztec/circuits.js';
import { type PublicExecutor } from '@aztec/simulator';
import { type MerkleTreeOperations } from '@aztec/world-state';

import { it } from '@jest/globals';
import { type MockProxy, mock } from 'jest-mock-extended';

import { type PhaseConfig } from './abstract_phase_manager.js';
import { type WorldStateDB } from './public_db_sources.js';
import { type PublicKernelCircuitSimulator } from './public_kernel_circuit_simulator.js';
import { SetupPhaseManager } from './setup_phase_manager.js';
Expand Down Expand Up @@ -34,14 +35,16 @@ describe('setup_phase_manager', () => {
root = Buffer.alloc(32, 5);
db.getTreeInfo.mockResolvedValue({ root } as TreeInfo);
publicKernel = mock<PublicKernelCircuitSimulator>();
phaseManager = new TestSetupPhaseManager(
const config: PhaseConfig = {
db,
publicExecutor,
publicKernel,
GlobalVariables.empty(),
Header.empty(),
globalVariables: GlobalVariables.empty(),
historicalHeader: Header.empty(),
phase: PublicKernelType.SETUP,
worldStateDB,
);
};
phaseManager = new TestSetupPhaseManager(config);
});

it('does not extract non-revertible calls when none exist', function () {
Expand Down
20 changes: 4 additions & 16 deletions yarn-project/simulator/src/public/setup_phase_manager.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
import { PublicKernelType, type PublicProvingRequest, type Tx } from '@aztec/circuit-types';
import { type GlobalVariables, type Header, type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
import { type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
import { type ProtocolArtifact } from '@aztec/noir-protocol-circuits-types';
import { type PublicExecutor } from '@aztec/simulator';
import { type MerkleTreeOperations } from '@aztec/world-state';

import { AbstractPhaseManager, makeAvmProvingRequest } from './abstract_phase_manager.js';
import { type WorldStateDB } from './public_db_sources.js';
import { type PublicKernelCircuitSimulator } from './public_kernel_circuit_simulator.js';
import { AbstractPhaseManager, type PhaseConfig, makeAvmProvingRequest } from './abstract_phase_manager.js';

/**
* The phase manager responsible for performing the fee preparation phase.
*/
export class SetupPhaseManager extends AbstractPhaseManager {
constructor(
db: MerkleTreeOperations,
publicExecutor: PublicExecutor,
publicKernel: PublicKernelCircuitSimulator,
globalVariables: GlobalVariables,
historicalHeader: Header,
protected worldStateDB: WorldStateDB,
phase: PublicKernelType = PublicKernelType.SETUP,
) {
super(db, publicExecutor, publicKernel, globalVariables, historicalHeader, phase);
constructor(config: PhaseConfig, public override phase: PublicKernelType = PublicKernelType.SETUP) {
super(config);
}

override async handle(
Expand Down
20 changes: 3 additions & 17 deletions yarn-project/simulator/src/public/tail_phase_manager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { type PublicKernelRequest, PublicKernelType, type Tx } from '@aztec/circuit-types';
import {
type GlobalVariables,
type Header,
type KernelCircuitPublicInputs,
MAX_NULLIFIERS_PER_TX,
MAX_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX,
Expand All @@ -10,24 +8,12 @@ import {
mergeAccumulatedData,
} from '@aztec/circuits.js';
import { type ProtocolArtifact } from '@aztec/noir-protocol-circuits-types';
import { type PublicExecutor } from '@aztec/simulator';
import { type MerkleTreeOperations } from '@aztec/world-state';

import { AbstractPhaseManager } from './abstract_phase_manager.js';
import { type WorldStateDB } from './public_db_sources.js';
import { type PublicKernelCircuitSimulator } from './public_kernel_circuit_simulator.js';
import { AbstractPhaseManager, type PhaseConfig } from './abstract_phase_manager.js';

export class TailPhaseManager extends AbstractPhaseManager {
constructor(
db: MerkleTreeOperations,
publicExecutor: PublicExecutor,
publicKernel: PublicKernelCircuitSimulator,
globalVariables: GlobalVariables,
historicalHeader: Header,
protected worldStateDB: WorldStateDB,
phase: PublicKernelType = PublicKernelType.TAIL,
) {
super(db, publicExecutor, publicKernel, globalVariables, historicalHeader, phase);
constructor(config: PhaseConfig, public override phase: PublicKernelType = PublicKernelType.TAIL) {
super(config);
}

override async handle(
Expand Down
26 changes: 4 additions & 22 deletions yarn-project/simulator/src/public/teardown_phase_manager.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
import { PublicKernelType, type PublicProvingRequest, type Tx } from '@aztec/circuit-types';
import {
type Fr,
type Gas,
type GlobalVariables,
type Header,
type PublicKernelCircuitPublicInputs,
} from '@aztec/circuits.js';
import { type Fr, type Gas, type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
import { type ProtocolArtifact } from '@aztec/noir-protocol-circuits-types';
import { type PublicExecutor } from '@aztec/simulator';
import { type MerkleTreeOperations } from '@aztec/world-state';

import { inspect } from 'util';

import { AbstractPhaseManager, makeAvmProvingRequest } from './abstract_phase_manager.js';
import { type WorldStateDB } from './public_db_sources.js';
import { type PublicKernelCircuitSimulator } from './public_kernel_circuit_simulator.js';
import { AbstractPhaseManager, type PhaseConfig, makeAvmProvingRequest } from './abstract_phase_manager.js';

/**
* The phase manager responsible for performing the fee preparation phase.
*/
export class TeardownPhaseManager extends AbstractPhaseManager {
constructor(
db: MerkleTreeOperations,
publicExecutor: PublicExecutor,
publicKernel: PublicKernelCircuitSimulator,
globalVariables: GlobalVariables,
historicalHeader: Header,
protected worldStateDB: WorldStateDB,
phase: PublicKernelType = PublicKernelType.TEARDOWN,
) {
super(db, publicExecutor, publicKernel, globalVariables, historicalHeader, phase);
constructor(config: PhaseConfig, public override phase: PublicKernelType = PublicKernelType.TEARDOWN) {
super(config);
}

override async handle(
Expand Down
Loading