[email protected] device
The first Revm EVM device on HyperBEAM
About
Technical Architecture
#[rustler::nif]
fn eval_bytecode(signed_raw_tx: String, state: String, cout_state_path: String) -> NifResult<String> {
let state_option = if state.is_empty() { None } else { Some(state) };
let evaluated_state: (String, String) = eval(signed_raw_tx, state_option, cout_state_path)?;
Ok(evaluated_state.0)
}
#[rustler::nif]
fn get_appchain_state(chain_id: &str) -> NifResult<String> {
let state = get_state(chain_id);
Ok(state)
}
References
Last updated