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 detailsProgramResult- The program’s execution outcome (success/failure)- [
ContextResult] - Result type for use withMolluskContext
§Validation
Check- Validate individual instruction resultsCompare- Compare two instruction resultsConfig- Configuration for validation behaviorCheckContext- 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;