Skip to content

Commit 0f6aa65

Browse files
author
dbanks12
committed
chore: remove unused functions from public side effect trace
1 parent 4a962d6 commit 0f6aa65

File tree

2 files changed

+0
-59
lines changed

2 files changed

+0
-59
lines changed

yarn-project/simulator/src/public/side_effect_trace.ts

-38
Original file line numberDiff line numberDiff line change
@@ -512,29 +512,6 @@ export class SideEffectTrace implements PublicSideEffectTraceInterface {
512512
};
513513
}
514514

515-
/**
516-
* Get the results of public execution.
517-
*/
518-
public toPublicEnqueuedCallExecutionResult(
519-
/** The call's results */
520-
avmCallResults: AvmFinalizedCallResult,
521-
): EnqueuedPublicCallExecutionResultWithSideEffects {
522-
return {
523-
endGasLeft: Gas.from(avmCallResults.gasLeft),
524-
endSideEffectCounter: new Fr(this.sideEffectCounter),
525-
returnValues: avmCallResults.output,
526-
reverted: avmCallResults.reverted,
527-
revertReason: avmCallResults.revertReason,
528-
sideEffects: {
529-
publicDataWrites: this.publicDataWrites,
530-
noteHashes: this.noteHashes,
531-
nullifiers: this.nullifiers,
532-
l2ToL1Messages: this.l2ToL1Messages,
533-
publicLogs: this.publicLogs,
534-
},
535-
};
536-
}
537-
538515
public toAvmCircuitPublicInputs(
539516
/** Globals. */
540517
globalVariables: GlobalVariables,
@@ -585,21 +562,6 @@ export class SideEffectTrace implements PublicSideEffectTraceInterface {
585562
);
586563
}
587564

588-
public toPublicFunctionCallResult(
589-
/** The execution environment of the nested call. */
590-
_avmEnvironment: AvmExecutionEnvironment,
591-
/** How much gas was available for this public execution. */
592-
_startGasLeft: Gas,
593-
/** Bytecode used for this execution. */
594-
_bytecode: Buffer,
595-
/** The call's results */
596-
_avmCallResults: AvmFinalizedCallResult,
597-
/** Function name for logging */
598-
_functionName: string = 'unknown',
599-
): PublicFunctionCallResult {
600-
throw new Error('Not implemented');
601-
}
602-
603565
public getPublicLogs() {
604566
return this.publicLogs;
605567
}

yarn-project/simulator/src/public/side_effect_trace_interface.ts

-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
type ContractClassIdPreimage,
3-
type Gas,
43
type NullifierLeafPreimage,
54
type PublicCallRequest,
65
type PublicDataTreeLeafPreimage,
@@ -10,10 +9,6 @@ import {
109
import { type AztecAddress } from '@aztec/foundation/aztec-address';
1110
import { type Fr } from '@aztec/foundation/fields';
1211

13-
import { type AvmFinalizedCallResult } from '../avm/avm_contract_call_result.js';
14-
import { type AvmExecutionEnvironment } from '../avm/avm_execution_environment.js';
15-
import { type EnqueuedPublicCallExecutionResultWithSideEffects, type PublicFunctionCallResult } from './execution.js';
16-
1712
export interface PublicSideEffectTraceInterface {
1813
fork(): PublicSideEffectTraceInterface;
1914
merge(nestedTrace: PublicSideEffectTraceInterface, reverted?: boolean): void;
@@ -90,21 +85,5 @@ export interface PublicSideEffectTraceInterface {
9085
/** Did the call revert? */
9186
reverted: boolean,
9287
): void;
93-
toPublicEnqueuedCallExecutionResult(
94-
/** The call's results */
95-
avmCallResults: AvmFinalizedCallResult,
96-
): EnqueuedPublicCallExecutionResultWithSideEffects;
97-
toPublicFunctionCallResult(
98-
/** The execution environment of the nested call. */
99-
avmEnvironment: AvmExecutionEnvironment,
100-
/** How much gas was available for this public execution. */
101-
startGasLeft: Gas,
102-
/** Bytecode used for this execution. */
103-
bytecode: Buffer,
104-
/** The call's results */
105-
avmCallResults: AvmFinalizedCallResult,
106-
/** Function name for logging */
107-
functionName: string,
108-
): PublicFunctionCallResult;
10988
getPublicLogs(): PublicLog[];
11089
}

0 commit comments

Comments
 (0)