Skip to main content

import_runtime_state_file

Function import_runtime_state_file 

Source
pub fn import_runtime_state_file(
    app_root: &Path,
    runtime_conf_path: Option<&Path>,
    app_id: Option<&str>,
    state_path: &Path,
    expected_audit_count: Option<&str>,
) -> i32
Expand description

Imports a validated relational state file through the selected backend contract.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::json_commands::import_runtime_state_file.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::import_runtime_state_file(std::path::Path::new("apps/dev_docs"), todo!(), todo!(), todo!(), todo!());