Skip to main content

Crate mollusk_svm_result

Crate mollusk_svm_result 

Source
Expand description

SVM program execution results and validation.

This crate provides types and utilities for working with the results of SVM program execution, including validation and comparison capabilities.

§Core Types

  • InstructionResult - The main result type containing execution details
  • ProgramResult - The program’s execution outcome (success/failure)
  • [ContextResult] - Result type for use with MolluskContext

§Validation

  • Check - Validate individual instruction results
  • Compare - Compare two instruction results
  • Config - Configuration for validation behavior
  • CheckContext - Context trait for custom validation logic

§Example

use mollusk_svm_result::{Check, Config, InstructionResult};

let result = InstructionResult::default();
let checks = vec![Check::success(), Check::compute_units(100)];
let config = Config::default();

result.run_checks(&checks, &config, &mollusk);

Re-exports§

pub use check::AccountCheckBuilder;
pub use check::Check;
pub use compare::Compare;
pub use config::CheckContext;
pub use config::Config;
pub use types::InstructionResult;
pub use types::ProgramResult;

Modules§

check
Check system for validating individual instruction results.
compare
Compare system for comparing two instruction results.
config
Configuration and context for result validation.
types
Core result types for SVM program execution.