import { Fr } from '@aztec/foundation/fields'; import { AvmExecutionEnvironment } from './avm_execution_environment.js'; import { TaggedMemory } from './avm_memory_types.js'; /** * Store's data for an Avm execution frame */ export declare class AvmMachineState { /** * Execution environment contains hard coded information that is received from the kernel * Items like, the block header and global variables fall within this category */ readonly executionEnvironment: AvmExecutionEnvironment; private returnData; readonly memory: TaggedMemory; /** * When an internal_call is invoked, the internal call stack is added to with the current pc + 1 * When internal_return is invoked, the latest value is popped from the internal call stack and set to the pc. */ internalCallStack: number[]; pc: number; callStack: number[]; /** * If an instruction triggers a halt, then it ends execution of the VM */ halted: boolean; /** * Signifies if the execution has reverted ( due to a revert instruction ) */ reverted: boolean; /** * Create a new avm context * @param executionEnvironment - Machine context that is passed to the avm */ constructor(executionEnvironment: AvmExecutionEnvironment); /** * Return data must NOT be modified once it is set * @param returnData - */ setReturnData(returnData: Fr[]): void; getReturnData(): Fr[]; } //# sourceMappingURL=avm_machine_state.d.ts.map