Function execute

Source
pub fn execute(
    program: &Program,
    stack_inputs: StackInputs,
    host: &mut impl Host,
    options: ExecutionOptions,
    source_manager: Arc<dyn SourceManager>,
) -> Result<ExecutionTrace, ExecutionError>
Expand description

Returns an execution trace resulting from executing the provided program against the provided inputs.

The host parameter is used to provide the external environment to the program being executed, such as access to the advice provider and libraries that the program depends on.