@enclave-vm/core 2.12.0 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ import type { ExecutionContext, ExecutionResult, SandboxAdapter } from '../types';
2
+ export interface InterpreterAdapterOptions {
3
+ /** Override the instruction budget (default 5,000,000). */
4
+ maxSteps?: number;
5
+ /** Override the max interpreter call depth (default 256). */
6
+ maxCallDepth?: number;
7
+ }
8
+ export declare class InterpreterAdapter implements SandboxAdapter {
9
+ private readonly options;
10
+ constructor(options?: InterpreterAdapterOptions);
11
+ execute<T = unknown>(code: string, context: ExecutionContext): Promise<ExecutionResult<T>>;
12
+ dispose(): void;
13
+ private stats;
14
+ private fail;
15
+ }